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.
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.
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?
There has been a short female-to-female PWM cable included in the Kit before.
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?
You can make whatever you like. I know a lot of teams get PWM cable components from Hansen Hobbies.
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?
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.
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.
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.
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