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.
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.
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?
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?
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!

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?
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)...
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.
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