Unbundle the stop notifier from the Child Actor object.Bundle the notifier out into the Child Actor object.Use the notifier out terminal to create a control, rename it stop notifier and then move it into Child Actor.lvclass private data cluster.Create a notifier with an empty string for the data type.Save these vi’s and add them to the Framework Overrides folder in the project.įollow the following steps to be able to stop the Child Actor when Actor Core is closed. This is where your Actor’s functionality happens. Actor Core will be the main vi that is run. These vi’s are called before and after Actor Core is launched and stopped respectively. Pre Launch Init will be used to create a string notifier and Stop Core will be used to clean up the notifier. Actor Framework.lvlib can be found in C:\Program Files (x86)\National Instruments\LabVIEW 2013\vi.lib\ActorFramework\.Ĭreate a new Class inside the Child Actor folder and save it.Ĭreate virtual folders called Messages and Framework Overrides.Ĭhange the inheritance of Child Actor.lvclass to inherit from Actor.lvclass.Ĭreate three vi’s that override the Actor Core, Pre Launch Init and Stop Core. This is needed so that the classes we are going to create can inherit from Actor.lvclass. You need to add Actor Framework.lvlib to your project.
LABVIEW 2013 DOES NOT RUN HOW TO
I will explain how to create the Child Actor and then only show the differences in creating the Parent Actor. The main differences are the way in which they are started. The Parent Actor and Child(ren) Actor(s) will be created in a similar way. Child Actor: Another Actor that can do things.Parent Actor: Main Actor which will launch Child Actor.Launcher: Main vi which is used to start the program.Start off with an empty project and add three virtual folders named, Launcher, Parent Actor and Child Actor. The introductory level presentation given at NIWeek 20.Webcast video: Introduction to the Actor Framework.READ THIS FIRST to get started with Actor Framework.Below is an example/tutorial on how to start from an empty project. I am finally getting an understanding of it and seeing the potential power in using the framework. Last week a colleague explained the basics to me and over the last two weeks I have been working on a large project using the Actor Framework. All the examples that I worked through started with a relatively large project and I could not find an example that starts with an empty project and builds up from there. My two main stumbling points, I felt, was not having a project to implement the framework in and not really knowing where to start. After trying a number of times, unsuccessfully, I put it to one side for another day. I started by reading the recommended starting point and went through all the examples, templates and hands-on. I have tried a number of times over the last year or so to get my head around the Actor Framework in LabVIEW.