05-28-2021 06:19 PM
Hello,
I am trying to collect s-parameter data and am having trouble saving the results in the touchstone file format (.snp). When I run the VI (attached), I can view the results locally on the vna for all 9 s-parameters since I am doing a 3-port measurement. However I cannot find any command or option to export the data in a .s3p format. I am using the Keysight N5227A PNA Network Analyzer and have the drivers associated with it. I am communicating with the instrument through GPIB as well.
Thanks in advance!
06-01-2021 01:00 PM
Hi wasadi,
The Keysight PNA-X driver examples conveniently do not provide a clear example of how to do this. Its likely because of the multiple formats and number of s-parameters configurations possible, but it would have been nice to see a simple case. I struggled with it and eventually settled on this approach..
Here's the code I use for 2-post (*.s2p).
Note: I didn't include the FileProperties ctl or BuildFilenmae.vi since these are just my filename formatting, and not really useful to others. Just wire a filename directly for testing.
Hope that helps.
Craig
07-26-2022 09:36 AM - edited 07-26-2022 09:37 AM
Hello CStorey,
Thank you for the Sparameter Measurement Code idea
I tried accessing your code and I am able to get the data in S2P format. But I cant obtain the values measured for S11, S21,S12,S22, also the last value measured shows zero in frequency row from PNA N5224A. I am Also attaching the document below. Could you please suggest me any changes as I have created my own file name VI which is attached below.
Hoping to hear from you soon
Thank you in Advance!
Kind Regards,
Gauri
07-26-2022 12:49 PM
You need to look at the first file again. It loads a setup file, runs a measurement, retrieves the data to be saved by the subvi. Your program just loads a file and then tries to save data, but never actually makes a measuement so you get all zeros.
As for the extra point a 5Hz, I would check the number of points in your setup file and make sure they match the number of data points you are trying to read. Here I think you are asking for 1 pt too many.
Craig
07-27-2022 09:26 AM
Hello Craig,
Thank you so much for your suggestions I am successfully able to get the data in S2P format. Thank you once again for your promt response.
Kind Regards,
Gauri
07-24-2023 05:35 AM
Hi cstorey
I was finding some help to get S21 parameter from N5224A PNA (VNA) using Labview, for antenna system. Although I am able to get S21 and save it continuously in a text file. However, the problem is that there are certain readings after 3 to 4 correct readings, where the I get -200 power level (which is meaningless). I tried a lot, but could not correct these glitches in the Labview code.
For example, power level -42 dB, -42.15, -38, and then -200, -200,-200, then again correct readings in the range.
I believe there is some issue in the code or subVI which is causing these glitches.
Could you please share a simple Labview code for getting S21 from Keysigth N5224A VNA.
Note that i am connecting a motor(rotator) for moving antenna, and measuring the radiation pattern usign S21 from VNA.
Any help in this regard would be highly appreciated. THANKS
07-24-2023 05:44 AM
Hi cstorey,
Adding to my questions, attached is a raw S21 file received from VNA for one complete rotation.
If you could have a look at it, you will see glitches after every 2 or 3 correct readings. Note that every reading is corresponding to an angle, from -90 degrees to +90 degrees with 1-degree step.
So effectively where there is a glitch (-200), it means we donot get correct power level from VNA on that angle.
07-26-2023 10:31 AM
You're question doesn't seem to have anything to do with the original posted code, so it's best to start a new thread.
In that thread attach your code, so we can see what you are doing. Describe your cal setup also.
As it stands I see the error but can't begin to guess at what's going wrong.