|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
Button motor control...
Hey were a rookie team and im trying to configure the default file of labview and what im trying to do is have ex: button 6 move 1 motor forward, then assign button 7 to move the same motor but reverse? how do i do it?
![]() |
|
#3
|
|||
|
|||
|
Re: Button motor control...
Where is the "buttons" control and where are those triangle shaped codes? cant find anywhere btw ty for post helpful just rookie
![]() |
|
#4
|
|||||
|
|||||
|
Re: Button motor control...
The triangle thing is a Select Node. If the boolean wired to the middle is true, then it will output the value wired to the top input. If the boolean is false, it will return the value wired to the bottom input.
The "buttons control" is an Unbundle By Name function. It takes a cluster input (the output to Joystick Get) and will "split" it up into its individual values. As for controlling a motor via two buttons, I like to do it the attached way. |
|
#5
|
|||
|
|||
|
Re: Button motor control...
Quote:
how do i set it? |
|
#6
|
||||
|
||||
|
Re: Button motor control...
this is another way of approaching the problem you are having..and as you can see you can change the speed of the motor, to your liking..we needed to slow a motor down, so instead of using 1 and -1, we used .4 and -.4
|
|
#7
|
|||
|
|||
|
just realized... umm, we need to control a total of 2 motors but separte funtctions ex:
motor 1 (move when one of the 2 buttons pushed) 2 way funtion - button 1fwd and button 2reverse motor 2 (move when one of the 2 buttons pushed) 2 way funtion - button 3fwd and button 4reverse but on buttons so if i use this on the robot main config file and put it in the teleop file, how can i do that its not just one motor is two in same project but seperat... so i can save pwm's |
|
#8
|
|||||
|
|||||
|
Re: Button motor control...
If you want to control one motor with two buttons, and another motor with two other buttons, just put another copy of the code next to the first one and change the buttons and refnum name.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|