Measurement-computing Serial488/4 Manuel d'utilisateur Page 47

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 91
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 46
Section 3 Command Descriptions
3.8
Handshake Type Gn
The Handshake Type command determines the flow control method to be used in
serial data transfers for the selected serial port. The Port Select command (
Pn
) is used
to select the serial port regardless of addressing mode in use.
The hardware handshake method uses the
RTS
and
CTS
signals of the serial
interface to prevent data overruns by asserting the
RTS
line when the Serial488/4 is
able to accept data and requiring the
CTS
signal to be asserted before transmitting
data.
The software handshake method uses two special serial characters,
XON
(11 hex)
and
XOFF
(&H13) to control data flow . T he
XOFF
character is sent to stop data
transmission and the
XON
character is sent to resume data transmission. It should be
noted that the software method is not compatible w ith binary data as the data itself
may contain
XON
and
XOFF
characters.
If no handshaking is desired, handshaking may be disabled entirely. The factory
default setting as set by the Save Configuration command (
S0
) is
G0
, hardware
handshaking (
RTS/CTS
).
G0
Hardware handshaking (
RTS/CTS
) is selected.
G1
Software handshaking (
XON/XOFF
) is selected.
G2
No handshaking is selected.
G?
Return present handshaking method.
Example 1: Select software handshaking on port 1 using dual primary addressing
mode.
PRINT#1,"OUTPUT08;P1X" select port 1 as the current port
PRINT#1,"OUTPUT08;G1X"
select software handshaking
Example 2: Select hardware handshaking on port 2 using secondary addressing mode.
PRINT#1,"OUTPUT0800;P2G0X"
select hardware handshaking for port 2
Vue de la page 46
1 2 ... 42 43 44 45 46 47 48 49 50 51 52 ... 90 91

Commentaires sur ces manuels

Pas de commentaire