> I am trying to read data from a file over the network.  That same file
> is continuously being written to on a windows NT 4.0 machine by a
> non-labview program.  For some reason I get an access violation (I am
> assuming this is because the file is being written to at the same time
> that I am trying to read it).  I know for sure that this is not a file
> sharing issue, as I can copy files to and from the file location.  Any
> suggestions are greatly appreciated!


The first change I'd try is to use the more explicit Open function in 
the palette, or drill down to it in the subVIs you are using.  There is 
an input called Open Mode.  Create a constant and you can choose to do 
an open for Read Only.  This might allow for your open to succeed while 
the other program is writing.

If this doesn't work, it might be related to the deny mode that the 
other program used to open the file.  I'm no expert on this, but the 
deny mode is sort of a lock placed on the file that denies certain 
access until you close it.  It might be that the other program is 
explicitly denying you read access.  More likely, it is denying you 
write access, and this means that the system will allow an open with 
read only, but will return an error on open with read/write.

Greg McKaskle


Reply via email to