To download NI software, including the products shown below, visit ni.com/downloads.
Overview
This example VI shows how to protect a file from being manipulated by more than one application.
Description
There is no built in functionality to protect LabVIEW config files, or files in general, from being opened and manipulated by more than one application at a time. Attached is an example of how to protect a config file open with semaphores. The VI creates a semaphore named as the file path to preserve this file from double manipulation. You can run multiple instances of this VI to see the functionality.
Requirements
Steps to Implement or Execute Code
Additional Information or References
VI Block Diagram
**This document has been updated to meet the current required format for the NI Code Exchange.**
Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.
Well done, sir. Tell your brother that you are way cooler. Way.