Ali
2009-02-04 00:23:01 UTC
Hi all
Sorry if this has been asked before, a quick search didn't result in anything.
I have a S-Function block written in C++. This block has a variable number of ports. The port configuration data is kept in a text file which stores the port names, sizes, types, etc. In mdlInitializeSizes() my code reads the text file and parses it, creating the correct number of ports and their types/sizes. All work flawlessly. However, I would like to show the port names on the block, because when trying to connect wires to the block it is confusing which port is which. Is there a way to do so?
Thanks a lot.
Sorry if this has been asked before, a quick search didn't result in anything.
I have a S-Function block written in C++. This block has a variable number of ports. The port configuration data is kept in a text file which stores the port names, sizes, types, etc. In mdlInitializeSizes() my code reads the text file and parses it, creating the correct number of ports and their types/sizes. All work flawlessly. However, I would like to show the port names on the block, because when trying to connect wires to the block it is confusing which port is which. Is there a way to do so?
Thanks a lot.