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

15 visualizzazioni (ultimi 30 giorni)
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 Commenti
Vinayak D
Vinayak D il 25 Ago 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?

Accedi per commentare.

Risposte (3)

Sahithi Kanumarlapudi
Sahithi Kanumarlapudi il 26 Ago 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 Commento
Vinayak D
Vinayak D il 31 Ago 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.

Accedi per commentare.


Le Binfen
Le Binfen il 29 Dic 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 il 2 Giu 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!

Categorie

Scopri di più su Programmatic Model Editing in Help Center e File Exchange

Prodotti


Release

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by