Currently, I am attempting to collect meaningful data from a flow meter
connected through serial communication (RS-232 port). The
received data is a 16 bit signed integer in two's complement
representation i.e. the 16 bit signed integer is in binary format with
2 bytes synchronization preceding.
For each value from the flow meter the byte sequence recevied is as
follows: 0x7F (sync) , 0x7F (sync) , MSB , LSB. When
parsing, I would like to ignore the buffers and store/convert the
correct values from the flow meter into decimals, but I do not know how
to do that. I attempted to use Instrument I/O Assistant and the
programming similar to it, but I don't know how to identify the buffers
as seperators.
Do any of you know how to do this? Let me know if you need more information. Your help will be most appreciated.