04-28-2016 11:23 AM
I am not sure what you mean by iterations, but it sounds like you might want to look into a state machine architecture.
04-28-2016 11:52 AM
so, I tried with the state machine, but I'm not very familiar with the case structure.
I have a chronoemeter going until 20 seconds.
From 0 to 5, I want my program to display "Relax", and then from 5 to 10, "Flexion". What I tried isn't working..
04-28-2016 12:04 PM - edited 04-28-2016 12:04 PM
@sarahdan wrote:That works exactly as I want.
And if I want it several time, like:
0-5sec: contract
5-10: relax
5-10; contract
10-15: relax
15-20: contract
20-25: relax
It is going to be a lot of iterations no?
You could use Threshold 1D Array to search among an array that defines the intervals.
Another possibility is that since your list is pretty clearly mathematically defined, Use Quotient and Remainder to divide by 10, then compare the remainder with 5.
04-28-2016 04:07 PM
It works perfectly, thanks a lot!