Go to Post Do what you do well and I'm sure there will be much hope in your future! - Collmandoman [more]
Home
Go Back   Chief Delphi > Technical > Control System
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 17-02-2016, 10:17
FRCTeam3293 FRCTeam3293 is offline
Registered User
FRC #3293
 
Join Date: Dec 2012
Location: Fergus Falls
Posts: 28
FRCTeam3293 is an unknown quantity at this point
Help with Labview please

We trying to assist a rookie team with Labview. They are simply trying to control one motor using a victor SP. Can someone offer a suggestion? The entire message is below:

"We had it yesterday, but sadly it did not work this is what we did. We put the program on the begin VI, not sure if that’s where it goes. It allows me to run the main VI, but I get an error in the driver station that says “The refNum trying to get does not exist in the refNum Registry”."
Attached Thumbnails
Click image for larger version

Name:	CD Pic.jpg
Views:	83
Size:	14.3 KB
ID:	20093  
Reply With Quote
  #2   Spotlight this post!  
Unread 17-02-2016, 10:30
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: Help with Labview please

The error is probably because of the incorrect Joystick reference in Begin.vi
You can't use a Joystick to select the deadband in Begin.vi
They have to use a different method to choose true/false or relocate the Motor Open elsewhere to happen after Begin.vi has completed executing and reliable Driver packets have begun to arrive and be processed.

Begin.vi just holds declarations (Opens) of devices that will be used elsewhere.
You can't actively use devices in Begin.vi.
They are trying to use a Joystick device that hasn't finished the process of being declared yet elsewhere in Begin.vi.

And Begin.vi only gets called once on robot code startup, and until the joysticks are defined there is most likely not even a valid driver station packet at the time Begin.vi runs to pass along any Joystick value.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 17-02-2016 at 10:36.
Reply With Quote
  #3   Spotlight this post!  
Unread 17-02-2016, 14:03
FRCTeam3293 FRCTeam3293 is offline
Registered User
FRC #3293
 
Join Date: Dec 2012
Location: Fergus Falls
Posts: 28
FRCTeam3293 is an unknown quantity at this point
Re: Help with Labview please

Thanks Mark. Very helpful.
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 07:09.

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