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

15 visualizaciones (últimos 30 días)
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 comentarios
Sahithi Kanumarlapudi
Sahithi Kanumarlapudi el 25 de Ag. de 2020
Could you tell what is the pop-up dialog? Like are you seeing some error message?
Vinayak D
Vinayak D el 25 de Ag. de 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?

Iniciar sesión para comentar.

Respuestas (3)

Sahithi Kanumarlapudi
Sahithi Kanumarlapudi el 26 de Ag. de 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 comentario
Vinayak D
Vinayak D el 31 de Ag. de 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.

Iniciar sesión para comentar.


Le Binfen
Le Binfen el 29 de Dic. de 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 el 2 de Jun. de 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!

Categorías

Más información sobre Programmatic Model Editing en Help Center y File Exchange.

Productos


Versión

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by