LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Custom controls and Disk Space

I recently redid a large application and decided to make a custom control that i would reuse everywhere for numeric indicators. As a preference, we used the NI Themed Numeric with the increment and decrement from the silver controls. It looks good. After replacing a lot (100+) controls with these my compiled application now takes up 2x the disk space. I didn't change it so that I have more indicators and I believe the only thing to add disk space are those controls when I did my update. Is there any way for me to reuse the control without the compile explicitly creating a new instance for every control? Do i need to create a type def instead? That seems to affect all of my limits and properties for each control that was previously setup. Does anyone have experience with this that can explain how custom controls work when using alot of the same design?

0 Kudos
Message 1 of 5
(3,060 Views)

Smiley Indifferent i hope you didnt replace every control 1 by 1.  If you make a type def they will all automatically update when the type def is updated, so you would only have to do it once instead of 100 Smiley Very Happy.  As far as disk space, i dont have an answer for that, except the new control may take up more space than the previous, but thats an assumption. 



-Matt
0 Kudos
Message 2 of 5
(3,039 Views)

Each instance takes up its own memory space. When I replace with a type def, i lose parameters of control - Min, Max, Increment. I was trying to avoid that. Would anyone with knowledge of how labview instantiates custom controls want to add input?

0 Kudos
Message 3 of 5
(3,017 Views)

Is every control unique?



-Matt
0 Kudos
Message 4 of 5
(3,014 Views)

@tmf171 wrote:

When I replace with a type def, i lose parameters of control - Min, Max, Increment.


A Strict Type Def blocks your capability to set properties (since all instances have to be the same).  A Type Def should not eliminate those individual properties.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 5 of 5
(2,981 Views)