12-16-2015 02:39 AM
Wich function use to convert fragment string to values?
I have this string in File:
Instrument:NI-DAQ;Date:01-10-2008;
Quantity:Voltage[V];
Results: 1.23,3.45,5.65,6.89,...;
And i need values - 1.23,3.45,5.65,6.89
Solved! Go to Solution.
12-16-2015 02:59 AM
Hi Cris,
open the context help, then move the mouse pointer of all those functions in the string functiosn palette!
I would use MatchPattern to search for a keyword (like "Results:" in your case), followed by SpreadsheetStringToArray with proper format string, delimiter and array constant inputs…
12-16-2015 03:03 AM
Hi crisdragon,
You have to use the native LabVIEW file and string API.
I made you an example.
Hope this help.
12-16-2015 06:15 AM
Spreadsheet String to Array followed by Array Subset might work if the header format is well defined. You may need to change the delimiters.
Lynn
12-16-2015 06:25 AM - edited 12-16-2015 06:54 AM
You are awesome. I have one question how make one Array Control and Indictator at the same time like in example?
12-16-2015 07:34 AM
Hi crisdragon,
Right click on the input, output or wire you want and choose create control or indicator.
Godd luck.