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::RS_FSV - Rohde & Schwarz FSV Signal and Spectrum Analyzer

SYNOPSIS

 my $data = $fsv->get_spectrum(timeout => 10);
 my $matrix = $data->matrix;

METHODS

This driver implements the following high-level method:

get_spectrum

 $data = $fsv->get_spectrum(timeout => 10, trace => 2, precision => 'double');

Perform a single sweep and return the resulting spectrum. The result is an instance of Lab::Moose::BlockData. For each sweep point, one row of data [frequency, power] will be returned.

This method accepts a hash with the following options:

timeout

timeout for the sweep operation. If this is not given, use the connection's default timeout.

trace

number of the trace (1..6). Defaults to 1.

precision

floating point type. Has to be 'single' or 'double'. Defaults to 'single'.

Consumed Roles

This driver consumes the following roles:

Lab::Moose::Instrument::Common
Lab::Moose::Instrument::SCPI::Format
Lab::Moose::Instrument::SCPI::Sense::Frequency
Lab::Moose::Instrument::SCPI::Sense::Sweep
Lab::Moose::Instrument::SCPI::Initiate
Lab::Moose::Instrument::SCPIBlock