Logo name
Edit Discussion
> Wait for value change

Image:ValueChange_BOOL_BD.png

Contents

SUMMARY

This function consists of a polymorphic VI wait for a value change event of a given control reference(s). It contains the following control types:

  • Boolean
  • Single Numeric
  • Double Numeric
  • I8 Numeric
  • I16 Numeric
  • I32 Numeric
  • U8 Numeric
  • U16 Numeric
  • U32 Numeric
  • Path
  • String

Additional functionality is available to monitor any type of control (generic reference), a list of controls (Array of generic references) and a N-D array. The VI supports a timeout after which it will exit. If a value change has happened before the time-out has terminated the new value of the control will be outputted. For generic references the variant value will be returned. If the reference references a control the changed item is returned with an array of changed items (1D situated).

MINIMUM LABVIEW VERSION

This submission as attached is written in LV7.1. This is the minimum version for user events

USE CASES

(1) In a sequence where the program waits on a value change of a specific control, it is useful to use event driven programming. This VI capsulates the needed code into one VI.

OPEN ISSUES

(1) The index of the changed item might better be returned as an array of clusters of 1D array, where each cluster describes the indices of the changed element

SVN Location

[1]

Links

Edit Discussion
This page was last modified 20:00, 20 March 2008.  This page has been accessed 298 times.  Content is available under Attribution 3.0 Privacy policy  About OpenG  Disclaimers 
Attribution 3.0
IpbWikiMediaWiki