cancel
Showing results for 
Search instead for 
Did you mean: 

Prompt user

SOLVED
Gregory
Trusted Enthusiast

Re: Prompt user

Message contains a hyperlink

I am not sure what you mean by iterations, but it sounds like you might want to look into a state machine architecture.

sarahdan
Member

Re: Prompt user

Message contains an attachment

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.. 

RavensFan
Knight of NI
Solution

Re: Prompt user

Message contains an image Message contains an attachment

@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.

sarahdan
Member

Re: Prompt user

It works perfectly, thanks a lot!