| 1 | package Lab::Instrument::OI_ILM210; | ||||||||||||||||||||
| 2 | #ABSTRACT: Oxford Instruments ILM Intelligent Level Meter | ||||||||||||||||||||
| 3 | 1 | $Lab::Instrument::OI_ILM210::VERSION = '3.881'; | |||||||||||||||||||
| 4 | 1 | ▶ | use v5.20; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 5 | |||||||||||||||||||||
| 6 | 1 | ▶ | use strict; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 7 | 1 | ▶ | use Lab::Instrument; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 8 | |||||||||||||||||||||
| 9 | 1 | our @ISA = ("Lab::Instrument"); | |||||||||||||||||||
| 10 | |||||||||||||||||||||
| 11 | 1 | our %fields = ( supported_connections => ['IsoBus'], ); | |||||||||||||||||||
| 12 | |||||||||||||||||||||
| 13 | sub new { | ||||||||||||||||||||
| 14 | 0 | ▶ | my $proto = shift; | ||||||||||||||||||
|
Subroutine
new: not called CC=2 SCAR=17.9
Pod
documented
| |||||||||||||||||||||
| 15 | 0 | ▶ | my $class = ref($proto) || $proto; | ||||||||||||||||||
|
Condition0%0/3
ref $proto || $proto
MC/DC0%0/2
ref $proto || $proto
ref $proto
$proto
Truth table0%0/3
A || B
A= ref $protoB= $proto
| |||||||||||||||||||||
| 16 | 0 | my $self = $class->SUPER::new(@_); | |||||||||||||||||||
| 17 | 0 | $self->${ \( __PACKAGE__ . '::_construct' ) }(__PACKAGE__); | |||||||||||||||||||
| 18 | |||||||||||||||||||||
| 19 | 0 | return $self; | |||||||||||||||||||
| 20 | } | ||||||||||||||||||||
| 21 | |||||||||||||||||||||
| 22 | sub get_level { | ||||||||||||||||||||
| 23 | 0 | ▶ | my $self = shift; | ||||||||||||||||||
|
Subroutine
get_level: not called CC=2 SCAR=17.9
Pod
documented
| |||||||||||||||||||||
| 24 | 0 | my $channel = shift; | |||||||||||||||||||
| 25 | 0 | ▶ | $channel = "1" unless defined($channel); | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 26 | |||||||||||||||||||||
| 27 | 0 | my $level = $self->query("R$channel"); | |||||||||||||||||||
| 28 | 0 | $level =~ s/^R//; | |||||||||||||||||||
| 29 | 0 | $level /= 10; | |||||||||||||||||||
| 30 | 0 | return $level; | |||||||||||||||||||
| 31 | } | ||||||||||||||||||||
| 32 | |||||||||||||||||||||
| 33 | 1 | 1; | |||||||||||||||||||
| 34 | |||||||||||||||||||||
| 35 | __END__ | ||||||||||||||||||||
| 36 | |||||||||||||||||||||
| 37 | =pod | ||||||||||||||||||||
| 38 | |||||||||||||||||||||
| 39 | =encoding utf-8 | ||||||||||||||||||||
| 40 | |||||||||||||||||||||
| 41 | =head1 NAME | ||||||||||||||||||||
| 42 | |||||||||||||||||||||
| 43 | Lab::Instrument::OI_ILM210 - Oxford Instruments ILM Intelligent Level Meter | ||||||||||||||||||||
| 44 | |||||||||||||||||||||
| 45 | =head1 VERSION | ||||||||||||||||||||
| 46 | |||||||||||||||||||||
| 47 | version 3.881 | ||||||||||||||||||||
| 48 | |||||||||||||||||||||
| 49 | =head1 SYNOPSIS | ||||||||||||||||||||
| 50 | |||||||||||||||||||||
| 51 | use Lab::Instrument::OI_ILM210; | ||||||||||||||||||||
| 52 | |||||||||||||||||||||
| 53 | my $ilm=new Lab::Instrument::OI_ILM210( | ||||||||||||||||||||
| 54 | connection_type=>'IsoBus', | ||||||||||||||||||||
| 55 | base_connection=>..., | ||||||||||||||||||||
| 56 | isobus_address=>5, | ||||||||||||||||||||
| 57 | ); | ||||||||||||||||||||
| 58 | |||||||||||||||||||||
| 59 | =head1 DESCRIPTION | ||||||||||||||||||||
| 60 | |||||||||||||||||||||
| 61 | The Lab::Instrument::OI_ILM210 class implements an interface to the Oxford Instruments | ||||||||||||||||||||
| 62 | ILM helium level meter (tested with the ILM210). | ||||||||||||||||||||
| 63 | |||||||||||||||||||||
| 64 | =head1 CONSTRUCTOR | ||||||||||||||||||||
| 65 | |||||||||||||||||||||
| 66 | my $ilm=new Lab::Instrument::OI_ILM210( | ||||||||||||||||||||
| 67 | connection_type=>'IsoBus', | ||||||||||||||||||||
| 68 | base_connection=> $iso, | ||||||||||||||||||||
| 69 | isobus_address=> $addr, | ||||||||||||||||||||
| 70 | ); | ||||||||||||||||||||
| 71 | |||||||||||||||||||||
| 72 | Instantiates a new ILM210 object, attached to the GPIB or RS232 connection | ||||||||||||||||||||
| 73 | (of type C<Lab::Connection>) C<$iso>, with IsoBus address C<$addr>. | ||||||||||||||||||||
| 74 | |||||||||||||||||||||
| 75 | =head1 METHODS | ||||||||||||||||||||
| 76 | |||||||||||||||||||||
| 77 | =head2 get_level | ||||||||||||||||||||
| 78 | |||||||||||||||||||||
| 79 | $perc=$ilm->get_level(); | ||||||||||||||||||||
| 80 | $perc=$ilm->get_level(1); | ||||||||||||||||||||
| 81 | |||||||||||||||||||||
| 82 | Reads out the current helium level in percent. Note that this command does NOT trigger a measurement, but | ||||||||||||||||||||
| 83 | only reads out the last value measured by the ILM. This means that in slow mode values may remain constant | ||||||||||||||||||||
| 84 | for several minutes. | ||||||||||||||||||||
| 85 | |||||||||||||||||||||
| 86 | As optional parameter a channel number can be provided. This defaults to 1. | ||||||||||||||||||||
| 87 | |||||||||||||||||||||
| 88 | =head1 CAVEATS/BUGS | ||||||||||||||||||||
| 89 | |||||||||||||||||||||
| 90 | probably many | ||||||||||||||||||||
| 91 | |||||||||||||||||||||
| 92 | =head1 SEE ALSO | ||||||||||||||||||||
| 93 | |||||||||||||||||||||
| 94 | =over 4 | ||||||||||||||||||||
| 95 | |||||||||||||||||||||
| 96 | =item L<Lab::Instrument> | ||||||||||||||||||||
| 97 | |||||||||||||||||||||
| 98 | =back | ||||||||||||||||||||
| 99 | |||||||||||||||||||||
| 100 | =head1 COPYRIGHT AND LICENSE | ||||||||||||||||||||
| 101 | |||||||||||||||||||||
| 102 | This software is copyright (c) 2023 by the Lab::Measurement team; in detail: | ||||||||||||||||||||
| 103 | |||||||||||||||||||||
| 104 | Copyright 2011 Andreas K. Huettel, Florian Olbrich | ||||||||||||||||||||
| 105 | 2012-2013 Andreas K. Huettel | ||||||||||||||||||||
| 106 | 2016 Simon Reinhardt | ||||||||||||||||||||
| 107 | 2017 Andreas K. Huettel | ||||||||||||||||||||
| 108 | 2020 Andreas K. Huettel | ||||||||||||||||||||
| 109 | |||||||||||||||||||||
| 110 | |||||||||||||||||||||
| 111 | This is free software; you can redistribute it and/or modify it under | ||||||||||||||||||||
| 112 | the same terms as the Perl 5 programming language system itself. | ||||||||||||||||||||
| 113 | |||||||||||||||||||||
| 114 | =cut | ||||||||||||||||||||