Bump, Is there any other way where I can correct the timing at the first step?
First Run Clock Time from Memory Block
2 views (last 30 days)
Show older comments
Hello, I am new to Simulink world, and trying to build an algorithm which depends on the simulated clock timing. Everything runs fine, except the very first time step. My algorithm uses a Memory block with clock input to detect the timing between two pulses of a crank. When I run the simulation, since the memory block initialization value is set to be 0, it gives wrong pulse time at the first simulated time step. Is it possible for the memory block to output the time when its called at the first simulation step, as an initial value?
0 Comments
Answers (1)
See Also
Categories
Find more on Sources in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!