Appendix H
Sample Programs
© National Instruments Corp.
H-3
GPIB-232CT User Manual
echo
1
<CR>
As you type, the characters will not be echoed yet. You are enabling echo
for future programming messages. Remember to type a carriage return.
Programming Steps
Step 1.
stat
Function
When using the
stat
function, use
stat c s
so the GPIB-232CT will
report status after each programming message. In
stat c s
, the
c
stands
for continuous, and the
s
stands for symbolic. Because you are using a
terminal, it is easier to interpret the status report if it is returned in symbolic
form. Type the following:
stat c s
<CR>
The status displays on the terminal's screen immediately. The status should
look something like this:
CMPL
NGER
NSER
0
This status report shows the status after the previous programming
message. It also shows that
echo 1
was a previous programming message
because characters you enter are now being echoed. This status reports
CMPL
and no errors.
Step 2. Serial Port Functions
Determine what serial port functions are needed to change default settings.
echo
was enabled as a preliminary step. No other changes are necessary
for this GPIB plotter.