04-14-2017 08:05 AM
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
04-14-2017 08:18 AM
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...").
04-14-2017 09:10 AM
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
04-14-2017 12:40 PM
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.