09-13-2011 01:26 PM
Agree with smercurio, you should always stick to the simplest solution. If your files always have the same format as the one you attached use smercurio solution. Note that it will not work for most touchstone format files. Usually the header part is of variable lenght, it contain a few comment lines describing the instrument model, firmare, time and date of measurement, correction used, ... before the option line and the number of data columns is also variable depending of the type of measurement: 1-port, 2-port,...
note: this code to read S2P (touchstone) files was developped a while ago and is part of a folder that could be named "This should be cleaned up and improved but since it's working and I don't have much time it will continu to wait". I'm pretty sure I'm not the only one to have such a folder.
note2: It's always interesting to look at proposed solution from experienced programmer and get some hints on how to improve things (the read lines option of the Read from Text File VI is definitely something I tend to forget about), Thanks smercurio.
Ben64