LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Multiple 1d arrays from 2 d array

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.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 11 of 13
(784 Views)

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

0 Kudos
Message 12 of 13
(769 Views)

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.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 13 of 13
(759 Views)