<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Labview + xbee read sensor, uncoding the hex string in LabVIEW</title>
    <link>https://ni.lithium.com/t5/LabVIEW/Labview-xbee-read-sensor-uncoding-the-hex-string/m-p/2824078#M826331</link>
    <description>&lt;P&gt;Thanks Omar &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;i was stupid, didnt checked that Dennis already had a soluction for extracting my value xD&lt;BR /&gt;&lt;BR /&gt;thanks for everything &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;Just a last question&lt;BR /&gt;if i were to add another information in my string, after the numbers, just a char (S or N, its for another sensor), the process is the same?&lt;BR /&gt;&lt;BR /&gt;since its a character and not a number, how should i work with that?&lt;BR /&gt;&lt;BR /&gt;you guys here are amazing, i should had come to the forums earlier &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 22 Apr 2014 15:06:47 GMT</pubDate>
    <dc:creator>Raknugar</dc:creator>
    <dc:date>2014-04-22T15:06:47Z</dc:date>
    <item>
      <title>Labview + xbee read sensor, uncoding the hex string</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Labview-xbee-read-sensor-uncoding-the-hex-string/m-p/2823684#M826247</link>
      <description>&lt;P&gt;Hey guys &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;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&lt;BR /&gt;&lt;BR /&gt;Right now i'm just using the DS18B20 sensor from One-Wire, just to make things simple&lt;BR /&gt;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).&lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;I even managed to read the data on the Labview&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;Here i'll send you some shots, my currently VI.&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;cheers to all!&lt;/P&gt;</description>
      <pubDate>Tue, 22 Apr 2014 10:43:16 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Labview-xbee-read-sensor-uncoding-the-hex-string/m-p/2823684#M826247</guid>
      <dc:creator>Raknugar</dc:creator>
      <dc:date>2014-04-22T10:43:16Z</dc:date>
    </item>
    <item>
      <title>Re: Labview + xbee read sensor, uncoding the hex string</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Labview-xbee-read-sensor-uncoding-the-hex-string/m-p/2823968#M826303</link>
      <description>&lt;P&gt;Is the area in green the data you want? Does it always come in the same place in the data string?&lt;/P&gt;</description>
      <pubDate>Tue, 22 Apr 2014 14:15:27 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Labview-xbee-read-sensor-uncoding-the-hex-string/m-p/2823968#M826303</guid>
      <dc:creator>LV_Pro</dc:creator>
      <dc:date>2014-04-22T14:15:27Z</dc:date>
    </item>
    <item>
      <title>Re: Labview + xbee read sensor, uncoding the hex string</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Labview-xbee-read-sensor-uncoding-the-hex-string/m-p/2824016#M826314</link>
      <description>&lt;P&gt;Yes, it always come in the same location, i'll try to explain here:&lt;BR /&gt;&lt;BR /&gt;the code for 1 reading is like this one&lt;BR /&gt;&lt;BR /&gt;7E 00 13 90 00 13 A2 00 40 A2 3A 63 C0 DD 01 32 32 2E 36 39 0D 0A 85&lt;BR /&gt;&lt;BR /&gt;this is received in labview as ASCII code, so basicly the information i want is the 32 32 2E 36 39, that corresponds to 22.69 for example (its the valor of my temperature). basicly 2 numbers for each character in ASCII code&lt;BR /&gt;&lt;BR /&gt;but if i right click on the buffer (string readed) and change the mode to Hexadecimal it appears to me like this:&lt;BR /&gt;&lt;BR /&gt;7E00 1390 0013 A200 40A2 3A63 C0DD 0132 322E 3639 0D0A 85&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;and i'm afraid that without the spaces it may even damage my information&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;what i really want is to learn how to clear everything else but those 5 pairs of numbers&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;from&amp;nbsp;7E00 1390 0013 A200 40A2 3A63 C0DD 0132 322E 3639 0D0A 85, extract this:&amp;nbsp;32 32 2E 36 39 and convert it to: 22.69&lt;BR /&gt;&lt;BR /&gt;thanks in advance for you time, if you need more details please tell me so I can provide it the best way i can&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Apr 2014 14:35:04 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Labview-xbee-read-sensor-uncoding-the-hex-string/m-p/2824016#M826314</guid>
      <dc:creator>Raknugar</dc:creator>
      <dc:date>2014-04-22T14:35:04Z</dc:date>
    </item>
    <item>
      <title>Re: Labview + xbee read sensor, uncoding the hex string</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Labview-xbee-read-sensor-uncoding-the-hex-string/m-p/2824018#M826315</link>
      <description>&lt;OL&gt;
