© National Instruments Corp.
H-1
GPIB-232CT User Manual
Appendix H
Sample Programs
This appendix contains program examples you can use as guidelines as you
start writing programs for the GPIB-232CT. The first part of the appendix
applies to S mode. The remainder of the appendix applies to G mode.
S Mode Sample Programs
The following steps are general programming steps. The following pages
contain detailed explanations of these steps and show some sample
programs.
1. Send
the
stat
function to have status information returned to you
after your programming message.
2. Send serial port initialization functions if you need to change default
serial port settings.
3. Send GPIB initialization functions if you need to change default GPIB
settings.
4. Communicate with the device using the
rd
and
wrt
functions, and
check status if you requested it.
After you initialize the GPIB-232CT, the
rd
and
wrt
functions may be the
only functions you will need.