LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can i restart the timing of my elasped time counter?

I've created a VI that controls temperature using power. And in my VI i used a elasped time counter, i would like to restart the elasped time counter, so that everytime when i click run, my elapsed counter would run from 0sec and not start with the time from the previous run. How can i do it? the attached is the VI, please bear with me if its messy, i'm still trying to learn to make it neater, the elasped counter is located at the top.
 
Initial temp:25
Initial Level 300
Kc: 0.75
Ti:0.007
Setpoint: 50
 
With regards
Wormwood


Message Edited by Wormwood on 12-19-2007 10:20 PM
0 Kudos
Message 1 of 4
(3,038 Views)
If you are just trying to have it reset to zero each time you rerun it, just wire a zero to the left terminal of the shift register. What you have is refered to as an uninitialized shift register, which we use a lot as a storage element, allowing a vi to remember its last values from one run to the next (while still in memory). You will see references to "LabVIEW 2 style globals" or "Functional Global Variables" (FGV), which are vi's that take advantage of this feature. Of course, in your case you don't want to!  Smiley Wink
Putnam
Certified LabVIEW Developer

Senior Test Engineer North Shore Technology, Inc.
Currently using LV 2012-LabVIEW 2018, RT8.5


LabVIEW Champion



0 Kudos
Message 2 of 4
(3,032 Views)
Thank you for your helpSmiley Happy, that was rather a simple solution yet it makes such a difference
 
With regards
Wormwood
0 Kudos
Message 3 of 4
(3,018 Views)
Glad to be of help. Generally the only bad questions are those that aren't asked. What seems obvious to one person may be a major stumbling point for another, and sometimes just having another set of eyes look at a problem make all the difference.
Putnam
Certified LabVIEW Developer

Senior Test Engineer North Shore Technology, Inc.
Currently using LV 2012-LabVIEW 2018, RT8.5


LabVIEW Champion



0 Kudos
Message 4 of 4
(3,006 Views)