Go to Post ...he's acting like a programmer whose code is compiling...:yikes: - EricH [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 25-03-2010, 10:43
team3329 team3329 is offline
Registered User
None #3329
 
Join Date: Mar 2010
Location: Kingsland Ga
Posts: 34
team3329 is an unknown quantity at this point
Compressor and Pneumatics help for 3329

We are using Labview. We are nubes at this so lots of help would be usefull. We are having trouble with our compressor and pnuematics system - for some reason our compressor was working but we ran into trouble. We put our Compressor Open.vi >> Compressor Start.vi in the periodic tasks inthe 100ms loop. It worked for a while until We programed our solenoids in the teleop code (by setting the soleoids with the joystick buttons - we have a duel solenoid valve) and then we got error codes: -44027 and -44046. It says the DIO module has already been allocated but our set up for the compressor is correct. We're really confused!!!! Please somebody help!!

-- thanks --
  #2   Spotlight this post!  
Unread 25-03-2010, 10:46
apalrd's Avatar
apalrd apalrd is offline
More Torque!
AKA: Andrew Palardy (Most people call me Palardy)
VRC #3333
Team Role: College Student
 
Join Date: Mar 2009
Rookie Year: 2009
Location: Auburn Hills, MI
Posts: 1,347
apalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond repute
Re: Compressor and Pneumatics help for 3329

Big problem - Put the Compressor Open in Begin. It has already allocated the compressor in a previous loop, so you can't open it more than once. You can put a Start in Begin then set a refnum and pick it up in PeriodicTasks to Start.
__________________
Kettering University - Computer Engineering
Kettering Motorsports
Williams International - Commercial Engines - Controls and Accessories
FRC 33 - The Killer Bees - 2009-2012 Student, 2013-2014 Advisor
VEX IQ 3333 - The Bumble Bees - 2014+ Mentor

"Sometimes, the elegant implementation is a function. Not a method. Not a class. Not a framework. Just a function." ~ John Carmack
  #3   Spotlight this post!  
Unread 25-03-2010, 10:50
team3329 team3329 is offline
Registered User
None #3329
 
Join Date: Mar 2010
Location: Kingsland Ga
Posts: 34
team3329 is an unknown quantity at this point
Re: Compressor and Pneumatics help for 3329

HEy thanks! We tried that already but the watchdog started misbehaving. And thats where we are lost. It doesn't show that message anymore but the compressor still isn't starting
  #4   Spotlight this post!  
Unread 25-03-2010, 11:10
team3329 team3329 is offline
Registered User
None #3329
 
Join Date: Mar 2010
Location: Kingsland Ga
Posts: 34
team3329 is an unknown quantity at this point
Re: Compressor and Pneumatics help for 3329

Hey again! I tried what you said again and its giving us error code -44027

I put the Get refnum.vi >> Compressor start.vi in the 100ms periodic tasks loop. I'm still not sure on what to do
Also I just deleted all watchdog references so i wouldn't get any trouble with it
ps: thanks for responding so quickly

Last edited by team3329 : 25-03-2010 at 11:12.
  #5   Spotlight this post!  
Unread 25-03-2010, 11:20
apalrd's Avatar
apalrd apalrd is offline
More Torque!
AKA: Andrew Palardy (Most people call me Palardy)
VRC #3333
Team Role: College Student
 
Join Date: Mar 2009
Rookie Year: 2009
Location: Auburn Hills, MI
Posts: 1,347
apalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond repute
Re: Compressor and Pneumatics help for 3329

In Begin.VI:

Open Compressor (configure the DIO Port, DIO Slot, Comp Slot, and Comp Relay) -> Compressor Start -> Compressor Set Refnum (name it "compressor" or something like that)

In Periodictasks OR Teleop:

