13.07.2015 Views

User manual - ICP DAS USA

User manual - ICP DAS USA

User manual - ICP DAS USA

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

6.6.2 For I-7000/I-8000/I-87000 modules via serial port6.6.2.1 I-7000 series modules• AnalogOutDescription:This function is used to obtain analog value from analog output module of I-7000series modules.Syntax:[ C ]WORD AnalogOut(WORD wBuf[], float fBuf[],char szSend[], char szReceive[])Parameter:wBuf: WORD Input/Output argument talbewBuf[0] : [Input] COM port number, from 1 to 255wBuf[1] : [Input] Module address, form 0x00 to 0xFFwBuf[2] : [Input] Module ID, 0x7016/21/22/24wBuf[3] : [Input] 0= Checksum disable; 1= Checksum enablewBuf[4] : [Input] Timeout setting , normal=100 msecondwBuf[5] : : [Input] The analog output channel numberwBuf[6] : [Input] 0 no save to szSend &szReceive1 Save to szSend &szReceivefBuf : Float Input/Ouput argument table.fBuf[0] : :: :: [Input] Analog output valueszSend : [Input] Command string to be sent to I-7000 series modules.szReceive : [Output] Result string receiving from I-7000 series modules.Return Value:0 is for SuccessNot 0 is for FailureExample:float fBuf[12];char szSend[80];char szReceive[80];WORD wBuf[12];WORD m_port=3;WORD m_address=1;LinPAC-8x4x SDK:172

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

Saved successfully!

Ooh no, something went wrong!