LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Using Application Design Pattern

I intend to automate 1000 odd test cases using labview.In doing so I want to decide on the scripting format.Each Test case is independent of each other and there could be sub-vi common to all test cases.Request you guide me on selection of application design pattern I am planning to use object oriented pattern , however I want to know if there is anything simpler than this or which design pattern should I use and why?

 

I would like to know whether producer-consumer pattern  can be used any advantages / disadvantages of producer-consumer loop over Object Oriented.

0 Kudos
Message 1 of 5
(3,018 Views)
Are you familiar with the State Machine Architecture in LabVIEW? http://zone.ni.com/devzone/cda/tut/p/id/3024
Message 2 of 5
(2,984 Views)

You say about "automating 1000 test cases". What are these test cases?

Is it something like "record and play" operation where all the user actions are recorded and played something like a regression testing for validation and verification activity?.

 

Or is it a series of 1000 test that you perform on a UUT?

 

GUru

Regards
Guru (CLA)
0 Kudos
Message 3 of 5
(2,979 Views)

I am new to labview so I have just read about State Machine.Well , 1000 Test cases are test cases that has a defined procedure or different Test conditions and will be performed on UUT.

 

All the Test cases are independent and with the basic VIs in common like functions in C.

0 Kudos
Message 4 of 5
(2,951 Views)

I suggest you to use the Producer consumer or state machine (with event structure to handle the user events and a QUEUE to communicate to different states) for this task of yours.

 

Well LVOOP is also a good(best) thing to start with provided you are very well familiar with most of the OOP concepts and using them in LV

 

Serach for the "Design Patterns" keyword in the ni.com and you will find all the required information regarding the same.

 

Guru

Regards
Guru (CLA)
0 Kudos
Message 5 of 5
(2,941 Views)