|
Re: LabView button for a double-acting cylinder
You keep track between loops which one was the last one to fire. You can have something like the code I posted before keep inverting a boolean value, and depending on that value, power the solenoid (in a case statement).
Like, if value is true, power A and not B. If value is false, power B not A.
And then you use the button code to change the value back and forth between true and false.
It hard part it wrap your mind around is using a momentary button as a latching switch..
__________________
print$q=chr(ord($q)+$1)while("7443-0201-8465130105-12-03135-82482113-06-7672-070208-0613-70"=~/(-?\d\d)/g);
|