can a subsystem instance identify itself by a textual identifier known a priori ? Once Coder translated into 'C' or 'PLC" (ST) can the block still find its instance name?

2 views (last 30 days)
I'm using both Embedded Coder and PLC Coder to translate models into a (Straton) PLC. I often have multiple instances of a subsystem that I'm generating code ('C' or 'ST') for. The subsystem may be private to the model or referenced from a library.
On the PLC embedded target, I need each instance of a subsystem to parse a textual resource file in order to customise its behaviour. I've been trying to discover how a block discovers its instance's textual name so that it can assign its internal settings based on the resource values in the block for its own instance.

Answers (0)

Categories

Find more on Simulink PLC Coder in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!