


{"id":160599,"date":"2021-07-22T08:39:52","date_gmt":"2021-07-22T08:39:52","guid":{"rendered":"\/forum\/forums\/topic\/getting-back-results-in-matlab-via-maxwell-scripting\/"},"modified":"2022-05-20T10:01:58","modified_gmt":"2022-05-20T10:01:58","slug":"getting-back-results-in-matlab-via-maxwell-scripting","status":"closed","type":"topic","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/getting-back-results-in-matlab-via-maxwell-scripting\/","title":{"rendered":"Getting back results in MATLAB via Maxwell scripting"},"content":{"rendered":"<div class=\"Item-Body\">\n<div class=\"Message userContent\">\n<p>Hello,<\/p>\n<p>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,&#039;GetOutputVariableValue&#039;,&#039;Torque&#039;,{&#039;Time:=&#039;,&#039;0ms&#039;,&#039;fractions:=&#039;,&#039;2&#039;},&#039;Setup1 : Transient&#039;,&#039;Transient&#039;,&#039;&#039;) but i get back an error<\/p>\n<p>Any help or guidance would be healpful<\/p>\n<p>Thank you for you time<\/p>\n","protected":false},"template":"","class_list":["post-160599","topic","type-topic","status-closed","hentry","topic-tag-electrical-machines","topic-tag-matlab","topic-tag-maxwell","topic-tag-scripting"],"aioseo_notices":[],"acf":[],"custom_fields":[{"0":{"_bbp_author_ip":[""],"_bbp_old_reply_author_name_id":["Anonymous"],"_bbp_old_is_reply_anonymous_id":["false"],"_btv_view_count":["580"],"_bbp_likes_count":["0"],"_bbpmt_movedon":["2022-07-01 17:06:43"],"_bbpmt_movedfrom":["151970"],"_bbp_subscription":["276524"],"_bbp_topic_status":["unanswered"],"_bbp_status":["publish"],"_bbp_topic_id":["160599"],"_bbp_forum_id":["27793"],"_bbp_engagement":["186775","213500","220333","276524"],"_bbp_voice_count":["4"],"_bbp_reply_count":["5"],"_bbp_last_reply_id":["252478"],"_bbp_last_active_id":["252478"],"_bbp_last_active_time":["2023-03-03 12:48:05"]},"test":"neomoulagmail-com"}],"_links":{"self":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/160599","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics"}],"about":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/160599\/revisions"}],"wp:attachment":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/media?parent=160599"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}