Measurement-computing DAQFlex User Guide Manuel d'utilisateur Page 66

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 125
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 65
DAQFlex Software User's Guide DAQFlex Message Reference Programming messages DIO
66
value
IN, OUT
Example
"DIO{0}:DIR=IN"
Note
For devices that support this message, the default power up value is "IN".
Get the direction of a port.
Message
"?DIO{port}:DIR"
Response
"DIO{port}:DIR=value"
port
The port number.
value
IN, OUT, or a number between 0 and 2n -1, where n is the number of bits
in the port.
Note
If the digital bits are not individually configurable, the value returned is either "IN" or
"OUT."
If each digital bit is individually configurable, value is a bit mask, in which 1 indicates
that the bit is configured for input, and 0 indicates that the bit is configured for
output.
Set the direction of a bit.
Message
"DIO{port/bit}:DIR=value"
Response
"DIO{port/bit}:DIR"
port
The port number.
bit
The bit number.
value
IN, OUT
Example
"DIO{0/1}:DIR=IN"
Note
For devices that support this message, the default power up value is "IN".
Get the direction of a bit.
Message
"?DIO{port/bit}:DIR"
Response
"DIO{port/bit}:DIR=value"
port
The port number.
bit
The bit number.
value
IN, OUT
Example
"?DIO{0/1}:DIR"
LATCH
LATCH applies to programmable ports. This property lets you set a digital output value while in input
mode. When programmed for output mode the latch value will be at the output.
Set the latch value of a port.
Message
"DIO{port}:LATCH=value"
Response
"DIO{port}:LATCH"
Vue de la page 65
1 2 ... 61 62 63 64 65 66 67 68 69 70 71 ... 124 125

Commentaires sur ces manuels

Pas de commentaire