01-27-2011 11:13 AM
I have a measurement that outputs a pair of values (think of an I-V curve). The sub VI returns a 2D array for each measurement. The calling VI appends these together (auto-indexed out of a for loop) using the build array VI.
What I want:
A set of columns ranged from left to right in the order they are received.
What I am getting:
I can work with this format by writing a matlab script to detect the occurrence of [x,0,0] 3D array specifications. But I would much rather have what I want above (just from a simplicity standpoint).
Solved! Go to Solution.
01-27-2011 01:26 PM
Most likely you will need to create a new 2D array and then take the data coming in and place it into columns in the 2D array
Use the array functions
Each time new data arrives place it in the next available column in the 2D array.
OR.. I completely misunderstand your Q.
HEh
01-27-2011 06:02 PM - edited 01-27-2011 06:05 PM
I found the solution on my own, but thanks.
What I did was to put the array into a shift register and wired the incoming data into the Insert into Array VI. That prevents the dimension from increasing.
To save it to a file, I used the Write to Spreadsheet VI with the transpose array input set to true (its row-wise otherwise).