How To Get The Compressor Programmd in LabVIEW

So we have our air compressor all plugged in, and wired and blah (we hope). Now we got to program it. Question is, how do you program the compressor in LabVIEW to start working with it?

Here is a link about programming a compressor in LabVIEW … https://wpilib.screenstepslive.com/s/currentCS/m/labview/l/696738-using-the-compressor-in-labview

Thanks!

No Problem! let me know if you need anymore help :slight_smile:

So for the Begin.vi in the snippet it shows a hand -> then whatever thingy. What is that called? plus the box surrounding??

I actually haven’t used LabVIEW before (I code in Java or C++)… So I am not sure, I just thought the link looked helpful. Sorry

Ah that’s alright, ill just take some looks around. I’m more experienced in Java, C+, C++,… So like

you don’t need to program the compressor in Labview just attach a solenoid valve to the PCM ports and initialize a solenoid in begin and the compressor should be activated.

That’s called a VI snippet. It indicates you that you can drag the image to the LabVIEW block diagram, and it will be read as code blocks :smiley:

Are you positive about this. Because, we have a solenoid in our begin and our teleop but the compressor is still not coming on.
begin.pdf (182.6 KB)
teleop.pdf (206.3 KB)

Yup no compressor call needed, I would check the wiring of the pcm . Are either of the small red lights below the PCM channels 0 and 1 lit up? What is the light on the PCM status?

Can you post a picture of your wiring?

Do you have the pneumatic controller hooked up via CAN bus? Is the compressor and the pressure switch also hooked up to the pneumatic controller?

pneumatic

Thank you for the suggestions. All our wiring is correct. The solenoid works correctly. We did not wire up the pressure switch because we only wanted to see if the compressor would come on as we understood it should. We will wire up a pressure switch today and I will get back to you.

That would be the problem because the pressure switch is normally closed (completing the circuit) and when it hits pressure it opens. That way if the wires come off or break the compressor will not work and over pressurize your system.

image

Did this work when you rewired the pressure switch, my team is dealing with a similar issue.

Yes, it did.