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.

Can I convert .CSV to .S2P?

Status
Not open for further replies.

Jamilah

Newbie level 2
Joined
Sep 5, 2012
Messages
2
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,296
Hi, I have .CSV file and I would like to convert it to .S2P. Can I do that and how. I try to used the notepad and convert it but when I want to read back the file an error such: invalid numeric input. Can anyone help me how to do this.
Thank you in advanced
 

If your data has frequency unit GHz and data in real imaginary format, with 50 Ohm reference impedance, this is the header line:

# GHZ S RI R 50.00000

If your data has frequeny unit Hz, use HZ instead of GHZ

If your data is in linear magnitude/angle format, use MA instead of RI
If your data is in dB/angle format, use DB instead of RI

Then, the next lines contain frequency and data pairs (real/imag or magnitude/angle) for S11, S21, S12, S22

Example:

# GHZ S DB R 50.00000
0.10000000 -46.1695 36.997 -0.03647 -0.777 -0.03647 -0.777 -46.1589 37.042
0.20000000 -43.1691 56.855 -0.04224 -1.544 -0.04224 -1.544 -43.1503 56.852
0.40000000 -38.4971 76.044 -0.06115 -3.052 -0.06115 -3.052 -38.4774 75.915
0.60000000 -35.0102 86.291 -0.08887 -4.528 -0.08887 -4.528 -34.9984 86.069


# GHZ S RI R 50.00000
0.10000000 0.003925 0.002958 0.995718 -0.01350 0.995718 -0.01350 0.003928 0.002964
0.20000000 0.003796 0.005813 0.994788 -0.02681 0.994788 -0.02681 0.003805 0.005826
0.40000000 0.002867 0.011538 0.991576 -0.05287 0.991576 -0.05287 0.002900 0.011558
0.60000000 0.001149 0.017725 0.986732 -0.07814 0.986732 -0.07814 0.001219 0.017744

# GHZ S DB R 50.00000
0.10000000 -46.1695 36.997 -0.03647 -0.777 -0.03647 -0.777 -46.1589 37.042
0.20000000 -43.1691 56.855 -0.04224 -1.544 -0.04224 -1.544 -43.1503 56.852
0.40000000 -38.4971 76.044 -0.06115 -3.052 -0.06115 -3.052 -38.4774 75.915
0.60000000 -35.0102 86.291 -0.08887 -4.528 -0.08887 -4.528 -34.9984 86.069



Reference:
**broken link removed**
 
  • Like
Reactions: mkonca

    mkonca

    Points: 2
    Helpful Answer Positive Rating
Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top