![VXI GPIB-VXI User Manual Download Page 91](http://html1.mh-extra.com/html/vxi/gpib-vxi/gpib-vxi_user-manual_1057860091.webp)
Chapter 3
Local Command Set
© National Instruments Corporation
3-49
GPIB-VXI User Manual
The
WSstr
command can be used to send device-dependent commands and queries to a device.
If the string sent to the device was a device-dependent query, the
WSstr?
query can be used to
read the device's response.
The
ProtErr?
query sends a
Read Protocol Error
Word Serial query to a device and reports
the error response. The
RespReg?
query returns the value of a device's response register.
ProtErr?
Purpose:
Send a
Read Protocol Error
Word Serial query to a Message-Based device.
Query
Syntax:
ProtErr? <log addr>
Action:
Read Protocol Error
query is sent to a Message-Based device. Response is read
and reported.
Response:
Program
response:
<hex value>
<CRLF>
where
<hex value>
is the hexadecimal value of the Data Low Register
response.
Console
response:
Read Protocol Error for Logical Address <log addr> returned 0x<hex
value>:
<description
>
where
<description>
is text explaining the error response.
Example:
ProtErr? 3
RespReg?
Purpose:
Get the Response Register contents of a Message-Based device.
Query
Syntax:
RespReg? <log addr>
Action:
Returns the contents of the device's Response Register at logical address
<log
addr>
.