Sample Programs
Appendix H
GPIB-232CT User Manual
H-12
© National Instruments Corp.
The GPIB-232CT's default serial port characteristics, however, are as
follows:
•
baud rate: 9600
• parity: none
• data
bits:
8
• stop
bits:
1
The number of data bits do not match, so the default setting of the
GPIB-232CT must be changed before you read or write from the plotter.
To communicate with the GPIB-232CT, send it data strings using the
IBWRT
function. The following steps explain each of the strings sent to the
GPIB-232CT.
Programming Steps
Step 1.
stat
Function
Send
stat c n
if you want status information returned after each
programming message. Next, use the
ibrd
function to read back status
after this string is sent.
Step 2. GPIB Initialization Functions
If there are GPIB functions on the GPIB-232CT you wish to change from
their default settings, send strings to the GPIB-232CT at this time. No
changes are necessary to communicate with this plotter.
Step 3. Serial Port Initialization Functions
Change any serial port initialization functions, if necessary. This plotter
sends and receives 7-bit data. Since the default of the GPIB-232CT is 8-bit
data, send the string
spset
7 to change to 7-bit data transfers. Read status
after the string has been sent.