LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Network Analyzer labview program

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 

0 Kudos
Message 21 of 75
(2,006 Views)

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. Smiley Wink

0 Kudos
Message 22 of 75
(1,993 Views)

Alright let me see what i can get. Thanks

0 Kudos
Message 23 of 75
(1,988 Views)

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.

0 Kudos
Message 24 of 75
(1,969 Views)

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

0 Kudos
Message 25 of 75
(1,962 Views)

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. 

0 Kudos
Message 26 of 75
(1,954 Views)

 


@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.

 

0 Kudos
Message 27 of 75
(1,935 Views)

When i ran your previous program, is the shift register necessary/

0 Kudos
Message 28 of 75
(1,932 Views)

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.

0 Kudos
Message 29 of 75
(1,925 Views)

I get an error when i connect my transpose to my replace array subset. 

 

19771iCCD6D13B18A07F98

0 Kudos
Message 30 of 75
(1,923 Views)