LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Prompt user

Solved!
Go to solution

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

0 Kudos
Message 11 of 14
(1,124 Views)

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

0 Kudos
Message 12 of 14
(1,109 Views)
Solution
Accepted by topic author sarahdan

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

Message 13 of 14
(1,103 Views)

It works perfectly, thanks a lot!

0 Kudos
Message 14 of 14
(1,078 Views)