Go to Post Instead of giving us some wood and nails and saying "build us a box", they're handing us power tools and saying "now make us something cool" - galewind [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

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 02-02-2012, 17:39
Hebrew Hebrew is offline
Registered User
FRC #4228 (iRobotics)
Team Role: Programmer
 
Join Date: Dec 2011
Rookie Year: 2012
Location: Minnesota
Posts: 84
Hebrew is an unknown quantity at this point
Compressor

I am attempting to get a compressor with 2 solenoids working but it would appear I have no idea how to get it to work with labview programming at all after trying for 4 days now. Is there a tutorial on getting it to work someone can link me to or give here?

Thanks.
Reply With Quote
  #2   Spotlight this post!  
Unread 02-02-2012, 20:40
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: Compressor

Quote:
Originally Posted by Hebrew View Post
Is there a tutorial on getting it to work someone can link me to or give here?
When you launch LabVIEW, the first screen you see has a "Support" tab on the left side. One of the most helpful options on the Support screen is "Find FRC Examples..."

Everything you will want to look at is in the "FRC Robotics" folder. What you need right now is under Pneumatics. Look at the descriptions of the examples and determine which one best fits what you're trying to do.
Reply With Quote
  #3   Spotlight this post!  
Unread 02-02-2012, 21:08
Cecil's Avatar
Cecil Cecil is offline
Registered User
AKA: Alex Hummel
FRC #2010 (Lightning Bots)
Team Role: Mentor
 
Join Date: Dec 2008
Rookie Year: 2006
Location: Champion
Posts: 343
Cecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to behold
Re: Compressor

Also, remember to remove the Diagram Disable Structure in Periodic Tasks.vi to allow the compressor to start. Just remove the structure - not the code inside it.
__________________
I'm right 90% of the time, so why worry about the other 3%?
Reply With Quote
  #4   Spotlight this post!  
Unread 05-02-2012, 23:08
Hebrew Hebrew is offline
Registered User
FRC #4228 (iRobotics)
Team Role: Programmer
 
Join Date: Dec 2011
Rookie Year: 2012
Location: Minnesota
Posts: 84
Hebrew is an unknown quantity at this point
Re: Compressor

Thanks.

I know what I am looking for now, I just cannot find it. Where are the DIO and Relay channels in labview (for putting on block diagram)

I have spent loads of time trying to find it but have failed epicly...(classmate for the win )
Reply With Quote
  #5   Spotlight this post!  
Unread 05-02-2012, 23:59
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: Compressor

DIO:
WPI Robotics Library -> IO -> Digital Input (etc)
Relay:
WPI Robotics Library -> Actuators -> Relay

Here's a menu tree from last year (It's missing a few 2012 additions).
It might help finding some buried things.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Reply With Quote
  #6   Spotlight this post!  
Unread 06-02-2012, 00:07
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: Compressor

Quote:
Originally Posted by Hebrew View Post
I know what I am looking for now, I just cannot find it. Where are the DIO and Relay channels in labview (for putting on block diagram)
Are you trying to tell the Compressor Open function which channels to use? Just right-click on the terminal you want to wire to and choose "Create -> Constant" from the pop-up menu. LabVIEW will place the appropriate enumerated constant for the terminal you choose.
Reply With Quote
  #7   Spotlight this post!  
Unread 06-02-2012, 17:43
Hebrew Hebrew is offline
Registered User
FRC #4228 (iRobotics)
Team Role: Programmer
 
Join Date: Dec 2011
Rookie Year: 2012
Location: Minnesota
Posts: 84
Hebrew is an unknown quantity at this point
Re: Compressor





Those are images from my periodic tasks and begin vi.

I am not getting the compressor to work. Am I doing something wrong, or is it the wiring? I hit enable on the periodic tasks loop for the compressor and then added the code.
Reply With Quote
  #8   Spotlight this post!  
Unread 06-02-2012, 19:04
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: Compressor

The code looks normal.
Do you have anything else defined as DIO 1 or Relay 1?

If the code is working correctly you should be able to produce a green LED by Relay 1 on the Sidecar when you short across the pressure sensor leads (or connect Signal to Ground on DIO1).
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Reply With Quote
  #9   Spotlight this post!  
Unread 06-02-2012, 19:41
Hebrew Hebrew is offline
Registered User
FRC #4228 (iRobotics)
Team Role: Programmer
 
Join Date: Dec 2011
Rookie Year: 2012
Location: Minnesota
Posts: 84
Hebrew is an unknown quantity at this point
Re: Compressor

I am not with the robot anymore, but when I hit run in Robot Main.vi I get two error messages. Both are about being unable to locate a certain vi...I cannot remember the exact thing though....it had to do with jaguar for one and compressor for the other.

I have nothing set to DIO 1 or Relay 1 other than the compressor.
Reply With Quote
  #10   Spotlight this post!  
Unread 06-02-2012, 21:26
Cecil's Avatar
Cecil Cecil is offline
Registered User
AKA: Alex Hummel
FRC #2010 (Lightning Bots)
Team Role: Mentor
 
Join Date: Dec 2008
Rookie Year: 2006
Location: Champion
Posts: 343
Cecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to behold
Re: Compressor

Does it matter that the Start is after the Set Refnum? I haven't played around with the compressor code at all this year, so I wouldn't know..

Also, make sure your pressure switch is wired correctly. One side needs to be hooked to ground, and the other side to the signal wire.
__________________
I'm right 90% of the time, so why worry about the other 3%?
Reply With Quote
  #11   Spotlight this post!  
Unread 06-02-2012, 21:45
Hebrew Hebrew is offline
Registered User
FRC #4228 (iRobotics)
Team Role: Programmer
 
Join Date: Dec 2011
Rookie Year: 2012
Location: Minnesota
Posts: 84
Hebrew is an unknown quantity at this point
Re: Compressor

I don't think that would matter, but I could try changing it tomorrow.

Thanks.
Reply With Quote
  #12   Spotlight this post!  
Unread 07-02-2012, 16:16
Hebrew Hebrew is offline
Registered User
FRC #4228 (iRobotics)
Team Role: Programmer
 
Join Date: Dec 2011
Rookie Year: 2012
Location: Minnesota
Posts: 84
Hebrew is an unknown quantity at this point
Re: Compressor

Error 7 occurred at Call Library Function Node in NetComm_UsageReport_report.vi:1->WPI_MotorControlOpen Jaguar.vi->WPI_RobotDriveOpen2MotorWithJaguar.vi->Begin.vi->Robot Main.vi


Error 7 occurred at Call Library Function Node in NetComm_GetModulePresence.vi->WPI_DigitalModuleDIOCache.vi->WPI_DigitalModuleDIOAllocator.vi->WPI_DigitalInputOpen.vi->WPI_CompressorOpen.vi:1->Begin.vi->Robot Main.vi

That is the error I am getting.

Last edited by Hebrew : 07-02-2012 at 16:24.
Reply With Quote
  #13   Spotlight this post!  
Unread 07-02-2012, 18:33
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: Compressor

That looks like an interrupted, incomplete, or partially corrupted LabVIEW installation.

Error 7 means the library files it lists are missing.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
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 03:57.

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