|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
labview adding button from joystick
Hello I am having a issues with adding a button into labview 2013. This is what i got so far in the programming I have no idea if this is even right thanks.
|
|
#2
|
||||
|
||||
|
Re: labview adding button from joystick
Assuming you initialized the joystick in the begin vi (it is if you didn't modify the default code), it looks ok.
It looks like you are checking button 1 of the joystick. If it is true (ie pressed) you stop the motor, else false you pass the values from the axis to your motor. |
|
#3
|
|||
|
|||
|
Re: labview adding button from joystick
Precisely.Well the button works in the simulator and the motor stops but nothing is moving. Basically its for our launcher press button 1 and the 2 motor start and the drive motors stop.
|
|
#4
|
||||
|
||||
|
Re: labview adding button from joystick
It looks like you have the "drive motors stop" part, but you are missing "the 2 motor start" part.
|
|
#5
|
|||
|
|||
|
Re: labview adding button from joystick
so do i add something like this?
|
|
#6
|
||||
|
||||
|
Re: labview adding button from joystick
|
|
#7
|
||||
|
||||
|
Re: labview adding button from joystick
The part you added goes in your Begin.vi
|
|
#8
|
||||
|
||||
|
Re: labview adding button from joystick
Add this to your Begin.VI
|
|
#9
|
|||
|
|||
|
Re: labview adding button from joystick
would the buttons work in the simulator? and THe robot just spins in cercles in the simulator.
|
|
#10
|
|||
|
|||
|
Re: labview adding button from joystick
here the begin and teleop updated
|
|
#11
|
|||
|
|||
|
Re: labview adding button from joystick
teleop true
|
|
#12
|
||||
|
||||
|
Re: labview adding button from joystick
To use the 2 Motor Open with a Tank drive for your launcher.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|