Moose/Instrument/ZI_HF2LI.pm

filter: Statementstmt 100% 12 / 12 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 3 / 3 Podpod n/a totaltotal 100% 15 / 15 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Moose/Instrument/SCPI/Source/Range.pm ↑ Summary Moose/Instrument/ZI_MFIA.pm »
1 package Lab::Moose::Instrument::ZI_HF2LI;
2 1 $Lab::Moose::Instrument::ZI_HF2LI::VERSION = '3.881';
3 #ABSTRACT: Zurich Instruments HF2LI Lock-in Amplifier
4  
5 1 ▶use v5.20;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 1 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
8 1 ▶use namespace::autoclean;
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 1 extends 'Lab::Moose::Instrument::ZI_MFLI';
11  
12  
13  
14 1 __PACKAGE__->meta()->make_immutable();
15  
16 1 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
« Moose/Instrument/SCPI/Source/Range.pm ↑ Summary Moose/Instrument/ZI_MFIA.pm »