07-22-2010 04:57 PM
My grid is going to be a lot smaller than 100 x 100. When i said that it was just arbitrary. It's going to be more of a 10x10
07-22-2010 05:19 PM
See attached example for one way you can generate the file. For the headers just write out the headers before you go into the loop to write the data. I'm sure you can figure out how to write out the headers based on the way the 2D array's size is calculated.
07-22-2010 05:26 PM
Alright let me see what i can get. Thanks
07-23-2010 09:14 AM
Note: Not to lead you astray, but you can combine the 3 Replace Array Subset into one. You'd just need to build a 2D array out of the 3 individual 1D arrays. The VI I showed you was for demonstration.
07-23-2010 01:23 PM
With the 3 individual arrays I have for Magnitude, Phase and Frequency. How can I combine that into a 2-D array. I have a build array function but that just converts it to a 3-D array
07-23-2010 01:34 PM
And one more thing that kind of confused me on your sample program that part that says "Simulate network analyzer data" does that represent the section of code that i have my arrays for Magnitude Phase and Frequency? Because I wasn't sure what the 0, 10 or 20 meant.
07-23-2010 01:59 PM
@arthur51189 wrote:
With the 3 individual arrays I have for Magnitude, Phase and Frequency. How can I combine that into a 2-D array. I have a build array function but that just converts it to a 3-D array
Don't know how you'd be getting a 3D array. If you wire 3 separate 1D arrays into a Build Array function the output is 2D. See attached mod.
And one more thing that kind of confused me on your sample program that part that says "Simulate network analyzer data" does that represent the section of code that i have my arrays for Magnitude Phase and Frequency? Because I wasn't sure what the 0, 10 or 20 meant.
Yes, it does. The 0, 10, and 20 is just dummy data. Since I don't have your network analyzer.
07-23-2010 02:01 PM
When i ran your previous program, is the shift register necessary/
07-23-2010 02:15 PM
The shift register is present in both "collect NA data" and "collect NA data MOD". It's necessary in both. The reason is that you pre-allocate the array and you need to update the array in each iteration. The shift register will contain the current state of the array. If you just used a tunnel then you'd always be performing the replacement on the original array, rather than the current array.
07-23-2010 02:16 PM
I get an error when i connect my transpose to my replace array subset.