05-10-2012 08:22 AM
Hello all,
Probably this is a simpel question for a lot of u, but not for me. I try to make a reaction time meter. And I hope someone can help me with the first part: the LED light needs to blink on a random time between 3 and 7 seconds.
After that need to measure the time between burning led and pressing stop button
Results ordering in a array
after ten measurements display of average reaction time.
I hope someone can help me start this, I need it for school.
Thanks!
Matthijs
Netherlands
Solved! Go to Solution.
05-10-2012 08:29 AM
Folks on this board are not going to do your homework for you. If you ask more specific questions, you may get some help. Take a look at LabVIEW help. There is a random number function. Also have a look at the "timing" pallete.
05-10-2012 08:32 AM
Nobody needs to do my homework, but after 10 hours labview with no progress I think somebody can give me some advice to complete this execise myself...
05-10-2012 08:35 AM
Did you go thorugh the LabVIEW Basic materials?. Try to post the code that you have tried before then you will get improvements for that.
05-10-2012 08:47 AM
I just don't know how to start. I have the labVIEW custom basic course manual. But my English is not that good so it's complicated, but nevermind I'll read it again.
05-10-2012 08:52 AM
Read it and also you search into the LabVIEW help it has good stuffs in Fundamentals maybe you may get an idea to start when you look at them.
Good Luck
05-10-2012 09:01 AM
There is insufficient and vague information in your problem description. First clarify exactly what you need to do.
To start this project, design a state machine and define the various states:
Define how the states connect as a function of parameters (e.g. after 1-9 results, go back to random delay, but after 10 experiments, go to results display, etc.)
Use shift registers to hold data (count, results array, etc.)
Do a search for state machine in the forum. Look at the design templates that ship with LabVIEW. (file...new...)
05-10-2012 09:19 AM
This is it. I just can't (yet) translate it to a labVIEW program.
05-10-2012 10:59 AM
Spookdog,
Here's some code for you to study. I've kept things simple but there are a few concepts you should read up about.
The code is in LabVIEW version 2011.
Good luck.
~Simon
05-10-2012 11:37 AM
Simon's code de-bugged. The Key Down was a nice touch but cannot be disabled so we were testing preaction times and the "Trial" param could get pretty messy especially on a repeat series