To download NI software, including the products shown below, visit ni.com/downloads.
Overview
This is a example of a LLB file including two VIs that allow access to store and retrieve persistent data in the OS on the Mac.
Description
Here are two VIs that allow access to store and retrieve persistent data in the OS on the Mac.
CFPreferences Set Application Value 2012.vi (or CFPreferencesSetAppValue.vi) uses a Call Library Function Node to call the function CFPreferencesSetAppValue to store a string for a given key/applicationID.
CFPreferences Copy Application Value 2012.vi (or CFPreferencesCopyAppValue.vi ) uses the same way to call the function CFPreferencesCopyAppValue to retrieves a string for a given key/applicationID.
Very simple functionality.
Requirements
Steps to Implement or Execute Code
In CFPreferences Set Application Value 2012.vi
In CFPreferences Copy Application Value 2012.vi
Additional Information or References
VI Snippet of CFPreferences Set Application Value 2012.vi
VI Snippet of CFPreferences Copy Application Value 2012.vi
**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.