Good evening.
I am running a simulation in Simulink/Simscape with a fundamental sample time (set in the Powergui block) equal to 5e-6 seconds.
Then in the model I need to run a certain code each 5e-3 seconds; I tryed to make it with a triggered subsystem containing the MATLAB Function block where the code is written, but I get an error message. I also tried to latch the inputs but still it does not work.
The main model is this one
while the triggered subsystem is this one
Finally, this is the error message
.
Thank you for your kind help.
Alberto
Best Answer