03-02-2014 07:24 PM
Elapsed timer doesn't start from 0 when transitioning from idle state (start button) to close state after first transition.
Also, when trying to transition between open state and close state it locks up in the close state.
Thanks
Solved! Go to Solution.
03-02-2014 08:11 PM - edited 03-02-2014 08:11 PM
get rid of your while loops.....wire your elapsed timer "reset/time has elapsed" with a bool shift register. once the time has elapsed...transition to your next case using "select"
03-02-2014 08:46 PM
Sorry but I don't get it.
Shift registers on outer while loop ?
I put the elapsed timer in a while loop because there will be daq in parallel. Maybe there is a better technique for that.
Do you know why the timer doesnt start at zero after first time through the loop.
Thanks
03-02-2014 09:28 PM
@ggress1 wrote:
Sorry but I don't get it.
Shift registers on outer while loop ?
I put the elapsed timer in a while loop because there will be daq in parallel. Maybe there is a better technique for that.
Do you know why the timer doesnt start at zero after first time through the loop.
Thanks
Shift registers on outer while loop ?
yes
Maybe there is a better technique for that....yea,just use one main loop for now
03-02-2014 09:50 PM
I need it to count elapsed time while in the closed state. This method will only increment elapsed time on transitions between states.
03-02-2014 10:22 PM
Ok got it....also technique is described below.
http://digital.ni.com/public.nsf/allkb/05A9C3B0A4D5A7638625712B006FB30F
Thanks !!!