LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Read a file in labview already open in another program

Hi,

I am using labview to read a text file, also there is one more software(not lab view) is writing to the same file which I am using to read.My problem is that ,is it possible to read a file which is already openned by another software ?

 

Thanks,

Sachin Kudari

0 Kudos
Message 1 of 3
(2,480 Views)

Hi Sachin,

 

that depends on that other software...

 

- When writing to a file usually it is opened with exclusive access rights to the writing software. No other software can open the file simultanously.

- The file may be opened with non-exclusive access by the writing software. Then LabVIEW may access the file too.

- The file may be opened with exclusive access rights by the writing software for each write access and released when write access is finished. Then LabVIEW may open the file in parallel, but errors may occure for simultanous file access from both parties...

 

It's never a good idea to share one resource (your file) for several requests (your different executables). It may work (with several conditions), but it doesn't need to.

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 3
(2,478 Views)

Thank you for the reply.

I will try it.

 

Regards,

Sachin Kudari

0 Kudos
Message 3 of 3
(2,445 Views)