LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LabVIEW exe file uses a lot of RAM memory

Dear Community.
Thank you to everyone who reads my post.

Have you ever built a 1-second while loop with no action and run an exe file to check the memory?

it decreases slightly after another hour or so.

What I'm curious about is basically why the exe file eats a lot of memory, and if there is a way to alleviate it?

 

I use LabVIEW 2019 (32bit) and Windows 10 Pro 64bit.

0 Kudos
Message 1 of 18
(3,373 Views)

Have you ever built a 1-second while loop with no action and run an exe file to check the memory?

it decreases slightly after another hour or so.

What I'm curious about is basically why the exe file eats a lot of memory, and if there is a way to alleviate it?

 

I use LabVIEW 2019 (32bit) and Windows 10 Pro 64bit.

 

0 Kudos
Message 2 of 18
(3,272 Views)

The LabVIEW runtime itself needs a few tens of MB to do its job. Nowadays, it does not seem very much.

What do you mean with "a lot" and why would you need to reduce it?

Paolo
-------------------
LV 7.1, 2011, 2017, 2019, 2021
0 Kudos
Message 3 of 18
(3,341 Views)

Thank you for your help!

 

Our software controls multiple machines.

We want to connect PC and machines with each exe file, and we implemented it accordingly.

Each connection wants to be isolated when an error occurs, and one PC wants to control as many machines as possible.

0 Kudos
Message 4 of 18
(3,327 Views)

AFAIK there is no way to reduce the runtime footprint. I think you can still run many applications, though.

Are you using Windows or Linux? Maybe you can act on the OS side (use an industrial version, disable unused services, etc.).

Paolo
-------------------
LV 7.1, 2011, 2017, 2019, 2021
0 Kudos
Message 5 of 18
(3,314 Views)

@Jively wrote:

What I'm curious about is basically why the exe file eats a lot of memory, and if there is a way to alleviate it?


You need to be much more specific. What is "a lot" and what would you consider "normal" instead?

 

Why don't you investigate memory use of your real applications? A empty while loop is certainly not representative. (With the same logic you could say that driving an empty 18-wheeler across the country should not use any diesel fuel at all.)

 

(Nothing "eats" memory. Memory usage is not a destructive process, because once the application closes, you get it all back.)

 

Do you have memory problems? The memory use of a LabVIEW applications is not worse than most other modern programs.

0 Kudos
Message 6 of 18
(3,304 Views)

The meaning may have been misrepresented.
Even if you create and run "blank.exe", it uses about 45MB of memory.
Is there any way to reduce memory usage?

0 Kudos
Message 7 of 18
(3,301 Views)

@Jively  ha scritto:

The meaning may have been misrepresented.
Even if you create and run "blank.exe", it uses about 45MB of memory.
Is there any way to reduce memory usage?


Well, for ten applications this amounts to half a GB. What's the point in a, say, 16 GB machine?

Paolo
-------------------
LV 7.1, 2011, 2017, 2019, 2021
0 Kudos
Message 8 of 18
(3,290 Views)

@Jively wrote:

The meaning may have been misrepresented.
Even if you create and run "blank.exe", it uses about 45MB of memory.
Is there any way to reduce memory usage?


No. That's probably the RTE footprint.

 

But you could consider running the different Main VIs of the each executable in the same executable.

 

So instead of creating multiple executables, you 'd make one executable that runs the VIs. That would give you 45 MB + n*X?? instead of n * (45 + ???). You might have to solve some issues, as all VIs will be shared.

Message 9 of 18
(3,288 Views)

Thank you for your interest and help.

My English is bad, so I express it with an image.

We control with exe, and asynchronous calls are not currently considered, so memory needs to be reduced.

Jively_0-1610963556670.png

 

0 Kudos
Message 10 of 18
(3,273 Views)