Chapter 8
G Mode Functions
© National Instruments Corp.
8-3
GPIB-232CT User Manual
echo - Echo Characters Received from Serial Port
Type:
Serial Port Configuration function
Syntax:
ec
ho [bool]
<CR>
Purpose:
You
use
echo
when a terminal is connected to the
GPIB-232CT and you wish to display what you type on the
screen of the terminal.
Remarks:
If the argument
bool
is 1, characters received from the serial
port are echoed back to the serial port. If the argument
bool
is 0, characters are not echoed.
If you call
echo
without an argument, the GPIB-232CT
returns the current setting.
By default, echoing is disabled.
In a debugging environment where the success of your
communication with the serial device is unclear, you could
connect a terminal to the GPIB-232CT instead of connecting
the serial device to the GPIB-232CT. Now the data that the
GPIB-232CT normally sends to the serial device is displayed
on the terminal screen. Also, you can type characters on the
terminal to send to the GPIB-232CT, just as your serial device
sends characters to the GPIB-232CT. With
echo
enabled,
the GPIB-232CT echoes back to the terminal what you type,
so that you can verify that what the GPIB-232CT receives is
exactly what you type.