These commands direct the I/O to or from external instruments. The number of commands required depends on the selected configuration.
Assign an external instrument to the I/O block. (Requires previous instrument registration.)
Example: :CONT:CONF:IO1:DIG:RDEV "ESG1"
Apply the configuration.
Example: :CONT:CONF:APPLy
:CONTrol:CONFig:IO[1]|2|3|4|5|6|7|8:ANAlog:RDEVice "<device name>"
:CONTrol:CONFig:IO[1]|2|3|4|5|6|7|8:RDEVice?
This command selects an analog instrument for an IO block in the configuration. (Refer to :SYSTem commands to add and set up external instrument communication with the PXB.) To remove a previously assigned instrument, use an empty string for the instrument name. To be effective, this command requires that the Apply command is executed if changes are made.
:CONTrol:CONFig:IO[1]|2|3|4|5|6|7|8:DIGital:RDEVice "<device name>"
:CONTrol:CONFig:IO[1]|2|3|4|5|6|7|8:RDEVice?
This command selects a digital instrument for an IO block in the configuration. (Refer to :SYSTem commands to add and set up external instrument communication.) To remove a previously assigned instrument, use an empty string for the instrument name. To be effective, this command requires that the Apply command is executed.
:CONTrol:CONFig:IO[1]|2|3|4|5|6|7|8:PORT "A1"|"A2"|"B1"|"B2"|"C1"|"C2"|"D1"|"D2"
:CONTrol:CONFig:IO[1]|2|3|4|5|6|7|8:PORT?
This command assigns an I/O block of the configuration to a physical port on the rear panel of the PXB. An I/O block of a configuration can be assigned to any available I/O port. (The number of available ports (two per board) depends on the number of I/O boards installed in the PXB.) Ensure that the IO port selected matches the port where the intended instrument is physically connected. To be effective, this command requires that the Apply command is executed if assignment changes are made.
The table below shows the default assignment of an I/O block to an I/O rear panel connector.
|
I/O |
I/O Port |
Rear Panel I/O Connection |
|
I/O1 |
Port A1 |
IO board in slot #A (left) |
|
I/O2 |
Port A2 |
IO board in slot #A (right) |
|
I/O3 |
Port B1 |
IO board in slot #B (left) |
|
I/O4 |
Port B2 |
IO board in slot #B (right) |
|
I/O5 |
Port C1 |
IO board in slot #C (left) |
|
I/O6 |
Port C2 |
IO board in slot #C (right) |
|
I/O7 |
Port D1 |
IO board in slot #D (left) |
|
I/O8 |
Port D2 |
IO board in slot #D (right) |
:CONTrol:CONFig:IO[1]|2|3|4|5|6|7|8::PORT:TYPE?
This query returns the port type, DIG (for Digital) or ANA (for Analog) depending on the assigned instrument.