Moose/Instrument/SCPI/Display/Window.pm

filter: Statementstmt 82.1% 23 / 28 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 77.7% 7 / 9 Podpod 50.0% 1 / 2 totaltotal 79.4% 31 / 39 SCAR 0.1
CC
1
Cov
82%
display_window_trace_y_scale_rlevel_query
2.0
display_window_trace_y_scale_rlevel
2.0
BEGIN
1.0
CRAP 1.0
« Moose/Instrument/KeysightB2901A.pm ↑ Summary Moose/Instrument/SCPI/Output/State.pm »
1 package Lab::Moose::Instrument::SCPI::Display::Window;
2 1 $Lab::Moose::Instrument::SCPI::Display::Window::VERSION = '3.881';
3 #ABSTRACT: Role for the SCPI DISPlay:WINDow subsystem
4  
5 1 ▶use v5.20;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 1 ▶use Moose::Role;
Subroutine BEGIN: called CC=1 SCAR=0.0
8 1 ▶use Lab::Moose::Instrument::Cache;
Subroutine BEGIN: called CC=1 SCAR=0.0
9 use Lab::Moose::Instrument
10 1 ▶ qw/validated_channel_getter validated_channel_setter/;
Subroutine BEGIN: called CC=1 SCAR=0.0
11 1 ▶use MooseX::Params::Validate;
Subroutine BEGIN: called CC=1 SCAR=0.0
12 1 ▶use Carp;
Subroutine BEGIN: called CC=1 SCAR=0.0
13  
14 1 ▶use namespace::autoclean;
Subroutine BEGIN: called CC=1 SCAR=0.0
15  
16  
17 1 cache display_window_trace_y_scale_rlevel =>
18 ( getter => 'display_window_trace_y_scale_rlevel_query' );
19  
20 sub display_window_trace_y_scale_rlevel_query {
21 0 ▶ my ( $self, $channel, %args ) = validated_channel_getter( \@_ );
Subroutine display_window_trace_y_scale_rlevel_query: not called CC=1 SCAR=6.9
Pod undocumented
22  
23 0 return $self->cached_display_window_trace_y_scale_rlevel(
24 $self->query( command => ":DISP:WIN:TRACe:Y:SCALe:RLEV?", %args ) );
25 }
26  
27 sub display_window_trace_y_scale_rlevel {
28 0 ▶ my ( $self, $channel, $value, %args ) = validated_channel_setter( \@_ );
Subroutine display_window_trace_y_scale_rlevel: not called CC=1 SCAR=6.9
Pod documented
29 0 $self->write(
30 command => sprintf( ":DISP:WIN:TRACe:Y:SCALe:RLEV %.17g", $value ),
31 %args
32 );
33 0 $self->cached_display_window_trace_y_scale_rlevel($value);
34 }
35  
36 1 1;
37  
38 __END__
39  
40 =pod
41  
42 =encoding UTF-8
43  
44 =head1 NAME
45  
46 Lab::Moose::Instrument::SCPI::Display::Window - Role for the SCPI DISPlay:WINDow subsystem
47  
48 =head1 VERSION
49  
50 version 3.881
51  
52 =head1 METHODS
53  
54 =head2 display_window_trace_y_scale_rlevel
55  
56 my $refLevel = $self->display_window_trace_y_scale_rlevel_query();
57  
58 Query the amplitude value of the reference level for the y-axis.
59  
60 =head2 display_window_trace_y_scale_rlevel
61  
62 $self->display_window_trace_y_scale_rlevel(value => -20);
63  
64 Sets the amplitude value of the reference level for the y-axis.
65  
66 =head1 COPYRIGHT AND LICENSE
67  
68 This software is copyright (c) 2023 by the Lab::Measurement team; in detail:
69  
70 Copyright 2018 Eugeniy E. Mikhailov
71 2020 Andreas K. Huettel
72  
73  
74 This is free software; you can redistribute it and/or modify it under
75 the same terms as the Perl 5 programming language system itself.
76  
77 =cut
« Moose/Instrument/KeysightB2901A.pm ↑ Summary Moose/Instrument/SCPI/Output/State.pm »