Actor Framework Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

Creating a copy of Actor Framework.lvlib

Hi all,

Any help would be great...

I have made a change to actor core so that the handle error runs every time there is a message:

Actor Core Mod.PNG

I would now like to bring the Actor Framework into the project so I don't have to manipulate the Actor Framework in the vilib.  The plan was to Save As on the Actor Framework.lvlib and then set my Actors to inherit from the copies.  Inherit from ActorCopy.lvclass and MessageCopy.lvclass.  Since these are now within my project,  all the depencies should update?

Is this this best way to do it?

Also,  the Actor Framework.lvlib is missing a lot of the stuff store in: LabVIEW 2013\vi.lib\ActorFramework. It does not include the Time-Delayed Send Message and more..

Thanks

Lewis

0 Kudos
Message 1 of 2
(3,794 Views)

From bottom of your post up...

"Actor Framework.lvlib" isn't missing anything. Those other things are not supposed to be in the formal library. They are part of the framework but not the library because they are not needed on every load. They are add-ons that may or may not be needed by any given application. This is especially important for some of the secondary classes, like Error Report Msg.lvclass, because a .lvlib automatically loads all of its sublibraries, and classes are a sublibrary.

If you want to duplicate the Actor Framework, you need to duplicate the entire directory, not just the .lvlib.

Yes, the Save As is the best option in my opinion.  I would do this:

  1. Load the entire contents of the AF directory into memory.
  2. Do Save As on the .lvlib to a new name, like "LewisG Actor Framework.lvlib" in order to avoid any accidental crosslinking and to make sure that if you start mixing code from other sources it retains its original behavior until you convert it over.
  3. Do Save As with some amount of rename for all the other items that aren't members of the .lvlib, with similar rename.
0 Kudos
Message 2 of 2
(3,253 Views)