EasyManuals Logo

LabJack U3 User Manual

LabJack U3
120 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #92 background imageLoading...
Page #92 background image
92
.2.5.10 PortStateWrite: IOType=27
This IOType writes the state of all digital I/O, where 0-7=FIO, 8-15=EIO, and 16-19=CIO. Note
that the desired lines must be configured as digital (not analog) and must be configured as
output.
WriteMask: Each bit specifies whether to update the corresponding bit of I/O.
State: Each bit of this value corresponds to the specified bit of I/O such that 1=High and
0=Low. To set all low, State=d0. To set all 20 standard digital I/O high,
high, EIO0-EIO2 high, CIO0 high, and all other I/O
l I/O, where 0-7=FIO, 8-15=EIO, and 16-19=CIO.
information as to whether the lines
ied bit of I/O such that
standard digital I/O are
output, Direction=d1048575. If FIO0-FIO2 are output, EIO0-EIO2 are output, CIO0 are
output, and all other I/O are input (b000000010000011100000111), Direction=d67335.
5.2.5.12 PortDirWrite: IOType=29
This IOType writes the direction of all digital I/O, where 0-7=FIO, 8-15=EIO, and 16-19=CIO.
Note that the desired lines must be configured as digital (not analog).
WriteMask: Each bit specifies whether to update the corresponding bit of I/O.
Direction: Each bit of this value corresponds to the specified bit of I/O such that
1=Output and 0=Input. To configure all as input, Direction=d0. For all 20 standard
5
PortStateWrite
, 7 Command Bytes:
0 IOType=27
1-3 WriteMask
4-6 State
0 Response Bytes:
State=d1048575. To set FIO0-FIO2
low (b000000010000011100000111), State=d67335.
5.2.5.11 PortDirRead: IOType=28
This IOType reads the directions of all digita
These are the digital directions only, and do not provide any
are configured as digital or analog.
Direction: Each bit of this value corresponds to the specif
1=Output and 0=Input. If all are input, Direction=d0. If all 20
PortDirRead
, 1 Command Byte:
0 IOType=28
3 Response Bytes:
0-2 Direction
PortDirWrite
, 7 Command Bytes:
0 IOType=29
1-3 WriteMask
4-6 Direction
0 Response Bytes:
92

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the LabJack U3 and is the answer not in the manual?

LabJack U3 Specifications

General IconGeneral
Analog Outputs2
Analog Output Resolution10 bits
Digital I/O20
Counter/Timers2
InterfaceUSB
Operating Voltage5 V
ManufacturerLabJack Corporation
Analog Inputs16
Analog Input Resolution12-bit
Max Sample Rate50 kHz