Basic PXB Command Sequence

In general, sending SCPI commands to the PXB requires that system is set up, and the configuration is selected and applied before I/O settings, waveform playback, or fading commands can be effectively sent to the instrument.

  • The Apply command must be executed in order to allocate the hardware resources, and apply the signal routing whenever you select a new configuration, add new external instruments, or change instrument settings or port assignments.

  • The *OPC? query or *WAI command should be executed after resetting the instrument to default values, applying a configuration, or loading a waveform to allow the instrument time to complete a function before executing the next command.

 

Function

Command/Example

Add/set up external instrument communication.

 

 

:SYSTem:COMMunicate:RDEVice:ADD "<inst name>",<family>,"<address>"

Example:
:SYST:COMM:RDEV:ADD "mxg1",MXG,"TCPIP0::141.121.60.98::INSTR"

Set up system clock and trigger

:CONTRol:CLOCk:SOURce INTernal|EXTernal
:CONTrol:TRIGger:SOURce SW|HW|BUS

Select the configuration type and name.

 

:CONTrol:CONFig: <config_type>,"<config name>"

Example:
:CONT:CONF: GFAD,"2Ch"

Assign the physical I/O port to the connected instrument

:CONTrol:CONFig:IO[1]|2|3|4:PORT "A1"|"A2"|"B1"|"B2"|"C1"|"C2"|"D1"|"D2"

Example:
:CONT:CONF:IO1:PORT "A1"

Assign the instrument to be used for input/output

:CONTrol:CONFig:IO[1]|2|3|4:
ANAlog(:DIGital):RDEVice "<inst name>"

Example:
:CONT:CONF:IO1:DIG:RDEV "mxg1"

Apply the configuration

:CONTrol:CONFig:APPLy

Query if pending operations are completed.

*OPC?

Select the waveforms for playback.

[:SOURce]:RADio[1]|2|3|4:ARB:WAVeform "<file name>"

Example:
:RAD1:ARB:WAV
"D:\User_My_Documents\my_file.bin (.wfm)"  

Configure I/O, playback, and fading parameters for your configuration.

:CONTrol:IO, [:SOURce]:RADio:ARB, and [:SOURce]:FSIM

Download a waveform as selected to a specific baseband
-or-
Download waveforms as selected to all basebands

[:SOURce]:RADio:[1]|2|3|4:ARB:LOAD ON


[:SOURce]:RADio:ARB:ALL:LOAD ON

Query if pending operations are completed.

*OPC?

Play the waveform.

:CONTrol:PLAY[:STATe]ON

Query if pending operations are completed.

*OPC?

 

To programmatically send commands to an externally connected instrument, refer to the respective instrument's Programming Manual.