Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   NI LabVIEW (http://www.chiefdelphi.com/forums/forumdisplay.php?f=182)
-   -   VEX Motor controller? (http://www.chiefdelphi.com/forums/showthread.php?t=113926)

Team3763 Adam 19-02-2013 03:45

VEX Motor controller?
 
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

Re: VEX Motor controller?
 
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

Re: VEX Motor controller?
 
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

Re: VEX Motor controller?
 
There has been a short female-to-female PWM cable included in the Kit before.

Team 3763 Peter 19-02-2013 12:55

Re: VEX Motor controller?
 
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

Re: VEX Motor controller?
 
Quote:

Originally Posted by Team 3763 Peter (Post 1236334)
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.

Quote:

Originally Posted by Team 3763 Peter (Post 1236351)
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.

Quote:

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

Re: VEX Motor controller?
 
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

Re: VEX Motor controller?
 
Quote:

Originally Posted by Team3763 Adam (Post 1236398)
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?

Quote:

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

Re: VEX Motor controller?
 
3 Attachment(s)
Quote:

Originally Posted by Alan Anderson (Post 1236445)
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.

Attachment 14119
Attachment 14120
Attachment 14121

Justin Shelley 19-02-2013 17:19

Re: VEX Motor controller?
 
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


All times are GMT -5. The time now is 12:07.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi