| 1 | package Lab::Moose::Instrument::SCPI::Sense::Power; | ||
| 2 | #ABSTRACT: Role for the SCPI SENSe:POWer subsystem | ||
| 3 | 1 | $Lab::Moose::Instrument::SCPI::Sense::Power::VERSION = '3.881'; | |
| 4 | 1 | ▶ | use v5.20; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | |||
| 6 | 1 | ▶ | use Moose::Role; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | 1 | ▶ | use Lab::Moose::Instrument::Cache; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 8 | use Lab::Moose::Instrument | ||
| 9 | 1 | ▶ | qw/validated_getter validated_setter/; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 10 | 1 | ▶ | use MooseX::Params::Validate; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 11 | 1 | ▶ | use Carp; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 12 | |||
| 13 | 1 | ▶ | use namespace::autoclean; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 14 | |||
| 15 | |||
| 16 | 1 | cache sense_power_rf_attenuation => ( getter => 'sense_power_rf_attenuation_query' ); | |
| 17 | |||
| 18 | sub sense_power_rf_attenuation_query { | ||
| 19 | 0 | ▶ | my ( $self, %args ) = validated_getter( \@_ ); |
|
Subroutine
sense_power_rf_attenuation_query: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 20 | |||
| 21 | 0 | return $self->cached_sense_power_rf_attenuation( | |
| 22 | $self->query( command => "SENS:POW:RF:ATT?", %args ) ); | ||
| 23 | } | ||
| 24 | |||
| 25 | sub sense_power_rf_attenuation { | ||
| 26 | 0 | ▶ | my ( $self, $value, %args ) = validated_setter( \@_ ); |
|
Subroutine
sense_power_rf_attenuation: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 27 | |||
| 28 | 0 | $self->write( command => "SENS:POW:RF:ATT $value", %args ); | |
| 29 | 0 | $self->cached_sense_power_rf_attenuation($value); | |
| 30 | } | ||
| 31 | |||
| 32 | 1 | 1; | |
| 33 | |||
| 34 | __END__ | ||
| 35 | |||
| 36 | =pod | ||
| 37 | |||
| 38 | =encoding UTF-8 | ||
| 39 | |||
| 40 | =head1 NAME | ||
| 41 | |||
| 42 | Lab::Moose::Instrument::SCPI::Sense::Power - Role for the SCPI SENSe:POWer subsystem | ||
| 43 | |||
| 44 | =head1 VERSION | ||
| 45 | |||
| 46 | version 3.881 | ||
| 47 | |||
| 48 | =head1 METHODS | ||
| 49 | |||
| 50 | =head2 sense_power_rf_attenuation_query | ||
| 51 | |||
| 52 | =head2 sense_power_rf_attenuation | ||
| 53 | |||
| 54 | Query/Set the input attenuation. | ||
| 55 | |||
| 56 | =head1 COPYRIGHT AND LICENSE | ||
| 57 | |||
| 58 | This software is copyright (c) 2023 by the Lab::Measurement team; in detail: | ||
| 59 | |||
| 60 | Copyright 2018 Eugeniy E. Mikhailov | ||
| 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 | ||