LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Events based on Properties of Controls

An example of what I'm trying to accomplish:

 

Consider trying to create an event that triggers when the user changes the Max or Min of the Range of a Slider control.

 

I'd rather not have to poll the control's range to detect the value change. I would much prefer to have an event registered for it.

0 Kudos
Message 1 of 4
(1,083 Views)

How does your user change the Min/max settings for a slide in a running program/vi ?

I cann't do it.

 

0 Kudos
Message 2 of 4
(1,082 Views)

A similar question was asked at LAVA recently.

 

Long story short, poll the properties, then fire a user event. 

 

Ton 

Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
0 Kudos
Message 3 of 4
(1,072 Views)

@dkfire wrote:

How does your user change the Min/max settings for a slide in a running program/vi ?

I cann't do it.

 


If you select the text of the scale at the top or bottom you can enter new values.  Theses entered values are then applied as new min or max limits.

 

There is no direct access to an event when the min or max limits change (You could post this on the Idea exchange)

 

This snippet demonstrates one method of generating events by polling the silder

aa.png


"Should be" isn't "Is" -Jay
0 Kudos
Message 4 of 4
(1,070 Views)