Problem with using CST MWS vba scripting language to calculate Farfield
时间:04-06
整理:3721RD
点击:
Hi all,
I have a problem with the CST vba.
I use vba scripting language in CST MWS to design a model and run simulation. It's OK.
Next step, I want to get the far-field data in .txt file as the Code:
But this is not working.
Do you have any idea?
I have a problem with the CST vba.
I use vba scripting language in CST MWS to design a model and run simulation. It's OK.
Next step, I want to get the far-field data in .txt file as the Code:
Code:
SelectTreeItem("Farfields\farfield[1]")Dim dTheta As Double, dValue As DoubleOpen "C:\Data\mydata.txt" For Output As #1FarfieldPlot.SetPlotMode "directivity"
For dTheta = 0 To 180 STEP 5
dValue = FarfieldPlot.CalculatePoint(dTheta, 0, "Abs", "farfield[1]")
Print #1, CStr(dTheta) + " " + CStr(dValue)
Next dThetaClose #1
Do you have any idea?
