Instrument/TemperatureDiode/RO600.pm

filter: Statementstmt 51.8% 14 / 27 Branchbran 0.0% 0 / 4 Conditioncond 0.0% 0 / 9 MC/DCmcdc 0.0% 0 / 6 Subroutinesub 66.6% 4 / 6 Podpod 0.0% 0 / 2 totaltotal 33.3% 18 / 54 SCAR 27.7
CC
6
Cov
35%
convert2Kelvin
30.0
new
6.0
BEGIN
1.0
CRAP 15.9
« XPRESS/Sweep/Frame.pm ↑ Summary Moose/Sweep/Continuous/Time.pm »
1 package Lab::Instrument::TemperatureDiode::RO600;
2 #ABSTRACT: RO600 (????)
3 1 $Lab::Instrument::TemperatureDiode::RO600::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 Math::Complex;
Subroutine BEGIN: called CC=1 SCAR=0.0
8 1 ▶use Lab::Instrument::TemperatureDiode;
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 1 our @ISA = ("Lab::Instrument::TemperatureDiode");
11  
12 sub new {
13 0 ▶ my $proto = shift;
Subroutine new: not called CC=2 SCAR=17.9
Pod undocumented
14 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
15 0 my $self = $class->SUPER::new(@_);
16 0 $self->${ \( __PACKAGE__ . '::_construct' ) }(__PACKAGE__);
17  
18 0 return $self;
19 }
20  
21 sub convert2Kelvin {
22 0 ▶ my $value = shift;
Subroutine convert2Kelvin: not called CC=5 SCAR=34.0
Pod undocumented
23  
24 0 ▶ if ( $value < 1725.8 and $value >= 1100.75 )
Branch: 2 branches
BranchTrueFalseTotal
if ($value < 1725.8 and $value >= 1100.75) { } 0 0 0
elsif ($value >= 1725.82 and $value <= 29072.86) { } 0 0 0
Condition0%0/3
$value < "1725.8" and $value >= "1100.75"
!ll&&!rl&&r
000
MC/DC0%0/2
$value < "1725.8" and $value >= "1100.75"
$value < "1725.8" $value >= "1100.75"
Truth table0%0/3
A and B
A= $value < "1725.8"B= $value >= "1100.75"
ABresult
0X0
100
111
25 { # approximieren durch polynom
26 0 $value = (-0.3199412263 + 5.7488447e-8 * ( $value**2 ) * log($value)
27 - 8.840903e-11 * $value**3 )**(-1);
28 }
29 ▶ elsif ( $value >= 1725.82 and $value <= 29072.86 ) {
Condition0%0/3
$value >= "1725.82" and $value <= "29072.86"
!ll&&!rl&&r
000
MC/DC0%0/2
$value >= "1725.82" and $value <= "29072.86"
$value >= "1725.82" $value <= "29072.86"
Truth table0%0/3
A and B
A= $value >= "1725.82"B= $value <= "29072.86"
ABresult
0X0
100
111
30 0 $value = (-0.771272244 + 0.00010067892 * $value * log($value)
31 - 1.071888e-9 * ( $value**2 ) * log($value) )**(-1);
32 }
33 else {
34 0 warn "no valid TEMPERATURE VALUE.";
35 0 return -1;
36 }
37  
38 0 return $value;
39 }
40  
41 1 1;
42  
43 __END__
44  
45 =pod
46  
47 =encoding UTF-8
48  
49 =head1 NAME
50  
51 Lab::Instrument::TemperatureDiode::RO600 - RO600 (????)
52  
53 =head1 VERSION
54  
55 version 3.881
56  
57 =head1 COPYRIGHT AND LICENSE
58  
59 This software is copyright (c) 2023 by the Lab::Measurement team; in detail:
60  
61 Copyright 2013 Christian Butschkow
62 2016 Simon Reinhardt
63 2017 Andreas K. Huettel
64 2020 Andreas K. Huettel
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
« XPRESS/Sweep/Frame.pm ↑ Summary Moose/Sweep/Continuous/Time.pm »