Go to Post Q: "What does your robot do?" A: "It collects data about the surrounding environment, then discards it and drives into walls" - tsaksa [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 22-12-2008, 20:45
mole mole is offline
Registered User
AKA: Anmol Dhar
FRC #0772 (SabreBytes)
Team Role: Programmer
 
Join Date: Jan 2008
Rookie Year: 2003
Location: Canada
Posts: 19
mole is an unknown quantity at this point
labview comressor help!!

hey everyone,

ive been trying to program our prototype chassie with a piston on it but i cant seem to get the compressor or the pistons to work. The compressor is hooked up to relay 1, relay 2 and 3 are for the solonoid. The pressur switch is on D I/O 1. I've tried both a hand made program and the example tutorial given with labview.

Please help!
Reply With Quote
  #2   Spotlight this post!  
Unread 22-12-2008, 20:57
Mark McLeod's Avatar
Mark McLeod Mark McLeod is online now
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,818
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: labview comressor help!!

The LabVIEW "Solenoid with Compressor Example"
default connections go to:

Pressure Sensor - Digital Sidecar DIO 1
Spike for compressor - Digital Sidecar Relay 1
Solenoid - Pneumatic Bumper/Breakout 1

The compressor should have run automatically and the solenoid fire when you push the Front Panel button.

It sounds like your solenoid was wired elsewhere.
What happened when you ran it? Anything at all?
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 22-12-2008 at 20:59.
Reply With Quote
  #3   Spotlight this post!  
Unread 22-12-2008, 20:59
mole mole is offline
Registered User
AKA: Anmol Dhar
FRC #0772 (SabreBytes)
Team Role: Programmer
 
Join Date: Jan 2008
Rookie Year: 2003
Location: Canada
Posts: 19
mole is an unknown quantity at this point
Re: labview comressor help!!

nothing whatsoever... idk why. ill try again tomorow and ill repost my results
Reply With Quote
  #4   Spotlight this post!  
Unread 22-12-2008, 21:01
Mark McLeod's Avatar
Mark McLeod Mark McLeod is online now
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,818
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: labview comressor help!!

Did you download or just use run?

The example is only setup for a single solenoid, not a double as you seem to be testing with.
The compressor should have run regardless.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 22-12-2008 at 21:03.
Reply With Quote
  #5   Spotlight this post!  
Unread 23-12-2008, 10:37
mole mole is offline
Registered User
AKA: Anmol Dhar
FRC #0772 (SabreBytes)
Team Role: Programmer
 
Join Date: Jan 2008
Rookie Year: 2003
Location: Canada
Posts: 19
mole is an unknown quantity at this point
Re: labview comressor help!!

ive been clicking run.. how do i actually download it
Reply With Quote
  #6   Spotlight this post!  
Unread 23-12-2008, 11:01
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,572
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: labview comressor help!!

Have you completed the benchtop tests in the control system manual (up to at least section 1.6.7)
Reply With Quote
  #7   Spotlight this post!  
Unread 23-12-2008, 12:41
mole mole is offline
Registered User
AKA: Anmol Dhar
FRC #0772 (SabreBytes)
Team Role: Programmer
 
Join Date: Jan 2008
Rookie Year: 2003
Location: Canada
Posts: 19
mole is an unknown quantity at this point
Re: labview comressor help!!

yes, i have done the benchtop tests
Reply With Quote
  #8   Spotlight this post!  
Unread 23-12-2008, 15:49
mole mole is offline
Registered User
AKA: Anmol Dhar
FRC #0772 (SabreBytes)
Team Role: Programmer
 
Join Date: Jan 2008
Rookie Year: 2003
Location: Canada
Posts: 19
mole is an unknown quantity at this point
Re: labview comressor help!!

i still cant get it working!
Reply With Quote
  #9   Spotlight this post!  
Unread 23-12-2008, 16:30
EricH's Avatar
EricH EricH is offline
New year, new team
FRC #1197 (Torbots)
Team Role: Engineer
 
Join Date: Jan 2005
Rookie Year: 2003
Location: SoCal
Posts: 19,801
EricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond repute
Re: labview comressor help!!

Quote:
Originally Posted by Mark McLeod View Post
default connections go to:

Pressure Sensor - Digital Sidecar DIO 1
Spike for compressor - Digital Sidecar Relay 1
Solenoid - Pneumatic Bumper/Breakout 1
Disregarding the programming for now--You do have a spike in the system, right? (And, for the programmers here--what effect would not having one have?)
__________________
Past teams:
2003-2007: FRC0330 BeachBots
2008: FRC1135 Shmoebotics
2012: FRC4046 Schroedinger's Dragons

"Rockets are tricky..."--Elon Musk

Reply With Quote
  #10   Spotlight this post!  
Unread 23-12-2008, 16:33
mole mole is offline
Registered User
AKA: Anmol Dhar
FRC #0772 (SabreBytes)
Team Role: Programmer
 
Join Date: Jan 2008
Rookie Year: 2003
Location: Canada
Posts: 19
mole is an unknown quantity at this point
Re: labview comressor help!!

we have a spike attached to the compressor and without having a spike, the compressor wouldnt get a signal to turn on and off..

everytime i run the program, the spike flipes on and off instally so it could be the program but idk
Reply With Quote
  #11   Spotlight this post!  
Unread 02-01-2009, 13:21
cabbagekid2 cabbagekid2 is offline
Registered User
#0368 (Kika Mana)
 
Join Date: Jun 2001
Rookie Year: 2000
Location: Honolulu, HI
Posts: 85
cabbagekid2 has a spectacular aura aboutcabbagekid2 has a spectacular aura aboutcabbagekid2 has a spectacular aura about
Re: labview compressor help!!

Did you figure out your problem? We've been having trouble getting the compressor to work with the pressure switch also. Just started playing around with Labview and the cRIO so it'll take us some time to troubleshoot.

What we did:
In Periodic VI we put the code from the compressor example (minus the COM stuff). Wired up the Relay & Dig I/O accordingly. No solenoid for now since we're just trying to get the compressor to work.

What happens:
After we hit the run button, the relay just stays orange. The pressure is 0 psi and nothing changes. One question...do we need a pull up resistor for the Dig I/O for the sidecar? I remember reading somewhere that we need that...but it might have been only for the driver station.
Reply With Quote
  #12   Spotlight this post!  
Unread 02-01-2009, 13:28
Russ Beavis Russ Beavis is offline
Registered User
no team
 
Join Date: Nov 2005
Location: Manchester, NH - DEKA R&D Corp.
Posts: 341
Russ Beavis has a reputation beyond reputeRuss Beavis has a reputation beyond reputeRuss Beavis has a reputation beyond reputeRuss Beavis has a reputation beyond reputeRuss Beavis has a reputation beyond reputeRuss Beavis has a reputation beyond reputeRuss Beavis has a reputation beyond reputeRuss Beavis has a reputation beyond reputeRuss Beavis has a reputation beyond reputeRuss Beavis has a reputation beyond reputeRuss Beavis has a reputation beyond repute
Re: labview comressor help!!

http://usfirst.org/uploadedFiles/3-F...s-Rev-0-5a.pdf

Per chapter 3.5.3, there are 10k pull-ups to 5V on all of the sidecar's GPIO. You should be able to simply attach the pressure switch to the "signal" and "-" terminals for GPIOx (the outer two terminals in each GPIO's 3-pin set, I don't remember which one is intended to be used for pressure control).

Russ
Reply With Quote
  #13   Spotlight this post!  
Unread 03-02-2009, 10:21
paulcd2000's Avatar
paulcd2000 paulcd2000 is offline
Accidentally speaks in C
AKA: Paul Dagnelie
FRC #1719 (The Umbrella Corp.)
Team Role: Programmer
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Baltimore
Posts: 368
paulcd2000 is a jewel in the roughpaulcd2000 is a jewel in the roughpaulcd2000 is a jewel in the rough
Send a message via AIM to paulcd2000
Re: labview comressor help!!

Having done a pretty detailed run-through of the compressor code, i've decided that it's a load of rubbish. It's far easier to write your own compressor code than it is to actually use the library provided. In fact, i can see no way that the provided VIs would EVER work, but i could just be missing something. The code needed is quite simple. feed a relay and a DIO in, and then feed the DIO value to a case structure. If it's true, stop the compressor. if it's false, run the compressor in reverse (at least, that's what worked for us).
__________________
"People don't say 'It's just a game' when their team is winning!" -- Scott Adams

