LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

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

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?

0 Kudos
Message 1 of 12
(3,936 Views)

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.


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 12
(3,923 Views)

I want to detect the slider movement

0 Kudos
Message 3 of 12
(3,920 Views)

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?

0 Kudos
Message 4 of 12
(3,909 Views)

@elefank wrote:

I want to detect the slider movement


Well that is a simple Event Structure using the slider's Value Change event.


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 5 of 12
(3,908 Views)

can you help me how do it? I am very amatuer and i cant do it 😞

0 Kudos
Message 6 of 12
(3,876 Views)

@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/

0 Kudos
Message 7 of 12
(3,867 Views)

@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


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 8 of 12
(3,858 Views)
Solution
Accepted by topic author elefank

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

0 Kudos
Message 9 of 12
(3,852 Views)

@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.


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 10 of 12
(3,848 Views)