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.


icon

Inputs/Outputs

  • cbsrn.png refnum

    refnum is the file refnum associated with the file you want to deny access to.

  • cenum.png deny mode (0:deny read/write)

    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.
  • cerrcodeclst.png error in

    error in describes error conditions that occur before this node runs. This input provides standard error in functionality.

  • ibsrn.png refnum out

    refnum out returns refnum.

  • ierrcodeclst.png error out

    error out contains error information. This output provides standard error out functionality.

  • 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.