Hello all,
So I'm having some issues reading data from an Xbee in Labview. I have two xbees connected to arduinos that are communicating to a single xbee connected to my laptop, I'm using API mode on the xbees and attempting to read and separate the data for each xbee.
Reading some past posts I've picked up a nice VI to parse the data by searching for the start delimiter of each packet, using this I've been able to read and separate the data by just checking the address of each (the case structure, BD97 and C220 are just the addresses of my xbees). This worked as far as reading the data went, but running it I've gotten some data corruption somewhere (there will be random spikes that shouldn't be there).
After I ran into this error I added the little checksum check to try and get rid of the bad data, but this led to no data being passed through (checksums are wrong in each packet). I've gone through and actually added up the checksum of some of the packets by hand and they are wrong in my VI. I did the same with each packet in the xbee XCTU software and all the checksums added up correctly so it's not an issue with the xbees.
Anyone got any ideas where I might be going wrong here??? I attached the two VI's I've been using (ignore the randomness of it I've been doing a lot of tinkering).
and the original thread I was looking off of is here: http://forums.ni.com/t5/LabVIEW/example-code-for-xbee-zigbee-in-API-mode/td-p/1297882
Any help is appreciated!