Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI
2 ratings:
 4 out of 5     Rate this Document

How Trigger an Action at a Reoccurring Time or Date in Lookout?

Primary Software: Lookout
Primary Software Version: 5.1
Primary Software Fixed Version: N/A
Secondary Software: N/A

Problem: I want to programmatically set the time for an action to occur, such as archiving my database or change the text in a text display. I already understand how to enable them on the rising edge of a pushbutton. How do I make the action occur at the same time every day?

Solution: Lookout has many different timers that serve different purposes. The timers that would be ideal for timing re-occurring events are the:

TimeOfMinute
TimeOfHour
TimeOfDay
TimeOfWeek
TimeOfMonth
TimeOfYear

Each of these functions properties page looks the same. The input parameters are:

On/off signal » sets whether the timer is On or Off
Timer offset » specifies the time for the Timer to turn Timer1.value On
Timer duration » specifies the how long the Timer should keep Timer1.value On
Display format » specifies the format the time and/or date will be specified in

The following example shows a TimeOfDay timer that will turn it’s output (referenced as Timer1) Boolean on at 10:00am (10:00pm = 22:00) and the duration of the pulse will be 10 seconds.



Related Links:

Attachments:


timeofday.gif


Report Date: 05/12/2004
Last Updated: 05/14/2004
Document ID: 39B9EQ9U

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
  1 2 3 4 5
Please Contact NI for all product and support inquiries.submit