I found that my labeled, test-pointed signals (at the output of an atomic subsystem that I use from a library) do not appear in the C-API interface. Specifically, subsystem outputs do not appear in the structure unless they are buffered with Signal Conversion blocks or Gain blocks (at least not with labels that correspond to the signal names).
There is no indication in the Documentation about this limitation. I would expect to be able to access a signal with its label through the generated code. In the current scheme if the source of the signal does not have any label associated then I will get the following code in the signal record:
{ 0, 4, "tt1/Subsystem1", "", 0, 0, 0, 0, 0 }, { 1, 8, "tt1/Subsystem1", "", 0, 0, 0, 0, 0 },
The code seems to be referring to a subsystem without specifying the port number and does not show the local label from the user. It is not clear as to why I cannot associate the signal with a Simulink entity through labeling.
Best Answer