&lt;LI&gt;Get rid of the Bytes at Port and rely on the Termination Char. Your device seems to end each message with x0D x0A (Chairage Return/Line Feed). Use the default Termination Char (x0A) to only read in one complete line at a time.&lt;/LI&gt;
&lt;LI&gt;You are checking the string after the Feed Back node so you are only rechecking the beginning of the srting. Rechecking same OLD first line each time and not the NEWEST line. Check the string that is returned from the VISA read.&lt;/LI&gt;
&lt;LI&gt;Init the Feed Back Node to an empty string or each time you run it the old data will still be there.&lt;/LI&gt;
&lt;LI&gt;Will the temperture ALWAYS be in the XX.XX form? What does the xbee manual say? Does the xbee manual tell you if there is information in the message telling you how many digits are used to send the temperture? What happens if the temper is over 99.99 or under 10.00? Like 100.00 or 9.99?&lt;/LI&gt;
&lt;/OL&gt;</description>
      <pubDate>Tue, 22 Apr 2014 14:35:10 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Labview-xbee-read-sensor-uncoding-the-hex-string/m-p/2824018#M826315</guid>
      <dc:creator>Omar_II</dc:creator>
      <dc:date>2014-04-22T14:35:10Z</dc:date>
    </item>
    <item>
      <title>Re: Labview + xbee read sensor, uncoding the hex string</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Labview-xbee-read-sensor-uncoding-the-hex-string/m-p/2824024#M826316</link>
      <description>&lt;P&gt;Also, i forgot to mention&lt;/P&gt;
&lt;P&gt;since its in a while cycle it continues to read the valors, so i also need to find a way to stop it, or do a reading, register it into something (an array would be great, but since i cant even extract nothing from it, dont know how to do it), clear the buffer, and do the reading again&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;the final propuse of the program is to do 1 reading per minute for example, from the sensor that flows trough the xbee&lt;/P&gt;</description>
      <pubDate>Tue, 22 Apr 2014 14:37:56 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Labview-xbee-read-sensor-uncoding-the-hex-string/m-p/2824024#M826316</guid>
      <dc:creator>Raknugar</dc:creator>
      <dc:date>2014-04-22T14:37:56Z</dc:date>
    </item>
    <item>
      <title>Re: Labview + xbee read sensor, uncoding the hex string</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Labview-xbee-read-sensor-uncoding-the-hex-string/m-p/2824034#M826318</link>
      <description>&lt;P&gt;First of all, thanks again for the great help &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; you rock mate!&lt;BR /&gt;&lt;BR /&gt;as for the type of reading of the temperature, yes it does always comes like XX.XX, at valors like 9.99, it would be displayed like 09.99, again, always like XX.XX. as for the 100.00 dont worry about it, the place where i'm working would only reach a max temperature reading of 75-80ºC.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And yes, it will always be as XX.XX&amp;nbsp;&lt;/P&gt;
