02-09-2024 02:00 PM
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
02-10-2024 06:21 PM
.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
02-10-2024 06:55 PM
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.
02-10-2024 07:08 PM
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,
Search and install the Touchstone plugin
Now, select the touchstone as the data store to open
Use the Read data express VI to extract data for the channel of interest