Attached are the VIs from my NI Week 2007 presentation on LabVIEW Object-Oriented Development.
These VIs are the demonstration of the LV2OO-Style Global, aka "the last functional global you'll ever have to write." In short, these VIs show a functional global with a better interface than the traditional functional global in such a way that you only need one functional global VI for all your data storage needs, no matter what actions you need to perform on that data. No performance benchmarks have been done to say whether one style performs better than the other, but the demo goes a long way to highlight how LV Classes can improve even very common aspects of LV programming. The .zip file says "v2.0" because there was an earlier iteration of this demo posted on the LAVA website earlier this year... this version has been refined from that original draft.
After you unzip the attachment and open the project, there are two demo VIs:
- Demo with static allocation.vi
- Demo with dynamic allocation.vi
You'll find comments on the block diagrams.
These VIs are written with LV8.2. They both work fine on MS Windows. On MacOSX, the static allocation will crash, but the dynamic allocation works fine. In LV8.5, the crash on the Mac is fixed.
These VIs will eventually be available as part of the NI Week presentations generally, but I've been asked to make them available sooner by users attending NI Week who want to review them.