Example Code

Manipulating your application's registry values and keys

Products and Environment

This section reflects the products and operating system used to create the example.

To download NI software, including the products shown below, visit ni.com/downloads.

    Software

  • LabVIEW

Code and Documents

Attachment

 

Overview

This LLB demonstrates a simplified and standardised method of manipulating your application's registry values and keys

 

Description

Using the registry for storing your application's setup values and other information is very convenient. However when you explore these possibilities you constantly run into warnings about danger of ruining your computer. The purpose of this project was to make registry access safer and easier. All editing is forced to occur in root key HKEY_CURRENT_USER, sub key SOFTWARE\MyKey preventing accidental alterations of other registry settings. Additional sub keys can be created in sub key MyKey.

 

 

 

Steps to Implement or Execute Code

Running the example:

  • Open LLB
  • Open vi Read and Write to registry example.vi

Run vi
Requirements

LabVIEW 2012(or compatible)

 

Additional Information or References
VI Block Diagram

 

 1.png

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