DASYLab

cancel
Showing results for 
Search instead for 
Did you mean: 

RS232

Hi all,
Hopefully a simple question for anyone who has already done this or has more experience with rs 232 communication than me.
 
I have a sensor, that produces a binary signal over a RS232 interface.
 
Baud rate: 115200
DATA bits: 8
Flow control: Off
Stop bit: 1
 
The sensor sends the data permanently.

The current value (10Bit) of the sensor is packed in 2 bytes, one “low byte” and one “high byte”, which can be differentiated by the MSB
(“low byte”: MSB = 0 and “high byte”: MSB = 1).

The 7 LSBs of the “low byte” and the 3 LSBs of the “high byte” result in the current value.
I want to integrate the sensor into the measuring program Dasylab over the serial interface. That is ok.

Now I must know, how I can differentiate the “low byte” and the “high byte” with Dasylab and then how can I set the “low byte” and the “high byte” together,
so that I can get always the current value of the sensor.
 
I think at first I have to check “low the byte” or “high byte”.
Afterwards, assemble bit for bit.
 
Did that make someone already times? Or does someone have an idea, how I can realize this in Dasylab?
 
 
Thanks.

Greeting
 
 

 
0 Kudos
Message 1 of 2
(6,924 Views)

Hello,

please tell us more details for the sensor, name, type, producer.

Best regards,
MHa

0 Kudos
Message 2 of 2
(6,911 Views)