Lab::Moose::Instrument::VNASweep - Role for network analyzer sweeps.
my $data = $vna->sparam_sweep(timeout => 10, average => 10, precision => 'double');
Perform a single sweep, and return the resulting data table. The result is of type Lab::Moose::BlockData. For each sweep point, one row of data will be created. Each row will start with the sweep value (e.g. frequency), followed by the real and imaginary parts of the measured S-parameters.
This method accepts a hash with the following options:
timeout for the sweep operation. If this is not given, use the connection's default timeout.
Setting this to $N, the method will perform $N sweeps and the returned data will consist of the average values.
$N
floating point type. Has to be 'single' or 'double'. Defaults to 'single'.
The following methods are required for role consumption.
my $array_ref = $vna->sparam_catalog();
Return an arrayref of available S-parameter names. Example result: ['Re(s11)', 'Im(s11)', 'Re(s21)', 'Im(s21)'].
['Re(s11)', 'Im(s11)', 'Re(s21)', 'Im(s21)']
my $binary_string = $vna->sparam_sweep_data(timeout => $timeout)
Return binary SCPI data block of S-parameter values. This string contains the sparam_catalog values of each frequency point. The floats must be in native byte order.
sparam_catalog
To install Lab::Measurement, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Lab::Measurement
CPAN shell
perl -MCPAN -e shell install Lab::Measurement
For more information on module installation, please visit the detailed CPAN module installation guide.