Example Code

Event Based Numeric Slide Bar in LabVIEW

Code and Documents

Attachment

Overview:
This VI exemplifies how use a value change update event to update an indicator.

 

Description:

This VI takes a more advanced approach on a very simple concept.The VI contains a numeric slide bar and a numeric indicator. However, the slide bar doesn't directly correspond to the indicator. Instead, whenever the slide bar is changed, it causes an event that changes a local variable. The local variable changing then causes another event to happen where the numeric indicator is changed.
Again, this VI is a very simple concept with the added functionality of the event structures.

 

Requirements:

LabVIEW 2012 or compatible

Steps to Implement or Execute Code:
1. Run the VI.
2. Change the value of the slider and verify that the value of the numeric control is update. A change on the numeric control should update the value of the slider.

Additional Information or References:


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

 

 

Chris Van Horn
Applications Engineer

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