05-31-2018 02:31 PM
I have a lot of subvis created to test a large number of test boards and would like to create a master test program where I could select from a list of tests to run on each board. I am looking for suggestions or examples for how to implement this. Ideally, the program will have a checklist of all the tests and I would be able to go through and click to activate just the tests that I want to run for each specific board.
05-31-2018 04:11 PM
Architecturally this could be a lot better but the snippet below allows you add additional test relatively easily without changing the form of the program (simply add another Boolean and a case in the consumer loop to handle it). Somebody'll be along shortly to suggest a different architecture (or maybe TestStand), I'm sure.
Biggest issues with what I'm supplying:
06-01-2018 12:12 AM
06-01-2018 11:41 AM
Is "Tests Manager" only in the newer Labview versions or is it a program you have to download separately? (I only have Labview 2011) And with this program, are you able to run through all the tests at once or is it just one test at a time?
06-01-2018 01:04 PM
Hi I'm adding the VIs for your LV version consider that Test1 and Test2 needs to be substituted by your actual subVIs. You also have to modify the Tests Multycolumn Listbox to match your actual test information. In this case you only execute one Test at the time according to your request in the first comment. You can add as many tests as you have to the Test control and to the Case Structure.
Greetings!!
06-01-2018 02:23 PM - edited 06-01-2018 02:32 PM
Assuming all you individual tests have their own sub-vi, I would use a "Queued State Machine" architecture. Each test would have its own "state" in the state machine
You would have a "select tests" state where you select the tests you want to run (or are selected automatically by selecting the bard type) and these test are loaded into the Queue and ran.
Here is an example: This program is for testing inverters...
In my "Nominal Operation" state I can select "line mode" or "Inverter mode" tests to run
The selection loads teh queue with the test sequence I want to run.
This where I initialize the queue when the program starts, and shows the queued state machine control
06-01-2018 02:59 PM
06-03-2018 07:33 AM
@RTSLVU wrote:
Assuming all you individual tests have their own sub-vi, I would use a "Queued State Machine" architecture. Each test would have its own "state" in the state machine
In a similar vein, there is also the JKI State Machine, which many here will swear by.
06-03-2018 09:02 AM
I'v seen you have created another threat related to the same program
So as the other have said you should better use a state machine where you can manage both functions, runing your tests and manage the files reports you want to save.
Greetings
06-04-2018 02:56 PM
Okay, state machine is what I figured. I was just wondering if there was something similar to Teststand that I did not know about since I am still fairly new to Labview. Thanks for the suggestions everyone.