Reaction time test

Hello world.

I was tearing my hair out trying to schedule a Test of reaction time.  I tried to search for topics that were like my program, but these programs were based on the lights and functions of market while mine is based on the random number generator.

To explain a little more in detail, I create a program that allows a test object to choose 2 numbers to add or subtract (from 0 to 10).  Then the program will randomly generate numbers between 0 and 10 and display it in the object and the subject will have to react when the displayed number is equal to the answer in their head. On the side of the programs, when randomly generated number is equal to the real answer the loop starts a timer and when the topic click on the button, the timer stops and displays the time.

Right now, I'm having a problem with the last sentence.  I can't make heads or tails of how to get a clock started or make out properly.

Any ideas?

Here is the latest version of my vi

You can skip reading button until the time came.

Here's a simple rewrite, see if it makes sense.

Notes:

  • Make sure that all controls have labels. You can hide the label on the front, but do not allow an empty string. It makes event assignment, etc. almost impossible. All commands need a label for the readability of the code.

  • Do not maximize the diagram for the screene. It's very annoying.

  • Do not trap event structures insude case structures.

  • Do not use the wiring from right to left (for example, the State)

  • Your representations of the mind. Look at all your Red coercion points. The numbers must be of the same type.

  • Beware of mechanical actions. Your Start button is "to release them" (like a car horn!), taken to detect a press shot and lack, epsecially in the presence of long waits.

Tags: NI Software