5.5 students (on average)* $7/h *210 hours/student= $8085 of labor, all volunteered (not counting mentors', who are each that much)

We have blades on our robot?! ***sweeeeeet***

There are 11 types of people in the world. Those who can read binary, those who can't, and those who say this joke is supposed to be, "There are 10 types of people in the world. Those who can read binary and those who have a life."
Reply With Quote
  #14   Spotlight this post!  
Unread 03-02-2009, 11:13
Luke Pike's Avatar
Luke Pike Luke Pike is offline
Programmer
FRC #1501 (THRUST)
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2008
Location: Huntington
Posts: 114
Luke Pike is a name known to allLuke Pike is a name known to allLuke Pike is a name known to allLuke Pike is a name known to allLuke Pike is a name known to allLuke Pike is a name known to all
Re: labview comressor help!!

I'm not sure if they already know this, but solenoids are connected directly to the solenoid breakout bumper, no need for a relay.

As for the compressor, Here's an example of what I did when we transplanted the control system into Sidewinder back in September.
Attached Thumbnails
Click image for larger version

Name:	compressor.PNG
Views:	1203
Size:	13.8 KB
ID:	7304  
__________________
Twitter Profile
Reply With Quote
  #15   Spotlight this post!  
Unread 03-02-2009, 13:23
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,572
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: labview comressor help!!

Quote:
Originally Posted by paulcd2000 View Post
Having done a pretty detailed run-through of the compressor code, i've decided that it's a load of rubbish. It's far easier to write your own compressor code than it is to actually use the library provided. In fact, i can see no way that the provided VIs would EVER work, but i could just be missing something. The code needed is quite simple. feed a relay and a DIO in, and then feed the DIO value to a case structure. If it's true, stop the compressor. if it's false, run the compressor in reverse (at least, that's what worked for us).
I agree that the compressor code is confusing (especially when I was looking at it as a new LabVIEW programmer). However, it does work, and there's a couple reasons it was written the way it was. While writing your own code to control the compressor is easy, it isn't easier then using the compressor VIs.

First how it works: Compressor Open spawns a new task that runs the compressor run VI. If you want to see how everything actually works, look at the compressor run VI (double click on the static VI reference in compressor open).

The reason that it works this way is so that it runs in both telop and in autonomous independent (which is also a separate task). If you chose the iterative style, it wouldn't be hard to do it in both auto and telop, however it's not as easy if you want to do a linear style programming in autonomous independent. By putting it in a separate task, you make sure it always works, regardless of the programming style of the user. Secondarily, it's a good example of how to spawn a task and do inter-task communication, which I know I appreciated.
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
LabView Help Please NumBeast NI LabVIEW 3 19-12-2008 15:11
Help to Deploy a Program in Labview. Delian NI LabVIEW 7 10-12-2008 21:13
Labview and communication with peripheral device help jaijaidin LabView and Data Acquisition 3 26-01-2007 19:17
HELP!!!!!! LABVIEW IS MAKING ME MAD!!!! cdennisxlx2 LabView and Data Acquisition 2 21-03-2006 21:50
help: cannot get the picture in the labVIEW program .. (was: need help!! quickly!) liad LabView and Data Acquisition 8 18-01-2006 12:20


All times are GMT -5. The time now is 16:34.

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