LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

data collision during writing to same file

Hi. I am writing a program for acquiring data from the machines during the test. Beside the local PC, I also write a program such that for every test, the data are also saved to file residing at the remote PC over the network for a backup. Now the program in installed in 2 PCs, writing to the same file in remote PC.
Is it possible that there ia a data collision when 2 PCs attempt to write to the same file at the same time?
If so, how can I prevent it so as not to lose the data?

regards,

Clement
0 Kudos
Message 1 of 2
(2,451 Views)
I don't think that there is danger of data collision here : before writing in a file, you must open it. If you try to open it again from another vi, you will get an error, telling you that the file is already opened.
Of course, you have to write all the data in a single stream, otherwise you could get interleaved data.

CC
Chilly Charly    (aka CC)
0 Kudos
Message 2 of 2
(2,448 Views)