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.
Solved! Go to Solution.
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.
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...
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.
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.
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.
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...)
This is it. I just can't (yet) translate it to a labVIEW program.
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.
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