| 1 | package Lab::Moose::Instrument::SCPI::Instrument; | ||
| 2 | 3 | $Lab::Moose::Instrument::SCPI::Instrument::VERSION = '3.881'; | |
| 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 | sub instrument_nselect_query { | ||
| 19 | 2 | ▶ | my ( $self, %args ) = validated_getter( \@_ ); |
|
Subroutine
instrument_nselect_query: called CC=1 SCAR=0.0
Pod
documented
| |||
| 20 | |||
| 21 | 2 | return $self->cached_instrument_nselect( | |
| 22 | $self->query( command => 'INST:NSEL?', %args ) ); | ||
| 23 | } | ||
| 24 | |||
| 25 | sub instrument_nselect { | ||
| 26 | 0 | ▶ | my ( $self, $value, %args ) = validated_setter( \@_ ); |
|
Subroutine
instrument_nselect: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 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__ | ||
| 36 | |||
| 37 | =pod | ||
| 38 | |||
| 39 | =encoding UTF-8 | ||
| 40 | |||
| 41 | =head1 NAME | ||
| 42 | |||
| 43 | Lab::Moose::Instrument::SCPI::Instrument - Role for SCPI INSTrument subsystem. | ||
| 44 | |||
| 45 | =head1 VERSION | ||
| 46 | |||
| 47 | version 3.881 | ||
| 48 | |||
| 49 | =head1 METHODS | ||
| 50 | |||
| 51 | =head2 instrument_nselect_query | ||
| 52 | |||
| 53 | =head2 instrument_nselect | ||
| 54 | |||
| 55 | Query/Set instrument channel for multi-channel instruments. | ||
| 56 | |||
| 57 | =head2 | ||
| 58 | |||
| 59 | =head1 COPYRIGHT AND LICENSE | ||
| 60 | |||
| 61 | This software is copyright (c) 2023 by the Lab::Measurement team; in detail: | ||
| 62 | |||
| 63 | Copyright 2016 Simon Reinhardt | ||
| 64 | 2017 Andreas K. Huettel, Simon Reinhardt | ||
| 65 | 2020 Andreas K. Huettel | ||
| 66 | |||
| 67 | |||
| 68 | This is free software; you can redistribute it and/or modify it under | ||
| 69 | the same terms as the Perl 5 programming language system itself. | ||
| 70 | |||
| 71 | =cut | ||