
DNx-DIO-470 Electromechanical Relay Board
Chapter 3
10
Programming with the Low-Level API
September 2018
www.ueidaq.com
508.921.4600
© Copyright 2018
United Electronic Industries, Inc.
Chapter 3
Programming with the Low-Level API
This chapter provides the following information about programming the DIO-470
using the low-level API:
•
About the Low-level API (Section 3.1)
•
Low-level Functions (Section 3.2)
•
Low-level Programming Techniques (Section 3.3)
3.1
About the
Low-level API
The low-level API provides direct access to the DAQBIOS protocol structure and
registers in C. The low-level API is intended for speed-optimization, when
programming unconventional functionality, or when programming under Linux or
real-time operating systems.
When programming in Windows OS, however, we recommend that you use the
UeiDaq high-level Framework API (see
). The Framework extends the
low-level API with additional functionality that makes programming easier and
faster.
For additional information regarding low-level programming, refer to the
“PowerDNA API Reference Manual” located in the following directories:
•
On Linux systems:
<PowerDNA-x.y.z>/docs
•
On Windows systems:
Start » All Programs » UEI » PowerDNA » Documentation
3.2
Low-level
Functions
The following table provides a summary of DIO-470-specific functions.
All low-level functions are described in detail in the PowerDNA API Reference
Manual.
Function
Description
DqAdv40xWrite
Writes a 10-bit word to DIO-470 board to set channel output states
(each bit maps to a channel: bit 0 controls channel 0, etc.)
DqAdv470Settings
Sets up delay and dynamic control supported by the DIO-470
DqAdv40xReadLastWrite
Reads the last DIO channel states that were written to the I/O board
(diagnostic)