08-30-2013 10:16 AM
I am trying to split the comma delimited number from read Buffer.Only the first number can be convtered into array.
But if I replaced the read buffer with a input spreadsheet string (1.1 , 2.943, 44) , it works.
So wondering what is problem with the numbers in the Read Buffer.
Thanks!
Solved! Go to Solution.
08-30-2013 10:21 AM
The match pattern VI can sucssesfuly detected the Comma. So it is "real" comma.
08-30-2013 10:23 AM - edited 08-30-2013 10:24 AM
Can you right-click the "read buffer" terminal (after running the VI so it contains typical data as in your image) and select "create constant". Now copy the created constant to a new VI, save it, and attach it here.
08-30-2013 10:27 AM - edited 08-30-2013 10:38 AM
@tian66 wrote:
The match pattern VI can sucssesfuly detected the Comma. So it is "real" comma.
Set the display to \-codes. There might be other garbage in there. Also make the array indicator a little bigger.
Your code seems dangerous. How do you guarantee that the inner while loop ever stops if there is only pathological data?
08-30-2013 10:49 AM
It cannot guarantee the while stop. This is coming with DMM driver. What is your recommendation?
I also trie using ",\00" to split the string but it failed.
Thanks!
08-30-2013 11:30 AM
Your delimiter is ",/00". Make sure to switch the diagram constant to
\-codes before entering it.
08-30-2013 04:33 PM
Sorry it is typo. I did try ",/00".
Any other suggestion?
08-30-2013 04:43 PM
08-30-2013 05:44 PM - edited 08-30-2013 05:48 PM
Sorry, my typo, should read ",\00" of course (was typing on an android keyboard on my phone), but only if the string constant is set to \-codes when you enter it.
Observe the display style! Entering \00 into a string set to normal display does not help much.
09-03-2013 09:36 AM
It is still not working.The display is set to \-.