10-01-2012 12:26 PM
We recently upgraded our RT system from 2010 to 2011. The system is an NI-8110 with two GigE cards, a Serial Card, and some DAQs. All NI hardware.
When run directly from within the project the application runs fine, but when it is built to run standalone it does not initialize the controls on the front panel and instead we are getting empty strings or zeros passed in. Sometimes after making a minor change (like adding the printing of a debug string) it starts working standalone, but breaks on the next build.
It almost seems like we have some file used by Labview RT that was not handled properly by the upgrade. Any one else run into to this.
Solved! Go to Solution.
10-01-2012 12:27 PM
Incidentally forcing the controls with constants works, but not using default values.
10-02-2012 10:58 AM
Are you building a debuggable exectuable for the RT target? Otherwise the rtexe will not include the front panel, and values referenced to controls will receive default values for that datatype.
A debuggable executable will include the front panel; this may be what you had in a previous LabVIEW version. You can enable this setting in the Advanced tab of the RT Application Properties window.
See the KnowledgeBase article linked below for similar info on why Property Nodes do not work in RT executables.
http://digital.ni.com/public.nsf/allkb/CB2845F7746152208625773000713E5C?OpenDocument
10-04-2012 12:57 PM
Zach,
Thanks for that tip. We do have the debugging option checked, but it is possible that we stumbled into a bug in Labview 2011 (not SP1) due to the size of our application where the front panel is not initialized.
Based on your tip, I created constants and used those to initialize the controls. That change fixed the problem, and at some point I will change those controls to indicators.
Thanks for your help.
N.