LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How Labview read CSV File which create and update every one min by another application.

One application read and save data to CSV file every one min, I can not change this application, my lab-view need read the CSV file timely and update database. How to do? I already try read-only file, but cause write lock issue.  Any suggestion?

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

Use the Set Permissions function from the File I/O >> Advanced File Functions palette.

 

Read its detailed help & set the values according to your requirement.

 

 

- Partha ( CLD until Oct 2027 🙂 )
0 Kudos
Message 2 of 3
(2,125 Views)

@二子 wrote:

One application read and save data to CSV file every one min, I can not change this application, my lab-view need read the CSV file timely and update database. How to do? I already try read-only file, but cause write lock issue.  Any suggestion?


The problem you will have is when one program has a file open for writing another program cannot open that file due to Windows having the file locked and you will receive a sharing violation unless you open the file read only.

 

So what I would do is have your LabVIEW program COPY the data file your first program is making and then open the copy.

Just delete the copy when you are done and make a new one every time.

 

 

========================
=== Engineer Ambiguously ===
========================
0 Kudos
Message 3 of 3
(2,103 Views)