Ansys Learning Forum › Forums › Discuss Simulation › Electronics › MATLAB scripts can reference variable strings like VB scripts › Reply To: MATLAB scripts can reference variable strings like VB scripts
October 19, 2020 at 9:01 am
Ansys Employee
nYou 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