LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

¿time elapsed with lv6?

Hello

I'm writing an application with LV 6.02 and I  need a subvi that tells me if an amount of time is elapsed.  With LV 7 it was easy, just adding the "Time Elapsed" module.  But this element doesn't exist in LV 6, so I have created something similar using the lv2 variables concept.  But I  have a problem.  If I use it at the same time in two different places, I can't use it to measure two different time intervals, because all its internal variables get the same value (lv2 variable).

The vi that calculates the elapsed time and an example are attached

Any idea about how to solve this issue?

Thanks
Carlos Arcediano del Amo
Download All
0 Kudos
Message 1 of 4
(2,701 Views)
You can make your subVI reentrant. This is set from VI Properties>Execution.
0 Kudos
Message 2 of 4
(2,700 Views)
Hello, Dennis

It has worked perfecty, but...  ¿is there any way to make some variables "reentrant" and the rest "not reentrant"?  I want to reset the counter with some values in a part of the main vi and use this values when calling the counter in an other part.  And I want to reset the counter multiple times with different values.  I know this behaviours are excluding if I make the vi (not) reentrant.

Any idea, or is it impossible?

Thanks
Carlos Arcediano del Amo
0 Kudos
Message 3 of 4
(2,690 Views)
Hello

it's been better to redesign the vi that uses the chronometer that I have posted, and it works as a reentrant sub-vi.

Thanks for all
Carlos Arcediano del Amo
0 Kudos
Message 4 of 4
(2,675 Views)