Deny Access Function

Owning Palette: Advanced File VIs and Functions

Requires: Base Development System (Windows)

Reopens the instance of the file specified by refnum to temporarily change what read or write access is denied to other refnums, VIs, or applications.

Details  

 Add to the block diagram  Find on the palette
refnum is the file refnum associated with the file you want to deny access to.
deny mode specifies what read or write access is denied.

0deny read/write—Deny both read and write access to the file (default).
1deny write-only—Permit read access but deny write access to the file.
2deny none—Permit both read and write access to the file.
error in describes error conditions that occur before this node runs. This input provides standard error in functionality.
refnum out returns refnum.
error out contains error information. This output provides standard error out functionality.

Deny Access Details

This function temporarily overrides permissions for a specific instance of the file. This function does not modify permissions for the file itself. When you grant access to an instance of a file, LabVIEW removes the override caused by denying access to the file so that the file permissions and the deny mode associated with refnum determine whether other refnums, VIs, or applications can read from or write to that instance of the file. After the file refnum is closed, the permissions for that instance of the file are no longer overridden.

Note  You cannot deny access to a datalog file.