Go to Post A good thing to do when thinking about designs like this, ask yourself "what do I gain?" - lemiant [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

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Spotlight this post!  
Unread 17-02-2010, 23:26
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: Update Problem and Stuttering Compressor

Quote:
Originally Posted by EddiesCouch View Post
Now, after fixing a portion of the programing, it won't let me build because the robot main .vi is 'broken'.
Click the "run" arrow on the Robot Main vi. It should present you with a list of things that it considers broken; double-click on one to be taken directly to the offending spot in the block diagram.

Quote:
So starting from the beginning, how would you set up compressor programing so that it reaches 120 psi, stops, then starts up again once the pressure drops?
Follow the pattern in the Solenoid With Compressor Example, moving the initialization and cleanup to the proper places in the competition code framework:

In Begin.vi, place a Compressor Open, telling it which DIO has the pressure switch connected, and which Relay is controlling the compressor. Wire the resulting Device Reference to a Compressor Start, then to a Compressor RefNum Registry Set, giving an appropriate name like "Compressor".

In Finish.vi, place a Compressor RefNum Registry Get, giving it the same name you gave the Set. Wire the Device Reference into the first frame of the Flat Sequence, where you will place a Compressor Stop, then a Compressor Close.

That's it. Don't open the DIO or Relay anywhere else. Let the background compressor task take care of turning things on and off as needed.
Reply With Quote
 


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
Stuttering compressor sp33chy Pneumatics 18 17-02-2010 23:16
Update 3a Problem atr15566 NI LabVIEW 3 12-02-2009 07:51
SERIOUS COMPRESSOR PROBLEM simeon1770 Pneumatics 6 18-02-2007 21:07
[OCCRA]: Problem with the compressor, pressure switch, or Bosch relay. BrittanyV OCCRA 3 16-10-2006 15:42
Problem with compressor Nick R. Pneumatics 3 21-02-2003 10:51


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

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