LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Prevent last loadded data from displaying by default in built application

In a built application, if a UI takes a second or two to load, it sometimes displays the previous loaded data.  The previous loaded data was from when it was being tested in development mode.  Is there something that automatically trips set to default value for the coltrols in development mode?  We do not manually set this option. 

 

Is there a way to prevent it without having to write empty data to the control first when loading then querying the database for the real values, etc...

 

0 Kudos
Message 1 of 6
(2,891 Views)

Hi nate!

 

Nice question I have this problem too. It happens if you use e.g. Listboxes and Waveform Charts. The data will be stored in such controls and indicators.

I don't know how to solve it.

 

If you goto the Top Menue->Edit->Reinit To Default it will only erase data from controls andd indicators, which don't store data in itself.

 

Regards, Eugen

0 Kudos
Message 2 of 6
(2,889 Views)

The best method I have found (although you might not like this) is I have a template for most of mu GUIs that have a state machine architecture.  The initialize queues up the init values (this is where I explicitly reset all controls to a known state), then I show the front panel.  You can use reinit to default but from my experience I like to set these values explicitly, this way I have a state in my archidecture to easily change their values.  I find the reinit to default causes me problems since durring debugging you sometimes change these valuse by mistake.  This is just what works best for me and i am used to this protocol.

 

 

 

 

Paul Falkenstein
Coleman Technologies Inc.
CLA, CPI, AIA-Vision
Labview 4.0- 2013, RT, Vision, FPGA
0 Kudos
Message 3 of 6
(2,883 Views)

Thanks for the tip, I was really hoping that it would not come to that, or that I was just doing something wrong.  Perhaps NI will choose to address this issue in the 2010 release since it's probably too late to implement in the 2009 release.

 

 

0 Kudos
Message 4 of 6
(2,860 Views)

May I ask what your opposition is to initializing the data using a 0 constant or array of 0?

It does exactly what you are describing.

Cory K
0 Kudos
Message 5 of 6
(2,856 Views)

It seems kinda silly to have to initialize the control twice.  Once with no data and once with the data you want it to display.  I think it is just more of an annoyance that different controls' behaviors are not consistent.  Obviously this data is being stored somewhere in the program which then gets built into the application.  I just don't think it should.

 

 

 

0 Kudos
Message 6 of 6
(2,820 Views)