Get_Ad_Fvalue - ICP DAS USA MP-8 43 Series Function Reference

Hide thumbs Also See for MP-8 43 Series:
Table of Contents

Advertisement

2.5.4 Get_AD_FValue

Description:
Obtain the analog input voltage value from the analog input module in the
float
format
Set_8017H_Channel_Gain_Mode.
Syntax:
float Get_AD_FValue(int
Parameter:
gain :
[Input] input range
Return Value:
Return (float): The analog input value.
Example:
int
slot=1,ch=0,gain=1;
float
data;
Set_8017H_Channel_Gain_Mode(slot, ch, gain,0);
data=Get_AD_FValue(gain);
// The I-8017H card is plugged into slot 1 of MP-8x43 and the data value from channel 0 for I-8017H,
and the data range is: -5 ~ +5 V.
Remark:
This function can be applied on module: i8017H, i8017HS.
http://www.icpdas.com
according
to
gain)
0:
+/- 10.0V,
1:
+/- 5.0V,
2:
+/- 2.5V,
3:
+/- 1.25V,
4:
+/- 20mA.
MP-8x43 Function Reference V 1.0
the
configuration
++
[C
]
of
function
48 

Advertisement

Table of Contents
loading

Table of Contents