13.07.2015 Views

User manual - ICP DAS USA

User manual - ICP DAS USA

User manual - ICP DAS USA

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

• GetModuleTypeDescription:This function is used to retrieve which type of 8000 series I/O module is plugged into aspecific I/O slot in the LinPAC-8000. This function performs a supporting task in thecollection of information related to the system’s hardware configurations.Syntax:int GetModuleType(int slot)[ C ]Parameter:slot : [Input] Specify the slot number in which the I/O module is plugged into.Return Value:Module Type: it is defined in the IdTable[] of slot.c.TypeValue_PARALLEL 0x80_AI0xA0_AO0xA1_DI80xB0_DI160xB1_DI320xB2_DO60xC0_DO80xC1_DO160xC2_DO320xC3_DI4DO40xD0_DI8DO80xD1_DI16DO16 0xD2_MOTION0xE2_CAN0XF0Example:int slot=1;int moduleType;Open_Slot(slot);printf("GetModuleType= 0x%X \n", GetModuleType(slot));Close_Slot(slot);// The I-8057W card is plugged in slot 1 of LinPAC-8000 and has a return Value : 0xC2Remark:LinPAC-8x4x SDK:53

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

Saved successfully!

Ooh no, something went wrong!