AlejandroZ wrote:
> It is possible to restrict access to files, however, the degree to which you
> can do that depends on the operating system you are using. If you are using
> Windows, you can only restrict the write access, but not the read access
> (make a file read-only). To do that, you need to use the "Access Rights"
> function found in the palette: Functions > File I/O > Advanced File Functions.
> To make a file read-only, write a binary 100000000 to the "new permissions"
> input of that function, and to remove the read-only setting, write a binary
> 110000000.<br><br>However, by reading your message it seems like you also
> want to restrict read access, not only write access. If you are using UNIX,
> you can use the same function described in the above paragraph. If you are
> using Windows, then it is a bit more tricky. You could base your security
> on the file access features of Windows 2000 or XP Professional.
> Another option is to store the data in a LabVIEW binary file that only
> LabVIEW can understand and read. Attached are images of how to create and
> read LabVIEW binary data files, by using the low-level file functions and
> connecting the data structure of the data you want to save into the
datalog b
> input of the open file function.<br><br>Hope this helps.
You can however control total access for other applications as long as
you open a file. The deny mode input allows you to define that you want
Windows to prevent anyone else to access that file either for write or
total access as long as the file is open.
For the rest the Windows security model is quite different to anything
else. LabVIEW does not give you access to more than the write
protection. And unless you use NTFS there really isn't anything more
than that available under Windows.
Rolf Kalbermatter
Rolf Kalbermatter
My Blog 
DEMO, Electronic and Mechanical Support department, room 36.LB00.390