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
- LabVIEW 2012 in Mac OS X v10.0 (or compatible)
Steps to Implement or Execute Code
In CFPreferences Set Application Value 2012.vi
- Input the value of key/value/applicationID.
- Run the VI.
In CFPreferences Copy Application Value 2012.vi
- Input the value of key/applicationID.
- Run the VI and the value control will show the data.
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.**