Contestant Info:
Jonathan M. Kokott
jmkokott@gmail.com
Milwaukee, WI
User Group Affiliation:
Wisconsin Milwaukee Area Group. Not listed in all groups, we are coordinated by Chris Nelson and have had only one meeting.
Summary:
This Labview scripting tool takes a standard VI, and creates a wrapper around it to launch it as a daemon. This is useful for creating inline code modules that need a process to run in the background. Accessible through the tools menu option.
Features:
- Daemons will abort when the top level VI is aborted.
- Daemon can be aborted by closing the "Daemon Owner" VI refnum.
- Daemons obey source VI properties such as open front panel when called.
- Host process can be reentrant or standard.
- Tool places created daemon in idential project location.
- Tool will not alter the source VI in any way.
- Tool will run only in case "No Error" if an error cluster is provided by source VI
Steps to execute code:
- Run Setup.vi and restart labview.
- Open a VI that you would like to turn into a daemon VI.
- Select tools-> Create Daemon from VI...
- A daemon version of the VI will come up.
Screenshots:
Accessing the tool:
Main Block Diagram:
Run Target VI Case:
VI Snippets
Future Round Teaser:
In later rounds I'll replace the scripted tool with a block diagram node which will run any static VI reference as a daemon. It will be identical to programming a call by reference node, but it will not wait for the VI to finish...
Zipped project attached below.
note: This code was originally submit to the www.lavag.org code repository on 2-25-2011. I consulted the NI rep governing the rules of this contest and this code has met the submission criteria.