Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Could someone please check if this is a valid Touchstone .s2p file

Status
Not open for further replies.

drkirkby

Full Member level 6
Joined
Nov 6, 2011
Messages
383
Helped
59
Reputation
118
Reaction score
56
Trophy points
1,308
Activity points
5,194
I've got an HP 8720D VNA, and have written my own code in C to grab data from the instrument. I suspect writing data in the format of a Touchstone .s2p file is most logical for a 2-port VNA, as .s2p is the format likely to be used if exchanging data with other software.

I wrote some C code based on the draft specification of a Touchstone .s2p file, with that idea that if at a later date I want to share that with someone, or other software, it would be the best format. However, I do not have any software able to read or write a Touchstone file, so I have no idea if my code is working properly or not.

The attached file is one I created while measuring all 4 S-parameters of a 3 dB N attenuator. Could some kind sole please check if this file looks reasonable and can be read by software which reads a touchstone file. Ideally I'd like to be sure several programs can read it, but any one person is unlikly to have access to lots of bits of software able to read Touchstone files.


Dave
 

Attachments

  • 3dB.zip
    12.5 KB · Views: 58
Last edited:

I checked with the Sonnet EM data display , and also double checked the file syntax.
Thank you. Am I correcting in assuming you are using the Windows version of Sonnet?

I was a bit worried if the fact I wrote the code on a Sun SPARC workstation running Solaris (i.e. a Unix system) would cause any issues with PC based software, due to the Unix standard of using a LF as the end of line termination character while Windows using both a carriage return and a line feed.

I never gave any thought to trying the "lite" versions of programs like Sonnet. I somewhat doubt the "lite" versions would support import of .s2p files, but perhaps I am wrong.

Dave
 

I was a bit worried if the fact I wrote the code on a Sun SPARC workstation running Solaris (i.e. a Unix system) would cause any issues with PC based software, due to the Unix standard of using a LF as the end of line termination character while Windows using both a carriage return and a line feed.

Now that many EDA software runs on both Linux and Windows, it's common to accept both ways. But you are right, some software might be picky about that.

I never gave any thought to trying the "lite" versions of programs like Sonnet. I somewhat doubt the "lite" versions would support import of .s2p files, but perhaps I am wrong.

Yes, you are wrong. The result viewer in the Lite version can display Touchstone files as well.
 

Now that many EDA software runs on both Linux and Windows, it's common to accept both ways. But you are right, some software might be picky about that.

That was one of my concerns. The other of course initially was that I'd mis-interpreted the specification.

Yes, you are wrong. The result viewer in the Lite version can display Touchstone files as well.

Oh well, it is nice to be wrong some times! I'll download the Lite version of Sonnet.

Thank you very much for your help.

Dave
 

it works on agilent genesys
Thank you very much. Given it works with a couple of Windows based pieces software, I guess it is fairly likely to work with others, and I wrote the file on Solaris, so it should be usable by Linux software.

Dave
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top