&lt;P&gt;this kind of reading is from my program in arduino that is connected to my xbee router AT. I can change it to only have 1 decimal number, or even more than 3, so it would be like XX.X or XX.XXX doesnt matter, because the xbee only codes like 1 number or char at a time in ASCII code, so for each number it will always have a XX code&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Apr 2014 14:43:22 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Labview-xbee-read-sensor-uncoding-the-hex-string/m-p/2824034#M826318</guid>
      <dc:creator>Raknugar</dc:creator>
      <dc:date>2014-04-22T14:43:22Z</dc:date>
    </item>
    <item>
      <title>Re: Labview + xbee read sensor, uncoding the hex string</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Labview-xbee-read-sensor-uncoding-the-hex-string/m-p/2824038#M826319</link>
      <description>&lt;P&gt;the part of my VI that displays those elements, it was my failed atempt to check the index of the string (as if it was an array) to pull the numbers i did want&lt;/P&gt;</description>
      <pubDate>Tue, 22 Apr 2014 14:45:30 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Labview-xbee-read-sensor-uncoding-the-hex-string/m-p/2824038#M826319</guid>
      <dc:creator>Raknugar</dc:creator>
      <dc:date>2014-04-22T14:45:30Z</dc:date>
    </item>
    <item>
      <title>Re: Labview + xbee read sensor, uncoding the hex string</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Labview-xbee-read-sensor-uncoding-the-hex-string/m-p/2824042#M826321</link>
      <description>A simple String to Byte Array can be used. If you use a termination character, the read will automatically terminate, you will read the entire data that is transmitted, the buffer will be cleared.&lt;BR /&gt;&lt;BR /&gt;p.s. The word is values, not valors.</description>
      <pubDate>Tue, 22 Apr 2014 14:47:17 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Labview-xbee-read-sensor-uncoding-the-hex-string/m-p/2824042#M826321</guid>
      <dc:creator>Dennis_Knutson</dc:creator>
      <dc:date>2014-04-22T14:47:17Z</dc:date>
    </item>
    <item>
      <title>Re: Labview + xbee read sensor, uncoding the hex string</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Labview-xbee-read-sensor-uncoding-the-hex-string/m-p/2824060#M826324</link>
      <description>&lt;P&gt;Thanks for the help, learning everyday :)!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;the problem to make a terminal char at the end of beginning of the information i want, and pull it out with a string, is that it cant be modified within the xbee, the xbee creates its own type of string ( xx xx xx xx xx... and so on), the last byte is always called the checksum, right before those 2 pairs of values that you spoke, but even it seems to change, and it should not (thats what the manuals say, so not sure of it)&lt;BR /&gt;&lt;BR /&gt;but i'll try to do something more, thanks again for everything&lt;/P&gt;</description>
      <pubDate>Tue, 22 Apr 2014 14:56:04 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Labview-xbee-read-sensor-uncoding-the-hex-string/m-p/2824060#M826324</guid>
      <dc:creator>Raknugar</dc:creator>
      <dc:date>2014-04-22T14:56:04Z</dc:date>
    </item>
    <item>
      <title>Re: Labview + xbee read sensor, uncoding the hex string</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Labview-xbee-read-sensor-uncoding-the-hex-string/m-p/2824062#M826325</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://ni.lithium.com/t5/user/viewprofilepage/user-id/296970"&gt;@Raknugar&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;7E 00 13 90 00 13 A2 00 40 A2 3A 63 C0 DD 01 32 32 2E 36 39 &lt;FONT color="#FF0000"&gt;0D 0A&lt;/FONT&gt; 85&lt;/P&gt;
