JackHamilton Posted December 9, 2003 Report Share Posted December 9, 2003 :idea: This topic of "Code Reuse" was presented at the Nov.2003 So.Cal LAVA Meeting by Jack Hamilton. It discusses the concept of object oriented programming (OOP) techniques in LabVIEW to solve some common code situations. The example covers creating a "System Paths" VI (object) that outputs the required system, data and resource paths required in most coding projects. Also discussed is the creation of an Error Handler VI (Object) that will display an error dialog and allow logging the error to disk - additionally the offending State that caused the error can be recorded with the State Machine Variable cluster cast to XML. Although the error handler is a generic VI that can be dropped into any project. The System Paths VI would require customization for each projects specific needs. The demonstration is that you can implement a 'generic' architecture that requires little functional modifcations for reuse. Leading to faster development and more robust code. Attached is a Power Point 2000 .ppt file and a Demo VI which includes the 2 VI's discussed. Source LLB's are included. Download File:post-12-1073109557.zip Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.