11-30-2012 04:02 PM
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.
11-30-2012 04:32 PM - edited 11-30-2012 04:38 PM
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.
11-30-2012 04:39 PM
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.