![VXI GPIB-VXI User Manual Download Page 93](http://html1.mh-extra.com/html/vxi/gpib-vxi/gpib-vxi_user-manual_1057860093.webp)
Chapter 3
Local Command Set
© National Instruments Corporation
3-51
GPIB-VXI User Manual
WScmd?
Purpose:
Send a 16-bit Word Serial query to a Message-Based device.
Query
Syntax:
WScmd? <log addr>, <WS cmd>
Action:
Sends the Word Serial query
<WS cmd>
to the device at
<log addr>
. Reads
and returns the device's response.
Response:
Program
response:
<hex value>
<CRLF>
where
<hex value>
is the hexadecimal value of the Data Low Register
response.
Console
response:
Logical Address <log addr> Word Serial Query 0xceff returned
0x<hex value>.
<CRLF>
Example:
Write
the
Read Servant Area
Word Serial query (CEFFh) to a device at logical
address 4.
WScmd? 4, #hCEFF
WSresp?
Purpose:
Read a 16-bit Word Serial response to a previously sent query.
Query
Syntax:
WSresp? <log addr>
Action:
Reads and returns the response of the device at
<log addr>
.
Response:
Program
response:
<hex value>
<CRLF>
where
<hex value>
is the hexadecimal value of the Data Low Register
response.