![VXI GPIB-VXI Скачать руководство пользователя страница 73](http://html1.mh-extra.com/html/vxi/gpib-vxi/gpib-vxi_user-manual_1057860073.webp)
Chapter 3
Local Command Set
© National Instruments Corporation
3-31
GPIB-VXI User Manual
WREG
Purpose:
Write a 16-bit VXI register on a particular device.
Query
Syntax:
WREG <logical address>, <reg offset>, <value>
where
<logical address>
is the device to write, <
reg offset
> is the
register offset to write to, and
<value>
is the 16-bit value to write.
Action:
Write
<value>
to
<logical address>
, register offset
<reg offset>
.
Example:
Write the Data Low register for logical address 4 with the value 65535.
WREG 4,14,65535
GPIB Address Configuration Commands and Queries
The GPIB address configuration commands are described on the following pages.
•
LaSaddr
•
LaSaddr?
•
Primary?
•
SaddrLa?
•
Saddrs?
•
SaDisCon
These commands and queries configure and report the relationships between VXI logical
addresses and GPIB addresses.
The GPIB-VXI's primary address can be determined by using the
Primary?
query from the
serial port. The relationships between GPIB secondary addresses and VXI logical addresses can
be determined by using the
Saddrs?
query followed by
SaddrLa?
queries, or by using the
RM information query
Laddrs?
followed by
LaSaddr?
queries.
Secondary address links to Message-Based servants of the GPIB-VXI can be assigned with the
LaSaddr
command. The
SaDisCon
command deletes all secondary address links except the
link to the GPIB-VXI local commands.