LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

file share problem

Looking forward to the solution for the following problem: Two computers are
connected by HUB and with TCP-IP. The operating system of two computers are
win98. Now the data of a file(called File1 hereafter) in computer 1 will
be renew by labview 5.1 in computer 1. In the meantime, the labview in computer
2 would like to read the data in the file File1. Unfortunately, when File1
was accessed by two computer simutaneously, an error will poped up " the
data file was access forbbiden". Please let me know how to avoid accessing
the file simutaneously by both computers? How to know the file is accessed
by another program?

Looking forward to quick help!

Thanks in advance and Happy New Year!
0 Kudos
Message 1 of 2
(2,404 Views)
Does the computer 2 open the file with a "read-only" mode(==1)?
Two applications cannot access simultaneously a file with the "read-write"
mode (default).



Wen Huaming a écrit dans le message :
38509309@newsgroups.ni.com...
>
> Looking forward to the solution for the following problem: Two computers
are
> connected by HUB and with TCP-IP. The operating system of two computers
are
> win98. Now the data of a file(called File1 hereafter) in computer 1 will
> be renew by labview 5.1 in computer 1. In the meantime, the labview in
computer
> 2 would like to read the data in the file File1. Unfortunately, when
File1
> was accessed by two computer simutaneously, an error will poped up " the
> data file was access forbbiden". Please let me know how
to avoid accessing
> the file simutaneously by both computers? How to know the file is accessed
> by another program?
>
> Looking forward to quick help!
>
> Thanks in advance and Happy New Year!
>
>
>
>
0 Kudos
Message 2 of 2
(2,404 Views)