Chapter 3
Local Command Set
©
National Instruments Corporation
3-97
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