To create events that occur on the RT Box in real-time there are a few options:
- Create a periodic disturbance. For example, by using a Pulse Generator block opposed to a Step block the disturbance is not tied to any particular time during the simulation. This is used in many demo models.
- Have the change be externally triggered. For example, if you are using one of the pre-designed interface board use one of the DIP switches to change a digital input. That digital input can then be used in conjunction with a Signal Switch to choose between different values. For offline simulation, you can route a Step block to the appropriate digital input port.
- Manually change the value using inlined parameters and the external mode.
Regarding the scope time, the total scope capture time in seconds is simply the product of the discretization step size, the number of samples, and the decimation.