Timer Object

You can insert a timer object in an iFIX picture. The timer object performs an operation based on an interval of time. You must enter VB code into the timer object's event for anything to actually occur. If you select the Edit Script button, VBE automatically launches and the cursor is positioned to the timer's OnTimeOut event. You can then enter code for the new timer object. If you select OK, the timer object is created but you will have to go in at a later date and enter the VB code for the timer.

The timer object event that is invoked is the OnTimeOut event. The timer has four different types of triggers for the OnTimeOut event:

  • 0 – One Shot
  • 1 – Continuous
  • 2 – Daily
  • 3 – Monthly

The default trigger type is Continuous. If you want to use a different trigger type, you will have to set the timer's TriggerType property to the correct number. For Example:

MyTimer.TriggerType = 0

Sets the timer trigger type to One-Shot.

Timer Name

Allows you to specify the name of the timer object.

Timer Description

Allows you to specify an optional description of the timer.

Start Time

Allows you to specify the start time for the Timer. The format must be in the following format:

hours: minutes: seconds 

Interval

Allows you to specify the time interval in milliseconds.

Edit Script

Applies and saves changes you have made, launches VBE to the timer object's OnTimeOut event, and closes the expert.