LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

getting registry entries

can somebody help me to code on how to get registry entries and write that entry to a file created also by labwindows, say i have to get this entry HKLM\\SOFTWAR\ControlSet001\Enum\STORAGE\001 and labwindows will make a file to store this entries. Is this possible...Help is very very much appreciated
________________________________________________________________
Electronics Manufacturing Tester Forum
0 Kudos
Message 1 of 2
(3,145 Views)
The Programmer's Toolbox (toolbox.fp) that ships with CVI has registry functions including functions to read registry values. Add toolbox.fp (...\CVI\toolslib\toolbox\toolbox.fp)to your project, then you can browse these functions from the Instrument menu or, from a code window, you can search for a function by name by pressing P. Depending on what type of data you're reading, look at the following functions in toolbox.fp.
RegReadBinary()
RegReadString()
RegReadULong()
Writing that value to a file can be as simple as using three functions:
fopen()
fprintf()
fclose()
The attached example tries to read the CVIVersion value for default installations of CVI 6 and 7 and store those values to a file.
Download All
0 Kudos
Message 2 of 2
(3,145 Views)