05-13-2010 01:35 AM
05-13-2010 02:00 AM
05-13-2010 10:31 AM
If you set it Automatically reset we dont need a switch. Here is the problem in making it switch automatically based on what I want to
do. I have two subvi on my main vi within a case statement for pressure and vacuum. If the case is true I run pressure check subvi
and false it runs vacuum check subvi. Inside the pressure subvi I wait for pressure to reach a max threshold or timeout using this
elapsed timer for 4sec(either of the event) and flip the switch for the case statement in the main subvi to read vacuum. Inside the
vacuum I do the same thing but timeout here is 8sec instead 4 as it takes more time to reach the threshold. If I use automatically
reset my pressure subvi works fine for first time and by the time I finish the vacuum subvi my timer has expired twice and as soon as
I come into the pressure subvi its already the timer has already expired and I switch to vavuum subvi instantly and wait for 8sec. I
didnt want this behaviour. So that'z why I thought I will reset it manually.
Thanks
05-13-2010 06:20 PM
05-14-2010 12:23 PM
Using this code, the reset functionality works perfectly. Try building this code and see if this works for you
05-14-2010 12:40 PM
Thanks Scott for your reply. The reset control you have what is the mechanical action of that switch.
05-14-2010 12:50 PM