&lt;HR /&gt;
&lt;P&gt;0D 0A marks the end of the message. 85 is the start of the next message.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;
&lt;P&gt;&lt;SPAN style="line-height: 1.2;"&gt;&lt;a href="https://ni.lithium.com/t5/user/viewprofilepage/user-id/296970"&gt;@Raknugar&lt;/a&gt; wrote:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;but if i right click on the buffer (string readed) and change the mode to Hexadecimal it appears to me like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;7E00 1390 0013 A200 40A2 3A63 C0DD 0132 322E 3639 0D0A 85&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;and i'm afraid that without the spaces it may even damage my information&lt;/P&gt;
&lt;HR /&gt;
&lt;P&gt;The spaces are not really there. The spaces are only in the display and not in your string. The spaces are only there to make it easier for YOU to read them.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Apr 2014 14:57:24 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Labview-xbee-read-sensor-uncoding-the-hex-string/m-p/2824062#M826325</guid>
      <dc:creator>Omar_II</dc:creator>
      <dc:date>2014-04-22T14:57:24Z</dc:date>
    </item>
    <item>
      <title>Re: Labview + xbee read sensor, uncoding the hex string</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Labview-xbee-read-sensor-uncoding-the-hex-string/m-p/2824072#M826329</link>
      <description>It seems unusual to append the checksum after a cr/lf but you can still use the termination character. Just read a single byte after the read where you get the values.</description>
      <pubDate>Tue, 22 Apr 2014 15:03:13 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Labview-xbee-read-sensor-uncoding-the-hex-string/m-p/2824072#M826329</guid>
      <dc:creator>Dennis_Knutson</dc:creator>
      <dc:date>2014-04-22T15:03:13Z</dc:date>
    </item>
    <item>
      <title>Re: Labview + xbee read sensor, uncoding the hex string</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Labview-xbee-read-sensor-uncoding-the-hex-string/m-p/2824078#M826331</link>
      <description>&lt;P&gt;Thanks Omar &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;i was stupid, didnt checked that Dennis already had a soluction for extracting my value xD&lt;BR /&gt;&lt;BR /&gt;thanks for everything &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;Just a last question&lt;BR /&gt;if i were to add another information in my string, after the numbers, just a char (S or N, its for another sensor), the process is the same?&lt;BR /&gt;&lt;BR /&gt;since its a character and not a number, how should i work with that?&lt;BR /&gt;&lt;BR /&gt;you guys here are amazing, i should had come to the forums earlier &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Apr 2014 15:06:47 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Labview-xbee-read-sensor-uncoding-the-hex-string/m-p/2824078#M826331</guid>
      <dc:creator>Raknugar</dc:creator>
      <dc:date>2014-04-22T15:06:47Z</dc:date>
    </item>
    <item>
      <title>Re: Labview + xbee read sensor, uncoding the hex string</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Labview-xbee-read-sensor-uncoding-the-hex-string/m-p/2824092#M826334</link>
      <description>The process should be the same. If, for example, you use String to Byte Array, you could use index array, a Byte Array to String with a typecast or flatten to string, join numbers with a typecast/flatten, etc. It would be helpful if you attached an image that shows the data in normal display. You might just need String Subset function.</description>
      <pubDate>Tue, 22 Apr 2014 15:14:54 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Labview-xbee-read-sensor-uncoding-the-hex-string/m-p/2824092#M826334</guid>
      <dc:creator>Dennis_Knutson</dc:creator>
      <dc:date>2014-04-22T15:14:54Z</dc:date>
    </item>
    <item>
      <title>Re: Labview + xbee read sensor, uncoding the hex string</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Labview-xbee-read-sensor-uncoding-the-hex-string/m-p/2824100#M826335</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://ni.lithium.com/t5/user/viewprofilepage/user-id/296970"&gt;@Raknugar&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Also, i forgot to mention&lt;/P&gt;
