11-15-2016 10:45 AM - edited 11-15-2016 10:56 AM
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?
Solved! Go to Solution.
11-15-2016 08:00 PM
I would just make another folder for classes. The points with directory structure is just that it is organized.