Log in

View Full Version : VEX Motor controller?


Team3763 Adam
19-02-2013, 03:45
So, I've encountered a bump in the road.

How do I program the VEX Motor Controller 29 in LabVIEW? I've read how you treat it like Victor in begin, and I did this to no avail. Example images of how the code should look would be FANTASTIC, and I'm hoping we can sort out this hiccup before bag-and-tag tomorrow.

Alan Anderson
19-02-2013, 08:25
Treat it in software like a Victor. Treat it in hardware like a servo. It needs to get its power from the Digital Sidecar, so you must install the power jumper for the PWM channel it's connected to.

Team 3763 Peter
19-02-2013, 12:27
We've programmed to specification, but the male connector from the VEX motor controller posed a problem, and we had to force a male connector to become a female connector; that might be what's causing problems, but everything else checks out fine. Is there any way to buy PWM's with female-only connectors?

Mark McLeod
19-02-2013, 12:34
There has been a short female-to-female PWM cable included in the Kit before.

Team 3763 Peter
19-02-2013, 12:55
Somewhere within the past 4 years, we've probably misplaced those cables. If we clipped the pins from the male connector, and shaped the remaining bit to resemble the female connector, is there any chance that our creation would work? In our Labview code, we have the VEX programmed as a single motor Victor, and it's using a button on our joystick to operate. Is there anything potentially missing in code?

Alan Anderson
19-02-2013, 13:41
Is there any way to buy PWM's with female-only connectors?

You can make whatever you like. I know a lot of teams get PWM cable components from Hansen Hobbies (http://www.hansenhobbies.com/).

If we clipped the pins from the male connector, and shaped the remaining bit to resemble the female connector, is there any chance that our creation would work?

I wouldn't count on it.

In our Labview code, we have the VEX programmed as a single motor Victor, and it's using a button on our joystick to operate. Is there anything potentially missing in code?

Your code is probably okay. Did you check to make sure you had the servo power jumper installed on the Digital Sidecar?

Team3763 Adam
19-02-2013, 13:50
The VEX is jumped on the DS, and the connector has secure connections. We'll test it with a multimeter later on, but I'm confident it works.

Begin.vi

Single Motor refnum get and an Open Motor Victor - DM 1 PWM 8

Teleop

Single Motor refnum set and a Set Motor Output, based off of a true/false case with a button. T = 1 F = 0

Finish

Single Motor refnum set and close.

Alan Anderson
19-02-2013, 14:55
The VEX is jumped on the DS, and the connector has secure connections. We'll test it with a multimeter later on, but I'm confident it works.

I underlined a phrase in what you wrote. What does it mean?

Begin.vi

Single Motor refnum get and an Open Motor Victor - DM 1 PWM 8

Teleop

Single Motor refnum set and a Set Motor Output, based off of a true/false case with a button. T = 1 F = 0

Finish

Single Motor refnum set and close.

Your get should be a set and your sets should be gets.

Team3763 Adam
19-02-2013, 16:49
Your get should be a set and your sets should be gets.

My mistake, that's what they are in LabVIEW

The VEX Motor controller is wired into PWM slot 8 and it is jumped.

Attached is said code.

14119
14120
14121

Justin Shelley
19-02-2013, 17:19
on your male to female pwm issue. We always just cut the end of the controller off and solder pwm end on. Works every time