Actor Framework Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

A word of advice on starting actors...

If you have a VI that simply launches your root actor then exits, be extra sure that you don't accidentally press the Run Continuously button when starting it.  Especially if your root actor then spawns other actors with UI elements galore...

 

Does anyone have any advice on how one might deal gracefully with such a situation if it should somehow occur?  I ended up having to restart Windows.

 

Andy

0 Kudos
Message 1 of 5
(4,712 Views)

I believe one thing you can do is go into the VI properties for the launcher VI, open the Window Appearance customization options, and unselect the show run continuously button. This should remove the button in the toolbar. Alternatively, you could try using the keyboard shortcut (Ctrl-R) instead of clicking the run button.

Message 2 of 5
(4,683 Views)

Thanks mbremner!  This is something that also occurred to me after the event.  Makes me wonder why the run continuously button is shown by default.

 

Andy

0 Kudos
Message 3 of 5
(4,675 Views)

@PsyenceFact wrote:

Thanks mbremner!  This is something that also occurred to me after the event.  Makes me wonder why the run continuously button is shown by default.


Because for the vast majority of the world's VIs, it isn't a "restart the computer" level failure. 🙂 Continuous run is a major debug tool... just sit there and put in different inputs and visually check when the VI gives wrong results.

 

Solution: Buy less RAM! Then LV will run out of memory sooner and just crash out instead of eating system resources and slowing you down.

[just kidding... hiding the continuous run button is a better option!]

Message 4 of 5
(4,631 Views)

You could create a template VI that already has removed the run continuously and perhaps add other little things that you find yourself adding to all VIs that launch actors and start always from that template.

You can even save it with the .vit extension.

For an opportunity to learn from experienced developers / entrepeneurs (Steve, Joerg, and Brian amongst them):
Check out DSH Pragmatic Software Development Workshop!

DQMH Lead Architect * DQMH Trusted Advisor * Certified LabVIEW Architect * Certified LabVIEW Embedded Developer * Certified Professional Instructor * LabVIEW Champion * Code Janitor

Have you been nice to future you?
Message 5 of 5
(4,598 Views)