Go to Post Wisdom is knowing the difference between "the way to do things" and "the right way to do things." Just because an action may be physically possible does not mean that it is smart to do. - dlavery [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
  #16   Spotlight this post!  
Unread 22-01-2015, 16:57
Jack Gillespie's Avatar
Jack Gillespie Jack Gillespie is offline
Registered User
FRC #5430 (Pirate Robolution)
Team Role: Teacher
 
Join Date: Nov 2008
Rookie Year: 2009
Location: Vallejo California
Posts: 48
Jack Gillespie is an unknown quantity at this point
Re: Motor Control issues

Here is the Begin VI
Attached Thumbnails
Click image for larger version

Name:	begin vi.png
Views:	20
Size:	186.4 KB
ID:	17947  
Reply With Quote
  #17   Spotlight this post!  
Unread 22-01-2015, 17:16
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,112
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: Motor Control issues

Nothing jumps out at me as being wrong. Are you certain you're running the program with the corrected RefNum Get?
Reply With Quote
  #18   Spotlight this post!  
Unread 22-01-2015, 18:00
Jack Gillespie's Avatar
Jack Gillespie Jack Gillespie is offline
Registered User
FRC #5430 (Pirate Robolution)
Team Role: Teacher
 
Join Date: Nov 2008
Rookie Year: 2009
Location: Vallejo California
Posts: 48
Jack Gillespie is an unknown quantity at this point
Re: Motor Control issues

I will check it again but I think we have it right.
When the students look at the Begin VI and open Joystick open VI for joystick 0, or Joystick 1 both VI's have exactly the same settings including when we open the joystick open vi block diagram.
The same true when they look at the joystick set VI's

That does not seem right to me
Reply With Quote
  #19   Spotlight this post!  
Unread 22-01-2015, 18:29
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
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,731
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: Motor Control issues

Are there any error messages on the Driver Station in the window on the right?

I know you've found the Driver Station USB tab, but recheck the Driver Station USB tab to see where the joysticks are.
Make sure they are listed next to USB 0 and USB 1.
Click on each joystick listed on the Driver Station tab to test the axis feedback on the Dashboard.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 22-01-2015 at 18:31.
Reply With Quote
  #20   Spotlight this post!  
Unread 22-01-2015, 19:03
Jack Gillespie's Avatar
Jack Gillespie Jack Gillespie is offline
Registered User
FRC #5430 (Pirate Robolution)
Team Role: Teacher
 
Join Date: Nov 2008
Rookie Year: 2009
Location: Vallejo California
Posts: 48
Jack Gillespie is an unknown quantity at this point
Re: Motor Control issues

We have checked the USB settings on the DS.
The error message is "FRC: An invalid set operation occurred, and the PWM channel was not allocated" But I have double checked the Begin VI multiple times using context help to make sure the joystick and motor vi's are Joystick and motor set refnum vi's

Thanks everyone, this is driving us nuts
Jack Gillespie
Reply With Quote
  #21   Spotlight this post!  
Unread 22-01-2015, 19:22
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
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,731
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: Motor Control issues

One of your Set vi's is wrong then, according to the error message.

Can you .zip your project and post that?
It's in your Documents folder under the LabVIEW data folder.
If you don't have zip then post just the Begin & Teleop vi's by adding a ".txt" file extension to fool CD.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Reply With Quote
  #22   Spotlight this post!  
Unread 22-01-2015, 19:51
Jack Gillespie's Avatar
Jack Gillespie Jack Gillespie is offline
Registered User
FRC #5430 (Pirate Robolution)
Team Role: Teacher
 
Join Date: Nov 2008
Rookie Year: 2009
Location: Vallejo California
Posts: 48
Jack Gillespie is an unknown quantity at this point
Re: Motor Control issues

I have attached the Teleop and Begin VI's
I zipped the whole project and it exceeded the 5MB limit.
Attached Files
File Type: vi Begin.vi (16.8 KB, 6 views)
File Type: vi Teleop.vi (20.0 KB, 5 views)
Reply With Quote
  #23   Spotlight this post!  
Unread 23-01-2015, 19:12
Jack Gillespie's Avatar
Jack Gillespie Jack Gillespie is offline
Registered User
FRC #5430 (Pirate Robolution)
Team Role: Teacher
 
Join Date: Nov 2008
Rookie Year: 2009
Location: Vallejo California
Posts: 48
Jack Gillespie is an unknown quantity at this point
Talking Re: Motor Control issues

Thank you one and all, we are not sure how we fixed the problem, but we did.
We ended up starting all over from scratch and it worked.
We never did find our error. But the students are now moving on to pneumatics

Reply With Quote
  #24   Spotlight this post!  
Unread 24-01-2015, 09:21
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,112
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: Motor Control issues

I finally got the chance to look at your Teleop. The problem with it was kind of amusing. You were closing your joysticks and drive motors as soon as you used them, so the next time through Teleop they weren't open anymore and the RefNum Get couldn't find what it's looking for.

I can't think of a good reason to use a Close anywhere except in Finish. Even there, it's not really necessary, because Finish never actually runs in normal use.
Reply With Quote
  #25   Spotlight this post!  
Unread 24-01-2015, 14:14
icq10 icq10 is offline
Registered User
no team
 
Join Date: Jan 2015
Rookie Year: 2014
Location: Unknown
Posts: 24
icq10 is an unknown quantity at this point
Re: Motor Control issues

Quote:
Originally Posted by Jack Gillespie View Post
Ok, the kids got the mockup board working in Arcade Drive.
They have been trying to set up tank drive. When the try it out one joystick will work driving one motor on the x-axes, and the other motor on the y-axes.
I have attached the teleop code they created. What are we doing wrong?
Is this just a simple motor test program or are you about to use tank drive mode on your robot?
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 04:36.

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