|
Re: how to turn on the compressor?
What you have is actually more than you need.
The compressor Open and Start go in Begin.vi and that's all you'll ever have to do. Start begins a never ending background task that constantly checks the pressure sensor and automatically turns the compressor on when pressure drops below 95psi, and turns it off when pressure rises above 115psi.
(the Enable doesn't do anything, it just lets you check to see if the compressor is running. But you aren't even checking in that code you have.)
You don't control the compressor spike relay directly.
It gets controlled based on the pressure sensor input and the robot inspectors will check for that.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Last edited by Mark McLeod : 13-02-2011 at 21:17.
|