First Run Clock Time from Memory Block

2 views (last 30 days)
PAR
PAR on 9 Jul 2014
Answered: PAR on 10 Jul 2014
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?

Answers (1)

PAR
PAR on 10 Jul 2014
Bump, Is there any other way where I can correct the timing at the first step?

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!