Api Functions - ICP DAS USA I-8026W Manual

Multifunction i/o module
Table of Contents

Advertisement

3. API Functions

ICP DAS provides APIs, libraries and demo programs, including the source code, The following is an
overview of the functions provided in the LinPAC library for use with the Linux platform. Detailed
information related to individual functions can be found in the following sections.
Function List
The following is a list of the functions provided in the libi8k.a for the Linux platform.
Function
i8026W_Init
i8026W_GetFirmwareVer
i8026W_GetLibVersion
i8026W_ReadAOGainOffset
i8026W_WriteAO
i8026W_WriteAOHex
i8026W_ReadbackAO
i8026W_ReadbackAOHex
i8026W_WriteDO
i8026W_WriteDOBit
i8026W_ReadDIO
i8026W_ReadAI
i8026W_ReadAIHex
i8026W_ReadAIGainOffset
I-8026W API User Manual, v1.0.1, June 2015
Copyright © 2015 ICP DAS Co., Ltd. All Rights Reserved.
Description
Initializes the driver and confirms the hardware ID.
Retrieves the version number for the FPGA firmware for troubleshooting
purposes.
Retrieves the version number of the 8026W.lib file.
Retrieves the Analog Output Gain and Offset values for each output type.
Writes an output value to a single specified Analog Output channel in float
format.
Writes a value to a single specified Analog Output channel in hexadecimal
format.
Reads a calibrated Analog Output value from a single specified channel in
float format.
Reads a calibrated Analog Output value from a single specified channel in
hexadecimal format.
Writes the Digital Output value to the I-8026W module.
Sets a specific Digital Output channel of the I-8026W module to ON or OFF.
Reads the Digital Input and Digital Output value from the I-8026W module.
Reads a calibrated Analog Input value from a single specified channel in
float format.
Reads a calibrated Analog Input value from a single specified channel in
hexadecimal format.
Retrieves the Analog Input reference Gain and Offset values for each input
type and for each channel.
E-mail: service@icpdas.com
3-14

Advertisement

Table of Contents
loading

Table of Contents