Instrument/IPSWeissDilfridge.pm

filter: Statementstmt 46.1% 12 / 26 Branchbran 0.0% 0 / 2 Conditioncond 0.0% 0 / 3 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 60.0% 3 / 5 Podpod n/a totaltotal 39.4% 15 / 38 SCAR 16.2
CC
3
Cov
39%
new
6.0
check_magnet
6.0
BEGIN
1.0
CRAP 5.1
« Moose/Instrument/Rigol_DSA815.pm ↑ Summary Moose.pm »
1 package Lab::Instrument::IPSWeissDillFridge;
2 #ABSTRACT: Derived IPS instrument for the AG Weiss dilution refrigerator
3 1 $Lab::Instrument::IPSWeissDillFridge::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::IPS;
Subroutine BEGIN: called CC=1 SCAR=0.0
8 1 our @ISA = ('Lab::Instrument::IPS');
9  
10 1 our %fields = (
11 supported_connections => [
12 'VISA', 'VISA_GPIB', 'GPIB', 'VISA_RS232', 'RS232', 'IsoBus', 'DEBUG'
13 ],
14  
15 # default settings for the supported connections
16 connection_settings => {
17 gpib_board => 0,
18 gpib_address => undef,
19 baudrate => 9600,
20 databits => 8,
21 stopbits => 2,
22 parity => 'none',
23 handshake => 'none',
24 termchar => "\r",
25 timeout => 2,
26  
27 },
28  
29 device_settings => { has_switchheater => 0 },
30  
31 device_cache => { id => "Weiss Dilution Fridge" }
32  
33 );
34  
35 sub new {
36 0 ▶ my $proto = shift;
Subroutine new: not called CC=2 SCAR=17.9
37 0 ▶ my $class = ref($proto) || $proto;
Condition0%0/3
ref $proto || $proto
l!l&&r!l&&!r
000
MC/DC0%0/2
ref $proto || $proto
ref $proto $proto
Truth table0%0/3
A || B
A= ref $protoB= $proto
ABresult
1X1
011
000
38 0 my $self = $class->SUPER::new(@_);
39 0 $self->${ \( __PACKAGE__ . '::_construct' ) }(__PACKAGE__);
40  
41 $self->{LIMITS} = {
42 0 'magneticfield' => 17,
43 'field_intervall_limits' => [ 0, 10.99, 13.73, 16.48, 17 ],
44 'rate_intervall_limits' => [ 0.660, 0.552, 0.276, 0.138, 0.138 ]
45 };
46  
47 0 $self->connection()->Clear();
48 0 $self->check_magnet();
49  
50 #$self->_init_magnet();
51 0 $self->_device_init();
52  
53 0 return $self;
54 }
55  
56 sub check_magnet {
57 0 ▶ my $self = shift;
Subroutine check_magnet: not called CC=2 SCAR=17.9
58  
59 0 my $version = $self->get_version();
60 0 ▶ if ( not( $version =~ /\b(IPS180)/ ) ) {
Branch: 1 branch
BranchTrueFalseTotal
if (not $version =~ /\b(IPS180)/u) 0 0 0
61 0 Lab::Exception::CorruptParameter->throw( error =>
62 "This Instrument driver is supposed to be used ONLY with LS Weiss Dilution Cryostat !\n"
63 );
64 }
65 }
66  
67  
68 1 1;
69  
70 __END__
71  
72 =pod
73  
74 =encoding UTF-8
75  
76 =head1 NAME
77  
78 Lab::Instrument::IPSWeissDillFridge - Derived IPS instrument for the AG Weiss dilution refrigerator
79  
80 =head1 VERSION
81  
82 version 3.881
83  
84 =head1 TO DO
85  
86 Move this module to a separate distribution with files specific for the
87 Regensburg labs.
88  
89 =head1 COPYRIGHT AND LICENSE
90  
91 This software is copyright (c) 2023 by the Lab::Measurement team; in detail:
92  
93 Copyright 2012 Christian Butschkow
94 2013 Andreas K. Huettel, Christian Butschkow
95 2017 Andreas K. Huettel, Simon Reinhardt
96 2020 Andreas K. Huettel
97  
98  
99 This is free software; you can redistribute it and/or modify it under
100 the same terms as the Perl 5 programming language system itself.
101  
102 =cut
« Moose/Instrument/Rigol_DSA815.pm ↑ Summary Moose.pm »