TAGGED: electrical-machines, matlab, maxwell, scripting
-
-
July 22, 2021 at 8:39 amKMoula30Subscriber
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
July 28, 2021 at 2:49 pmHDLIAnsys 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
July 28, 2021 at 8:40 pmKMoula30SubscriberHow can I record a script about getting the value of an output variable?
July 29, 2021 at 5:50 pmHDLIAnsys 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
May 20, 2022 at 10:01 amSupriyaSubscriberCan you solve this problem? I also need this help.
March 3, 2023 at 12:48 pmAshishkumar GuptaSubscriberHi @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.
Ansys Innovation SpaceTrending discussions- HFSS Incident Plane Wave excitement mode
- Question for Maxwell
- Simulation of capacitor combining eddy currents with displacement currents
- How to calculate eddy and hysteresis losses of the core?
- Ansys Maxwell 3D – eddy current
- How to determine initial position in motion setup
- dq graph non-conformity
- How to customize pulse waveform and injection site in microstrip array
- 180 Degree Phase Shift When Measuring S21
- Simplorer+Maxwell Cosimulation results and Maxwell results mismatch
Top Contributors-
1216
-
543
-
523
-
225
-
209
Top Rated Tags© 2024 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.
-