Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   NI LabVIEW (http://www.chiefdelphi.com/forums/forumdisplay.php?f=182)
-   -   COMPRESSOR PROGRAMMING HELP (http://www.chiefdelphi.com/forums/showthread.php?t=100996)

dcarswell 23-01-2012 20:19

COMPRESSOR PROGRAMMING HELP
 
Hello,

Our team is trying to program the robot so that when we turn it on, the compressor fills up the tanks until it reaches the max psi it is supposed to go, and then with a press of a button the solenoid opens and the piston goes forward. And everytime the tank goes under pressure, it refills.

This is the code I have so far. .Could you give me some extra insight unto what I am doing wrong..



Thank you, very much



Uploaded with ImageShack.us

Mark McLeod 23-01-2012 22:44

Re: COMPRESSOR PROGRAMMING HELP
 
The code's in the wrong vi.

Some of it belongs in Begin.vi and one piece belongs in Periodic Tasks.vi


dcarswell 23-01-2012 23:34

Re: COMPRESSOR PROGRAMMING HELP
 
Thank you very much .

bbsoccergamer 25-01-2012 18:07

Re: COMPRESSOR PROGRAMMING HELP
 
You Sir deserve a bunch of cookies, this worked for us as well!

Mark McLeod 25-01-2012 18:36

Re: COMPRESSOR PROGRAMMING HELP
 
I like cookies...:)

cilginbilgin 28-01-2012 04:47

Re: COMPRESSOR PROGRAMMING HELP
 
Hey,
We are also using pneumatics this year. But we havent programmed any pneumatics. We couldnt understand what control loop is? Can anyone please help us?

NeatNit 28-01-2012 09:13

Re: COMPRESSOR PROGRAMMING HELP
 
It's just something that you're supposed to put inside Periodic Tasks and forget about it. It takes care of stopping the compressor when the pressure sensor turns on.

cilginbilgin 29-01-2012 12:56

Re: COMPRESSOR PROGRAMMING HELP
 
We got our compressor working by this code however our solenoids dont work. Any suggestions or recommendations??

NeatNit 29-01-2012 17:10

Re: COMPRESSOR PROGRAMMING HELP
 
Quote:

Originally Posted by cilginbilgin (Post 1115834)
We got our compressor working by this code however our solenoids dont work. Any suggestions or recommendations??

It is generally bad practice to use Open inside teleop. Instead, use Open in Begin, then insert to a RefNum Registry Set and give it a name. In Teleop, use Refnum Registry Get. Then give it a command. See how the default code has the joystick and RobotDrive. All you have to do is use the same palette as what you're working with.

Try the Compressor With Cylinder example, see if it works. Don't forget to change the RT CompactRIO Target IP address by changing its properties.


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

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi