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.

DWORD m_checksum=0;Open_Com(COM3, 9600, Data8Bit, NonParity, OneStopBit);dwBuf[0] = m_port;dwBuf[1] = m_address;dwBuf[2] = 0x8024;dwBuf[3] = m_checksum;dwBuf[4] = m_timeout;dwBuf[5] = 1;dwBuf[6] = 1;dwBuf[7] = 1;fBuf[0] = 2.55AnalogOut_8K (dwBuf, fBuf, szSend, szReceive);Close_Com(COM3);Remark:• AnalogOutReadBack_8KDescription:This function is used to read back the analog value of analog output module for I-8000series modules.Syntax:[ C ]WORD AnalogOutReadBack_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] :dwBuf[2] :dwBuf[3] :dwBuf[4] :[Input] Module address, form 0x00 to 0xFF[Input] Module ID, 0x8024[Input] 0= Checksum disable; 1= Checksum enable[Input] Timeout setting , normal=100 msecondLinPAC-8x4x SDK:184

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

Saved successfully!

Ooh no, something went wrong!