Function AnalogIn
Description This function reads the Analog input
in the specified slot of the I-8000 system.
This function is used for C/C++ compiler.
Function Prototype int AnalogIn(int slot);
int Function return
analog input data. (0x0 ~ 0xfff )
slot Specified slot of the I-8000 system
Range from 0 to 3 for 4 slot
Range from 0 to 7 for 8 slot
Example
Function AI = GetAngIn(0)
Return AI
Description The example reads analog input at slot 0
Modules I-8073

Reference
Initial8073
Initial8073_MMC
MMC_WRITE_BLOCK
MMC_READ_BLOCK
EE_WriteEnable_8073
EE_WriteProtect_8073
EE_MultiRead_8073
EE_MultiWrite_8073
EE_RandomRead_8073
EE_RandomWrite_8073
EE_ReadNext_8073
SetDO
GetDI
AnalogIn
GetAngIn
Read_AD_CalibraionGain
Read_AD_CalibraionOffset
Write_AD_CalibraionGain
Write_AD_CalibraionOffset


Back to Previous Page