ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Accessing shared memory location

I have a space of shared memory that another application has created with a constant handle. How can I get Labview open up this space of memory without having to write a CIN?
Message 1 of 2
(3,501 Views)
Hi,

There is no built-in LabVIEW functionality to access shared memory. Although you do not have to use a CIN, you will probably have to use a DLL. There is documentation on Microsoft’s site:
MSDN.com: Using Shared Memory in a Dynamic-Link Library


You'll want to use a file-mapping object to set up memory that can be shared by processes that load the DLL.

There are also a couple discussion forum posts that provide some examples from other customers who have tried this:

DF: Communicating Between Built LV Apps
DF: How can I create a DLL with LabWindows/CVI with shared memory?

Hope this helps. Good luck!

Kileen
0 Kudos
Message 2 of 2
(3,465 Views)