Chief Delphi

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

DBaleta 09-02-2015 20:05

Re: Compressor
 
2 Attachment(s)
Quote:

Originally Posted by Mark McLeod (Post 1440946)
If some of the LEDs next to the solenoid ports 0, 1, 2, 3 light but do not change, then there is still something wrong with the code.
Want to post the latest?

There are no LEDs next to the solenoid ports as far as I can tell.

Mark McLeod 09-02-2015 20:11

Re: Compressor
 
The PCM solenoid LEDs are easy to miss if they are off, and hard to miss if they are on. Here is what they look like:


If none of the LEDs are on then your commands are not getting to the PCM (or it's Disabled).
Did you go back with a web browser and confirm the CAN ID used by the PCM =0?

DBaleta 09-02-2015 20:20

Re: Compressor
 
Quote:

Originally Posted by Mark McLeod (Post 1440954)
The PCM solenoid LEDs are easy to miss if they are off, and hard to miss if they are on. Here is what they look like:


If none of the LEDs are on then your commands are not getting to the PCM (or it's Disabled).
Did you go back with a web browser and confirm the CAN ID used by the PCM =0?

The CAN ID is 0 and none of the LEDs are on. The Light Device LED box is unchecked. Could that be why?

Is there an example of how to program the buttons in Labview that I could see?

Mark McLeod 09-02-2015 20:25

Re: Compressor
 
There are some examples here.

The Light Device LED is just a way to make the PCM flash so you can confirm which one it is if you have multiple PCMs.
You can test it by checking it then clicking Save. The PCM will immediately blink rapidly for a second or two.

DBaleta 10-02-2015 15:57

Re: Compressor
 
Quote:

Originally Posted by Mark McLeod (Post 1440962)
There are some examples here.

The Light Device LED is just a way to make the PCM flash so you can confirm which one it is if you have multiple PCMs.
You can test it by checking it then clicking Save. The PCM will immediately blink rapidly for a second or two.

We reworked the programming and some LEDs do turn on. However only Solenoid B seems to work. Solenoid A automatically expands the piston and refuses to retract. Solenoid B (used for our noodle system) extends and retracts the piston correctly yet Solenoid A (used for our lift system) extends the piston without the pressing a button and refuses to retract.

Alan Anderson 10-02-2015 16:13

Re: Compressor
 
Your Teleop code doesn't show where the Buttons array is coming from. It almost looks like there are two different arrays coming in from the top left, each being converted for some reason to a cluster, then a member of each cluster is being chosen independently to select the solenoid state.

Give us some more context so we can see what you're trying to control the solenoids with.

DBaleta 10-02-2015 17:57

Re: Compressor
 
1 Attachment(s)
Quote:

Originally Posted by Alan Anderson (Post 1441381)
Your Teleop code doesn't show where the Buttons array is coming from. It almost looks like there are two different arrays coming in from the top left, each being converted for some reason to a cluster, then a member of each cluster is being chosen independently to select the solenoid state.

Give us some more context so we can see what you're trying to control the solenoids with.

The reason why we converted them to a cluster was because that was what we were used to the previous years. We changed them back into arrays.

Noodle Solenoid works (Previously labeled Solenoid B). Lift Solenoid doesn't (Previously labeled Solenoid A).

DBaleta 10-02-2015 19:44

Re: Compressor
 
We sorted everything out and now everything runs. Our team wants to reprogram the solenoids so that the pistons stop expanding or retracting once the button is let go. As of right now if you push a button, the piston will either fully extend or fully retract. No in between.

Mark McLeod 10-02-2015 20:28

Re: Compressor
 
The two position pneumatic cylinders and solenoids only have two positions, no in-between.

There are some tricks possible, but success varies, e.g., two cylinders end to end can produce up to four different positions.


All times are GMT -5. The time now is 21:26.

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