Module signal_gen_cjds66_lib::command[][src]

Expand description

Functions which communicate with the device over its USB-serial interface, and expose nearly all of its remotely-accessible features. This contains the support code and logic for almost everything the device can do.

Each function accepts a “verbose” integer parameter, which can be set to a number above 0 to enable a different and more verbose style of output which is useful for debugging, or to help understand what is happening behind-the-scenes when a function is run. Currently any number above 0 produces the exact same verbose output, so you can just use 1 for “verbose” output, and 0 for “not verbose” output.

Functions

Get the device’s output signal amplitude in volts for a particular channel.

Read a user-defined arbitrary waveform from one of the device’s numbered arbitrary wave preset slots.

Get the device’s channel output state (on or off) for channel 1 and channel 2.

Get the device’s duty cycle in percent, for a particular channel.

Get the device’s output frequency for a particular channel, in whichever unit the channel is currently set on.

Get the device’s output frequency for a particular channel, in hertz (Hz).

Get the measure mode counter’s count number (Cnt. Num).

Get the measure mode’s measure duty cycle.

Get the measure mode’s measure frequency in frequency mode (hertz).

Get the measure mode’s measure frequency in period mode (hertz).

Get the measure mode’s measure period.

Get the measure mode’s measure pulse width (negative).

Get the measure mode’s measure pulse width (positive).

Get the model number of the device.

Get the model number and the serial number of the device.

Get the device’s phase in degrees (°).

Get the serial number of the device.

Get the device’s voltage offset in volts, for a particular channel.

Get the current output waveform preset for a specific channel.

Load all values for the device from a numbered preset.

Save all current values on the device as a numbered preset.

Set the device’s output signal amplitude in volts, for a particular channel.

Write a user-defined arbitrary waveform to the device.

Write a user-defined arbitrary waveform to the device from stdin.

Write a user-defined arbitrary waveform to the device from a WaveCAD (.wav) file, saving it into one of the device’s arbitrary wave preset slots.

Set the modulation mode’s Burst (CH1) mode to channel 2 trigger (CH2 Trig.).

Set the modulation mode’s Burst (CH1) mode to external trigger AC (Ext. Trig (AC)).

Set the modulation mode’s Burst (CH1) mode to external trigger DC (Ext. Trig (DC)).

Set the modulation mode’s Burst (CH1) mode to manual trigger (Manual Trig.).

Set the number of burst pulses to perform when bursting.

Set the device’s output state (on or off) for channels 1 and 2.

Set the device’s duty cycle in percent, for a particular channel.

Set the device’s output frequency for a particular channel, in hertz (Hz).

Set the device’s output frequency for a particular channel, in kilohertz (kHz).

Set the device’s output frequency for a particular channel, in megahertz (MHz).

Set the device’s output frequency for a particular channel, in microhertz (µHz).

Set the device’s output frequency for a particular channel, in millihertz (mHz).

Clear the measure mode counter’s count number (Cnt. Num).

Set the device’s measurement mode measure coupling to AC (Ext. IN).

Set the device’s measurement mode measure coupling to DC (Ext. IN).

Set the device’s measurement mode measure gate time in seconds.

Set the device’s measurement mode to measure count frequency in hertz (Hz).

Set the device’s measurement mode to measure counting period in hertz (Hz).

Set the device’s phase in degrees (°).

Set the modulation mode pulse generator’s pulse amplitude in volts (V).

Set the modulation mode pulse generator’s pulse offset in percent (%).

Set the modulation mode pulse generator’s pulse period.

Set the modulation mode pulse generator’s pulse width.

Set the modulation mode sweep frequency’s sweep direction to reverse: Fall

Set the modulation mode sweep frequency’s sweep direction to normal: Rise

Set the modulation mode sweep frequency’s sweep direction to round-trip: Rise & Fall

Set the modulation mode sweep frequency’s end frequency in hertz (Hz).

Set the modulation mode sweep frequency’s mode to linear.

Set the modulation mode sweep frequency’s mode to logarithm.

Set the modulation mode sweep frequency’s starting frequency in hertz (Hz).

Set the modulation mode sweep frequency’s sweep time in seconds.

Set the device’s tracking mode.

Set the device’s voltage offset in volts, for a particular channel.

Set the device to use a certain named or numbered waveform preset for a specific channel’s output. You can choose one of these presets either by name or by the number listed next to the name below.

Set the device to use a user-defined arbitrary waveform preset by number, for a specific channel’s output.

Perform a single burst pulse immediately.

Start the device’s bursting output on channel 1.

Start counting, using the device’s input (Ext. IN) channel.

Start taking a measurement from the device’s input (Ext. IN) channel.

Start the device’s pulsing output on channel 1.

Start frequency sweeping on a given output channel.

Switch the device’s display panel to the burst subsection of the modulation mode screen.

Switch the device’s display panel to the counting subsection on the measure mode (MEAS) screen.

Switch the device’s display panel to the main screen, with either channel 1 or channel 2 showing at the top.

Switch the device’s display panel to the measure subsection on the measure mode (MEAS) screen.

Switch the device’s display panel to the pulse generator subsection of the modulation mode screen.

Switch the device’s display panel to the sweep frequency (channel 1 or channel 2) subsection of the modulation mode screen.

Switch the device’s display panel to the system (SYS) screen.

Convert the device’s arbitrary waveform text (.txt) file format to a WaveCAD (.wav) file.

Convert a WaveCAD (.wav) file to the device’s arbitrary waveform text (.txt) file format.