LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

test template

What is the best way to do a Multitest Program?

 

By example to create a VI to do 10 diferent test in order, when test is finished, don't stop VI, wait until put a new unit, click next/ok buttom and test.

 

any body have a template or the owner test setup?

 

here is mine...

Message Edited by lmontoya on 03-17-2010 12:13 PM
Message Edited by lmontoya on 03-17-2010 12:14 PM
Message Edited by lmontoya on 03-17-2010 12:15 PM
0 Kudos
Message 1 of 3
(2,350 Views)

The use of the sequence structure is, imho, a fatal flaw. It should rarely be used and never in tests and never inside an event structure. What happens when test 2 fails? In your design, it has to proceed to all other frames and run that code. Event structures should contain code that executes quickly. That is why you see recomendations to not have while loops inside an event.

 

You would be far better off adopting a state machine architecture where it is separate from the event structure but started when an event fires. You could easily handle failures and branch to a cleanup/stop state. You should also consider using shift registers to keep the status and progress instead of those local variables.

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

I agree with Dennis.  However, I do think that the GUI looks pretty nice.

 

Yik

------------------------------------------------------------------

Kudos and Accepted as Solution are welcome!
0 Kudos
Message 3 of 3
(2,330 Views)