LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Adding data to a specific table cell

I'm trying to write to a table while the program is running and having a little trouble with it.
Problem 1: In the program I send the table a 2-D array of strings. I want the arrays to be listed from top to bottom, insted labview wants to go left to right. Basically I want 4 columns with as many rows as the test needs and I'm getting 4 rows with as many columns as the test needs.
problem 2: As im running a test I need to plug the results into the table at specific cells. I can't seem to find a way to do this.

Thanks for any help

Robert
0 Kudos
Message 1 of 2
(2,812 Views)
Solution 1: Even if Labview is not behaving the way you expect with the 2-D array, you can use the Transpose 2-D array function to switch columns to rows and vice versa.

Solution 2: You should be able to use the Replace Array Subset VI to plug your results into the table. At first, that VI looks like it is only usable for 1-D arrays, but if you wire a 2-D array to the Input Array input, another input appears for both the column and row index.

Both of these VI's I mention are located in the Array pallet.

Good luck
Message 2 of 2
(2,812 Views)