|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#16
|
||||
|
||||
|
Re: Motor Control issues
Here is the Begin VI
|
|
#17
|
|||||
|
|||||
|
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?
|
|
#18
|
||||
|
||||
|
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 |
|
#19
|
|||||
|
|||||
|
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. Last edited by Mark McLeod : 22-01-2015 at 18:31. |
|
#20
|
||||
|
||||
|
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 |
|
#21
|
|||||
|
|||||
|
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. |
|
#22
|
||||
|
||||
|
Re: Motor Control issues
I have attached the Teleop and Begin VI's
I zipped the whole project and it exceeded the 5MB limit. |
|
#23
|
||||
|
||||
|
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 ![]() |
|
#24
|
|||||
|
|||||
|
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. |
|
#25
|
|||
|
|||
|
Re: Motor Control issues
Quote:
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|