File Coverage

blib/lib/Lab/Moose/Instrument/ZI_HF2LI.pm
Criterion Covered Total %
statement 8 8 100.0
branch n/a
condition n/a
subroutine 3 3 100.0
pod n/a
total 11 11 100.0


line stmt bran cond sub pod time code
1             package Lab::Moose::Instrument::ZI_HF2LI;
2             $Lab::Moose::Instrument::ZI_HF2LI::VERSION = '3.881';
3             #ABSTRACT: Zurich Instruments HF2LI Lock-in Amplifier
4              
5 1     1   2157 use v5.20;
  1         4  
6              
7 1     1   7 use Moose;
  1         3  
  1         8  
8 1     1   7635 use namespace::autoclean;
  1         5  
  1         10  
9              
10             extends 'Lab::Moose::Instrument::ZI_MFLI';
11              
12              
13              
14             __PACKAGE__->meta()->make_immutable();
15              
16             1;
17              
18             __END__
19              
20             =pod
21              
22             =encoding UTF-8
23              
24             =head1 NAME
25              
26             Lab::Moose::Instrument::ZI_HF2LI - Zurich Instruments HF2LI Lock-in Amplifier
27              
28             =head1 VERSION
29              
30             version 3.881
31              
32             =head1 SYNOPSIS
33              
34             use Lab::Moose;
35              
36             my $hfli = instrument(
37             type => 'ZI_HF2LI',
38             connection_type => 'Zhinst',
39             oscillator => 1, # 0 is default
40             connection_options => {
41             host => '122.188.12.13',
42             port => 8005, # Note: The MFLI uses port 8004
43             });
44              
45             $hfli->set_frequency(value => 10000);
46              
47             # Set time constants of first two demodulators to 0.5 sec:
48             $hfli->set_tc(demod => 0, value => 0.5);
49             $hfli->set_tc(demod => 1, value => 0.5);
50              
51             # Read out demodulators:
52             my $xy_0 = $hfli->get_xy(demod => 0);
53             my $xy_1 = $hfli->get_xy(demod => 1);
54             say "x_0, y_0: ", $xy_0->{x}, ", ", $xy_0->{y};
55              
56             =head1 METHODS
57              
58             Identical to L<Lab::Moose::Instrument::ZI_MFLI>.
59              
60             =head1 COPYRIGHT AND LICENSE
61              
62             This software is copyright (c) 2023 by the Lab::Measurement team; in detail:
63              
64             Copyright 2020 Simon Reinhardt
65              
66              
67             This is free software; you can redistribute it and/or modify it under
68             the same terms as the Perl 5 programming language system itself.
69              
70             =cut