Adding End-Of-String Characters; Status Word Return - National Instruments NI-488.2M Software Reference Manual

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

Advertisement

Chapter 5

Adding End-of-String Characters

Some GPIB instruments require special termination characters or end-of-string
(EOS) characters to indicate to the device that a transmission has ended. If your
device requires any EOS characters, you must add these to the end of the data
string sent out by the ibwrt statement. The following example illustrates the
addition of the two most commonly used EOS characters: the carriage return
and the linefeed.
dev1:
[0100] (cmpl)
count: 8
The \r and \n represent the carriage return and linefeed characters,
respectively. Refer to Appendix A, Multiline Interface Messages, in the
NI-488.2M Function Reference Manual for OS/2 for more information about
non-printable characters.

Status Word Return

In ibic, all NI-488 functions (except ibfind and ibdev) and NI-488.2
routines return the status word ibsta in two forms: a hex value in square
brackets and a list of mnemonics in parentheses. In the following example, the
status word shows that the device function write operation completed
successfully.
dev1:
[0100] (cmpl)
count: 5
dev1:
© National Instruments Corp.
ibic—Interface Bus Interactive Control Utility
ibwrt "F3R5T1\r\n"
ibwrt "f2t3x"
5-9
NI-488.2M SRM for OS/2

Advertisement

Table of Contents
loading

Table of Contents