LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I use a single element as a control and indicator at the same time?

I have a question about Labview because I'm a new guy here. Thanks

 

I'm doing my homework and there is a problem.The question requires me to have a slidebar control and if it exceeds a specific number, the slidebar will automatical drops down gradually until it's smaller than that number. So what function should I use.Thanks again

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

You can use a local variable to write to the control.  But the better solution would be to just limit the allowed input via the Data Entry menu (right-click on the control and click "Data Entry...").


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 2 of 4
(2,827 Views)

Thanks for your ans but I have to make a case that it will exceed the number to test whether it drops down or not ( the requirement is I have to make a slidebar drops down ). Thanks

0 Kudos
Message 3 of 4
(2,810 Views)

You need to be aware of race conditions. For example the code should not fight the user while the control is operated. Use an event structure and initiate the correction algorithm on e.g. "mouse up" or similar. Use the timeout event to bring the value slowly within range.

0 Kudos
Message 4 of 4
(2,780 Views)