取消
显示结果 
搜索替代 
您的意思是: 

Stop a while loop with array outside

已解决!
转到解答

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 项奖励
51 条消息(共 57 条)
2,236 次查看

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 项奖励
52 条消息(共 57 条)
2,235 次查看
解答
接受人 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)
53 条消息(共 57 条)
2,213 次查看

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
54 条消息(共 57 条)
2,204 次查看

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

 

0 项奖励
55 条消息(共 57 条)
2,181 次查看

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 项奖励
56 条消息(共 57 条)
2,144 次查看
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 项奖励
57 条消息(共 57 条)
2,108 次查看