LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to joystick

    Joystick is moved to right direction. I want to fixed (26525) when joystick is released. But slide value returns to zero when joystick is released.

0 Kudos
Message 1 of 5
(2,826 Views)

Right now you are blindly updating the indicator with the joystick value. You need to update the indicator when there's a change in the joystick value. This means you need to keep track of the current value and compare it to the previous value. If there's a change, update the indicator. Otherwise, don't. Either a shift register or feedback node will work.

 

Side-note: do not use the Run Continous button. Your VI already has a loop.

Side-note 2: Do not place the Initialize VI inside the loop. Initialize outside, do work inside, and then close when loop is done. Please see the examples that ship with LabVIEW.

0 Kudos
Message 2 of 5
(2,809 Views)

I didn't understand.More information or can you joystick VI.

0 Kudos
Message 3 of 5
(2,790 Views)

What don't you understand? What a shift register is? It's used to pass a value around in a loop. Have you done any basic LabVIEW tutorials? To learn more about LabVIEW it is recommended that you go through the introduction material, tutorial(s), and other material in the NI Developer Zone's Learning Center which provides links to other materials and other tutorials. There are also several Technical Resources. You can also take the online courses for free.

0 Kudos
Message 4 of 5
(2,779 Views)

Thank you...

0 Kudos
Message 5 of 5
(2,771 Views)