LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Importing Snp S-parameter files in labview VI

I am trying to import touchstone Snp files such as *.s2p, *s3p, etc. into labview and plot it. I was able to import *s2p files for 2-port using using Read Spreadsheet vi but for higher number of ports it is more complicated. I read somewhere that there is a tool kit that can be downloaded from NI website but could't find the link. Let me know if anyone used any tool to import snp files for visualization. 

Thanks,

Ed

0 Kudos
Message 1 of 4
(579 Views)

.snp files are plain text files, organized in lines with a published manual to allow you to create a line-by-line parser.  I didn't read it closely enough to see how fields in a line are separated (possibly a <tab> character?), but it looks like the initial character in a line might define the type of data it contains.

 

I also looked in the LabVIEW Tools Network (a.k.a. VIPM), looking for "Touchstone" and "SNP", but got no "hits".  

 

Bob Schor

0 Kudos
Message 2 of 4
(533 Views)

You can use the scikit-rf library with the Python node in LabVIEW to load the snp files.

 

Interesting that there is no open-source library for RF data analysis in LabVIEW, not impossible to implement natively as well.

Santhosh
Soliton Technologies

New to the forum? Please read community guidelines and how to ask smart questions

Only two ways to appreciate someone who spent their free time to reply/answer your question - give them Kudos or mark their reply as the answer/solution.

Finding it hard to source NI hardware? Try NI Trading Post
0 Kudos
Message 3 of 4
(526 Views)

Looks like there is indeed a way.

 

You can download the data plugin from https://www.ni.com/en/support/downloads/dataplugins/download.touchstone-dataplugin.html#405966

 

or

 

Insert "Open Data Storage" express VI,

santo_13_1-1707613558620.png


Search and install the Touchstone plugin

 

santo_13_0-1707613537040.png

 

Now, select the touchstone as the data store to open

santo_13_2-1707613628619.png

 

Use the Read data express VI to extract data for the channel of interest

santo_13_3-1707613709577.png

 

Santhosh
Soliton Technologies

New to the forum? Please read community guidelines and how to ask smart questions

Only two ways to appreciate someone who spent their free time to reply/answer your question - give them Kudos or mark their reply as the answer/solution.

Finding it hard to source NI hardware? Try NI Trading Post
Message 4 of 4
(522 Views)