
SERIAL Digital I/O Series User Manual Eagle Technology - Data Acquisition
Digital Inputs/Outputs
Depending on the version that you have the SERIAL µDAQ DIO device can have up to 120
digital lines. Please refer to your particular version for specific details.
Reading the Digital Inputs
A single call is necessary to read a digital I/O port.
API-CALL
Long EDRE_DioRead(ulng Sn, ulng Port, ulng *Value)
The serial number, port, and a pointer to variable to hold the result must be passed by the
calling function. A return code will indicate if any errors occurred.
ACTIVEX CALL
Long EDREDioX.Read(long Port)
Only the port-number needs to be passed and the returned value will either hold an error or
the value read. If the value is negative an error did occur.
Writing to the Digital Outputs
A single call is necessary to write to a digital I/O port.
API-CALL
Long EDRE_DioWrite(ulng Sn, ulng Port, ulng Value)
The serial number, port, and a value must be passed by the calling function. A return code will
indicate if any errors occurred.
ACTIVEX CALL
Long EDREDioX.Write(long Port, long Value)
The port number and value to be written needs to be passed and the returned value holds an
error or the value read. If the value is negative an error did occur.
Port PPI No Assigned
Number
Width Description
SRL 24A/CA
A 0 0 8-bits Port A
B 0 1 8-bits Port B
C 0 2 8-bits Port C
SRL 48A/C
A 0 0 8-bits Port A
B 0 1 8-bits Port B
C 0 2 8-bits Port C
A 1 3 8-bits Port A
B 1 4 8-bits Port B
C 1 5 8-bits Port C
SRL 72A/C
A 0 0 8-bits Port A
B 0 1 8-bits Port B
C 0 2 8-bits Port C
A 1 3 8-bits Port A
B 1 4 8-bits Port B
C 1 5 8-bits Port C
A 2 6 8-bits Port A
B 2 7 8-bits Port B
C 2 8 8-bits Port C
SRL 96A/C
A 0 0 8-bits Port A
B 0 1 8-bits Port B
C 0 2 8-bits Port C
A 1 3 8-bits Port A
B 1 4 8-bits Port B
C 1 5 8-bits Port C
A 2 6 8-bits Port A
B 2 7 8-bits Port B
C 2 8 8-bits Port C
A 3 9 8-bits Port A
Eagle Technology © Copyright 2003 – www.eagledaq.com 16