-
-
October 25, 2021 at 11:14 pm
hani.sadek_i
SubscriberHello,
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 !
October 27, 2021 at 7:09 pmHDLI
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
November 1, 2021 at 4:11 pmhani.sadek_i
SubscriberHi
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
November 23, 2021 at 6:05 pmhani.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.
Ansys Innovation SpaceTrending discussionsTop Contributors-
3492
-
1057
-
1051
-
965
-
942
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.
-

Ansys Assistant

Welcome to Ansys Assistant!
An AI-based virtual assistant for active Ansys Academic Customers. Please login using your university issued email address.

Hey there, you are quite inquisitive! You have hit your hourly question limit. Please retry after '10' minutes. For questions, please reach out to ansyslearn@ansys.com.
RETRY