|
Re: E-num text not being sent to Dashboard when Compiled
When you are using a property node, you are talking directly to the front panel control such as the enum. But the default when building an RT application is to remove all panels. So that is why the EXE doesn't work the way you expect. If you were to debug further, you'd get an error from the property node, hopefully it is in the log file and messages window, telling you that the control doesn't exist.
There are a couple ways to make this work in an EXE. At least on the desktop, you can change the build to leave the panel in the app. That is accomplished by opening up the Build Specification and going to the Source File Settings where you will select your Autonomous VI, or whichever VI has the enum on its panel. In the right middle of the dialog are checkboxes for deciding whether the diagram and panel are removed and how they default. If you change this setting for this single VI, I suspect that will work.
The other way, and the way to do this enum introspection is to use the Format into String node. This will also turn enums into strings, but one at a time. So this is how the test mode and other framework elements tend to get extra name info to send back and forth between the dashboard and the code.
Good job figuring out how to get this to automatically update.
Greg McKaskle
|