| 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.931'; | |
| 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 | 0 | ▶ | sub sense_power_rf_attenuation_query { |
|
Subroutine
sense_power_rf_attenuation_query: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 19 | 0 | my ( $self, %args ) = validated_getter( \@_ ); | |
| 20 | |||
| 21 | 0 | return $self->cached_sense_power_rf_attenuation( | |
| 22 | $self->query( command => "SENS:POW:RF:ATT?", %args ) ); | ||
| 23 | } | ||
| 24 | |||
| 25 | 0 | ▶ | sub sense_power_rf_attenuation { |
|
Subroutine
sense_power_rf_attenuation: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 26 | 0 | my ( $self, $value, %args ) = validated_setter( \@_ ); | |
| 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__ | ||