LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Concurrent Access to TDMS file from two separate Exe's

I have an application that comprises of two separate exe's. One of them creates TDMS file with data. The other application reads it concurrently. In development environment., both of my Top Level  Vi's Work seamlessly. The problem starts when I compile them into EXE. Now I get Error Code 8 - "File Permission Error", when I try to read the file with Exe. My other Exe  is writing to the file continuously. Even LabView TDMS viewer cannot access it.

Is it possible that Concurrent access to TDMS file is not possible from two separate processes? Can some one elaborate a bit? Is there anyway whereby I can get concurrent access to a file from two separate processes. Or is it something I am doing wrong?

I am using 8.2.1 and am using "Open or Create", while writing. and "Open Read Only" for reading. Please help...


Thank you

Good Luck!

Mache
Message 1 of 2
(3,166 Views)
This is a known issue for LabVIEW versions prior to 8.5 (internal ID 49794JWJ).  The file locking used with TDMS was too rigorous to allow reading while another VI or program had it open for writing.  As a work around, I would try using shared variables, TCP, or close the file intermittently in each exe.

Trey B
Applications Engineering
National Instruments
0 Kudos
Message 2 of 2
(3,151 Views)