LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to control the display of items in an array?

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.

 

Download All
0 Kudos
Message 1 of 3
(2,895 Views)

Hi anushaas,

I make you a quick example of how to proceed.

 

Regards.

Sabri JATLAOUI - Certified LabVIEW Architect - Certified LabVIEW Developer
0 Kudos
Message 2 of 3
(2,834 Views)

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.

0 Kudos
Message 3 of 3
(2,831 Views)