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.

• AnalogInAll_8KDescription:This function is used to obtain input value of all channels form I-8000 analog inputseries modules.Syntax:[ C ]WORD AnalogInAll_8K(DWORD dwBuf[], float fBuf[], char szSend[],char szReceive[])Parameter:dwBuf: DWORD Input/Output argument talbedwBuf[0] : [Input] COM port number, from 1 to 255dwBuf[1] : [Input] Module address, form 0x00 to 0xFFdwBuf[2] : [Input] Module ID, 0x8017dwBuf[3] : [Input] 0= Checksum disable; 1= Checksum enabledwBuf[4] : [Input] Timeout setting , normal=100 mseconddwBuf[6] : [Input] 0 no save to szSend &szReceive1 Save to szSend &szReceivedwBuf[7] : [Input] Slot number.fBuf : Float input/Output argument table.fBuf[0] : [Output] Analog input value of channel 0.fBuf[1] : [Output] Analog input value of channel 1.fBuf[2] : [Output] Analog input value of channel 2.fBuf[3] : [Output] Analog input value of channel 3.fBuf[4] : [Output] Analog input value of channel 4.fBuf[5] : [Output] Analog input value of channel 5.fBuf[6] : [Output] Analog input value of channel 6.fBuf[7] : [Output] Analog input value of channel 7.szSend : [Input] Command string to be sent to I-8000 series modules.szReceive : [Output] Result string receiving from I-8000 series modules.Return Value:0 is for SuccessNot 0 is for FailureExample:float AI[12];float fBuf[12];LinPAC-8x4x SDK:158

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

Saved successfully!

Ooh no, something went wrong!