Certification

cancel
Showing results for 
Search instead for 
Did you mean: 

Object Oriented CLD Approach

Solved!
Go to solution

All examples of the CLD example package can be solved with at least a state machine pattern.

 

I prefer to have some data cluster which stores the information to update the FP instead of accessing FP elements directly. This cluster is connected to the main loop by a shift register. For this reason I create a control. I can convert easily convert a control to a class.

 

This has several advantages. Methods can be (in my opinion) created more easily than VIs. They are also easier in use and they can be used to implement preliminary functionality which is overriden by another class.

 

But where to store it??? There is a Folder for VIs and one for controls. But none for classes. In addition I find it useful to store the methods for a class in the same folder than the class.  Is there a best practice?

0 Kudos
Message 1 of 2
(3,192 Views)
Solution
Accepted by topic author mthimm1

I would just make another folder for classes.  The points with directory structure is just that it is organized.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 2 of 2
(3,143 Views)