ICP DAS USA I-8026W Manual

ICP DAS USA I-8026W Manual

Multifunction i/o module

Advertisement

Quick Links

I-8026W
Linux API reference Manual
Multifunction I/O Module
Version 1.1.0, Jan 2015
Written by Hans Chen
I-8026W API User Manual, v1.0.1, June 2015
1-1
Copyright © 2015 ICP DAS Co., Ltd. All Rights Reserved.
E-mail: service@icpdas.com

Advertisement

Table of Contents
loading

Summary of Contents for ICP DAS USA I-8026W

  • Page 1 I-8026W Linux API reference Manual Multifunction I/O Module Version 1.1.0, Jan 2015 Written by Hans Chen I-8026W API User Manual, v1.0.1, June 2015 Copyright © 2015 ICP DAS Co., Ltd. All Rights Reserved. E-mail: service@icpdas.com...
  • Page 2 If you have any problems, please feel free to contact us. You can count on us for quick response. Email: service@icpdas.com I-8026W API User Manual, v1.0.1, June 2015 Copyright © 2015 ICP DAS Co., Ltd. All Rights Reserved. E-mail: service@icpdas.com...
  • Page 3: Table Of Contents

    4. Troubleshooting ..................4-31 4.1. Service Request Requirements .... 4-32 4.2. What to do when the data read from the I-8026W seems unstable....... 4-33 I-8026W API User Manual, v1.0.1, June 2015 Copyright © 2015 ICP DAS Co., Ltd. All Rights Reserved.
  • Page 4 Appendix A. Error Codes ................. 4-34 I-8026W API User Manual, v1.0.1, June 2015 Copyright © 2015 ICP DAS Co., Ltd. All Rights Reserved. E-mail: service@icpdas.com...
  • Page 5: Preface

    Preface The I-8026W is a multifunction I/O module that provides 6 Analog Input channels, 2 Analog Output channels, 2 Digital Input channels, 2 Digital Output channels. The information contained in this manual is divided into the following topics:  Chapter 1, “Introduction”...
  • Page 6: Introduction

    1. Introduction The I-8026W is a multifunction module that provides 6 Analog Input channels, 2 Analog Output channels, 2 Digital Input channels, and 2 Digital Output channels. It also allows a programmable input range on all Analog Input channels (±10 V, ±5 V, ±2.5 V, ±1.25 V, and ±20 mA), while Analog Output channels are 12 bit at either ±10 V, ±5 V, 0 to 10 V, 0 to 5 V, or 0...
  • Page 7: Specifications

    Wet Contact (Sink/Source) On Voltage Level +10 V to +30 V Off Voltage Level +5 V Max. Response speed 5K Hz/s Digital Output I-8026W API User Manual, v1.0.1, June 2015 Copyright © 2015 ICP DAS Co., Ltd. All Rights Reserved. E-mail: service@icpdas.com...
  • Page 8 Humidity 5 to 95% RH, Non-condensing Mechanical Dimensions (W x L x H) 30 mm x 102 mm x 115 mm I-8026W API User Manual, v1.0.1, June 2015 Copyright © 2015 ICP DAS Co., Ltd. All Rights Reserved. E-mail: service@icpdas.com...
  • Page 9: Pin Assignments

    1.2. Pin Assignments I-8026W API User Manual, v1.0.1, June 2015 Copyright © 2015 ICP DAS Co., Ltd. All Rights Reserved. E-mail: service@icpdas.com...
  • Page 10: Wire Connections

    1.3. Wire Connections I-8026W API User Manual, v1.0.1, June 2015 1-10 Copyright © 2015 ICP DAS Co., Ltd. All Rights Reserved. E-mail: service@icpdas.com...
  • Page 11: Internal I/O Structure

    1.4. Internal I/O Structure I-8026W API User Manual, v1.0.1, June 2015 1-11 Copyright © 2015 ICP DAS Co., Ltd. All Rights Reserved. E-mail: service@icpdas.com...
  • Page 12: Dimensions

    1.5. Dimensions Units: mm I-8026W API User Manual, v1.0.1, June 2015 1-12 Copyright © 2015 ICP DAS Co., Ltd. All Rights Reserved. E-mail: service@icpdas.com...
  • Page 13: Quick Start

    ICP DAS provides a range of demo programs for different platforms that can be used to verify the functions of the I-8026W. The source code contained in these programs can also be reused in your own custom programs if needed. The executable file, can be used to retrieve the basic configuration information related to the module and to verify the AI read functions.
  • Page 14: Api Functions

    Writes the Digital Output value to the I-8026W module. i8026W_WriteDOBit Sets a specific Digital Output channel of the I-8026W module to ON or OFF. i8026W_ReadDIO 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 i8026W_ReadAI float format.
  • Page 15: I8026W_Init

    Before executing any functions on the I-8026W, the i8026W_Init function needs be called once for each I-8026W module inserted in the controller unit. For example, if there are two or more I-8026W modules inserted in the controller, the i8026W_Init function must be individually called for each I-8026W module by including the number of the slot where the I-8026W module is inserted.
  • Page 16: I8026W_Getfirmwarever

    Prototype short i8026W_GetFirmwareVer(int slot); Parameters slot: specifies the slot number (1 ~ 8) Return Values The version information of the FPGA firmware for the I-8026W module Example short ver=0, slot=1; Open_Slot(slot); ver= i8026W_GetFirmwareVer (slot); printf ( "\nFirmware Version =: %04X",ver );...
  • Page 17: I8026W_Getlibversion

    3.3. i8026W_GetLibVersion This function is used to retrieve the version information for the I-8026W. The function is only used for troubleshooting or recording purposes. Prototype short i8026W_GetLibVersion(void); Parameters None Return Values The version information for the I-8026W Example short version;...
  • Page 18: I8026W_Readaogainoffset

    Open_Slot(slot); for(ch=0;ch<2;ch++) i8026W_ReadGainOffset(slot,ch,gain,&gVal,&oVal); printf("\nThe Gain and Offset values for the Calibration are: Gain=%u; Offset=%d", gVal, oVal); I-8026W API User Manual, v1.0.1, June 2015 3-18 Copyright © 2015 ICP DAS Co., Ltd. All Rights Reserved. E-mail: service@icpdas.com...
  • Page 19: I8026W_Writeao

    = 0; // "+/-10 V" Open_Slot(slot); for(ch=0;ch<2;ch++) fVal = 5.0; i8026W_WriteAO ( slot, ch, gain, fVal); printf("\n[%02d]= [ %05.4f ]",ch,,fVal); I-8026W API User Manual, v1.0.1, June 2015 3-19 Copyright © 2015 ICP DAS Co., Ltd. All Rights Reserved. E-mail: service@icpdas.com...
  • Page 20: I8026W_Writeaohex

    = 1; gain = 0; // "+/-10 V" Open_Slot(slot); for(ch=0;ch<2;ch++) hVal =0x3fff; i8026W_WriteAOHex( slot, ch, gain, hVal); I-8026W API User Manual, v1.0.1, June 2015 3-20 Copyright © 2015 ICP DAS Co., Ltd. All Rights Reserved. E-mail: service@icpdas.com...
  • Page 21 I-8026W API User Manual, v1.0.1, June 2015 3-21 Copyright © 2015 ICP DAS Co., Ltd. All Rights Reserved. E-mail: service@icpdas.com...
  • Page 22: I8026W_Readbackao

    For other return values, see the Error Codes in Appendix A. Example int slot,ch; float fVal=0.0; slot = 1; Open_Slot(slot); for(ch=0;ch<6;ch++) i8026W_ReadbackAO( slot, ch, &fVal); printf("\n[%02d]= [ %05.4f ]",ch,fVal); I-8026W API User Manual, v1.0.1, June 2015 3-22 Copyright © 2015 ICP DAS Co., Ltd. All Rights Reserved. E-mail: service@icpdas.com...
  • Page 23: I8026W_Readbackaohex

    Example int slot, ch; short hVal=0; slot 1=1; Open_Slot(slot); for(ch=0;ch<2;ch++) fVal = i8026W_ReadbackAOHex (slot, ch); printf("\n[%02d]= [ %04X ]",ch, hVal); I-8026W API User Manual, v1.0.1, June 2015 3-23 Copyright © 2015 ICP DAS Co., Ltd. All Rights Reserved. E-mail: service@icpdas.com...
  • Page 24: I8026W_Writedo

    3.9. i8026W_WriteDO This function is used to write the Digital Output value to the I-8026W module. Prototype short i8026W_WriteDO(int slot, short hData); Parameters slot: specifies the slot number (1 ~ 8) hData: the Digital Output value (0 ~ 3), as per the table below...
  • Page 25: I8026W_Writedobit

    3.10. i8026W_WriteDOBit This function is used to set a specific Digital Output channel on the I-8026W module ON or OFF. Prototype short i8026W_WriteDOBit(int slot, int ch, int bitStatus); Parameters slot: specifies the slot number (1 ~ 8) ch: specifies the Digital Output channel number (0 ~ 1)
  • Page 26: I8026W_Readdio

    3.11. i8026W_ReadDIO This function is used to read the Digital Input and Digital Output values from the I-8026W module. Prototype short i8026W_ReadDIO ( int slot, short* diVal, short* doVal,unsigned char diBitArr[], unsigned char doBitArr[] Parameters slot: specifies the slot number (1 ~ 8)
  • Page 27: I8026W_Readai

    = 1; gain = 0; // "+/-10 V" Open_Slot(slot); for(ch=0;ch<6;ch++) i8026W_ReadAI( slot, ch, gain, &fVal); printf("\n[%02d]= [ %05.4f ]",ch, fVal); I-8026W API User Manual, v1.0.1, June 2015 3-27 Copyright © 2015 ICP DAS Co., Ltd. All Rights Reserved. E-mail: service@icpdas.com...
  • Page 28: I8026W_Readaihex

    = 1; gain = 0; // "+/-10 V" Open_Slot(slot); for(ch=0;ch<6;ch++) i8026W_ReadAIHex( slot, ch, gain,&hVal); printf("\n[%02d]= [ %04X ] ",ch,hVal); I-8026W API User Manual, v1.0.1, June 2015 3-28 Copyright © 2015 ICP DAS Co., Ltd. All Rights Reserved. E-mail: service@icpdas.com...
  • Page 29: I8026W_Readaigainoffset

    Open_Slot(slot); i8026W_ ReadAIGainOffset (slot,gain,&gVal, &oVal); printf("\nThe Gain = %04X , Offset = %04X ",gVal, oVal); I-8026W API User Manual, v1.0.1, June 2015 3-29 Copyright © 2015 ICP DAS Co., Ltd. All Rights Reserved. E-mail: service@icpdas.com...
  • Page 30 I-8026W API User Manual, v1.0.1, June 2015 3-30 Copyright © 2015 ICP DAS Co., Ltd. All Rights Reserved. E-mail: service@icpdas.com...
  • Page 31: Troubleshooting

    This chapter contains:  Service request requirements  What to do when the data read from the I-8026W module seems unstable I-8026W API User Manual, v1.0.1, June 2015 4-31 Copyright © 2015 ICP DAS Co., Ltd. All Rights Reserved. E-mail: service@icpdas.com...
  • Page 32: Service Request Requirements

    4.1. Service Request Requirements If you are using a stable signal source, such as a battery, to output a signal to the I-8026W module and are receiving incorrect or unstable data, prepare the following three items and e-mail them to service@icpdas.com.
  • Page 33: What To Do When The Data Read From The I-8026W Seems Unstable

    A floating signal source that is not referenced to a system ground point (earth or building ground) Because of the nature of the high speed data acquisition function on the I-8026W module, any noise coupled to a signal, or any change in voltage on an unstable source, is also captured. In this situation, signal filtering or isolation should be considered in order to enhance the quality of the signal.
  • Page 34 There was a gain index error. gain numbers should be in the range of 0 to 4. NOT_SUPPORT_ERROR Reading invalid value. I-8026W API User Manual, v1.0.1, June 2015 4-34 Copyright © 2015 ICP DAS Co., Ltd. All Rights Reserved. E-mail: service@icpdas.com...

Table of Contents