Similar Questions

  • Design a VI to give a warning signal, followed of a signal to go for a Simple reaction time task

    Hello

    I need to perform tests of test time of simple reaction for one of my experiences, I have to design a view Lab program to achieve the following experimental device:

    1 pre trial interval 2 s - followed - A yellow (LED) SIGNAL of WARNING (which stays on for about 80 ms)

    2. after the offset of the warning light - a random interval from 1 to 3 seconds - a (LED) Green GO SIGNAL (which stays on for about 80 ms).

    3. return to step 1.

    I want this loop to everyone for a reaction time of multiple tests.

    I am new on the advice of the lab, but after reading the tutorials, I designed a VI, but there are a few problems with this VI:

    1. If I run it, the yellow and green lights just glisten and not turning on and off Alternatively, how I want.

    2. If I run the VI with highlight run checked window, the program is run and the yellow and green lights light up alternately. However, the interval between the yellow and the green light does not seem to be random between 1-3 s...

    I enclose the VI I designed, I'll be gratefull if anyone can help.

    Thank you


  • 1151 in a reaction timer error

    I worked on a reaction timer and I need to run the same program several times, but put in squares of different color (when the square comes up click on stop to get the time) to see if that makes the reaction time, so I did a bunch of separate files with different colors, but I wanted to combine and after I combined the I had a lot of duplicates and I got these fixed but I still mistake 1151.

    I have the same text thirty times and where numbers and myy is they are getting rid of duplicate terms

    blueSquare var = new blueSquare();

    Scenario 1

    Stop();

    var myy1Timer = new Timer (2500);
    myy1Timer.addEventListener (TimerEvent.TIMER, blueSquareDelay1);
    myy1Timer.start ();


    blueSquare var = new blueSquare();

    trace (blueSquare);

    function blueSquareDelay1(E:_TimerEvent):void {}
    addChild (blueSquare);

    blueSquare.x = 270;
    blueSquare.y = 200;
    }

    Scenario 2

    Stop();
    1.
    myText_txt.text = '0 '.
    trace (myText_txt);
    var myTimer2 = new Timer (30.0);
    myTimer2.addEventListener (TimerEvent.TIMER, stopWatch1);
    2.
    function stopWatch1(event:TimerEvent):void {}
    myText_txt.text = String (myTimer2.currentCount);
    }
    3.

    stop_btn.addEventListener (MouseEvent.CLICK, stopClock1);
    reset_btn.addEventListener (MouseEvent.CLICK, resetClock1);
    4.

    myTimer2.start ();

    5.
    function stopClock1(event:MouseEvent):void {}
    myTimer2.stop ();
    }
    6.
    function resetClock1(event:MouseEvent):void {}
    myTimer2.reset (myText_txt.text = "0");
    }

    If you plan on build to test, I have three buttons start stop and reset with the bodies stop_btn etc., there is a text box Adaptive with instance of myText_txt I also haven't got time tee off and reset buttons work what she starts just on its own

    If you use the code that I have suggested, make sure that you do not use the same line of code in several frames.  That is to say,

    blueSquare var = new BlueSquare();

    is very good, in frame 3, but should not be setting 1 and should not be in the frame 2.

  • is it possible to shorten the reaction time of key?

    Hi guys,.

    I create a game based on the keys.

    This is my code:

    onClipEvent (load)

    {

    Speed = 10;

    }

    onClipEvent (enterFrame)

    {

    If (Key.isDown (Key.up))

    {

    This ._y = speed;

    }

    If (Key.isDown (Key.Down))

    {

    This ._y += speed;

    }

    If (Key.isDown (Key.Left))

    {

    This ._x-= speed;

    }

    If (Key.isDown (Key.Right))

    {

    This speed of ._x +=;

    }

    }

    the reaction time is longer I want.

    is it possible to shorten it?

    Based on your schema of KeyPress detection enterFrame, you can probably increase the pace and get a faster response time.

  • Bad reaction time of MISTLETOE in cs6 Bridge

    I use Bridge CS6 on WIndows 7. When we click on an item to menu, try to advance to the next image using the cursor button or try to open the context menu with the right mouse button, it takes about 6 seconds until a response. I tried to reset the application, clear the cache, reinstall photoshop, but nothing helped. Photoshop cs6 works well, bridge CS4 also works well but neither cs6 Bridge in 32-bit or 64-bit work well.

    Connect to a network can cause this symptom.

  • Let a burn of LED on a random time between 3 and 7 seconds

    Hi all

    Probably, it's a matter of simpel for many of you, but not for me. I try to make a counter reaction time. And I hope someone can help me with the first part: the led must Flash on a random time between 3 and 7 seconds.

    After this need to measure the time between burning directed and by pressing the stop button

    Results ranking in a table

    After the display of ten measures of response time average.

    I hope someone can help me to launch it, I need it for school.

    Thank you!

    Matthijs

    Netherlands

    Code Simon put tapped off.  The Down button was a nice touch, but cannot be disabled so we were testing times preaction and the param 'Trial' could get pretty messy especially on a series of rehearsal

  • Satellite M100-165 - for the LCD Panel response time

    Hello.

    Anyone know where I can find information on the reaction time of my LCD screen on my M100-165?

    Does anyone know what is the response time LCD m100-165 (or m100 series)?

    Thx for replies :)

    Hello

    The M100 series was delivered with a display type 200 WXGA 14.1 LTN141W1-L03-0.
    To my knowledge this display should support a response speed of 25ms.

  • Get time in hh:min

    Hello

    I'm pretty new to LabView. I'm doing data acquisition on a reactor using CDAQ here. I'm in the process of writing code that would be exploited sequentially: heat, hold heat for a certain guests of time specified by the user and cool down. I am facing a lot of error because of my ignorance in the LabView environment. Right now, I'm trying to get the reaction time of the user and perform the function in a whole that specifies the length of the loop and stop the service once the elapsed time. It was pretty simple, however, I want to clarify the time elapsed during the race to the hh:min format, but I'm not sure how to do it. I did some research on this, but did not get any clarity. Any guidance would be great!

    Thank you. I join this part of my code to make you understand better.

    AHA. All you need is a digital indicator. Right click on the indicator on the front panel after you did it, and then click the display Format. Change the display format of relative time and voila!

  • Test of physical Standby DB 11 g

    Hi all

    My company is considering a DR test in a few months, and since I never did this until I was wondering what would be the best way to go on the DB pending tests. This is a database of 11G (11.2.0.3). I read the following articles:

    http://gavinsoorma.com/2009/09/11g-snapshot-standby-for-real-time-testing/

    http://www.Pythian.com/blog/testing-a-physical-standby-database-in-Oracle-10G/

    http://www.Oracle.com/technetwork/articles/SQL/11g-DataGuard-083323.html

    From what I can tell the snapshot method is the easiest. My main question is when the primary method still must send the archive logs to the waiting or can I defer only to archive log shipping? How we test normally the site of DR is completely disconnect the network connections and put everything in place for the primary will not be able to speak to the waiting and vice versa. Or is the best method to follow the other article that speaks using the flashback database?

    Thanks in advance for your help.

    From what I can tell the snapshot method is the easiest. My main question is when the primary method still must send the archive logs to the waiting or can I defer only to archive log shipping?

    Are you in 11g, yes instant is a nice feature to test your intelligence. If you enable the destination, there is no problem. Meanwhile if too many records are generated and then it takes a long time to get a site to DR.

    How we test normally the site of DR is completely disconnect the network connections and put everything in place for the primary will not be able to speak to the waiting and vice versa

    You can also completely disconnect the primary DR and tests after the conversion of the physics on the eve of the snapshot if it is your condition to do so.

    Or is the best method to follow the other article that speaks using the flashback database?

    In traditional flashback, you will need to take care just like the creation of restore point with guarantee, mode standby manually and run again then flashback to the restore point. Snapshot is really simple and easy to use. If am in your position of course I use the standby database snapshot.

  • is it possible to make a timer with AS3, which is accurate to a millisecond.

    I am new to AS3. I have somehow developed an auditory and Visual reaction timer taking the script from here and elsewhere. I know that his is not accurate and I also know that I'll write it correctly when I heard the script carefully.

    But I was checking the net about the timer class and various positions on this issue and I am annoyed by a question "if its possible to make a precise timer with AS3?" can someone please tell me with certainty. and I will be grateful if I know how to do it properly. I can post the code I wrote (assembled).

    the answer is, maybe. but for most of the coders, the answer is, no.

    getTimer() is accurate to 1ms.  but to determine the elapsed time / and don't call or to run code on a timed basis. It can be used with the Timer class events or enterframe to do certain things with precision.

    However, the timer class is not accurate in the way of thinking of beginning coders.  It will be, on average, to allow the call of a function near the designated interval so there is no performance problem with your swf file.  It does not allow each function call to occur at regular intervals.

  • Timer faster and faster

    var: timer = new Timer (2000.0);

    timer.addEventListener (TimerEvent.TIMER, test);

    function test(e:TimeEvent):void {}

    ...

    }

    in my original code...

    "test" function will change the x-axis of the images by timer...

    I want the x axis of the images can be changed after every two seconds...

    but when I run...

    Obvies is more faster...

    every time when the timer send the TimeEvent

    the always shorter than last time...

    I hope you can help... Advanced thanks...

    You are welcome.

    p.s. Please mark this thread as answered, if you can.

  • Need suggestions of simultaneous readings when deleting entities

    Hello
    There are a few suggestions for the following use cases, as we can't seem to find the transaction correct locking combination to meet our needs.
    We use the BDB I 4.1.10 and the entityStore is transactional. In a Word, BDB I is used as a Cache for the specific data which are drawn and regularly update a source Oracle DB. The application that contains the BDB is a realtimel application, and the reaction time is critical.
    In order to avoid having to merge the entities (Insert/update/delete) to some of the tables that are small and very static (a few hundred records likely to change every day or more), we simply try to delete all the records (with an EntityCursor loop, since there is no "deleteAll" we could find) and reinsert all data every 5 minutes and then committing when the entire process is complete. This must always be very fast, but we are not insensitive to the time-outs of the source, Oracle DB, so that the transaction can be long.
    In the ideal, so that the delete/insert that goes, we want that operations to return the old (before deleting) reading data from any competitor. We did a test which blocks the thread updated between "remove all" and "update of all the ' methods, so that the delete cursor is closed, but Texas is not yet committed. For our reader thread, we tried the following:

    1-if we get() a deleted entity with a LockMode.READ_UNCOMMITTED, we get an entity null.
    2-if we get() a deleted entity with LockMode.READ_COMMITTED, we get a LockTimeoutException.

    We also examined using simply truncated on the EntityStore, but this requires the closing and reopening of the DB, so it will not work for our need to always return a value, instantly.

    Any ideas, suggestions on how we could do that in a simple way?
    Thank you
    Max
  • SSI is not supported by our server - workaround?

    I'm looking for solutions for faster reaction times when changes are needed on the website of our company. To the fact the continuous page number become increasingly more should I quick solutions.

    I had planned on using SSI to include headers, the feet of page and the menus in my pages. The skeleton of the Web pages would be set up in a format and applied to all the pages (to avoid overuse of SSIs and lose the overview).

    SSI seemed to be the perfect solution, and it seemed even be supported by the server of the company (a tick behind an option called "Support for the ISS" in the configuration menu seems simple enough). Unfortunately, during the test (both with a .html file .shtm) the opposite was true. After having contacted the technical support of our server, I got this response:

    "Despite the fact that we have this option in the Control Panel, we unfortunately do not provide support for this feature. This because our areas and sites Web is based on a shared IP address and so this option is unfortunately not possible. »

    (1) I really don't understand how these two depend on each other (SSI and shared IP addresses), so that would be my first question.

    (2) after some internet research, I came across this option: FakeSSI is a Perl program that is supposed to imitate the SSI function, and according to the configuration of my server, I should be able to download the cgi - bin and run it from there. I don't have a clue as to how it works, but nothing can be solved by research, so this isn't really the problem. Where to start the search. That's the problem. In addition, I don't even know if it would be a good idea.

    (3) I already use iFrames on the Web site, who always do their job. Could I not only use iframes instead of SSI? I don't want to use PHP-include, because it would change all files .html to .php files, and I don't want to lose all the external links we have currently out there.

    Any help in the above questions would be greatly appreciated... I thank very you much in advance!

    Now, let's just assume here that I can't change the host, and I'm stuck with a host that does not support SSI. What would be my options to be to get as near as possible SSI?

    Content in a database.  Put your code fragments in a database and pull in the pages.  But you have to bite the bullet and rename your pages with an extension script (for example, PHP, or ASPX or CFM), according to your scripting language.  Try to do these scripts with extensions HTML will be too hard as DW will not recognize the script code.

  • page of the partition, and then move to exel

    I just created a program that tests your reaction time and it shows you the time in the upper left corner of the screen then I turn to the next and do it again with a few different variables and I have to manually write each individual score that I took, if I wanted it all the time. My question is how I'd get different scores will appear in a final page as a tally sheet?

    the way I got the time is displayed in the corner was to have a dynamic text that has been updated for the current number of a timer that started when I hit a button to start.

    also as a sub-question I would be able to take those moments and automatically put them on a new line in excel where I programmed in a bunch of formulas?

    Info

    I use flash professional CS 5.0.

    and a small but increasing knowledge of programming.

    It is a science fair project that I'm looking to improve if someone holds the flash file or the code let know me and I will get you up as soon as possible.

    with excel I want to put the numbers in the more high column blank for I can test several people and have it compile all results without them save on top of the other.

    use a table to store the value of each partition.

  • Interpretation of TKPROF output

    Hello colleagues

    IM reviews the performance of one of our DBs (10.2.0.2 on MS 2003 SP1). I found a table called ACCESS_INAB that was called frequently. This table in the buffer to keep pinning, we improved demand owerall reaction time.
    There is still a question Im fighting with. Still, a specific operation takes a long time (30-45 sec.) to display a comment field. I tried to trace the session and got following the result:


    ********************************************************************************

    Select *.
    Of
    (select rownum rn, a.* (SELECT TL.id, TL.process_id, TL.event_time,
    TL.severity, TL.short_description, TPG.process_group_text, TP.process_text.
    Transaction_Log TL, Transaction_Process_Groups TPG, u.display_user_name
    Transaction_Process TP, u users WHERE TP.process_group_id is
    TPG.process_group_id and TL.process_id = TP.process_id and TL.pguid =
    (u.pguid (+) ORDER BY desc gravity, event_time) a) where rn between 1 and
    10


    call the query of disc elapsed to cpu count current lines
    ------- ------ -------- ---------- ---------- ---------- ---------- ----------
    Parse 1 0.00 0.00 0 0 0 0
    Run 1 0.00 0.00 0 0 0 0
    Fetch 1 5.09 73.06 60248 47768 55 10
    ------- ------ -------- ---------- ---------- ---------- ---------- ----------
    Total 3 5.09 73.07 60248 47768 55 10

    Chess in the library during parsing cache: 1
    Optimizer mode: ALL_ROWS
    The analysis of the user id: 45

    Rows Row Source operation
    ------- ---------------------------------------------------
    10 REVIEWS (cr = 47768 pr = pw 60248 = 14888 times = 62516706 en)
    COUNTY 582169 (cr = 47768 60248 14888 times = en 91625035 = pr = pw)
    VIEW 582169 (cr = 47768 60248 14888 times = en 91042864 = pr = pw)
    582169 SORT ORDER BY (cr = 47768 pr = pw 60248 = 14888 times = 90460690 en)
    582169 HASH JOIN (cr = 47768 pr = pw 52211 = 6851 times = 92165669 en)
    8 TABLE ACCESS FULL TRANSACTION_PROCESS_GROUPS (cr = 7 pr = 0 pw = time 0 = 52 fr)
    582169 HASH JOIN (cr = 47761 pr = pw 52211 = 6851 times = 91000485 en)
    62 TABLE ACCESS FULL TRANSACTION_PROCESS (cr = 7 pr = 0 pw = time 0 = 86 en)
    582169 HASH JOIN RIGHT OUTER (cr = 47754 pr = pw 52211 = 6851 times = 89252852 en)
    618316 MAT_VIEW FULL ACCESS_INAB ACCESS (cr = 12656 pr = pw 10308 = time 0 = 21098797 en)
    582169 TABLE ACCESS FULL TRANSACTION_LOG (cr = 35098 pr 35052 pw = time = 0 = 28542620 en)


    Elapsed time are waiting on the following events:
    Event waited on times max wait for the Total WHEREAS
    ---------------------------------------- Waited ---------- ------------
    file scattered read 3808 db 41.01 0.26
    DB file sequential read 361 0.15 1.78
    trip direct writing temp 616 2.09 0.10
    direct path read 2023 temp 0.34 13.95
    SQL * Net message to client 1 0.00 0.00
    SQL * Net client message 1 0.01 0.01
    ********************************************************************************

    Can you help me to correctly interpret this result?

    Kind regards

    Tony

    PS: I used [this | http://download.oracle.com/docs/cd/B19306_01/server.102/b14211/instance_tune.htm#i34268] reference.

    Published by: TonyDBA on August 26, 2008 02:19

    Tony,

    'so many physical reads' regarding: the most obvious reason is that your pool to KEEP is poorly calibrated. Check the view of BH V$ to find out how many blocks of your objects is actually cached. Note, however, that an indexed as appropriate approach is much better in terms of use of resources and performance.

    With regard to the modification of the SQL: I think you should go and say your software vendor or that their use of ROWNUM is inappropriate and does not work the way it is intended for application developers. You can use a simple query like this to show them the difference that makes it potentially:

    -- any large table will do, sys.source$ is usually among the biggest in a fresh test/demo database
    select * from (select * from sys.source$ order by line) where rownum <= 10;
    
    select * from (select * from sys.source$ order by line) where rownum between 1 and 10;
    
    select * from v$sql_workarea
    where sql_id in (
    select sql_id from v$sql where sql_text = 'select * from (select * from sys.source$ order by line) where rownum <= 10'
    );
    
    select * from v$sql_workarea
    where sql_id in (
    select sql_id from v$sql where sql_text = 'select * from (select * from sys.source$ order by line) where rownum between 1 and 10'
    );
    

    If you carefully check the output taken from V$ SQL_WORKAREA you will find the sort of the first operation query using the "appropriate" ROWNUM<= 10"="" used="" a="" very="" small="" memory="" footprint,="" whereas="" the="" second="" one="" using="" the="" between="" operator="" consumes="" a="" lot="" more="" memory="" and="" quite="" often="" even="" spills="" to="">

    You can also spot the difference in the execution plan, because the first uses the "ORDER of SORTING BY STOPKEY" operation that is using the optimization that only top n rows must be kept in memory and sorted, while the second is a "SORT ORDER BY" ordinary sort the result set.

    If they want to stick to the approach 'between' then an analytical function as ROW_NUMBER() can be used to achieve a similar optimization for sorting of the WINDOW.

    See Tom Kyte notes on how to correctly use top-n queries and pagination with ROWNUM or analytical functions.

    See for example here: http://www.oracle.com/technology/oramag/oracle/07-jan/o17asktom.html
    and here: http://www.oracle.com/technology/oramag/oracle/06-sep/o56asktom.html

    Regarding the index: given that you order by a descending column and the other a growing, I think you need to create an appropriate index composite tree conventional in order to be able to avoid all sorts to take place on the TRANSACTION_LOG table. This means that you need an index on (GRAVITY DESC, EVENT_TIME) and you should have clues on all columns of the other tables join.

    Note, however, that this approach NOSORT works easy if you aren't sorting on columns \*CHAR\*. If you sort by them your current client/session NLS_SORT setting determines the sort order, which is usually not the BINARY sort order used to create indexes on columns of default \*CHAR\*. Despite differently described in the Oracle documentation (where it is said that the use of a NLS_SORT setting! = BINARY will always use a full table scan) there is a solution to this by creating an index based on a function appropriate with the NLSSORT function if most / all clients share the same NLS_SORT setting.

    Kind regards
    Randolf

    Oracle related things:
    http://Oracle-Randolf.blogspot.com/

    SQLTools ++ for Oracle:
    http://www.sqltools-plusplus.org:7676 /.
    http://sourceforge.NET/projects/SQLT-pp/

Maybe you are looking for