Example Code

CLD Timer Recommendation

Products and Environment

This section reflects the products and operating system used to create the example.

To download NI software, including the products shown below, visit ni.com/downloads.

    Software

  • LabVIEW

Code and Documents

Attachment

Description

 Developers interested in the certification need to have into consideration that the vast majority of applications that are requested in the CLD certification require the functionality of a timer. There is a built-in express VI in LabVIEW that is called 'Elapsed Time' that has the required inputs and outputs, but it is not recommended to use it in the certification exam. 

Instead of using the express VI, it is recommended to use a manual implementation of the timer that receives the date & time in seconds, the timer mode, and the time target numeric value and provides the boolean elapsed time? and the numeric elapsed time. Usually, there are some basic timer modes that must be included in order to make sure that the general required functionality is met. These are Start Time, Read Time, Pause Time, and Resume Time. 

This implementation has a while loop with a true constant as the conditional terminal and the timer mode is used to select the corresponding case. Attached to this article, there is an example called 'CLD Timer' which includes the general implementation of the recommended code for the Timer for LabVIEW 2022 Q3 32-bit.

Related Links

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.

Comments
jvon20
Member
Member
on

Any way that pics of the algorithm could be posted or in an older version of LabVIEW (E.g. 2021)?

Bas.v.E
Member
Member
on

There is also a typedef missing in the VI, but it's still usable when disconnecting the typedef

 

@jvon20

 

CLDTimerVI.png

kumar58
Member
Member
on

Screenshot 2024-11-22 221645.pngScreenshot 2024-11-22 221803.pngScreenshot 2024-11-22 222050.pngScreenshot 2024-11-22 222132.png