Go to Post This is how students can be inspired! - Rich Wong [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 27-01-2009, 00:10
trilogy2826's Avatar
trilogy2826 trilogy2826 is offline
Mentor - 2826
AKA: Jake Fischer
FRC #2826 (Wave Robotics)
Team Role: Mentor
 
Join Date: Nov 2008
Rookie Year: 2006
Location: Oshkosh, WI
Posts: 113
trilogy2826 has a reputation beyond reputetrilogy2826 has a reputation beyond reputetrilogy2826 has a reputation beyond reputetrilogy2826 has a reputation beyond reputetrilogy2826 has a reputation beyond reputetrilogy2826 has a reputation beyond reputetrilogy2826 has a reputation beyond reputetrilogy2826 has a reputation beyond reputetrilogy2826 has a reputation beyond reputetrilogy2826 has a reputation beyond reputetrilogy2826 has a reputation beyond repute
Open motor reference on Slot 6 DIO Module

I thought I was a pretty decent LabView "coder" after using it for over 3 years, and I'm actually happy to say that I've found something that has stumped me. I am attempting to open a motor reference in the Advanced framework Begin.vi and select PWM channels for eventually controlling motors connected to the sidecar on the Slot 6 DIO module. Slot 4 is selected by default internally in the OPEN X MOTOR.vi and since there is not an external connector to the outside of this vi for selecting the slot, I can think of only two (relatively cumbersome) ways of changing the slot reference:

1. Change the lib vi to extend the slot through the vi connector. I have a feeling this would be a bad idea because updates would probably break this

2. Decompose the open motor output cluster and insert my new reference to the slot in the cluster output. Blah

I know there is an easier way and I appreciate the help
Reply With Quote
  #2   Spotlight this post!  
Unread 27-01-2009, 08:24
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,748
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Open motor reference on Slot 6 DIO Module

What you are seeing is the result of WPI lib trying to make the drive class look really simple. To do this, params were left out such as the slot.

I don't have the code open, but I'll list a few other choices which are perhaps less cumbersome.

1. Use slot 4 for the drive motors, and the other slot for mechanism motors.
2. Look at the drive class. It doesn't do much anyway. The primary benefit is probably the joysick differential algorithms. You can drop down and directly interact with the motor class.

If you do decide to change the Drive library, you may want to save it to a new location. It is unlikely to change again, but you wouldn't want an updater to back out your changes.

Greg McKaskle
Reply With Quote
  #3   Spotlight this post!  
Unread 27-01-2009, 08:42
trilogy2826's Avatar
trilogy2826 trilogy2826 is offline
Mentor - 2826
AKA: Jake Fischer
FRC #2826 (Wave Robotics)
Team Role: Mentor
 
Join Date: Nov 2008
Rookie Year: 2006
Location: Oshkosh, WI
Posts: 113
trilogy2826 has a reputation beyond reputetrilogy2826 has a reputation beyond reputetrilogy2826 has a reputation beyond reputetrilogy2826 has a reputation beyond reputetrilogy2826 has a reputation beyond reputetrilogy2826 has a reputation beyond reputetrilogy2826 has a reputation beyond reputetrilogy2826 has a reputation beyond reputetrilogy2826 has a reputation beyond reputetrilogy2826 has a reputation beyond reputetrilogy2826 has a reputation beyond repute
Re: Open motor reference on Slot 6 DIO Module

Thanks for the response Greg. I liked the convenience of having all the params grouped together, so I ended up copying the 2 motor open VI to a new VI and pulling the slot params out of the block. We have a three motor drive system, in which each are independently controlled, so I added another motor while I was at it.
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
1 Open Slot for BattleCry WernerNYK Off-Season Events 1 09-06-2007 12:26
Gear tooth sensor / GTS on DIO 3,4,5,6? demerski Programming 5 07-02-2006 21:04
Taking apart the motor control module Adam Y. FIRST Tech Challenge 1 15-04-2005 14:02
Anyone have an open slot for IRI hotel room? miketwalker Off-Season Events 0 15-07-2003 21:45
Module 7 gear -- fischer price motor archiver 2001 6 23-06-2002 22:55


All times are GMT -5. The time now is 08:23.

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