Moose/Instrument/Keysight33600.pm

filter: Statementstmt 77.7% 35 / 45 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 83.3% 10 / 12 Podpod 0.0% 0 / 1 totaltotal 77.5% 45 / 58 CC 1 SCAR 1.5
CC
1
Cov
78%
__ANON__
2.0
BUILD
2.0
BEGIN
1.0
CRAP 1.2
« Moose/Instrument/OI_IPS/Strunk_3He.pm ↑ Summary Moose/Instrument/Keithley2400.pm »
1 package Lab::Moose::Instrument::Keysight33600;
2 1 $Lab::Moose::Instrument::Keysight33600::VERSION = '3.931';
3 #ABSTRACT: Keysight 33500/33600 series Function/Arbitrary Waveform Generator (work in progress)
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 MooseX::Params::Validate;
Subroutine BEGIN: called CC=1 SCAR=0.0
9 1 ▶use Moose::Util::TypeConstraints qw/enum/;
Subroutine BEGIN: called CC=1 SCAR=0.0
10 1 ▶use List::Util qw/sum/;
Subroutine BEGIN: called CC=1 SCAR=0.0
11 1 ▶use List::MoreUtils qw/minmax/;
Subroutine BEGIN: called CC=1 SCAR=0.0
12 use Lab::Moose::Instrument
13 1 ▶ qw/validated_channel_getter validated_channel_setter validated_getter validated_setter/;
Subroutine BEGIN: called CC=1 SCAR=0.0
14 1 ▶use Lab::Moose::Instrument::Cache;
Subroutine BEGIN: called CC=1 SCAR=0.0
15 1 ▶use Carp 'croak';
Subroutine BEGIN: called CC=1 SCAR=0.0
16 1 ▶use namespace::autoclean;
Subroutine BEGIN: called CC=1 SCAR=0.0
17  
18 1 extends 'Lab::Moose::Instrument';
19  
20 0 ▶around default_connection_options => sub {
Subroutine __ANON__: not called CC=1 SCAR=6.9
21 0 my $orig = shift;
22 0 my $self = shift;
23 0 my $options = $self->$orig();
24 0 my $usb_opts = { vid => 0x0957, pid => 0x2b07 };
25 0 $options->{USB} = $usb_opts;
26 0 $options->{'VISA::USB'} = $usb_opts;
27 0 return $options;
28 1 };
29  
30 0 ▶sub BUILD {
Subroutine BUILD: not called CC=1 SCAR=6.9
Pod undocumented
31 0 my $self = shift;
32 0 $self->clear();
33 0 $self->cls();
34 }
35  
36  
37 #
38 # MY FUNCTIONS
39 #
40  
41  
42 1 with qw(
43 Lab::Moose::Instrument::Common
44 );
45  
46 1 __PACKAGE__->meta()->make_immutable();
47  
48 1 1;
49  
50 __END__
« Moose/Instrument/OI_IPS/Strunk_3He.pm ↑ Summary Moose/Instrument/Keithley2400.pm »