12-09-2011 09:17 AM
Hi guys
I just developed an vi to receive data received from an xbee RF module and it can pick up the data I want to receive and the source address, also I can display the content from different sources on different indicators. I enabled the receiver's API mode. If I can reveive "hello" from a remote(address 5351) xbee, the data I got will look like 7E 00 0A 81 53 51 24 00 68 65 6C 6C 6F A2 in hex. But now I received just "7E A2" or "7E 00", or other incomplete string of data. The vi worked before, but somehow it did not any more.
Can anyone help me?
Thanks a lot!!
12-09-2011 09:26 AM
12-09-2011 09:49 AM
Thanks for your help first!
I just did what you suggested, but it wouldn't help.
Some other problems I encountered are sometimes I couldn't get the data in a proper order or what's even worse was sometimes the indicator could not display any data I have received.
12-09-2011 09:58 AM
Albert
Your help is really helpful. Now I can get all the data that I received. But the problem is the bytes are not in order which is quite disturbing.
12-09-2011 10:35 AM
12-09-2011 10:42 AM
Actually the disorder of bytes has nothing to do with the concatenation function.
I am supposed to get the data via "raw data" but what I have is in disorder. That' s the problem
12-09-2011 10:44 AM
Sorry I have misunderstood you
you are right
I think the problem is fixed!
Thank you !
12-10-2011 10:13 AM
I wonder why I have to swap to input of concatenate strings. Because the my other functions are always focus on the first element of the output of concatenate strings. If swap the inputs, the whole vi seems to be kind of meaningless.
12-10-2011 12:52 PM
You are adding to the beginning of the string or to the end of the existing string.
Your first situation added the newest characters at the beginning while they came later.
Now you are adding to the end of the original string because the characters are rreceived later.
12-11-2011 03:03 PM
Thanks Albert
But I still wonder if I can add the new string to the beginning at the existing string