11-11-2011 10:08 PM
Hi everybody
I have a problem with the table block.
I want each loop , The data will insert to table follow columns, not follow rows.
11-11-2011 10:18 PM
Van Phu,
A table is just a 2D array of strings. So just convert the numeric array to strings.
Lynn
11-12-2011 04:39 PM
Hi johnsold,
I want second loop the value in columns 2.
the same below in the picture.
11-12-2011 04:56 PM
Van Phu,
I do not understand exactly what you want. You want to duplicate column 1 and create a column 2 with the duplicate? If your array gets large this seems wastefull of memory and processing time.
Try this.
Lynn
11-12-2011 05:15 PM - edited 11-12-2011 05:16 PM
If you want to flip columns and rows just transpose the array, as shown in the last post from Lynn.
11-14-2011 08:33 AM - edited 11-14-2011 08:34 AM
Dear everybody,
As in the example below.
In the example I used 3 case,
Case 1. The value will show on 2 columns
Case 2: The value will show on 4 columns
.....
Now I don't want use many case so.
I want only use for loop to.
Loop 1: The value will show on 2 columns
loop 2 : The value will show on 4 columns.
11-14-2011 01:06 PM
Vanphu,
I'm curious as to why you're using dynamic data for your table of doubles. I think the way you want to approach this would be to use an array of strings. You would then insert your random numbers into the string array and pass the array to the next iteration of the for loop using a shift register. Hope this helps.
Ryan Sparks
Applications Engineer
National Instruments
11-15-2011 06:55 PM