I’working with Plecs Blockset 4.2.6 (and tried it with 4.3.6).
Through several Matlab Version 2016b, 2018b, 2019b I’m facing the following issue:
I created my own Plecs-Library elements.
If a second library element is dragged into the overall simulation model, the probes of the first library element are empty. (Although they are filled in the library element itself as expected).
In addition, the probes are empty from time to time even after a restart of the model.
Does anyone know this problem and how to solve it reliably?
I’m looking forward to your answers.
Thank you in advance!
Unfortunately Probe blocks within library models do not work as they do in a non-library subsystem, and will lose their associations when the library model is included in a new model. This may be addressed in a future PLECS release, but the intended method for Probe signals associated with library components is to use Mask Probe Signals. The library model file needs to have a custom Subsystem (it can have additional blocks too), which can then be masked, and in the Subsystem Mask Parameters window there is a Probe Signals tab where you can define any internal signals you want accessible by a probe. In this way, you can probe the actual subsystem/library component itself when you drag it into a new model, and then monitor any of the signals you set up.
thank you for your answer. It’s clear for me.
This requires a structural change of the overall simulation model. Instead of having an outport signal from the library element, one can get the same signal by ‘probing’ the library element itself (if this is prepared in the right way).