13.07.2015 Views

User manual - ICP DAS USA

User manual - ICP DAS USA

User manual - ICP DAS USA

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

• I8017_Hex_Cal_Slot_GainDescription:This function is used to convert the data from non-calibrated hex values to calibratedhex values based on the configuration of the slot, gain(Voltage or current). Please refer tothe Fig. 6-2.Syntax:[ C ]int I8017_Hex_Cal_Slot_Gain(int slot, int gain, int data)Parameter:slot : [Input] specified slot of the LinPAC-8000 system (Range: 1 to 8)gain : [Input] Input range:0: +/- 10.0V,1: +/- 5.0V,2: +/- 2.5V,3: +/- 1.25V,4: +/- 20mA.data : [Input] specified not-calibrated hex valueReturn Value:The Calibrated Hex Value.Example:int slot=1, ch=0, gain=0, hdata;int hdata_cal;I8017_SetChannelGainMode (slot, ch, gain,0);hdata = I8017_GetCurAdChannel_Hex (slot);hdata_cal = I8017_Hex_Cal_Slot_Gain (slot, gain, hdata);// You can convert not-calibrated Hex Value to calibrated Hex Value according to the// gain of slot you choose.Remark:This function can be applied on module: I-8017H, I-8017HS and I-8017HW.LinPAC-8x4x SDK:135

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!