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

11 views (last 30 days)
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 Comments
Vinayak D
Vinayak D on 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?

Sign in to comment.

Answers (3)

Sahithi Kanumarlapudi
Sahithi Kanumarlapudi on 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 Comment
Vinayak D
Vinayak D on 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.

Sign in to comment.


Le Binfen
Le Binfen on 29 Dec 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 on 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!

Categories

Find more on Programmatic Model Editing in Help Center and File Exchange

Products


Release

R2019a

Community Treasure Hunt

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

Start Hunting!