Hello,
I have a Honeywell pressure transducer that takes poll command [*00P1<cr> ] and provides a response [?01CP=18.321]. Data is received through a serial port (RS-232). The communication protocol is BR 9600, start bit 1, stop bit 1, data bit 8, and parity none. The following part of the code was written to test it, but the sensor does not respond. I would appreciate and be thankful if anybody could help me.
BeginProg
Scan(60,Sec,1,0)
SerialOpen (Com1,9600,0,0,100)
SerialFlush(Com1)
command = CHR(&H2A0050010D) ' poll command*00P1
SerialOutBlock(Com1,(command),1)
'Delay(2,10,mSec)
SerialInRecord (Com1,Instring,&H3F0143503D,0,0,NBytesReturned,1000)
NBytesReturned=SerialInBlock(Com1,Instring,100)
CallTable(Press)
NextScan
EndProg
see what happens, staying in the middle between logger and sensor. Use the W option in the logger terminal menu. First verify that the query string is transmitted correctly.
Smile
This post is under review.