Ansys Assistant will be unavailable on the Learning Forum starting January 30. An upgraded version is coming soon. We apologize for any inconvenience and appreciate your patience. Stay tuned for updates.
Electronics

Electronics

Topics related to HFSS, Maxwell, SIwave, Icepak, Electronics Enterprise and more.

Getting back results in MATLAB via Maxwell scripting

    • KMoula30
      Subscriber

      Hello,

      I want to use MATLAB to implement my own optimization algorithms in an electric machine i design, so i want to be able to change a variable (that i manage to do it) and get back lets say the average torque. I understand that i need to use the GetOutputVariables command i try something like this in matlab : invoke(oModule,'GetOutputVariableValue','Torque',{'Time:=','0ms','fractions:=','2'},'Setup1 : Transient','Transient','') but i get back an error

      Any help or guidance would be healpful

      Thank you for you time

    • HDLI
      Ansys Employee

      Could you show and double check recorded VB scripting for it? I think we may miss something in the command line. it seems like after output variable's name of "Torque", it might have an expression defined for it. Thanks.
      HDLI


    • KMoula30
      Subscriber
      How can I record a script about getting the value of an output variable?
    • HDLI
      Ansys Employee

      Please go to "Automation -> Record Script " in tools bar, and then redo to set the output variables. After clicking "Stop Script", we could open the recorded script.
      HDLI
    • Supriya
      Subscriber
      Can you solve this problem? I also need this help.
    • Ashishkumar Gupta
      Subscriber

      Hi @KMoula30 How did u call MAxwell from MATLAB. Did u use actxserver(progid). I converted my MAxwell Electrostatiscs model to VBS and then to .m file. After that I am not able to couple both software. Please help me out

Viewing 5 reply threads
  • The topic ‘Getting back results in MATLAB via Maxwell scripting’ is closed to new replies.
[bingo_chatbox]