01-25-2016 11:56 PM
Hi
I am designing an online test using labview.There is a Main VI and Sub VI (attached below).
The Main VI has instructions while taking the test and clicking on the START button launches the test.
The test has 10 questions and each need to be answered in 10 seconds.There is a LED display which tells if your answer is right or wrong and your score is also displayed.
Now I need the following changes in Sub VI:
1.If the person finishes a question before 10 seconds,the control should go to next question(ie.the maximum time for each question is 10s)
2.The led display and label need to be active only once a radiobutton is selected and need to be grayed out otherwise
3.The score need to come only after the 10th question is attempted.
Can anyone help me with this.
01-26-2016 08:59 AM
Hi anushaas,
I make you a quick example of how to proceed.
Regards.
01-26-2016 09:00 AM
Instead of Time Delay use Elapsed Timer and poll it to see if enough time has gone by. Put a while loop in your for loop where you see if you should end or continue to wait. This way you can choose to end early if a selection was made before the time was up. You may also want to use a conditional for loop so you can quit before all questions are answered.
Use property nodes and the event structure to disable or enable controls on value change.
Again use a property node to hide the score control until you want to show it.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord