Counter/Timer

cancel
Showing results for 
Search instead for 
Did you mean: 

how to store a timer value

Solved!
Go to solution

hi guys , im fairly new to all this labview , so i apologise if this is a silly question, im useing an elapsed timer , i have a signal when greater than a constant it resets the timer giving a value of 0 to an indicater , when the signal is in range the timer indicates the elapsed time ontill the signal falls out of range indicating 0 again ,

so im trying to obtain the last value before reset was  exacuted , or time inbetween pluses , so as i can send the value for futher calculations like rpm

 

thanks for any hints !!

my head hurts !

0 Kudos
Message 1 of 5
(6,305 Views)

Dear Vadajooz,

To do this you need to save the previous boolian value to allow you to process the time before it is reset.

The Saved Time shift register is only accessed under the correct circumstances to update its value and will hold it though other iterations of the loop.

 

regards,


Philip
Applications Engineer
National Instruments
UK Branch

===If this fixes your problem, mark as solution!===
Message 2 of 5
(6,274 Views)

thanks for that  took a while to digest it  im starting to see how it works now ,

when i try and connect an analoge voltage signal to inputs , it tells me im connecting different types , is there a way of converting the signal so your vi will work with the daq ?

i was trying to time pulses from a proxy , useing the 6008 , i tryied the tone mesurement and read the frequancy , that worked ok when the pulse was constant , but when the proxy wasnt active i was picking up noise at about 1v and the frequancy shot up , i tried some filters , and also put a rlc ciricut on the proxy but didnt kill the noise ,

hence why i was trying to use counters and only count between 3v and 12 volts to give me a time value ,

 

thanks again for your help

 

0 Kudos
Message 3 of 5
(6,258 Views)
Solution
Accepted by topic author vadajooz

Hi Vadajooz,

You can use the convert from Dynamic data VI and configure it to convert to a single scalar. This will give you a floating point number that you can input in to the comparator.

 

Regards. 


Philip
Applications Engineer
National Instruments
UK Branch

===If this fixes your problem, mark as solution!===
Message 4 of 5
(6,246 Views)
thank you !!
0 Kudos
Message 5 of 5
(6,214 Views)