Synchronize Simulink to real time
The Real-Time Sync block allows you to synchronize your Simulink® model with the real-time clock at Real-Time Sync block sample hits. The only parameters are those dealing with sample time and missed ticks. There are no input ports.
Enter a value representing how frequently you want to synchronize your model with the real-time clock.
Enter the number of timer ticks that your model can lag behind the real-time kernel. When the model lags by more than this number, the block reports an error and simulation stops. Otherwise, simulation continues even if some ticks are missed.
Select this check box to display the current number of missed ticks as a block output.
Select this check box to grant other programs more CPU time while the kernel waits for a response from the hardware.