LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

I want to check if a boolean value is high before it should be, and add 1 to output if it is?

I use a stacked sequence.
1. Random delay time
2. Set value to 1, and check time
3. Wait for click.
4. Check time.
All of the above is inside a for loop.
Second time - first time = reaction time.
I want to check if it has been CLICKED before it is supposed to and add 1 second to the reaction time.

Can anyone explain how to do this?

Thanks.
0 Kudos
Message 1 of 2
(2,531 Views)
> 1. Random delay time
> 2. Set value to 1, and check time
> 3. Wait for click.
> 4. Check time.
> All of the above is inside a for loop.
> Second time - first time = reaction time.
> I want to check if it has been CLICKED before it is supposed to and
> add 1 second to the reaction time.
>

It might work to look at the timestamp on the click event -- if you are
using the event structure. Otherwise, look for the click in parallel
with the rest of the stuff and arrange to get it to the other loop via a
queue or local or notifier.

Greg McKaskle
0 Kudos
Message 2 of 2
(2,531 Views)