LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to mask out bits from a byte from a serial laser sensor?

Hi, I´m quite new to this world.

 

I´m struggeling with a application where I want to read distance values in [mm] from serial laser sensor. The thing is that this device sending its values in two bytes that are then added together. The identifier for if it is the low or the high byte is the first bit in the byte. I know how shuld have done this in a PLC, but I get pretty confused with this in LabView.

 

Here is a link to the laser sensor´s manual 

 

http://www.leuze.com/downloads/los/03/ods_8_30_96_en.pdf 

 

On page 18 and 19 the serial inteface is described.

 

Exempel code had really helped me alot.

 

Br. Patrik

0 Kudos
Message 1 of 1
(2,543 Views)