11-18-2011 09:41 AM
How do I view all S-Parameters (S11, S12, S21, S22) using the attached program? Right now, I am only able to view S11. I am fairly new at programming and LabVIEW. I know I have to use a for loop somewhere in the program but I am not exactly sure where. Basically what I would like to do is output the real and imaginary data from all four S-Parameters into a file on my laptop so I can graph them. I am using an Agilent N5230A network analyzer and I have downloaded the appropriate drivers (AGPNA). Attached is a copy of what I have so far. This is my first try at seeking help so I appreciate any and all assistance.
Thank You,
Jemal
11-21-2011 06:30 PM - edited 11-21-2011 06:30 PM
Hello Jemal,
After looking at your code, it seems as if you are configuring your device one channel at a time. Referring to the "Configure Display Trace VI" your device needs one channel specification at a time. Try to see if the instrument-specific drivers have a VI to simultaneously configure and read from multiple channels. Then you can pull the values out from each channel. Right now your for loop is plotting data from the same channel four times.
Regards,
Jeff L.
11-22-2011 11:30 AM
Jemal,
Try wrapping your measurement code in a for loop. Feed in the S-parameter (array constant of 0,1,2,3 I believe) through the for loop to the S-parameter input. This will dictate loop executions. Make sure to enable indexing at the end. After that just parse/index as needed. Should work for your existing code. See pic.
-Chazzmd
11-22-2011 11:41 AM
@Chazzzmd wrote:
Jemal,
Try wrapping your measurement code in a for loop. Feed in the S-parameter (array constant of 0,1,2,3 I believe) through the for loop to the S-parameter input. This will dictate loop executions. Make sure to enable indexing at the end. After that just parse/index as needed. Should work for your existing code. See pic.
-Chazzmd
Wouldn't it be just a bit easier to not create the array, wire a 4 into the N terminal of the loop, and use the i terminal?
11-22-2011 11:56 AM
Ravens Fan,
My man! you are indeed right.
Jamel - Keep in mind that Ravens Fan method LOCKS you into sequential S-Parameter testing (which sounds like what you need). If you, for whatever reason needed to take "out of order" S-parameter measurements OR maybe even an AB measurement at the end (there are 6 other types of measurements you can take), then maybe Ravens Fan method might not be for you. Think about the future needs of your program and make the best decision.
Go Ravens!
-Chazzzmd
11-22-2011 12:08 PM
Jamel,
This may sound silly and maybe you are doing it a different way. But I didn't happen to notice the Configure Measurement Parameter.vi in your BD. This VI's purpose is to setup the measurement type (S-parameter). How are you telling the NA that you want an S11 sweep? or S21 sweep?
-Chazzzmd