&lt;P&gt;since its in a while cycle it continues to read the valors, so i also need to find a way to stop it, or do a reading, register it into something (an array would be great, but since i cant even extract nothing from it, dont know how to do it), clear the buffer, and do the reading again&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;the final propuse of the program is to do 1 reading per minute for example, from the sensor that flows trough the xbee&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;How often does the YOUR device send you a message? If you wish to only take a reading once a minute, you will need to flush out old messages from the com port input buffer to be sure you are read the latest reading. Then you have to problem of reading in a partial&amp;nbsp;message.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It would be best to keep reading all messages as they are send to stay in sync (in step) with your device and just throw away readings you do not want to keep.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Apr 2014 15:16:22 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Labview-xbee-read-sensor-uncoding-the-hex-string/m-p/2824100#M826335</guid>
      <dc:creator>Omar_II</dc:creator>
      <dc:date>2014-04-22T15:16:22Z</dc:date>
    </item>
    <item>
      <title>Re: Labview + xbee read sensor, uncoding the hex string</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Labview-xbee-read-sensor-uncoding-the-hex-string/m-p/2824126#M826338</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://ni.lithium.com/t5/user/viewprofilepage/user-id/296970"&gt;@Raknugar&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Thanks Omar &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;i was stupid, didnt checked that Dennis already had a soluction for extracting my value xD&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;The value xD is the ASCII code for "Carriage Return". What you get along with xA to mark the end of a line. I don't think it is part of you data.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Apr 2014 15:26:17 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Labview-xbee-read-sensor-uncoding-the-hex-string/m-p/2824126#M826338</guid>
      <dc:creator>Omar_II</dc:creator>
      <dc:date>2014-04-22T15:26:17Z</dc:date>
    </item>
    <item>
      <title>Re: Labview + xbee read sensor, uncoding the hex string</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Labview-xbee-read-sensor-uncoding-the-hex-string/m-p/2824140#M826344</link>
      <description>&lt;P&gt;Hey guys again &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;i intent to send information to labview once a minute, but i'll do modifications in the arduino (my MCU) to have a delay of 1min with each reading, so its simple, and dont need to make modifications in the labview. but if there somekind of timercount to display information in labview??&lt;BR /&gt;&lt;BR /&gt;also Dennis, thanks again for helping me with the strings control, unfortonatly i dont have the material with me to test it.&lt;BR /&gt;I will have a indutive sensor, to monitor the speed of a motor, and for example, if the velocity is lower than whats expected within one minute (rotations per minute) i will say he is stopped (S for stop, N for non-stop), Thats why i asked&lt;BR /&gt;my final project would be like, display temperature, velocity of the motor (rpm) and if its stopped or not (maybe put a led on/off for it)&lt;BR /&gt;&lt;BR /&gt;thats why my issue was to know how could i separate information&lt;/P&gt;
