User`s manual

PCI 703 User Manual Eagle Technology - Data Acquisition
Eagle Technology © Copyright 2001-2004 www.eagledaq.com 18
Digital Inputs/Outputs
The PCI703 has got 8 digital I/O lines and 10 multi I/O lines that can all be used for digital
control purposes. The EDRE API supports auto direction configuration. By writing to or
reading from a port, it is automatically configured as an output or input. A port is defined as a
collection of simultaneous configurable entities. Thus in the case of the PCI703 each port is
only 1 -bit wide. In total the PCI703 has got 18 digital ports that can be configured in any
direction. Some of which has got more than one function when configured as an input.
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 Por, ulng 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.