-
-
October 12, 2020 at 12:12 pm
NaplonDennis
SubscriberHello, I used the GetOutputVariableValue function in MATLAB, hoping to change 52.2 in 'FREq = 52.2ghz' into the parameter x, like this:nvar = oModule1.GetOutputVariableValue   (GG, freq='52.2GHz', PortOnly","Modal Solution Data,())n Arraynvar = oModule1.GetOutputVariableValue  ('GG', freq='x', 'PortOnly","Modal Solution Data","');nBut there would be an error as follow:nNo method 'GetOutputVariableValue' with matching signature was found for class 'interface.55f20a31_789b_4d15_bcce_82f702411155'.nDo anyone knows how to solve itn -
October 13, 2020 at 12:54 am
Karthik Remella
AdministratorWhich tool are you using? Is this HFSS? Could you please confirm this?nThanks.nKarthikn -
October 13, 2020 at 2:27 am
NaplonDennis
SubscriberThanks you!nMy tool is Electronics Desktop 2019R2.nn -
October 13, 2020 at 11:35 am
rtk
Ansys EmployeeHello-nIt seems like you have used incorrect formats for matlab.nvar = oModule1.GetOutputVariableValue  ('GG', freq='x', 'PortOnly","Modal Solution Data","'); these formats are not supported by Matlab.nYou can go for Python, if you want to do the same. nAEDT scripting document have details on how to accomplish such functions/classes/objects using Python and VB.nnHope this addressed your concern!nnBest Regards,n -
October 14, 2020 at 9:10 am
NaplonDennis
SubscriberThank you!nI think my question can be simpilified as :nHow to translate the following vbs statement into matlab statement :nvar = oModule1.GetOutputVariableValue   (GG, freq='x', PortOnly","Modal Solution Data,()) n -
October 19, 2020 at 9:01 am
rtk
Ansys EmployeenYou can find leads for this problem in one previous post -- /forum/discussion/13494/hfss-script-problem#latestnI am reposting the answer here again for you : n I would suggest calling your already available scripts from MATLAB, if that makes things easier for you.nMatlab have many external interfaces from which you can call scripts in other formats like .vbs, .py etc.. and even DLLs.nYou can use 'loadlibrary' function in Matlab, if you want to call from DLLs.nAnother way is to call other COM objects from MATLAB (check here).... or use COM API within MATLAB.nSo, for your case, initialize HFSS COM object first and then proceed using MATLAB like I mentioned above.nAlso, you can call MATLAB function from VB . Check herennHope this addressed your concern!nBest Regards,nn
-
Viewing 5 reply threads
- The topic ‘MATLAB scripts can reference variable strings like VB scripts’ is closed to new replies.
Ansys Innovation Space
Trending discussions
- Y wiring method and the start and end points of winding.
- Lumped Port Deembed
- Optimizing Via Impedance in Ansys HFSS 3D Layout Using Geometric Parameter Sweep
- Hfss 3D pcb via capped and filled with epoxy
- 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
Top Contributors
-
3882
-
1414
-
1241
-
1118
-
1015
Top Rated Tags
© 2025 Copyright ANSYS, Inc. All rights reserved.
Ansys does not support the usage of unauthorized Ansys software. Please visit www.ansys.com to obtain an official distribution.