03-28-2013 08:30 AM
Hi, new Labview user!
I am trying to split a stream of bytes that come from VISA Read, these values are for 3 sensors but they came together to read the values in the same time.
the stream is just like this ABCABCABCABC......
Any tips please?
Solved! Go to Solution.
03-28-2013 08:41 AM - edited 03-28-2013 08:42 AM
03-28-2013 08:55 AM
It would help to know what the devices are. A link to the maunual would be even more helpful but we can usually google that.
03-28-2013 09:34 AM
Thanks for replying
I used StringSubset but it doesn't work. I used it in wrong way maybe
can you show me how will this wired?
03-28-2013 09:36 AM - edited 03-28-2013 09:38 AM
Hi sveirq,
in your picture you don't use StringSubset. You convert your string to an U8 array and divide by another array (constant). Don't know what you want to achieve this way...
You really need help in using StringSubset?
03-28-2013 09:40 AM - edited 03-28-2013 09:41 AM
That isn't string subset. String subset is in the string palette, can split a string, based on different criteria. If there are delimiters between the data "packets" that can be used, if the data comes in a set length that can be used. Then the resulting individual data pieces can be "translated" to numeric values (if that is what they represent) by other LabVIEW functions. It would help if you can show us the returned string, and identify which piece represents which sensor.
Ah, Gerd types faster than I!
03-28-2013 09:53 AM
thanks for your help guys! Thats right, i would just to show you the wavefrom chart that shows all of the data. the whole ide is how to split the data that come VISA Read to show these on three different waveform charts.
if i thinking right, do i need three Stringsubset to pick out each of three data?
03-28-2013 09:55 AM
Hi sveirq,
provide a "real" example string and you will get "real" help...
From what you told by now I would guess 3 StringSubset functions can do the job.
A FOR loop using just one StringSubset might work too (with the help of DecimateArray)...
03-28-2013 10:58 AM
How do you know when the sequence begins? How do you know if haven't started reading right in the middle of the stream? This is important because this affects which graph the each piece of data will go to.
04-02-2013 06:31 AM
Thanks guys you are great!
But do i have some mistakes here, i am trying to pick out bytes with odd index, but the chart shows noting
Thanks alot again