Converting sdatb format to text question

402 views
Skip to first unread message

forest...@gmail.com

unread,
Aug 30, 2018, 2:22:10 PM8/30/18
to VNA Tools
Hello,

I am interested in writing a script to automate the conversion of the binary .sdatb format to a text format such as touchstone.  Is it possible to do this with the python script?  In the Data Explorer I can convert formats with the 'Save As' button, but I haven't figured out how to do this with the python commands yet.  I see the methods under the Convert class but I'm not sure how to implement them.  

I am also interested in parsing .sdatb files in MATLAB but am having difficulty doing that as well.  I do not see a Matlab directory under Metas.Vna.Tools so I am unable to locate any Matlab functions such as LoadSParamDataAsStruct.  I tried implementing LoadSDATB as per the example in the VnaToolsDataFormats document with no success.  After looking through older posts it seemed like this functionality broke due to an unexpected change in windows drivers.  Will the Matlab functions be coming back in a future update?  

Thank you,
Forest

Michael Wollensack METAS

unread,
Aug 31, 2018, 10:44:29 AM8/31/18
to VNA Tools
Hi,

with the attached Python script you can convert a directory with sdatb files to a directory with Touchstone snp files.

To load a sdatb file in MATLAB the following things are required:

- MATLAB
- METAS VNA Tools, see https://www.metas.ch/vnatools
- METAS UncLib, see https://www.metas.ch/unclib

See as well the following screenshot of my virtual testing machine:

Matlab2018_VnaTools2.0.0_UncLib_2.0.0.png



Hope this helps.

Regards
Michael
Convert_sdatb2snp.py
Reply all
Reply to author
Forward
0 new messages