微波EDA网,见证研发工程师的成长!
首页 > 研发问答 > 微波和射频技术 > 电磁仿真讨论 > vbs err

vbs err

时间:03-26 整理:3721RD 点击:
I am running vb script in HFSS to set a required coupling between two cavities. It solves well.
but some time an error occurs that is "Eigen mode solution process died unexpectedly".

I want when this error occurs, my vbscript recognizes this and acts accordingly................

so basically i want to know :- Is there any method in scrpit through which script can identify which type of error has occured in HFSS.




PLZ HELP ME ANY ONE

Yes, although error handling in VBScript is clunky. On error resume next turns on error handling, On error goto 0 turns error handling off.

on error resume next
' Your code Here
If Err.Number <> 0 Then
errorInfo = "Error: " & Err.Number & "Error (Hex) " & Hex(Err.Number) & _
"Source: " & Err.Source & "Description: " & Err.Description
Err.Clear
MsgBox(errorInfo)
End If

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

网站地图

Top