07-23-2010 02:35 PM
You need to have a source 2D array. Otherwise it's replacing empty space. Please look at the documentation on Replace Array Subset and look at the VI I wrote again.
07-23-2010 02:46 PM - edited 07-23-2010 02:47 PM
Never mind.
07-23-2010 03:07 PM
It doesn't let me connect my array for Frequency to the initialize array function? I attached a copy of the program
07-23-2010 03:07 PM
It doesn't let me connect my array for Frequency to the initialize array function? I attached a copy of the program
07-23-2010 03:21 PM
You can't initialize an array with an array.
You can initialize an array with a scalar. And if you want a 2-D array, then drag the lower edge of the Initialize array function down to add another index to wire up.
07-26-2010 01:26 PM
When i run the program I'm not getting proper values it seems like it has to do with the shift register but im not sure.
07-26-2010 01:56 PM
You are initializing the 2D array with an integer datatype. That's not what I did in the code I sent you. As a consequence, the Replace Array Subset is coercing the floating point values to integers. Pay attention to those red dots, indicating coercion, and the colors of wires (blue = integer, orange = floating point).
07-26-2010 02:04 PM
Do you know how i can add headers to each of the columns?
07-26-2010 02:13 PM
Another question i had is that everytime i run the program i have to constantly save it on the same file. Is there anyway I can just save it one time.
07-26-2010 03:47 PM
@arthur51189 wrote:
Do you know how i can add headers to each of the columns?
Because of the way you want to have the columns you would need to initialize the 2D array as a 2D array of strings. You'd want one additional row for the number of rows portion of the 2D array size (right now it's set to be the same as the number of points). In the loop you would append the row of headers to the 2D array that gets build out of the individual 1D arrays. Try it - it's not that hard.
Another question i had is that everytime i run the program i have to constantly save it on the same file. Is there anyway I can just save it one time.
Use a shift register instead of a tunnel for the path.