I need to be able to communicate data between LabVIEW and another program. We need LV to write to a file (e.g. *.txt.) about 1x per second (only writing about 10-20 string controls) and the other software reads it at about the same rate. The data in this file will be read by the 3rd party software. The 3rd party software will only be reading, LV will be doing all of the writing. The method that the 3rd party software company proposed (since they had worked with it before) is memory mapping, or mapping the file to memory. Has anybody had any success in doing this before? I am trying to rework some code posted
before. I am also using MSDN to get all of the function calls down.
The main problem I am having is how am I able to read back the data? I thought I was close, but based on the code attached, it didn't return anything. Also, does the filemapping update when the referenced file is changed? Or will I need to read and write through through the memory mapping?
Here is the MSDN site for
File Mapping. I'm really stuck on implementing the code in this
section.
-Aaron