04-03-2012 10:26 AM
Hello,
I want to read in a bunch of paths in the form of a long string such as:
C:\Files1;C:\Files2;C:\Files3....
such that when i enter it into labview it will seperate that string at the (;), store it in an array of strings, and then allow me to pass it into a while loop. Which vi can best accoplish this?
Thanks
Solved! Go to Solution.
04-03-2012 10:41 AM - edited 04-03-2012 10:42 AM
I'd use the Match Pattern vi in the Strings Palette. It allows you to search for a character and then gives you the string before and after the match.
I attatched a vi that you should be able to tweak to get it to do exactly what you want.
Enjoy!
~Rob Afton
04-03-2012 11:06 AM
Or just use the spreadsheet string to array function.
04-03-2012 11:27 AM
LV_Pro
It will not let me create that string array constant. it only lets me use numeric types. how did you get that string constant?
04-03-2012 11:33 AM
nevermind i got it
04-03-2012 11:59 AM
Also make sure to change the delimiter to ";"