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.

• AnalogOutReadBackDescription:This function is used to obtain read back the analog value of analog output modulesof I-7000 series modules. There are two types of read back functions, as described in thefollowing :1. Last value is read back by $AA6 command2. Analog output of current path is read back by $AA8 commandSyntax:[ C ]WORD AnalogOutReadBack(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] :wBuf[2] :wBuf[3] :wBuf[4] :[Input] Module address, form 0x00 to 0xFF[Input] Module ID, 0x7016/21/22/24[Input] 0= Checksum disable; 1= Checksum enable[Input] Timeout setting , normal=100 msecondwBuf[5] : : [Input] 0 : command $AA6 read backwBuf[6] :: 1 : command $AA8 read backNote 1) When the module is I-7016: Don’t care.:: 2) When the module is I-7021/22, analog output of current pathread back ($AA8): 3) When the module is I-7024, the updating value in a specificSlew rate ($AA8)(For more information, please refer to I-7021/22/24 <strong>manual</strong>)[Input] 0 no save to szSend &szReceive1 Save to szSend &szReceivewBuf[7] : [Input] The analog output channel No. (0~3) of module I-7024fBuf :No used for single analog output moduleFloat Input/Ouput argument table.fBuf[0] : :: :: [Output] Analog output read back valueszSend :[Input] Command string to be sent to I-7000 series modules.szReceive : [Output] Result string receiving from I-7000 series modules.LinPAC-8x4x SDK:174

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

Saved successfully!

Ooh no, something went wrong!