Hello Francesco,
To address the freezing of your Simulink model at T=0.000s when assigning a constant value of 0 to the “M3 DC motor” block, consider the following steps:
- Ensure the “Arduino Nano 33 IoT” is properly connected to your computer.
- Check that the model is configured for External mode, as required for Monitor & Tune operations.
- Use a small non-zero constant input to confirm the motor block responds, as a zero value indicates no movement.
- Isolate the Motor Block: Create a minimal model with only the “M3 DC motor” block to rule out other model complexities.
Implement these steps to diagnose and potentially resolve the simulation halt.
You can refer to the following documentation to know the expected behaviour during Simulation of “M3 M4 DC Motors”: https://in.mathworks.com/help/supportpkg/arduino/ref/m3m4dcmotors.html#:~:text=Block%20Produces%20Zeros%20or%20Does%20Nothing%20in%20Simulation.