100% found this document useful (1 vote)
366 views3 pages

CLD Exercise 3: Action Engine Timer Objective

The document describes developing a timer application in LabVIEW using a functional global variable. The timer must count up from 0 seconds to a time target while displaying elapsed time. When time expires, an LED turns on. It must support pause and resume. The timer uses date/time or tick count VIs and a provided front panel. It provides terminology, initialization requirements, and operation details for different timer modes.

Uploaded by

Erne514
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
100% found this document useful (1 vote)
366 views3 pages

CLD Exercise 3: Action Engine Timer Objective

The document describes developing a timer application in LabVIEW using a functional global variable. The timer must count up from 0 seconds to a time target while displaying elapsed time. When time expires, an LED turns on. It must support pause and resume. The timer uses date/time or tick count VIs and a provided front panel. It provides terminology, initialization requirements, and operation details for different timer modes.

Uploaded by

Erne514
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

CLD Exercise 3

CLD Exercise 3: Action Engine Timer


Objective
Develop a Functional Global Variable (FGV) timer using LabVIEW, either the ‘Get Date/Time
in Seconds’ or the ‘Tick Count (ms)’ timing VI’s, and the given application front panel (Figure
1).

Figure 1. Application Front Panel

General Operation
The timer application must count up from zero to the Time Target while displaying the elapsed
seconds in the Elapsed Time indicator. When the elapsed time has expired, the Has Time
Elapsed LED must turn ON. The timer must have pause and resume functionality.

Application Terminology
Elapsed Time
This indicator must continuously display the elapsed time in seconds and milliseconds.

Timer Mode
The Enum used for the FGV. This Enum has four values.
 Start Timer: Starts timer using the Time Target.
 Read Time: Calculates the current Elapsed Time and Has Time Elapsed status.
 Pause: Pauses Timing
 Resume: Resumes Timing

Time Target
The time in seconds used for the timer application.

Elapsed Time
This indicator must continuously display the elapsed time in seconds.

© 2013 National Instruments Page 1 of 3


CLD Exercise 3

Has Time Elapsed


This indicator turns ON when the time has expired. It is OFF whenever the time has not yet
elapsed.

Initialization
The Test VI must initialize as shown in Figure 1, and the front panel controls and indicators must
be in the following states.
 Timer Mode: Set to Start Timer
 Time Target: Set to 4 seconds
 Has Time Elapsed: Set to OFF
 Elapsed Time: Set to zero

Operation
Start Timer
Starting the VI must initiate the timing using the Time Target.

Read Time
This mode returns the elapsed time in seconds and milliseconds and the Has Elapsed Time
status.

Pause
This mode must pause the current elapsed time, and maintain the current state of the Has
Elapsed Time LED. The elapsed time must not increment.

Resume
This state must resume timing starting from the point of the previous elapsed time.

Questions
What is a method that can resolve the bit timer “turnover” event?

Can the Elapsed Time be used to implement a running total of time?

Does the day and year matter when using a time stamp?

© 2013 National Instruments Page 2 of 3


CLD Exercise 3

Challenge Exercise
Develop a timer that uses the ‘Get Date/Time in Seconds’ or ‘Tick Count’ timer VI’s but does not
require pause functionality.

There must be two states, Elapsed and Reset. The time target (Wait) is set during start phase,
not as a separate state.

Figure 2. AE timer with no pause, front panel

© 2013 National Instruments Page 3 of 3

You might also like