03-08-2020 08:35 PM
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?
03-09-2020 01:11 AM - edited 03-09-2020 01:11 AM
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.
03-09-2020 09:26 AM - edited 03-09-2020 09:28 AM
@二子 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.