Programming the rel-16.pcie, Programming for windows, Programming for linux – Impulse 8003e User Manual
Page 12: Digital i/o interface
©Sealevel Systems, Inc.
8003e Manual
12
SL9235 3/2013
Programming the REL-16.PCIe
Sealevel’s SeaI/O Classic software is provided to assist in the development of reliable applications for the
Sealevel Systems family of PCI and PCI Express digital I/O adapters. The SeaI/O Classic software is included
on the CD that shipped with the board. The software contains driver functions for use in accessing the I/O
as well as helpful samples and utilities.
The SeaI/O Classic 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 REL-16.PCIe. If you are
programming in Visual Basic 6 or earlier, using the ActiveX control included with SeaI/O is advised.
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.
SeaI/O for Linux consists of two major parts: a kernel module and a library. The kernel module is a simple
IO pass-through device, allowing the library to handle the more sophisticated functions provided to SeaI/O
users. It is provided in a ‘tarball’ format and can easily be compiled and included in the kernel build.
The REL-16.PCIe provides two parallel output ports. The ports are organized as ports A and B. Ports A and B
are reed relay output ports. Assuming an I/O address of 4000 Hex the following table shows the Port
Addresses.
Base Address
Hex
Decimal
Mode
Port A Address
4002
16386
Port B Address
4003
16387
Reed Relay Output Port