4- 144 Keysight E5260/E5270 Programming Guide, Edition 4
Command Reference
Command Reference
WSX
The WSX command causes the E5260/E5270 to enter a wait state until the
E5260/E5270 receives an external trigger from a trigger input terminal specified by
the port parameter. To set the trigger logic (initial value: negative), send the TGP
command for the specified terminal. To end a wait state before the trigger, execute
the AB or *RST command.
Syntax WSX port[,mode]
Parameters port : External trigger input port number. Integer expression. -1, or 1 to 16.
-1: Ext Trig In terminal.
1 to 16: Port 1 to 16 of the digital I/O terminal.
To use a digital I/O port, send the TGP command. The port value must
be same as the port value set to the TGP command.
mode : Waiting mode. Integer expression. 1 or 2.
If this parameter is not specified, mode is set to 1.
Remarks The E5260/E5270 checks its trigger flag to confirm the present trigger status,
received or none. To clear the trigger flag:
• Enter the *RST or device clear command (HP BASIC CLEAR statement).
• Enter the TM3 command.
• Enter the TM1, TM2, or TM4 command to change the mode from TM3.
• Enter the OS command.
• Trigger the E5260/E5270 to start measurement via the trigger input terminal.
• Trigger the E5260/E5270 to recover from wait state set by the WS command via
the trigger input terminal.
Example
Statements
OUTPUT @E5270;"WSX 2"
mode Description
1 Continues the operation if an external trigger was already
received. Otherwise, the E5260/E5270 immediately goes
into a wait state for an external trigger.
2 In any condition, the E5260/E5270 immediately goes
into a wait state for an external trigger.