LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I read and write to a REG_MULTI_SZ type in the registry

I need to delete a dependency on my service and it is a REG_MULTI_SZ in the registry.  How can I edit this?

0 Kudos
Message 1 of 6
(3,838 Views)

Hi,

LabVIEW provides VI's to access the windows registry and these vi's can be found in Function Palette: Connectivity>>Windows Registry Access VIs.

 

Also take a look into the example vi: "C:\Program Files\National Instruments\LabVIEW 8.x\examples\registry\registry.llb\Read From Windows Registry.vi" which provides insight on accessing the registry.

 

With regards,
JK
(Certified LabVIEW Developer)
Give Kudos for Good Answers, and Mark it a solution if your problem is solved.
0 Kudos
Message 2 of 6
(3,823 Views)

I am aware of these VIs.  I will take another look, but I investigated this pretty thoroughly a while back and editing the multi string was not possible.  only numeric or string.  Any other suggestions?

0 Kudos
Message 3 of 6
(3,813 Views)

Hello,

 

Could the System Exec VI be used to query the key for it value, and read it back to LabVIEW through the normal output return? What type of data is returned to the command line when the REG_MULTI_SZ key is read?

 

Cheers,

Patrick Corcoran
Application Engineering Specialist | Control
National Instruments

0 Kudos
Message 4 of 6
(3,792 Views)

That may work for the read, but how would I create the key and write to it if it does not exist?

0 Kudos
Message 5 of 6
(3,786 Views)

You would first query the key, the standard output should return a known error for 'not found.' Then there are create/remove functions available through the REG command. There are a number of functions available, a quick search returned this discussion

 

Please let me know if that gets us pointing in the right direction.

 

Cheers, 

Patrick Corcoran
Application Engineering Specialist | Control
National Instruments

0 Kudos
Message 6 of 6
(3,777 Views)