The attached add-in creates a JMP data table from a Touchstone file, aka, sNp data.
The importer is based on Revision 1.1 of the Touchstone file format specification.
In summary, the option line should read:
For 1-port files: # [HZ/KHZ/MHZ/GHZ] [S/Y/Z/G/H] [MA/DB/RI] [R n]
For 2-port files: # [HZ/KHZ/MHZ/GHZ] [S/Y/Z/G/H] [MA/DB/RI] [R n]
For n-port files: # [HZ/KHZ/MHZ/GHZ] [S/Y/Z/G/H] [MA/DB/RI] [R n] where the square brackets ([]) indicate optional information;
.../.../.../ means select one of the choices;
and n is replaced by a positive number.
Note: Noise parameters can be included in a Touchstone data file, however, they can only be included in 2-port network descriptions.
A special thanks to my collaborator and amazing teacher @brady_brady for help with making it robust.
/***********************************************************************************
CHANGES
Version 1.01
Written By: Stan Koprowski
DATE: June 30, 2020
Converted file name to upper case to allow file extensions to be case insensitive
Set Unit property for Frequency to unit supplied
Set Unit property for Resistance to ohms
************************************************************************************/
/***********************************************************************************
CHANGES
Version 1.1
Written By: Stan Koprowski
DATE: July 1, 2020
Added second option to import a directory of sNp files from the same folder location
Comments are prepended with source name
File are concatenated into single file.
Many rows could have missing values as the containing files may not always have the same set of columns.
************************************************************************************/