Quantcast
Channel: LabVIEW topics
Viewing all articles
Browse latest Browse all 69694

Labview + xbee read sensor, uncoding the hex string

$
0
0

Hey guys :)

Before i start i apologize for my bad English, i'm a student in Portugal in Eng. of Eletronics and Computers, and i have this last project to make, while working on an interprize here in Portugal that manufacters eletronic components for cars, home machines, etc.

Without going into much details that doesnt matter, my project is basicly read some valors from some sensors, and send that data with xbee to the Labview, so i can manage to register every data, and later make warnings about it, cause those sensors are currently used to control and monotorize one line of machines that use a lot of liquids with diferent temperatures and pH

Right now i'm just using the DS18B20 sensor from One-Wire, just to make things simple
I've manage to put the code on the arduino, that is connected to my xbee label as router AT (transmitter), and i have another xbee connected with my pc, label as coordinator API (receiver of information).

I've already managed to configured the 2 xbees with no problem, and they are currently passing info from one to another, as i show you in the pic of x-ctu.
I even managed to read the data on the Labview
my real problem now is that i dont really have a clue how to parse the string, or divide it so i can read only the valors that i need, in this case, temperature valours. As i hope you are familiar, the xbees send their data em Hex or ASCII code (correct me if i'm wrong but those are the ones i'm getting), and so my string kinda starts with a start byte (7E) so i managed to find the beggining and ending of my string sended, and even managed to identify the Hex code that holds the information of the valours of temperature received.

My real real issue is how to manipulate the string, so i can pull only the data i want (temperature numbers) and discard all the rest.

Here i'll send you some shots, my currently VI.
If you need any more details, like the configuration of the xbees i can provide it, although i dont think its relevant since they are working fine.

cheers to all!


Viewing all articles
Browse latest Browse all 69694

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>