08-25-2010 12:00 PM
Hi,
I am new to LabView and I am trying to use LabView to save some data at the specific memory location so that when I am running my C++ program I can access the same memory location and get the value. Is there any way to do that? or there are other better ways to transfer data between LabView and C++?
Chi
08-25-2010 12:34 PM
LabVIEW has its own memory management. You cannot tell LabVIEW where to explicitly store something. Is the C++ program a DLL? If so you can allocate an array of sufficient size and then pass it to the DLL as a pointer so the DLL can write to that memory location. Please do a search on the NI site for calling DLLs from LabVIEW. There is also an entire chapter in the LabVIEW Help, as well as an example that ships with LabVIEW on how to call DLLs. Open the Example Finder (Help -> Find Examples) and search for "DLL".
08-25-2010 12:50 PM
A good tutorial on inter-application data transfer. What, when, how much, and timing requirements are the real world levers that influence the choice of method.