line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Lab::Connection::DEBUG; |
2
|
|
|
|
|
|
|
#ABSTRACT: Connection to the DEBUG bus |
3
|
|
|
|
|
|
|
$Lab::Connection::DEBUG::VERSION = '3.881'; |
4
|
3
|
|
|
3
|
|
1855
|
use v5.20; |
|
3
|
|
|
|
|
17
|
|
5
|
|
|
|
|
|
|
|
6
|
3
|
|
|
3
|
|
18
|
use strict; |
|
3
|
|
|
|
|
6
|
|
|
3
|
|
|
|
|
86
|
|
7
|
3
|
|
|
3
|
|
20
|
use Time::HiRes qw (usleep sleep); |
|
3
|
|
|
|
|
6
|
|
|
3
|
|
|
|
|
19
|
|
8
|
3
|
|
|
3
|
|
348
|
use Lab::Connection; |
|
3
|
|
|
|
|
7
|
|
|
3
|
|
|
|
|
83
|
|
9
|
3
|
|
|
3
|
|
31
|
use Data::Dumper; |
|
3
|
|
|
|
|
7
|
|
|
3
|
|
|
|
|
160
|
|
10
|
3
|
|
|
3
|
|
21
|
use Carp; |
|
3
|
|
|
|
|
6
|
|
|
3
|
|
|
|
|
181
|
|
11
|
|
|
|
|
|
|
|
12
|
3
|
|
|
3
|
|
22
|
use parent 'Lab::Connection'; |
|
3
|
|
|
|
|
9
|
|
|
3
|
|
|
|
|
18
|
|
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
our %fields = ( |
15
|
|
|
|
|
|
|
bus_class => "Lab::Bus::DEBUG", |
16
|
|
|
|
|
|
|
brutal => 0, # brutal as default? |
17
|
|
|
|
|
|
|
type => 'DEBUG', |
18
|
|
|
|
|
|
|
wait_status => 10e-6, # sec; |
19
|
|
|
|
|
|
|
wait_query => 10e-6, # sec; |
20
|
|
|
|
|
|
|
query_length => 300, # bytes |
21
|
|
|
|
|
|
|
query_long_length => 10240, #bytes |
22
|
|
|
|
|
|
|
read_length => 1000, # bytesx |
23
|
|
|
|
|
|
|
instrument_index => 0, |
24
|
|
|
|
|
|
|
); |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
sub new { |
27
|
2
|
|
|
2
|
1
|
4
|
my $proto = shift; |
28
|
2
|
|
33
|
|
|
10
|
my $class = ref($proto) || $proto; |
29
|
2
|
|
|
|
|
4
|
my $twin = undef; |
30
|
2
|
|
|
|
|
11
|
my $self = $class->SUPER::new(@_) |
31
|
|
|
|
|
|
|
; # getting fields and _permitted from parent class |
32
|
2
|
|
|
|
|
4
|
$self->${ \( __PACKAGE__ . '::_construct' ) }(__PACKAGE__); |
|
2
|
|
|
|
|
13
|
|
33
|
|
|
|
|
|
|
|
34
|
2
|
|
|
|
|
32
|
return $self; |
35
|
|
|
|
|
|
|
} |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
1; |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
__END__ |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
=pod |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
=encoding UTF-8 |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
=head1 NAME |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
Lab::Connection::DEBUG - Connection to the DEBUG bus |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
=head1 VERSION |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
version 3.881 |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
This software is copyright (c) 2023 by the Lab::Measurement team; in detail: |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
Copyright 2011 Andreas K. Huettel, Florian Olbrich |
58
|
|
|
|
|
|
|
2012 Florian Olbrich |
59
|
|
|
|
|
|
|
2016 Simon Reinhardt |
60
|
|
|
|
|
|
|
2017 Andreas K. Huettel |
61
|
|
|
|
|
|
|
2020 Andreas K. Huettel |
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
This is free software; you can redistribute it and/or modify it under |
65
|
|
|
|
|
|
|
the same terms as the Perl 5 programming language system itself. |
66
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
=cut |