Simulating computation time with OpDelay
Context
I want to be able to simulate a computation charge, because I want to know the stability limit of my system. How can I do that ?
Solution
You can use the OpDelay block (RT-LAB/Monitoring Simulink library) to simulate computation time. This block will introduce a delay (this value is set in microsecond) in computation. Your stability limit is reached as soon as you get overruns ! Note that if Delay value is 0 it does not affect at all the computation time.
Please refer to attached model and attached picture.
keywords : OpDelay, computation, microsecond
rtdemo1.mdl - Example model
using_OpDelay.jpg - Example of obtained result

.png)