12-07-2008 10:22 AM
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
12-07-2008 10:56 AM
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.
12-07-2008 03:07 PM
12-07-2008 05:23 PM - edited 12-07-2008 05:25 PM
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).
12-08-2008 03:28 AM
Thank you very much for your solution, that is very great, many thanks.
12-09-2008 07:18 AM
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.
12-12-2008 01:56 AM