I'm starting to use the actor framework for a large application. I am wondering if there is a way to auto generate a new Actor?
I understand I can auto generate messages for an actor using Tools -> Actor Framework Message Maker...
I make an Actor by making a new Labview class say:
Then set the inheritance of this class to Actor.lvclass
Make the Actor Core.vi Method
Make a Write waveform method
Set the scope of Actor core to protected, and other methods to public (just like the Simple Actor example) and make actor core reentrant
I am making the structure EXACTLY like the Simple Actor example, but I get the following errors in my new Actor Core.vi:
"This VI doesn't match other VIs in the method, Connector Pane Terminal(s) are different. All VIs that implement a method of a LabVIEW class must match Connector Panes. To correct this, compare Connector Pane of both this VI and the VI of an ancestor class that implements this method."
"The owning VI is not a dynamic member VI of a LabVIEW class. The Call Parent Method node should only be used in a dynamic member VI of a LabVIEW class."
I tried to read into this message, but it appears my connector pane is the name. I'm not sure whats going on.
(1) Can someone show me what I am doing wrong here?
(2) Is there a way to auto generate the Actor?
Every time I try to construct an actor from scratch I get the above errors. I have attached my project (LV2012).
Any help is greatly appreciated!
Solved! Go to Solution.
Create a "Project Template" (search the forums for it)
Try the latest GDS (GOOP Developer Suite - free for small projects)
You didn't set the Test Actor.lvclass input terminal to "Dynamic Dispatch".
You don't need to make Actor Core.vi from scratch. After creating the class and setting its parent as Actor, right-click on your class and Create VI for Override.
Simpler than the Project Template is to drop a .vit file in a place where quick-drop can find it.
After I create Actor Core.vi with a right-click, I hit ctrl-space "coregui.vit", which drops in the standard code I use for an actor that has a GUI (the terminal controls are not included in the template).
Thanks! VI for Override works well! Exactly what I was looking for.
BTW, Is it possible to change the setting of the Test Actor.lvclass input terminal to "Dynamic Dispatch" manually? Can you explain how to do that if I make the actor from scratch?