Chief Delphi

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

Jack Gillespie 22-01-2015 16:57

Re: Motor Control issues
 
1 Attachment(s)
Here is the Begin VI

Alan Anderson 22-01-2015 17:16

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?

Jack Gillespie 22-01-2015 18:00

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

Mark McLeod 22-01-2015 18:29

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.

Jack Gillespie 22-01-2015 19:03

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

Mark McLeod 22-01-2015 19:22

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.

Jack Gillespie 22-01-2015 19:51

Re: Motor Control issues
 
2 Attachment(s)
I have attached the Teleop and Begin VI's
I zipped the whole project and it exceeded the 5MB limit.

Jack Gillespie 23-01-2015 19:12

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

:D

Alan Anderson 24-01-2015 09:21

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.

icq10 24-01-2015 14:14

Re: Motor Control issues
 
Quote:

Originally Posted by Jack Gillespie (Post 1432228)
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?:confused:

Is this just a simple motor test program or are you about to use tank drive mode on your robot?


All times are GMT -5. The time now is 20:19.

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