LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Measure memory used by a control

Hi,

 

is it possible to measure amount of memory allocated by the specific control in VI (on front panel)? I have more big controls on the front panel and would like to measure how much memory they allocate.

 

Thanks!

0 Kudos
Message 1 of 3
(2,528 Views)

Memory for controls is a fuzzy number that includes several things:

 

  1. The code to implement the control
  2. The data contained by the control
  3. The data in the transfer buffer to the control

All of these can be different.  You can find out how much memory the code takes by looking at the memory usage of the VI before and after adding the control (use the VI properties dialog).  The data contained by the control and transfer buffer could be eithe constant, in the case of scalars, or widely variable, in the case of arrays and charts/graphs.  The same VI properties dialog will give you this information, as well, or you can use your operating system process monitor to see differences dynamically as you step through code.

0 Kudos
Message 2 of 3
(2,509 Views)

I had in mind the data contained by the control.

0 Kudos
Message 3 of 3
(2,496 Views)