how do i wire the vi's in the teleop vi to program bttons to the arm

:slight_smile: help please.

You keep asking nebulous questions that we can’t answer without knowing what you want to do. Nobody here has any information about what motors are connected to your arm, or what its mechanical design is. Only you can decide what buttons you want to assign to which functions.

If you want to know how to make a motor move when you press a button, then ask that. If you want to know how to make a motor drive an arm to a specific position and hold it there when you press a button, then ask that. If you want to know how to read a Joystick button in LabVIEW, then ask that.

The basic idea here is that you need to ask specific questions about how to accomplish a specific task.

motor or servo move when you press a button, i don’t care about anything else. that is what i’ve been asking the whole time.

Motors and servos are two entirely different things.

If you want a servo to move, you have to change the PWM value you’re sending to it. That’s usually done using the Servo Set Angle function. It will go to the commanded location and stay there until you change the PWM value again. To power a servo, you must install the “servo power” jumper next to the PWM connector on the Digital Sidecar.

What motor are you intending to control? Will you want to be able to vary its speed, or will it be sufficient to have it change from off to full speed one way or the other? Simple on/off control can be done using a Spike relay module. To have variable speed, you must use a Jaguar or Victor speed controller. Note that the CIM and Fisher Price motors can’t be controlled using a relay; they MUST be connected to a speed controller.

Do you know how to read the value of a button?
Do you know how to define a motor using the Motor Open and SetRefNum functions?
Do you know how to use the Motor GetRefNum and Set Output function?

Finally, have you ever looked at the tutorials on the http://www.frcmastery.com/ web site? I think they’d help you a lot.

and what about vex’s

and if you can send me a basic diagram of what a program that says ‘if this button is hit, this servo moves’, that would be great. this is exactly what i have been looking for.

What about them? I don’t understand the question.

Please recognize that I’m trying to help you. You’re just not making it easy for me to figure out what you want. If you answered the direct questions that are directed at you, you could get much better assistance.

I also think it would be great if you made an effort to use complete sentences.

how do i program a vex to move when i hit a button

I’m confused. I thought we were talking about FRC robots here. What do you mean by “a vex”? If you’re referring to the Logo-Motion minibot, they’re made from Tetrix components, not Vex.

There’s a real lack of communication going on, and I don’t think I can do any more than I already have. If someone else wants to try to find out what Ian needs help with, please go ahead. It’s never a good thing when someone in search of help doesn’t find it.

all right thanks.:slight_smile:

we are a rookie team so everything is very confusing.:confused: and this is my first year with labview while i have programed in c++ before so that makes a difference.

You need to pay attention to motor connections and speed controller connections for any wiring. after that you need to unbundle the joystick controller for buttons and axis information. Once you unbundle the buttons you can use boolean expressions to generate numerical data to connect to a drive or motor vi. Be careful about the compatibility of the sockets. You cannot wire a boolean socket to a numerical one. Have fun.

Mr. Anderson is also right. Make your questions specific also provide some details about wiring (on the robot).

do i put those in a case structer.

and which boolean exprssion, does it matter?

YES!!! I GOT IT!!!:slight_smile: :smiley: :smiley: :smiley: :smiley: THHHHHHAAAAAAANNNNNNKKKKKK YYYOOOUUU!!!

i still need to know if i can program a vex which will be our wrist motor on the arm using labview in the teleop and autonomous vi’s.