Timer Blocks

Let time drive the next event.

Explore timer components and their configuration. Keep trigger behavior and timing requirements aligned with the intended workflow.

Timers


Alarm_Active

AlarmActive

File: general_blocks/Timers/Alarm_Active.sim

Description
The model which executes to represent the activation of an alarm. The alarm
will be activated after the amount of time has passed which was specified when
the alarm was set by the Set_Alarm model. The alarm can be canceled by a
Cancel_Alarm model.
Ports

Input Ports

  • none

Output Ports

  • Active Data Type: TRIGGER

Parameters

  • Alarm_Name Data Type: CHARACTER

Cancel_Alarm

CancelAlarm

File: general_blocks/Timers/Cancel_Alarm.sim

Description
The model cancels the alarm set by the Set_Alarm model.
Ports

Input Ports

  • Cancel     Data Type: TRIGGER

Output Ports

  • none

Parameters

  • Alarm_Name Data Type: CHARACTER

Cancel_Timer

CancelTimer

File: general_blocks/Timers/Cancel_Timer.sim

Description
The model is used to terminate, or cancel, an outstanding timer.
Ports

Input Ports

  • handle     Data Type: INTEGER

Output Ports

  • none

Parameters

  • none

Reset_Timer

Reset Timer

File: general_blocks/Timers/Restart_Timer.sim
Description
The model cancels a timer, then starts another one.
Ports

Input Ports

  • timeout     Data Type: REAL
  • handle      Data Type: INTEGER

Output Ports

  • none

Parameters

  • none

Residual_Time

ResidualTime

File: general_blocks/Timers/Residual_Time.sim
Description
The model is used to determine the time remaining until a timer
expires. If the timer is not scheduled, then a negative value will be
placed on the output.
Ports

Input Ports

  • handle     Data Type: INTEGER

Output Ports

  • residual     Data Type: REAL

Parameters

  • none

Service_Timer

ServiceTimer

File: general_blocks/Timers/Service_Timer.sim
Description
The model is used to signal that a timer has expired, or gone off.
When a timer expires, the model produces an output that identifies
which timer has expired.
Ports

Input Ports

  • none

Output Ports

  • Active     Data Type: INTEGER

Parameters

  • Alarm_Name     Data Type: CHARACTER

Set_Alarm

SetAlarm

File: general_blocks/Timers/Set_Alarm.sim
Description
Model sets an alarm to be activated after the specified time.
Ports

Input Ports

  • timeout     Data Type: REAL

Output Ports

  • none

Parameters

  • Alarm_Name     Data Type: CHARACTER

Start_Timer

StartTimer

File: general_blocks/Timers/Start_Timer.sim
Description
The model is used to start, or set, a timer.
Ports

Input Ports

  • timeout     Data Type: REAL
  • handle      Data Type: INTEGER

Output Ports

  • none

Parameters

  • none

This page is an editorial rewrite of source documentation. Historical status, availability, and platform notes are not independently verified for a current release. Technical examples are reference material, not a live simulator.