I created an array of 100 E-probes. I need to export the Abs, X, Y, Z components for my Matlab code.
I wrote this Macro:
Code:
Option Explicit
Sub ParameterSweepWatch(action As Integer)
Dim counter As Integer
Dim filename As String
Dim endfile As String
Dim strwert As String
Dim wertdouble As Double
strwert = CStr(wertdouble)
filename = "Documenti\File-"
endfile = ".txt"
SelectTreeItem ("1D Results\Probes\E-Field")
With ASCIIExport
.Reset
.Execute
End With
End Sub
Sub Main()
ParameterSweepWatch 0
ParameterSweepWatch 1
ParameterSweepWatch 2
End Sub
When I run the code, Cst generates only a txt file with some E- Field information, 20 if I'm not wrong.