04-02-2015 12:12 PM - edited 04-02-2015 12:12 PM
If you transpose how your CSV files are written, we could avoid a lot of this mess. What I mean is have a single measurement be the ROW of your CSV file. Then you just need to read the lines with the Read Text File function. You would already have the commas in there for your command. You would just need to loop on the array of lines.
04-02-2015 02:46 PM
THe problem is that I need to do this serially. Your method would work if I wanted to read the DMM + value against ALL the DMM- values at once. But I want to step through the DMM - values versus the DMM+ value. The "read text from file" returns a string, not an array of strings. I want something that reads the first CSV file row (one value) and reads it against ALL the values in the corresponding row in the second CSV file. First CSV file looks like this
11101
11102
11103....
Second CSV file looks like this
11101,11102,11103....
11102,11103....
04-02-2015 05:16 PM - edited 04-02-2015 05:17 PM
Snow_In_Tehran wrote: The "read text from file" returns a string, not an array of strings.
Did you configure it to read lines and set the number of lines to read to -1 (which will read all lines)?
Or do you mean inside of the FOR loop? The CSV lines will already be formated the way the instrument wants the list (seperated by commas). So you just need the CSV line directly.