Go to Post dang. I wish my legs were as good as Dave's. - Amanda Morrison [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 19-02-2013, 03:45
Team3763 Adam Team3763 Adam is offline
Lead Programmer
FRC #3763 (4H WildCards)
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 2010
Location: North Carolina
Posts: 157
Team3763 Adam can only hope to improve
Exclamation 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.
Reply With Quote
  #2   Spotlight this post!  
Unread 19-02-2013, 08:25
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
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.
Reply With Quote
  #3   Spotlight this post!  
Unread 19-02-2013, 12:27
Team 3763 Peter Team 3763 Peter is offline
Registered User
FRC #3763
 
Join Date: Feb 2013
Location: 4-H Jacksonville, NC
Posts: 2
Team 3763 Peter is an unknown quantity at this point
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?
Reply With Quote
  #4   Spotlight this post!  
Unread 19-02-2013, 12:34
Mark McLeod's Avatar
Mark McLeod Mark McLeod is online now
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,833
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: VEX Motor controller?

There has been a short female-to-female PWM cable included in the Kit before.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Reply With Quote
  #5   Spotlight this post!  
Unread 19-02-2013, 12:55
Team 3763 Peter Team 3763 Peter is offline
Registered User
FRC #3763
 
Join Date: Feb 2013
Location: 4-H Jacksonville, NC
Posts: 2
Team 3763 Peter is an unknown quantity at this point
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?
Reply With Quote
  #6   Spotlight this post!  
Unread 19-02-2013, 13:41
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: VEX Motor controller?

Quote:
Originally Posted by Team 3763 Peter View Post
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 View Post
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?
Reply With Quote
  #7   Spotlight this post!  
Unread 19-02-2013, 13:50
Team3763 Adam Team3763 Adam is offline
Lead Programmer
FRC #3763 (4H WildCards)
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 2010
Location: North Carolina
Posts: 157
Team3763 Adam can only hope to improve
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.
Reply With Quote
  #8   Spotlight this post!  
Unread 19-02-2013, 14:55
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: VEX Motor controller?

Quote:
Originally Posted by Team3763 Adam View Post
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.
Reply With Quote
  #9   Spotlight this post!  
Unread 19-02-2013, 16:49
Team3763 Adam Team3763 Adam is offline
Lead Programmer
FRC #3763 (4H WildCards)
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 2010
Location: North Carolina
Posts: 157
Team3763 Adam can only hope to improve
Re: VEX Motor controller?

Quote:
Originally Posted by Alan Anderson View Post
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.

Click image for larger version

Name:	finish.jpg
Views:	24
Size:	127.0 KB
ID:	14119
Click image for larger version

Name:	Untitled.png
Views:	18
Size:	30.2 KB
ID:	14120
Click image for larger version

Name:	teleop.jpg
Views:	18
Size:	114.0 KB
ID:	14121
Reply With Quote
  #10   Spotlight this post!  
Unread 19-02-2013, 17:19
Justin Shelley's Avatar
Justin Shelley Justin Shelley is offline
Registered User
FRC #3885 (Shockers)
Team Role: Driver
 
Join Date: Jan 2013
Rookie Year: 2012
Location: Farmington, MO
Posts: 178
Justin Shelley is on a distinguished road
Send a message via MSN to Justin Shelley
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
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 22:52.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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