&lt;P&gt;since it will come in the type of xx xx xx xx xx xx like we talk about&lt;/P&gt;
&lt;P&gt;it would be like xx xx xx xx xx YY YY . YY YY SS RR RR RR xx xx&lt;BR /&gt;&lt;BR /&gt;where yy yy . yy yy (its my actual 22.69 values), SS would be the information in ASCII code of the char for turned on or off (S or N) and RR is the value for rotations for minute (3 values, cause my motor wont reach more than 1000 rpm)&lt;BR /&gt;&lt;BR /&gt;Am i clear enough? i'm sorry if my english sometimes is confused, i never was the best student in English classes (too much girls to look at :b)&lt;/P&gt;</description>
      <pubDate>Tue, 22 Apr 2014 15:40:09 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Labview-xbee-read-sensor-uncoding-the-hex-string/m-p/2824140#M826344</guid>
      <dc:creator>Raknugar</dc:creator>
      <dc:date>2014-04-22T15:40:09Z</dc:date>
    </item>
    <item>
      <title>Re: Labview + xbee read sensor, uncoding the hex string</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Labview-xbee-read-sensor-uncoding-the-hex-string/m-p/2824144#M826345</link>
      <description>&lt;P&gt;btw Omar, my "xD" was a funny smile not really talking about the character &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; sorry but thanks again&lt;/P&gt;</description>
      <pubDate>Tue, 22 Apr 2014 15:41:23 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Labview-xbee-read-sensor-uncoding-the-hex-string/m-p/2824144#M826345</guid>
      <dc:creator>Raknugar</dc:creator>
      <dc:date>2014-04-22T15:41:23Z</dc:date>
    </item>
    <item>
      <title>Re: Labview + xbee read sensor, uncoding the hex string</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Labview-xbee-read-sensor-uncoding-the-hex-string/m-p/2824182#M826355</link>
      <description>&lt;P&gt;Have you looked at regular expressions?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://ip1.i.lithium.com/7e511b8a9456442d304b203f2f4f33edcd90c30d/68747470733a2f2f6e692e6c69746869756d2e636f6d2f74352f696d6167652f736572766572706167652f696d6167652d69642f31333939363069423942364346333031463338384133392f696d6167652d73697a652f6f726967696e616c3f763d6d70626c2d312670783d2d31" border="0" alt="xbeeReadSensor.png" title="xbeeReadSensor.png" align="center" /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Apr 2014 15:58:57 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Labview-xbee-read-sensor-uncoding-the-hex-string/m-p/2824182#M826355</guid>
      <dc:creator>Omar_II</dc:creator>
      <dc:date>2014-04-22T15:58:57Z</dc:date>
    </item>
    <item>
      <title>Re: Labview + xbee read sensor, uncoding the hex string</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Labview-xbee-read-sensor-uncoding-the-hex-string/m-p/2824196#M826360</link>
      <description>&lt;P&gt;Thanks, i will try to implate this on my program &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;in a couple of days i think i'll manage to send you guys a feedback on this, once i get my hands on the rest of the material&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;you've been amazing with me&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;i wish i could pay you guys a beer or something&lt;/P&gt;</description>
      <pubDate>Tue, 22 Apr 2014 16:14:53 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Labview-xbee-read-sensor-uncoding-the-hex-string/m-p/2824196#M826360</guid>
      <dc:creator>Raknugar</dc:creator>
      <dc:date>2014-04-22T16:14:53Z</dc:date>
    </item>
    <item>
      <title>Re: Labview + xbee read sensor, uncoding the hex string</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Labview-xbee-read-sensor-uncoding-the-hex-string/m-p/2824334#M826382</link>
      <description>&lt;P&gt;An XBEE API frame of type 0x90 represents a received RF packet from another device.&amp;nbsp; In your packet, the first byte 0x7E is the start delimiter with which all XBEE API messages begin. The second and third bytes of the message you are receiving&amp;nbsp; say the message is 0x13 (19 decimal) bytes long (not including the checksum). &amp;nbsp; After stripping out one byte for the frame type (0x90) , 8 bytes for the 64 bit source address and 2 bytes for the 16 bit network address and 1 byte for the receive option,&amp;nbsp; you left with a payload of:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;32 322E 3639 0D0A&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;followed by a checksum of 0x85. &amp;nbsp; &lt;/SPAN&gt;The checksum is calculated as [0xFF - (sum of all bytes from API frame type through data payload)] and is equal to 0x85 for this packet. &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In your message, the carriage return and the new line are actually part of the message you are sending from the remote device and not the end of message delimiter. I would guess that on the router end, you are ending the AT messages with a carriage return/new line.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;API packets do not end with a new line/carriage return. The message length is given in the 2 bytes following the start delimiter (7E). &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The safest way to make sure your message is complete and intact is to start reading from 0x7E, the next two bytes are the MSB and LSB of the message length. Read that many bytes plus one (the checksum). Then, verify the checksum before parsing the message.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the case of frame type 0x90, the data payload always begins with the 15th byte. So you can discard the first 14 bytes and begin parsing there. &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you only have one remote device periodically sending data, I would consider changing your coordinator to the AT mode, then your messages will come in the clear and look exactly like the way they were sent. All ascii and no hex. &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;JohnCS&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Apr 2014 18:13:38 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Labview-xbee-read-sensor-uncoding-the-hex-string/m-p/2824334#M826382</guid>
      <dc:creator>JohnCS</dc:creator>
      <dc:date>2014-04-22T18:13:38Z</dc:date>
    </item>
  </channel>
</rss>

