LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

RT Application does not initialize controls after upgrade from 2010 to 2011

Solved!
Go to solution

 

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.

 

0 Kudos
Message 1 of 4
(2,397 Views)

Incidentally forcing the controls with constants works, but not using default values.

0 Kudos
Message 2 of 4
(2,396 Views)

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

Zach P.

Staff Software Engineer | LabVIEW R&D | National Instruments
0 Kudos
Message 3 of 4
(2,364 Views)
Solution
Accepted by topic author twopac

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.

0 Kudos
Message 4 of 4
(2,348 Views)