‎07-26-2010 04:43 PM
i don't know i'm having a hard time understanding
‎07-26-2010 08:26 PM
The way the program is setup you have it with a single loop, can i implement that code you have in a nested for loop where the outer loop will be sweeping in the "X direction of the grid" and the inner loop sweeping in the "Y direction of the grid."
‎07-27-2010 10:15 AM
You can use two loops if you wish. I chose to do it with one loop since it made the arithmetic easier. You just need to calculate the correct indices for the Replace Array Subset based on which iterations you are doing of the outer and inner loop.
‎07-27-2010 10:54 AM
I tried using the nested for loops i'm having a hard time coming up how to connect for the outer loop
‎07-27-2010 01:40 PM
Update. When i Run the program i only get the amount i set in the "Sweep X." It is as if it doesn't even go inside the nested for loop.
‎07-29-2010 09:34 AM
I would bundle the frequency and data arrays in to a cluster and then deal with a 1D array of clusters.
Don't know if that's how the experts would do it, but I try to avoid multidimensional arrays when possible because I find that my diagram is hard to read when using multidimensional arrays.
‎07-29-2010 10:44 AM
I think the way my code is set up i think I need to use multidimensional arrays because I don't know how I would shift over my data(append all the columns to each other). See when i run my code, if i set my "Sweep X" to 2 and my "Sweep Y" to 4, the program will run 8 times which is correct but in my output on excel it only display 2 times thats where i'm getting stuck.
‎07-29-2010 10:44 AM
I think the way my code is set up i think I need to use multidimensional arrays because I don't know how I would shift over my data(append all the columns to each other). See when i run my code, if i set my "Sweep X" to 2 and my "Sweep Y" to 4, the program will run 8 times which is correct but in my output on excel it only display 2 times thats where i'm getting stuck.
‎08-02-2010 11:10 AM
Do you know how I can add headers to each of those columns?
File Attached
‎08-02-2010 02:44 PM
You don't want to be using the write string to file VI, you will want to use the write to spreadsheet VI. Attached is a snippet of what you want to do instead of the write string to file.