The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Lab::Moose::Instrument::KeysightN9310A - Keysight N9310A Signal Generator

VERSION

version 3.903

SYNOPSIS

 my $gen = instrument(
    type => 'KeysightN9310A',
    connection_type => 'VISA',
    connection_options => {host => '192.168.3.26'},
    );
    
 # Set frequency to 2 GHz
 $gen->set_frq(value => 2e9);

 # Get frequency from device cache
 my $frq = $gen->cached_frq();
 
 # Set power to -10 dBm
 $gen->set_power(value => -10);

METHODS

Used roles:

Lab::Moose::Instrument::SCPI::Output::State

get_power/set_power

 $gen->set_power(value => -10);
 $power = $gen->get_power(); # or $get->cached_power();

Get set output power (dBm);

get_frq/set_frq

 $gen->set_frq(value => 1e6); # 1MHz
 $frq = $gen->get_frq(); # or $gen->cached_frq();

Get/Set output frequency (Hz).

COPYRIGHT AND LICENSE

This software is copyright (c) 2024 by the Lab::Measurement team; in detail:

  Copyright 2017       Andreas K. Huettel, Simon Reinhardt
            2018       Simon Reinhardt
            2023       Andreas K. Huettel

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.