Lab::Moose::Instrument::Rigol_DG5000 - Rigol DG5000 series Function/Arbitrary Waveform Generator
version 3.740
use Lab::Moose; my $tbs = instrument( type => 'Rigol_DG5000', connection_type => 'USB' # For NT-VISA use 'VISA::USB' );
All source_* commands accept a channel argument, which can be 1 (default) or 2:
source_*
channel
$rigol->source_function_shape(value => 'SIN'); # Channel 1 $rigol->source_function_shape(value => 'SQU', channel => 2); # Channel 2
Used roles:
$rigol->source_apply_ramp( freq => ..., amp => ..., offset => ...., phase => ... );
$rigol->source_burst_mode(value => 'TRIG'); say $rigol->source_burst_mode_query();
Allowed values: TRIG, GAT, INF.
TRIG, GAT, INF
$rigol->source_burst_ncycles(value => 1); say $rigol->source_burst_ncycles_query();
$rigol->source_burst_state(value => 'ON'); say $rigol_source_burst_state_query();
Allowed values: ON, OFF
ON, OFF
$rigol->source_burst_tdelay(value => 1e-3); say $rigol->source_burst_tdelay_query();
$rigol->source_burst_trigger();
$rigol->source_burst_trigger_slope(value => 'POS'); say $rigol->source_burst_trigger_slope_query();
Allowed values: POS, NEG.
POS, NEG
$rigol->source_burst_trigger_trigout(value => 'POS'); $rigol->source_burst_trigger_trigout_query();
Allowed values: POS, NEG, OFF.
POS, NEG, OFF
$rigol->source_burst_trigger_source(value => 'INT'); $rigol->source_burst_trigger_source_query();
Allowed values: INT, EXT.
INT, EXT
$rigol->source_function_shape(value => 'SIN'); say $rigol->source_function_shape_query();
Allowed values: SIN, SQU, RAMP, PULSE, NOISE, USER, DC, SINC, EXPR, EXPF, CARD, GAUS, HAV, LOR, ARBPULSE, DUA.
SIN, SQU, RAMP, PULSE, NOISE, USER, DC, SINC, EXPR, EXPF, CARD, GAUS, HAV, LOR, ARBPULSE, DUA
$rigol->source_function_ramp_symmetry(value => 100); say $rigol->source_function_ramp_symmetry_query();
$rigol->source_period_fixed(value => 1e-3); say $rigol->source_period_fixed_query();
my $values = [-0.6,-0.5,-0.4,-0.3,-0.2,-0.1,0,0.1,0.2,0.3,0.4,0.5,0.6]; $rigol->trace_data_data(data => $values);
$rigol->trace_data_value(point => 2, data => 8192);
Modify the second point to the decimal number 8192.
$rigol->trace_data_value_query(point => 2);
$rigol->trace_data_points(value => 3); say $rigol->trace_data_points_query();
$rigol->trace_data_points_interpolate(value => 'LIN'); say $rigol->trace_data_points_interpolate_query();
Allowed values: LIN, SINC, OFF.
LIN, SINC, OFF
This software is copyright (c) 2021 by the Lab::Measurement team; in detail:
Copyright 2020 Simon Reinhardt
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
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.