微波EDA网,见证研发工程师的成长!
首页 > 研发问答 > 微波和射频技术 > 天线设计和射频技术 > Problem with using CST MWS vba scripting language to calculate Farfield

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:

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
But this is not working.

Do you have any idea?

Copyright © 2017-2020 微波EDA网 版权所有

网站地图

Top