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.

MotorCad Scripting

    • hani.sadek_i
      Subscriber

      Hello,

      I am doing scripting with MotorCad and I'd like to know if there is a command that I can use to extract winding factor and mmf values. This is really important as it will save the time copying the data manually to matlab.

      In addition, I have realized that the command:

      invoke(mcad, 'DisplayScreen', 'Electromagnetic')

      doesn't work. Am I doing anything wrong here?

      Thanks !

    • HDLI
      Ansys Employee

      I am not sure why you use this command. Here are some information.
      1). Please review scripting tutorial "ActiveX_Scripting.pdf" and Matlab scripting example folder "ActiveX", located in MotorCAD installation folder, C:\ANSYS_Motor-CAD\14_1_17\Tutorials.
      2). Find parameter names of winding factor and mmf in Help, or select value while clicking F2 to get the parameter name.
      3). Use the command like [success,ShaftTorque] = invoke(mcad,'GetVariable','ShaftTorque'); to get parameter value.
      Thanks.
      HDLI
    • hani.sadek_i
      Subscriber
      Hi
      I've done all that.
      I am just asking how to extract the winding factors and mmf values.
      Is there a way to get these values in matlab?

      Thanks
    • hani.sadek_i
      Subscriber

      Kindly, could you reply to my question regarding the extraction of winding factors and mmf values from within the matlab scripting?
      The reason i need this is that i want to plot these values for different parameters changes.
      Regards,
      Hani

Viewing 3 reply threads
  • The topic ‘MotorCad Scripting’ is closed to new replies.
[bingo_chatbox]