LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Stop a while loop with array outside

Solved!
Go to solution

Is this correct?

1) You have 5 pictures and 5 pre selected time intervals

2) You want to show the pictures to the user in a random selected order, with random pre selected time intervals

3) Before each picture is shown to the test subject the background shall change color for a fixed time period 

4) Each picture will be shown to user for a fixed time

5) The test subject shall innate the test by clicking on a button. Once the test is started it is not possible to stop it

 

 



Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
(Sorry no Labview "brag list" so far)
0 Kudos
Message 51 of 57
(1,860 Views)

1) You have 5 pictures and 5 pre selected time intervals

Yes

 

2) You want to show the pictures to the user in a random selected order, with random pre selected time intervals

that's right with the constraint that no interval is selected more than another

 

3) Before each picture is shown to the test subject the background shall change color for a fixed time period 

Yes

 

4) Each picture will be shown to user for a fixed time

Yes

 

5) The test subject shall innate the test by clicking on a button. Once the test is started it is not possible to stop it

 

Yes you're right.

 
0 Kudos
Message 52 of 57
(1,859 Views)
Solution
Accepted by topic author nousome
This is according to our specs. It is somewhat quick and dirty made, taken out of the top of my head. But it is far better now.


Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
(Sorry no Labview "brag list" so far)
Message 53 of 57
(1,837 Views)

t06afre wrote:
This is according to our specs. It is somewhat quick and dirty made, taken out of the top of my head. But it is far better now.

 

 I admire your willingness to tackle this! 😄

 

At lest your "roll.vi" does not need to be reinvented and written from scratch. Have a look at "riffle.vi" that comes with LabVIEW. If we would not have that, there are still easier ways (See image).

 

 

 

Remember that "delete from array" forces a reallocation of the array at each iteration, which could cause significant performance problems for larger inputs. (not a problem in this case).

 

 

Message Edited by altenbach on 12-07-2008 03:25 PM
Message 54 of 57
(1,828 Views)

Thank you very much for your solution, that is very great, many thanks.

 

0 Kudos
Message 55 of 57
(1,805 Views)

Hi,

 

I would like to know if the Vi you created could be applied if instead to have one button that activates the timer you have two. And that vi could be applied in 2 cases:

 

First for each delay you have one button visible one click at the first button and then one click at the other button with the same delay (the order has to be reversed randomly).

 

And one case, in which you have two buttons silmutaneously presented and the delay that each activated could be different or the same other said independent one of the other

 

Thank you. 

0 Kudos
Message 56 of 57
(1,768 Views)
Hi, I would like to know if the Vi you created could be applied if instead to have one button that activates the timer you have two. And that vi could be applied in 2 cases: First for each delay you have one button visible one click at the first button and then one click at the other button with the same delay (the order has to be reversed randomly). And one case, in which you have two buttons silmutaneously presented and the delay that each activated could be different or the same other said independent one of the other Thank you.
0 Kudos
Message 57 of 57
(1,732 Views)