LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Memory Usage and Bit Version

Hello,

 

I want to see for a Program/Process if this is a 32 or 64 Bit Version and the Memory Usage.

 

Has someone a plan how to do this?

 

 

0 Kudos
Message 1 of 8
(3,680 Views)
Did you try a search on the forums?
http://forums.ni.com/t5/LabVIEW/Is-there-a-way-to-determine-if-an-application-is-32-bit-or-64/m-p/14...
https://forums.ni.com/t5/LabVIEW/Check-if-process-is-32-or-64-Bit/td-p/3243261

For memory usage, you can get this using the .NET Process library.

LabVIEW Champion, CLA, CLED, CTD
(blog)
Message 2 of 8
(3,670 Views)

Yeah I did, but I still can't get it to work.

0 Kudos
Message 3 of 8
(3,623 Views)

It should work in 2014 exactly the same as it works in 2010 and you should be able to save the VI Snippet in the other thread to the desktop and then drag it into a blank VI in LV2014 and it will create the LabVIEW code for you.

 

I took a look at your code - you're mixing up two different methods - you need to wire a processId or window handle into the IsSysWow64 function call, NOT the size of the IntPtr.

 

 


LabVIEW Champion, CLA, CLED, CTD
(blog)
0 Kudos
Message 4 of 8
(3,619 Views)

Yeah I did that,  but the Code doesn't work.

0 Kudos
Message 5 of 8
(3,577 Views)

@NoName1771 wrote:

Yeah I did that,  but the Code doesn't work.


How doesn't it work? Do you get an error? You need to provide more information if you want any help!


LabVIEW Champion, CLA, CLED, CTD
(blog)
0 Kudos
Message 6 of 8
(3,547 Views)

First Memory Usage:

 

 When I get the Process via "GetProcessByName", like firefox.exe for example ,  I can get the "PrivateMemorySize" and get the Full amount of RAM Usage of the Program.

 

The Problem is, that the shared Memory and the Private Memory of the Process are combined as Private Memory Size. And I only need the Private.

 

For Example: Firefox has 261MB of RAM Usage in the Task manager. In Labview 321MB

 

By checking out the "Process Explorer" I saw that Shared Memory of Ram is 60MB.

 

Question: Is there a way to get the Private Memory of a Process or the Memory Usage via Task Manager?

0 Kudos
Message 7 of 8
(3,540 Views)

The Bit Version:

 

I used the this Program:

 

 

But the LstBox doesn't workoriginal.png

0 Kudos
Message 8 of 8
(3,529 Views)