Measurement-computing DAQFlex User Guide Instrukcja Użytkownika Strona 66

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 125
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 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"
Przeglądanie stron 65
1 2 ... 61 62 63 64 65 66 67 68 69 70 71 ... 124 125

Komentarze do niniejszej Instrukcji

Brak uwag