Compressor Get Refnum (same name as before) -> Compressor Start -> Compressor Enabled State -> Indicator of Compressor Enabled State and Compressor State (those help with debugging - make sure the terminal for the indicators is in the loop with the Enabled State.



Run Robot Main.vi by pressing the play button. When it is done downloading and you have Teleop Disabled on the Classmate (with stop button, comm, and code), open Periodic Task.vi and look at the front panel. Compressor Enabled State should always be TRUE, and Compressor State should show what the compressor is doing. Then, enable it. The compressor should turn on.

Whatever you do, do NOT open the compressor more than once. You can use Start more than once, but NOT open. That will throw that DIO Cache error.

Do you have a Watchdog Feed in Teleop? Another thing I recommend - Call Teleop.vi from Disabled.vi. Then, you can see what the code is trying to do without letting it do stuff. Once the code is running from Robot Main (Teleop Disabled on the Classmate) you can probe wires and see what is happening. Be warned - Probing a wire before Robot Code is green will almost certainly cause LabVIEW to crash. Make sure Robot Code is green before probing. When you are done with the probing and indicators, you can do a full Build and Deploy. You must do a Build and Deploy to save the code permanently, so it is required at competition. Generally. I do a full deploy every time I leave or am done debugging.

One more reason for Watchdog errors: Do you have any WAIT's in Teleop, for something like kicker timing? That is a big no-no. You can run your kicker timing loop asynchronously (e.g. Periodictasks or something of the like) and communicate via global variables if you would like.
__________________
Kettering University - Computer Engineering
Kettering Motorsports
Williams International - Commercial Engines - Controls and Accessories
FRC 33 - The Killer Bees - 2009-2012 Student, 2013-2014 Advisor
VEX IQ 3333 - The Bumble Bees - 2014+ Mentor

"Sometimes, the elegant implementation is a function. Not a method. Not a class. Not a framework. Just a function." ~ John Carmack
  #6   Spotlight this post!  
Unread 25-03-2010, 12:13
Vikesrock's Avatar
Vikesrock Vikesrock is offline
Team 2175 Founder
AKA: Kevin O'Connor
no team
Team Role: Engineer
 
Join Date: Mar 2006
Rookie Year: 2007
Location: Manchester, NH
Posts: 3,305
Vikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond repute
Send a message via AIM to Vikesrock Send a message via MSN to Vikesrock Send a message via Yahoo to Vikesrock
Re: Compressor and Pneumatics help for 3329

Quote:
Originally Posted by apalrd View Post
Whatever you do, do NOT open the compressor more than once. You can use Start more than once, but NOT open. That will throw that DIO Cache error.
While you can call the Compressor Start VI more than once it really isn't necessary unless you called Compressor Stop for some reason.

Compressor Start launches a separate thread to handle the compressor which will run straight through Autonomous and Teleop just fine.
__________________


2007 Wisconsin Regional Highest Rookie Seed & Regional Finalists (Thanks 930 & 2039)
2008 MN Regional Semifinalists (Thanks 2472 & 1756)
2009 Northstar Regional Semifinalists (Thanks 171 & 525)
  #7   Spotlight this post!  
Unread 25-03-2010, 14:11
team3329 team3329 is offline
Registered User
None #3329
 
Join Date: Mar 2010
Location: Kingsland Ga
Posts: 34
team3329 is an unknown quantity at this point
Re: Compressor and Pneumatics help for 3329

Thanks ALOT!!!!!!!!!!!!!!! I'll give it a go and see if it works... Thanks !!!!!!!!!!!
  #8   Spotlight this post!  
Unread 25-03-2010, 14:32
team3329 team3329 is offline
Registered User
None #3329
 
Join Date: Mar 2010
Location: Kingsland Ga
Posts: 34
team3329 is an unknown quantity at this point
Re: Compressor and Pneumatics help for 3329

Ok. I tried it and there is now a comm error with the camera (-44003)

Should I delete the Camera script all together (if another option is possible that would be splendid)

Thnx
Closed Thread


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
Buttons and Pneumatics Help huskyrobotics NI LabVIEW 17 15-02-2011 15:56
Solenoid Wiring and Compressor Help BurtGummer Electrical 16 17-02-2010 14:25
HELP!!!! we need help w/ compressors/pneumatics for teleop/autonomous in LABVIEW rokenboker NI LabVIEW 9 05-02-2010 17:10
help with Compressor and labview Team2883 General Forum 4 28-01-2009 22:18
AMPs for RC and Compressor beemgruem Electrical 9 10-01-2008 10:08


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

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