![SeaLevel 8012e User Manual Download Page 10](http://html1.mh-extra.com/html/sealevel/8012e/8012e_user-manual_1223846010.webp)
10
© Sealevel Systems, Inc. 8012e Manual | SL9225 12/2022
Programming the DIO-16.LPCIe
Sealevel’s SeaI/O software is provided to assist in the development of reliable applications for the Sealevel
Systems family of digital I/O adapters. Included on the SeaI/O CD are driver functions for use in accessing
the I/O as well as helpful samples and utilities.
Programming for Windows
The SeaI/O API (Application Programmer Interface) provides a variety of useful high-level function calls
implemented in a Windows dynamic link library (DLL). The API is defined in the help file
(Start/Programs/SeaIO/SeaIO Help) under “Application Programmers Interface”. This help file also
includes detailed information dealing with installation / removal of the software and information about
latency, logic states, and device configuration.
For C language programmers we recommend using the API to access the DIO-16.LPCIe. If you are
programming in Visual Basic, using the ActiveX control included with SeaI/O is advised.
Samples and Utilities
A variety of sample programs and utilities (both executable and source code) are included with SeaI/O.
Further documentation on these samples can be found by selecting “Start/Programs/SeaIO/Sample
Application Description”. Information about where the files are physically stored on your disk is also
included in this same file.
Register Layout
Reference the following sections for more information about the meaning and use of the registers available.
Address
Mode
Mode
D7
D6
D5
D4
D3
D2
D1
D0
Base+0
Input Port A
RD
PAD7
PAD6 PAD5
PAD4
PAD3
PAD2
PAD1
PAD0
Base+2
Output Port C
RD/WR PCD7
PCD6 PCD5
PCD4
PCD3
PCD2
PCD1
PCD0
Reading the Inputs
The inputs are active Low. If no voltage is applied across one of the differential inputs, it returns a one on
that bit. If an AC or DC voltage is applied, it returns a zero on that bit.
Reading the Outputs
The relay ports return the ones complement of the value that is currently being used to drive the relays.
When using the API the actual value is returned not the complement of the value.