Chapter 3
Local Command Set
3-100
ni.com
WSstr?
Purpose
Read a device-dependent response string from a Message-Based device.
Query Syntax
WSstr? <log addr>, <max cnt>
Action
Reads and returns a string, up to a maximum character count of
<max cnt>
, using a series of
Byte Request
commands.
Response
Program response:
<resp string>
where
<resp string>
is the response string returned by the device.
Console response:
Logical Address <log addr> read <# bytes> (<hex # bytes>) through Word
Serial:
<CRLF><CRLF>
<resp string>
where
<
# bytes>
and
<hex
# bytes>
are the number of bytes in
<resp string>
,
in decimal and hexadecimal, respectively.
Example
Read a device-dependent response up to 20 characters long from a device at Logical
Address 10.
WSstr? 10, 20