I'm trying to export S-parameter results from CST Studio Suite into a text file using a VBA macro. I only need the data at a single frequency point, and I want to include some variable parameters from the simulation. The output file should have one row per simulation run, with columns like this:
"RunID Param1 Param2 S11_re S11_im S12_re S12_im S21_re S21_im S22_re S22_im"
How can I extract this data at a specific frequency only, and include the values of parameters and the complex S-parameters? Any guidance or VBA examples would be greatly appreciated.