LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How I can get data from computer memory using labview ?

Hy evryone,

 

How I can get data from computer memory using labview. I want to get test data from an other application (not labview) and that require communication with computer memory.

 

Thx.

0 Kudos
Message 1 of 15
(4,384 Views)

Hi nizartun,

if you know the location, then you can use the kernel.dll to read the memory. You can see how it works in my "Screenshot" example postd here in the forum.

 

Mike

0 Kudos
Message 2 of 15
(4,380 Views)

hi Mike,

 

Thank you, but, can you give me a link to your "screenshot"
0 Kudos
Message 3 of 15
(4,372 Views)

Hi nizartun,

here is the link.

 

Mike

0 Kudos
Message 4 of 15
(4,352 Views)

thx mike I'll try.

 

nizar

0 Kudos
Message 5 of 15
(4,349 Views)

I'm afraid Mikes example won't help you here. He is not reading memory from another process (something quite impossible without very advanced low level debugging APIs on any modern OS), he is communicating with another process through the clipboard. It's one way of interprocess communication, albeit a cumbersome one if you talk about arbitrary information exchange between two processes.

 

Your options for this are more likely to be sought in:

 

1) shared memory access (- low level Windows API calls, - needs according code in both processes, + highest performance)

2) TCP/IP (+ standard platform independant mechanisme, - needs according code in both processes, + high performance)

3) DDE (+ legacy Windows technology with Windows API call programming, - needs according code in both processes, - low performance)

4) file IO (+ standard operations supported virtually in any application, - low performance)

Message Edited by rolfk on 05-11-2010 10:46 AM
Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
Message 6 of 15
(4,260 Views)

Thx all of you, but i can't find solution.

 

This is my problem : I have an application (not labview) runing in my PC. So, this application write data in computer memory. Now, I want to get this data from computer memory using labview to treat and display it. The 2 applications are runing in the same time.

So, is there solution to communicate with computer memory using labview.

 

Nizar

0 Kudos
Message 7 of 15
(4,232 Views)
It depends. If the application doesn't write that information somewhere specific such as shared memory, hard disk file or somthing like this, there isn't any way. Even if you could get at the (virtual) memory address of the location where the application stores that information in your computer memory, which you usually can't, that information would mean nothing outside of that application, since in all modern OSes memory access is virtualized, meaning its address value is translated by the OS into some physical memory address that is private to that application process and protected to not be accessible by any other application process.
Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
0 Kudos
Message 8 of 15
(4,227 Views)
Is the data that you need visible on the screen while the other application is running?? I have seen some people in the forums use machine vision to grab screenshots and trigger the labview program when the screen changes. Possibly use a capture text/image program in the background.
0 Kudos
Message 9 of 15
(4,199 Views)
data is not necessarily visible on the screen.
0 Kudos
Message 10 of 15
(4,154 Views)