Multiline query#
Sends a multi line string (command) to the selected device and outputs the response as a character string.
Description#
Sends every entered line (string) separate to the selected device via the communication interface (TCP/IP, RS232, GPIB) defined for the device. A termination character (LF, CR, CR and LF or Null) is added to each entered line (string) and the line is encoded (ISO 8859-1) as set in the device properties. There is a waiting time (delay between commands) between sending the lines. After sending, the test waits for a response from the device. The received data from the device is decoded into a string using the set character encoding. Data is received until a termination character is encountered. If no response is received within the specified communication timeout the test will fail. The communication interface, timeout, termination character and encoding can be set (if the respective option is available) for the corresponding device in the device manager.
Input parameters#
| Parameter | Description |
|---|---|
| Device | The device to which the command is sent. |
| Commands | The string that is send to the selected device. Must be not empty. (character encoding as set in device properties if this option is available) |
| Delay between commands | The time waited before the next command line is sent. |
Output parameters#
| Parameter | Description |
|---|---|
| Response | The received data as string (character encoding as set in device properties if this option is available). |
Supported devices#
Every device that is available in the device manager.
Example#
For example usage see the Query test.
See also: