Hello Antonio,
I understand you're having trouble with executing a Processor-in-the-loop (PIL) block on demand within an enabled subsystem. Unfortunately, PIL blocks do not support disable semantics, hence they can't be placed in conditional execution contexts like enabled subsystems.
However, here are a couple of potential workarounds:
- 'If' Block: Use an 'if' block instead of an enabled subsystem to control the execution of your PIL block. The PIL block will always execute, but the results are only used when your specific condition is met.
- 'Trigger' Block: Use a 'Trigger' block to initiate the PIL block execution based on a specific event in your simulation.
Please refer to the below link for more details on PIL simulation with Raspberry Pi.
https://in.mathworks.com/help/ecoder/ug/sil-and-pil-verification-for-deployment-on-raspberry-pi.html
I hope these instructions help you.
Best Regards,
Asim Asrar