Jump to content

So.Cal LAVA Topic:Large Code Architecture - Code reuse


Recommended Posts

: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

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.