Effacer les filtres
Effacer les filtres

Defining the port names of the Smilunk block within the S function

1 vue (au cours des 30 derniers jours)
Priyanka
Priyanka le 8 Août 2013
Hello,
Is it possible to define the port names in the S-function(R2013a). Is there a function available to do that.

Réponse acceptée

Titus Edelhofer
Titus Edelhofer le 8 Août 2013
Hi,
no there isn't. But it is best practice to mask the S-function block anyway (for passing the parameters). In the mask you can name the ports of course as you like.
Titus
  5 commentaires
Kaustubha Govind
Kaustubha Govind le 14 Août 2013
If the labels are coming from another C-function, would you be open to creating a MEX-function wrapper to it, and calling the MEX-function from a Mask that you can create on top of the S-function block.
Priyanka
Priyanka le 20 Août 2013
Kaustubha
I am currently working on creating a MEX-function to my C-function(I am completely new to creating mex functions. So for now, I am learning how to write a mex function). I will post again if I have any questions.
Thank you for your help.
Priyanka

Connectez-vous pour commenter.

Plus de réponses (1)

Priyanka
Priyanka le 13 Août 2013
Hello,
Can any one help me with assigning the port names dynamically.My port names keep changing so I cannot mask them individually. Is there any way to do that automatically in the mask(i.e I get port names from my S-function and I want to read them in the initialization commands section of the mask tab and assign them to my ports)
Thank you
Priyanka

Tags

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by