Receive - National Instruments NI-488.2M Software Reference Manual

For os/2
Hide thumbs Also See for NI-488.2M:
Table of Contents

Advertisement

ibic—Interface Bus Interactive Control Utility
488.2 (0):
[0128] (cmpl cic tacs)
count: 6
The returned status word [0128] indicates a successful I/O completion, while
the byte count indicates that all six characters, including the added new line,
were sent from the computer and received by both devices.

Receive

The Receive routine causes the GPIB board to receive data from another
GPIB device. The following example illustrates the use of the Receive
routine.
488.2 (0):
[2124] (end cmpl cic lacs)
count: 5
48 65 6c 6c 6f
The command acquires data from the device at primary address 5. It stops
receiving data when 10 characters have been received or when the END
message is received. The acquired data is then displayed in hex format along
with its ASCII equivalent. The ibic program also displays the status word and
the count of transferred bytes.
NI-488.2M SRM for OS/2
SendList 2, 17 "*IDN?" NLend
Receive 5 10 STOPend
5-12
© National Instruments Corp.
H e l l o
Chapter 5

Advertisement

Table of Contents
loading

Table of Contents