Agilent Technologies ESG Spezifikationen Seite 18

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 259
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 17
1-14 Programming Guide
Preparing for Use ESG Family Signal Generators
Transferring Data
Transferring Data
The serial interface card is designed for relatively simple serial I/O operations. It is not
intended for sophisticated applications that use ON INTR statements to service the
interface.
Entering and Outputting Data
When the interface is properly configured, either by use of default switches or CONTROL
statements, you are ready to begin data transfers. OUTPUT statements are used to send
information to the peripheral; ENTER statements to input information from the external
device.
OUTPUT 20;”String data”,Numeric_var,Etc
ENTER 20;String_var$,Numeric_var,Etc
Any valid OUTPUT or ENTER statement and variables list may be used, but you must be
sure that the data format is compatible with the peripheral device. For example,
non-ASCII data sent to an ASCII line printer may result in unexpected behavior.
Various other I/O statements can be used in addition to OUTPUT and ENTER, depending
on the situation. For example, the LIST statement can be used to list programs to an
RS-232 line printer -- provided the interface is properly configured before the operation
begins.
Outputting Data
To send data to a peripheral, use OUTPUT, OUTPUT USING, or any other similar or
equivalent construct. Suppression of end-of-line delimiters and other formatting
capabilities are identical to normal operation in general I/O applications. The OUTPUT
statement hangs the computer until the last bit of the last character in the statement
variable list is transmitted by the interface. When the output operation is complete, the
computer then continues to the next line in the program.
Entering Data
To input data from a peripheral, use ENTER, ENTER USING, or an equivalent statement.
Inclusion or elimination of end-of-line delimiters and other information is determined by
the formatting specified in the ENTER statement. The ENTER statement hangs the
computer until the input variables list is satisfied. To minimize the risk of waiting for
another variable that isn’t coming, you may prefer to specify only one variable for each
ENTER statement, and analyze the result before starting the next input operation.
Be sure that the peripheral is not transmitting data to the interface while no ENTER is in
progress. Otherwise, data may be lost because the card provides buffering for only one
character. Also, interrupts from other I/O devices, or operator inputs to the computer
keyboard can cause delay in computer service to the interface that result in buffer overrun
at higher baud rates.
Seitenansicht 17
1 2 ... 13 14 15 16 17 18 19 20 21 22 23 ... 258 259

Kommentare zu diesen Handbüchern

Keine Kommentare