Error 1634 When Running Actor Framework Code in the LabVIEW Run-Time Engine

Updated Jan 17, 2023

Reported In

Software

  • LabVIEW
  • LabVIEW Runtime

Issue Details

I get error 1634 when I try to run my Actor Framework application as an executable. The error does not occur in the development environment. When I try to run an executable that uses the Actor Framework, a slight screen flashes and looks like it is trying to open but does not show any further activity. How can I run this application using the LabVIEW Run-Time Engine? 

Solution

The reason for the error is due to the Launch Root Actor VI and Launch Nested Actor VI that have an input to open the front panel. This input only works in the development environment and not in the runtime engine.

To open the front panels in the run time environment, you can use either of the following options:
  • Add an invoke node to call "FP.Open" to the Actor Core VI
  • Customize the Window Appearance of the Actor Core VI to show the front panel when called.
Show front panel.png
 
 

Additional Information

In order for the above methods to work, make sure the input to open the front panel in Launch Root Actor VI and Launch Nested Actor VI have a "False" constant connected. 
Please note that The 'Random Name Generator.vi' in the project builds a path to a 'Names.txt' file on disk based on the Current VI's Path function. This is a pattern that will only work in the IDE. The code will need to be rewritten to build a path based on the 'Application Directory' function, which will return the folder that owns the .lvproj in the IDE, and the folder that owns the .exe when running in the run-time engine. Then, you would need to change the build spec to make sure to place the .txt file in a known location. Alternatively, you can simplify the 'Random Name Generator.vi' to not use a text file at all as follows:
 
Simplify random name generator.png