2.5.5 Get_AD_IValue
Description:
This function is used to obtain the analog input current value from an
analog input module in the float format according to the configuration in
function Set_8017H_Channel_Gain_Mode.
Syntax:
float
Get_AD_IValue(void)
Parameter:
None
Return Value:
Return (float): The analog input current value (mA).
Example:
int
slot=1,ch=0,gain=4;
float
data;
Set_8017H_Channel_Gain_Mode(slot, ch, gain,0);
data=Get_AD_IValue(gain);
// The I-8017H card is plugged into slot 1 of MP-8x43, and the data value from channel 0 in I-8017H,
and the data range is: 0 ~ 20 mA.
Remark:
This function can be applied on module: i8017H, i8017HS.
http://www.icpdas.com
++
[C
]
MP-8x43 Function Reference V 1.0
49