-
-
February 27, 2020 at 9:27 am
Abdou1
Subscriberhello
i am trying to create script to get the value of im(Gamma(1)) in the end of simulation ,
i create an output variable : GG equal "i'm(Gamma(1)) "
and i used this function to get the value of my output variable
var = oModule1.GetOutputVariableValue   ("GG", "Setup1" , "PortOnly", "Modal Solution Data",())
error: "Extracting value for the output variable 'GG' requires more variable values to be specified"
which variable is missing ?
there is another way to get the im(Gamma(1)) with Script?
-
February 28, 2020 at 10:08 am
-
October 12, 2020 at 11:58 am
NaplonDennis
SubscriberHello, I used the GetOutputVariableValue function in MATLAB, hoping to change 52.2 in 'FREq = 52.2ghz' into the parameter x, like this:
var = oModule1.GetOutputVariableValue  ('GG', "freq='x'", 'PortOnly','Modal Solution Data','');
But there would be an error as follow:
No method 'GetOutputVariableValue' with matching signature was found for class 'interface.55f20a31_789b_4d15_bcce_82f702411155'.
Do you know how to solve it
-
October 13, 2020 at 7:57 am
Abdou1
SubscriberHello
i did understand your issue very well, the command in top to get an output variable value in (ANSYS HFSS soft ) it written with VBscript, it should be executed in ANSYS HFSS
-
October 14, 2020 at 1:54 am
NaplonDennis
SubscriberThank you for answering me very soon!
My purpose is to obtain maxwell's calculation results by using matlab program. I rewrite the VBS program into a syntax structure consistent with MATLAB, but there was a problem in this statement, because 52.2ghz could not be parameterized.
-
October 14, 2020 at 3:14 pm
Abdou1
Subscriberhello
your welcome
no we can parameterized it, in VBs ther is a type name Dim, you can creat a variable Dim and stick the number 52.2 with the char Ghz and the resulte in the variable of type Dim.
like i did :
Dim varfr
(fr : number type)
varfr = fr&"GHz"
-
October 19, 2020 at 8:53 am
rtk
Ansys EmployeeHello Array , Array,
I would suggest calling your already available scripts from MATLAB, if that makes things easier for you.
Matlab have many external interfaces from which you can call scripts in other formats like .vbs, .py etc.. and even DLLs.
You can use 'loadlibrary' function in Matlab, if you want to call from DLLs.
Another way is to call other COM objects from MATLAB (check here).... or use COM API within MATLAB.
So, for your case, initialize HFSS COM object first and then proceed using MATLAB like I mentioned above.
Also, you can call MATLAB function from VB . Check here
Hope this addressed your concern!
Best Regards,
-
May 21, 2022 at 11:37 am
Supriya
Subscriber.Hello, I want to extract average value of torque from ansys in matlab. But following error is coming.
Can anyone tell me which variable i have missed in following
var = oModule.GetOutputVariableValue('Torque1','Torque1:avg(Moving1.Torque:Curve1','Max');
No method 'GetOutputVariableValue' with matching signature found for class 'Interface.55F20A31_789B_4D15_BCCE_82F702411155'.
.
-
- The topic ‘Hfss Script problem’ is closed to new replies.
- Y wiring method and the start and end points of winding.
- Lumped Port Deembed
- Hfss 3D pcb via capped and filled with epoxy
- Optimizing Via Impedance in Ansys HFSS 3D Layout Using Geometric Parameter Sweep
- AEDT Natural Convection with default correlation is failing solver initializatio
- HFSS libnvidia-ml.so too old or could not be found – Warning in slurm job output
- Three-Phase Voltage Imbalances in dual stator electric generator
- STL Import Errors in HFSS After Cleaning in SpaceClaim
- Calc Error in Field Calculator after PyAEDT Analyze
- import file autocad 3d
-
3862
-
1414
-
1220
-
1118
-
1015
© 2025 Copyright ANSYS, Inc. All rights reserved.