Example Code

Create a Stopwatch using LabVIEW

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

Download All

Overview
This example how to creat a stopwatch, based on producer consumer architecture, with an event structure in the producer loop to deal with the button presses.

 

Description

This example how to creat a stopwatch, based on producer consumer architecture, with an event structure in the producer loop to deal with the button presses.The result of the button press is sent as a notifier to the consumer loop where the timing algorithm is used.

 

Requirements

  • LabVIEW 2012(or compatible)


Steps to Implement or Execute Code

  1. Run the vi.
  2. Use the control cluster to change the visible tab.

 

Additional Information or References

Front Panel

FP.JPG

VI Snippet

BD.png

**This document has been updated to meet the current required format for the NI Code Exchange.**

Kevin R
Applications Engineer
National Instruments UK&Ireland

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