©
National Instruments Corporation
6-1
6
Programming in G Mode
This chapter describes how to program the GPIB-232/485CT-A in G mode.
It describes status and error handling information, programming
considerations, programming messages, function arguments, addressing
in G mode, GPIB read and write termination methods, serial port
transmissions, and the G mode functions.
This chapter also explains how to communicate with your serial device
through the GPIB-232/485CT-A.
Status Information and Error Handling Characteristics
The function descriptions in Chapter 7,
, explain that the
GPIB-232/485CT-A records specific status and error information. This
means that it stores that information in its memory so that it is available
when you request it.
The function descriptions also explain that the GPIB-232/485CT-A returns
certain information to you. This means that the GPIB-232/485CT-A sends
information to you over the GPIB.
The GPIB-232/485CT-A continuously monitors the serial port for
transmission errors. If it encounters an error in the serial data, the
GPIB-232/485CT-A records the error. You can program the
GPIB-232/485CT-A to ignore serial port errors using the
spign
function.
Programming Considerations
•
The program examples within the function descriptions are written in
Microsoft QuickBASIC Version 4.5, using National Instruments
NI-488.2 function calls. Although the examples in this manual are
written in BASIC, you can program the GPIB-232/485CT-A using any
programming language that has access to a GPIB port.