02-19-2015 12:41 PM - edited 02-19-2015 12:44 PM
How can I do that I move a slider and if I it equals 2 then equals 3 then equals 5 turn then on a led?
Solved! Go to Solution.
02-19-2015 12:53 PM
I am not following what you want. A slider has many values between your endpoints. So how exactly are you determining that it was at 2, then 3, and then 5? You have to change to 4 before you can go to 5.
02-19-2015 12:57 PM
I want to detect the slider movement
02-19-2015 01:00 PM
Look at the value change event for the slider.
Keep track of the changes within an array in a shift register. When the pattern matches what you want, then act on it.
But as crossulz's pointed out, the change from 3 to 5 might inherently have a value change to 4 in between. Does that mess you up? You may also have to add some code to handle the array and clear things out if the pattern is not what you want.
When do you want the LED to turn off?
02-19-2015 01:00 PM
@elefank wrote:
I want to detect the slider movement
Well that is a simple Event Structure using the slider's Value Change event.
02-19-2015 01:50 PM
can you help me how do it? I am very amatuer and i cant do it 😞
02-19-2015 01:57 PM
@elefank wrote:
can you help me how do it? I am very amatuer and i cant do it 😞
There is no shortcut.
LEARN how to program in LabVIEW. http://www.ni.com/academic/students/learn-labview/
02-19-2015 02:18 PM
@elefank wrote:
can you help me how do it? I am very amatuer and i cant do it 😞
3 Hour Introduction
6 Hour Introduction
LabVEW Basics
Self Paced training for students
Self Paced training beginner to advanced, SSP Required
LabVIEW Wiki on Training
Learning NI
Getting Started with NI Products
02-19-2015 02:28 PM
you linked a lot of things what help me nothing because none of them tell me how i can detect my sliders moving but okey ty
02-19-2015 02:30 PM
@elefank wrote:
you linked a lot of things what help me nothing because none of them tell me how i can detect my sliders moving but okey ty
We already told you to use an Event Structure. Those tutorials will teach you to use them.