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.
|
|
Function |
Command/Example |
Add/set up external instrument communication.
|
:SYSTem:COMMunicate: Example: |
Set up system clock and trigger |
: |
Select the configuration type and name.
|
:CONTrol:CONFig: <config_type>,"<config name>" Example:
|
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:
|
Assign the instrument to be used for input/output |
:CONTrol:CONFig:IO[1]|2|3|4: Example: |
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: |
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 |
[:SOURce]:RADio:[1]|2|3|4:ARB: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. |