Deny Access Function

LabVIEW 2018 Help


Edition Date: March 2018
Part Number: 371361R-01
View Product Info

DOWNLOAD (Windows Only)


LabVIEW 2016 Help
LabVIEW 2017 Help
LabVIEW 2018 Help
LabVIEW 2019 Help
LabVIEW 2020 Help

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  

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.

WAS THIS ARTICLE HELPFUL?

Not Helpful