LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Elasped Time Reset

Solved!
Go to solution

I am sequencing 13 solenoid valves to collect CO2 concentration readings from composting vessels using a gas analyzer.  Each valve will be selected one at a time. After each one is selected, there needs to be a delay of about 10 seconds to flush out the gas from the previous composting vessel that was sampled, and then there needs to be a delay of another 10 seconds to sample each composting vessel and to log it into its corressponding data file. 

 

I am using a case structure with multiple tabs to complete each step in the sampling process.  I am having difficulty reseting the elapsed time so that it starts out a zero and counts to 10 every time.  It works once, but then it doesn't reset to zero.  It will start first at 10 seconds and count to eleven, then it will start at 9, then 8, and then so on.  I have tried using feedback from the "Time Has Elapsed" pin back to the "Reset" pin and "Auto Reset" pin, but it will not reset back to zero.  How do I correct this? I have posted the VI below

0 Kudos
Message 1 of 5
(4,002 Views)
I've tried to use the Time Elapsed vi before and it's been really a pain in the rear end.  You might be better off using a state machine with a 1 second wait in between iterations.  You can then use your counter (or divisors of it) to impliment each case.  It's a thought...
Message 2 of 5
(4,001 Views)
Solution
Accepted by topic author NT_Engineer
Well, I got it figured out. I am using the "Time Has Elapsed" output to create a shift register that will hold that True value until the next cycle so that it resets the Elapsed Time at the beginning of the cycle.
0 Kudos
Message 3 of 5
(3,984 Views)
hi; I'm interested in composting systems but I couldn't open your example file. Could you please send me your file as Labview 8.5 format? thanks... adanali
0 Kudos
Message 4 of 5
(3,827 Views)

Hi adanali,

 

We have plenty of example programs if you go to Help»Find Examples... and then search for DAQmx.  You can use the examples as a good base for your overall application.

0 Kudos
Message 5 of 5
(3,802 Views)