line |
true |
false |
branch |
101
|
0 |
0 |
unless (defined @_[0])
|
120
|
0 |
0 |
if $function eq $self->get_function({"read_mode", "cache"})
|
122
|
0 |
0 |
if ($function =~ /^(voltage:dc|voltage|volt:dc|volt|voltage:dc:ratio|voltage:ratio|volt:dc:ratio|volt:ratio|voltage:dc:diff|voltage:diff|volt:dc:diff|volt:diff)$/u or $function =~ /^(resistance|fresistance|res|fres)$/u) { }
|
128
|
0 |
0 |
if $function =~ /^(voltage:dc|voltage|volt:dc|volt)$/u
|
148
|
0 |
0 |
if ($function =~ /([\w:]+)/u)
|
162
|
0 |
0 |
unless (defined @_[0])
|
171
|
0 |
0 |
unless (defined $channel)
|
176
|
0 |
0 |
unless (defined $function)
|
195
|
0 |
0 |
if ($function =~ /^(voltage:dc|voltage|volt:dc|volt|voltage:dc:ratio|voltage:ratio|volt:dc:ratio|volt:ratio|voltage:dc:diff|voltage:diff|volt:dc:diff|volt:diff)$/u) { }
|
|
0 |
0 |
elsif ($function =~ /^(resistance|fresistance|res|fres)$/u) { }
|
198
|
0 |
0 |
if ($channel == 1 and abs $range > 100)
|
203
|
0 |
0 |
if ($channel == 2 and abs $range > 10)
|
210
|
0 |
0 |
if ($range < 0 or $range > 1000000)
|
225
|
0 |
0 |
if ($range =~ /^(MIN|min|MAX|max|DEF|def)$/u) { }
|
|
0 |
0 |
elsif ($range =~ /^(AUTO|auto)$/u) { }
|
237
|
0 |
0 |
if $range == $self->get_range({"read_mode", "cache"})
|
253
|
0 |
0 |
unless (defined $channel)
|
258
|
0 |
0 |
unless (defined $function)
|
262
|
0 |
0 |
unless ($function =~ /^(voltage:dc|voltage|volt:dc|volt|sense1:voltage:dc|sense1:voltage|sense1:volt:dc|sense1:volt|sense2:voltage:dc|sense2:voltage|sense2:volt:dc|sense2:volt|voltage:dc:ratio|voltage:ratio|volt:dc:ratio|volt:ratio|voltage:dc:diff|voltage:diff|volt:dc:diff|volt:diff)$/u or $function =~ /^(resistance|fresistance|res|fres)$/u)
|
271
|
0 |
0 |
if ($channel != 1 and $channel != 2)
|
287
|
0 |
0 |
unless (defined @_[0])
|
296
|
0 |
0 |
unless (defined $channel)
|
301
|
0 |
0 |
unless (defined $function)
|
308
|
0 |
0 |
if ($autorange =~ /ON|OFF/u) { }
|
332
|
0 |
0 |
unless (defined $channel)
|
337
|
0 |
0 |
unless (defined $function)
|
352
|
0 |
0 |
unless (defined @_[0])
|
371
|
0 |
0 |
if $nplc == $self->get_nplc({"read_mode", "cache"})
|
373
|
0 |
0 |
unless (defined $function)
|
380
|
0 |
0 |
if ($function =~ /AC|ac/u)
|
387
|
0 |
0 |
if ($function =~ /^(voltage:dc|voltage|volt:dc|volt|sense1:voltage:dc|sense1:voltage|sense1:volt:dc|sense1:volt|sense2:voltage:dc|sense2:voltage|sense2:volt:dc|sense2:volt|voltage:dc:ratio|voltage:ratio|volt:dc:ratio|volt:ratio|voltage:dc:diff|voltage:diff|volt:dc:diff|volt:diff)$/u or $function =~ /^(resistance|fresistance|res|fres)$/u) { }
|
390
|
0 |
0 |
if ($nplc >= 0.02 and $nplc <= 200) { }
|
|
0 |
0 |
elsif ($nplc =~ /^(MIN|min|MAX|max|DEF|def)$/u) { }
|
420
|
0 |
0 |
unless (defined $function)
|
424
|
0 |
0 |
if ($function =~ /^(voltage:dc|voltage|volt:dc|volt|sense1:voltage:dc|sense1:voltage|sense1:volt:dc|sense1:volt|sense2:voltage:dc|sense2:voltage|sense2:volt:dc|sense2:volt|voltage:dc:ratio|voltage:ratio|volt:dc:ratio|volt:ratio|voltage:dc:diff|voltage:diff|volt:dc:diff|volt:diff)$/u or $function =~ /^(resistance|fresistance|res|fres)$/u) { }
|
445
|
0 |
0 |
unless (defined @_[0])
|
466
|
0 |
0 |
if $resolution == $self->get_resolution({"read_mode", "cache"})
|
468
|
0 |
0 |
unless (defined $function)
|
475
|
0 |
0 |
if ($function =~ /AC|ac/u)
|
483
|
0 |
0 |
if ($function =~ /^(voltage:dc|voltage|volt:dc|volt|sense1:voltage:dc|sense1:voltage|sense1:volt:dc|sense1:volt|sense2:voltage:dc|sense2:voltage|sense2:volt:dc|sense2:volt|voltage:dc:ratio|voltage:ratio|volt:dc:ratio|volt:ratio|voltage:dc:diff|voltage:diff|volt:dc:diff|volt:diff)$/u or $function =~ /^(resistance|fresistance|res|fres)$/u) { }
|
491
|
0 |
0 |
if ($resolution >= 0.0001 * $range and $resolution <= 2.2000000000000001e-07 * $range) { }
|
|
0 |
0 |
elsif ($resolution =~ /^(MIN|min|MAX|max|DEF|def)$/u) { }
|
524
|
0 |
0 |
unless (defined $function)
|
528
|
0 |
0 |
if ($function =~ /^(voltage:dc|voltage|volt:dc|volt|sense1:voltage:dc|sense1:voltage|sense1:volt:dc|sense1:volt|sense2:voltage:dc|sense2:voltage|sense2:volt:dc|sense2:volt|voltage:dc:ratio|voltage:ratio|volt:dc:ratio|volt:ratio|voltage:dc:diff|voltage:diff|volt:dc:diff|volt:diff)$/u or $function =~ /^(resistance|fresistance|res|fres)$/u)
|
548
|
0 |
0 |
if ($function =~ /(voltage:dc|voltage|volt:dc|volt|sense1:voltage:dc|sense1:voltage|sense1:volt:dc|sense1:volt|sense2:voltage:dc|sense2:voltage|sense2:volt:dc|sense2:volt)/u) { }
|
551
|
0 |
0 |
if ($self->get_channel({'read_mode', 'cache'}, $tail) == $terminal) { }
|
|
0 |
0 |
elsif ($terminal == 1 or $terminal == 2) { }
|
583
|
0 |
0 |
if ($function =~ /(voltage:dc|voltage|volt:dc|volt|sense1:voltage:dc|sense1:voltage|sense1:volt:dc|sense1:volt|sense2:voltage:dc|sense2:voltage|sense2:volt:dc|sense2:volt)/u) { }
|
587
|
0 |
0 |
if ($result eq 'FRON') { }
|
|
0 |
0 |
elsif ($result eq 'FRON2') { }
|
626
|
0 |
0 |
if (defined $nplc) { }
|
|
0 |
0 |
elsif (defined $resolution) { }
|
|
0 |
0 |
elsif (defined $resolution and defined $nplc) { }
|
639
|
0 |
0 |
unless (defined $channel)
|
646
|
0 |
0 |
unless (defined $function)
|
654
|
0 |
0 |
unless ($function =~ /^(voltage:dc|voltage|volt:dc|volt|voltage:dc:ratio|voltage:ratio|volt:dc:ratio|volt:ratio|voltage:dc:diff|voltage:diff|volt:dc:diff|volt:diff|resistance|resisitance|res|res|Fresistance|fresistance|fres|fres)$/u)
|
665
|
0 |
0 |
unless (defined $range)
|
670
|
0 |
0 |
if (($function =~ /$function/u) =~ /^(voltage:dc|voltage|volt:dc|volt|voltage:dc:ratio|voltage:ratio|volt:dc:ratio|volt:ratio|voltage:dc:diff|voltage:diff|volt:dc:diff|volt:diff)$/u) { }
|
|
0 |
0 |
elsif ($function =~ /^(resistance|resisitance|res|res|Fresistance|fresistance|fres|fres)$/u) { }
|
673
|
0 |
0 |
if (abs $range > 100 and not $range =~ /^(MIN|min|MAX|max|DEF|def|AUTO|auto)$/u)
|
683
|
0 |
0 |
if (abs $range > 1000000 and not $range =~ /^(MIN|min|MAX|max|DEF|def|AUTO|auto)$/u)
|
694
|
0 |
0 |
if ($int_mode =~ /resolution|res/u) { }
|
|
0 |
0 |
elsif ($int_mode eq 'nplc') { }
|
|
0 |
0 |
elsif (defined $int_time) { }
|
696
|
0 |
0 |
if ($int_time < "2.2e-07" * $range and not $int_time =~ /^(MIN|min|MAX|max|DEF|def)$/u)
|
704
|
0 |
0 |
if ($int_time < 0.02 || $int_time > 200 and not $int_time =~ /^(MIN|min|MAX|max|DEF|def)$/u)
|
713
|
0 |
0 |
if ($int_time < 0.02 || $int_time > 200 and not $int_time =~ /^(MIN|min|MAX|max|DEF|def)$/u)
|
725
|
0 |
0 |
if ($int_mode eq 'res') { }
|
|
0 |
0 |
elsif ($int_mode eq 'nplc') { }
|
749
|
0 |
0 |
unless (defined $trigger)
|
752
|
0 |
0 |
unless (defined $range)
|
755
|
0 |
0 |
unless (defined $nplc)
|
758
|
0 |
0 |
unless (defined $nop)
|
769
|
0 |
0 |
if ($points > 0)
|
828
|
0 |
0 |
if (index($@, 'Error while reading:') >= 0) { }
|
847
|
0 |
0 |
unless (defined $source)
|
853
|
0 |
0 |
if ($source =~ /^(IMM|imm|EXT|ext|BUS|bus)$/u)
|
868
|
0 |
0 |
unless (defined $count)
|
874
|
0 |
0 |
if ($count < 0 or $count >= 50000)
|
887
|
0 |
0 |
unless (defined $delay)
|
893
|
0 |
0 |
if ($delay < 0 || $delay > 3600 and $delay =~ /^(MIN|min|MAX|max|DEF|def)$/u)
|
900
|
0 |
0 |
if ($delay =~ /^(AUTO|auto)$/u) { }
|
|
0 |
0 |
elsif ($delay =~ /^(MIN|min|MAX|max|DEF|def)$/u) { }
|
917
|
0 |
0 |
if (not defined $count) { }
|
|
0 |
0 |
elsif ($count < 0 or $count > 1024) { }
|
939
|
0 |
0 |
if ($text) { }
|