LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to determine time difference from button click

So simple situation but for the life of me I can't figure this out. I have a program that executes on a button click. However, the program currently runs for 5 seconds or until stopped, once the button is activated. The goal is to determine the time elapsed from a button click until accelerometer excitation. So far I have a way to collect the time when the accelerometer is excited but not a way to determine the time between the button press and that excitation.

0 Kudos
Message 1 of 3
(2,322 Views)

I can see the data acquisition taking place when you hit "Start 2", but I don't see that being the "button click" you refer to several times.

 

Can you be more specific about the use case? For example, is this a physical button the user presses? If so, it seems you would tie the physical button to another DAQ channel and then take the relative time difference between the button transition and the accelerometer high state level location.

 



 

0 Kudos
Message 2 of 3
(2,312 Views)

Event structures do have the time available for user actions like button presses.  Use notifiers to pass information from your UI to the consumer loop. 


"Should be" isn't "Is" -Jay
0 Kudos
Message 3 of 3
(2,309 Views)