How to edit AnsoftSFunction parameters programatically in Simulink S-Function block?

15 Ansichten (letzte 30 Tage)
I am using Simulink S-Function block. I can edit its Function name to AnsoftSFunction programatically. However, once I do that, we get a pop-up dialog. How can we edit the parameters of this AnsoftSFunction dialog programatically?
  2 Kommentare
Sahithi Kanumarlapudi
Sahithi Kanumarlapudi am 25 Aug. 2020
Could you tell what is the pop-up dialog? Like are you seeing some error message?
Vinayak D
Vinayak D am 25 Aug. 2020
Hi Sahithi,
I do not get any error but the pop-up dialog is about the options for AnsoftSFuntion. Options for the dialog as shown in below image. My question is how can I get or edit these options from cmd line or .m file. For Eg: How can I add/edit the link file Or get the values or Update values of link assignments and link them?

Melden Sie sich an, um zu kommentieren.

Antworten (3)

Sahithi Kanumarlapudi
Sahithi Kanumarlapudi am 26 Aug. 2020
Hi,
From your comment I understand that you would like to edit the parameters that you pass to s-function block programatically. Referring to the following documentation link might help you
  1 Kommentar
Vinayak D
Vinayak D am 31 Aug. 2020
The Simplorer dialog is launched from Simplorer / Twin Builder application (the required files AnsoftSFunction.h,AnsosftSFunction.dll files are in Simplorer / Twin Builder installation) after replacing 'system' paramter by 'AnsoftSFunction' in the S-Function block. So it looks like we cannot get the paramters of this function using the methods mentioned in above answer. Also, we do not have script method in Twin Builder to get paramters of this Simplorer dialog either.

Melden Sie sich an, um zu kommentieren.


Le Binfen
Le Binfen am 29 Dez. 2020
Why can't the Simplorer link window pop up after I input AnsoftSFunction?
After I click ok, there is no response and no new window appears
Thanks!!

liang yanwei
liang yanwei am 2 Jun. 2021
Hi,
I also use simulink to link simplorer, and my matlab's version is 2016a, simplorer's version is 2020, but when I pass Read link information from file, it also show no model.
Help!

Kategorien

Mehr zu Programmatic Model Editing finden Sie in Help Center und File Exchange

Produkte


Version

R2019a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by