| 1 | package Lab::Moose::Instrument::SCPI::Instrument; | ||
| 2 | 3 | $Lab::Moose::Instrument::SCPI::Instrument::VERSION = '3.931'; | |
| 3 | #ABSTRACT: Role for SCPI INSTrument subsystem. | ||
| 4 | |||
| 5 | 3 | ▶ | use v5.20; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | |||
| 7 | 3 | ▶ | use Moose::Role; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 8 | 3 | ▶ | use Lab::Moose::Instrument::Cache; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 9 | 3 | ▶ | use Lab::Moose::Instrument qw/validated_getter validated_setter/; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 10 | 3 | ▶ | use MooseX::Params::Validate; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 11 | 3 | ▶ | use Carp; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 12 | |||
| 13 | 3 | ▶ | use namespace::autoclean; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 14 | |||
| 15 | |||
| 16 | 3 | cache instrument_nselect => ( getter => 'instrument_nselect_query' ); | |
| 17 | |||
| 18 | 2 | ▶ | sub instrument_nselect_query { |
|
Subroutine
instrument_nselect_query: called CC=1 SCAR=0.0
Pod
documented
| |||
| 19 | 2 | my ( $self, %args ) = validated_getter( \@_ ); | |
| 20 | |||
| 21 | 2 | return $self->cached_instrument_nselect( | |
| 22 | $self->query( command => 'INST:NSEL?', %args ) ); | ||
| 23 | } | ||
| 24 | |||
| 25 | 0 | ▶ | sub instrument_nselect { |
|
Subroutine
instrument_nselect: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 26 | 0 | my ( $self, $value, %args ) = validated_setter( \@_ ); | |
| 27 | |||
| 28 | 0 | $self->write( command => "INST:NSEL $value", %args ); | |
| 29 | |||
| 30 | 0 | return $self->cached_instrument_nselect($value); | |
| 31 | } | ||
| 32 | |||
| 33 | 3 | 1; | |
| 34 | |||
| 35 | __END__ | ||