Electronics

Electronics

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

Interface Matlab – Maxwell

    • jayaram
      Subscriber

      I am interested to interface Matlab to Ansys Maxwell. I need to send some project variables from Matlab to Maxwell and use it for Electromagnetic simulations. Later Maxwell needs to send the results to Matlab. Can anyone help me to find some resources on how to do that. Thanks very much for your time. 

    • mgardner
      Subscriber

      Matlab can interact with Maxwell through Maxwell's scripting interface.  When I want to figure out how to do something in Maxwell using Matlab, I generally take advantage of the Maxwell's "Record Script to File" function to record a script of whatever I want to do in Matlab.  Then, I convert the syntax from Visual Basic Script to Matlab.  Additionally, the Maxwell Scripting Help provides a good resource for finding different scripting commands you can use.  Note that to open the interface from Matlab to Maxwell you need to use the following command:


      iMaxwell = actxserver('Ansoft.ElectronicsDesktop');


      One other note regarding your question: to get data from Maxwell to Matlab, I usually create a Results report and export it from Maxwell as a csv file.  Then, Matlab can use csvread to access the data.  However, you might look through the Maxwell Scripting Help for commands that could provide an easier approach.

    • raul.raghav
      Subscriber

      The attached pdf might help you configure Matlab in Ansys Electronics Desktop.

    • jayaram
      Subscriber

      Thanks very much for the reply. I had seen this file earlier. This mainly deals with optimization and doesn't give details on sending Project variables between Matlab - Maxwell. 


       

    • raul.raghav
      Subscriber

      Based on the following forum post, I doubt if there is an interface between Matlab and Maxwell. Maxwell sending results to Matlab can be done easily and I'm sure you would have figured it by now.


      No direct interface to communicate with Ansys Maxwell from MATLAB


      And please refer to mgardner's post (1st reply) which didn't post earlier for some reason.

    • jayaram
      Subscriber

      Hi Rahul,


      Thanks for the reply. I found some topics on using Simplorer to connect to Matlab and send variables. I will try that and see if it helps. 

    • balajisriram15
      Subscriber

       Hi, Jayaram/ Raghav. This is Balaji, researcher at NIT. If you could share your Email ID or phone number I would like to talk to you regarding the same.


      My phone number: +91 9884646838


       


       

    • Ashishkumar Gupta
      Subscriber

      Hi mgardner,

      iMaxwell=actxserver('Ansoft.ElectronicsDesktop');

      Error:

      Error using actxserver (line 93)
      Server creation failed. Invalid ProgID 'Ansoft.ElectronicsDesktop'.

       

      How can I rectify this? Please help....

      I am trying to call Ansys MAxwell from MATLAB.I converted my VBS into .m file

Viewing 7 reply threads
  • The topic ‘Interface Matlab – Maxwell’ is closed to new replies.