Pause of Fractional Seconds in Generated Code
2 views (last 30 days)
The help file for pause.m says the following in the notes about Code Generation:
The generated code truncates pause delay values to uint32 range during run-time execution.
I believe that means that fractional seconds less than 0.5 s (i.e. pause(0.1) ) will round to zero and no pause will happen in the generated code. Can someone confirm this?
If I am correct about this, is there a work around to do fractional exectuation pauses in generated code?
Matthew DiBello on 3 Feb 2023
Edited: Matthew DiBello on 6 Feb 2023
Your understanding is incorrect. In code generation, pause supports fractional values. The line from the documentation that you are referring to indicates that the maximum sleep duration is the max value of uint32.