LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Windows Registry Access VIs doesn't work!

I can't access to a Registry Key. For example, the VI in attchments to get printer list, gets out an empty string array.
I'm using LV 6.1 over WinXPPro.

Any one can help me?
Thank's
0 Kudos
Message 1 of 5
(2,946 Views)
I took a quick look at your code. One thing to try is to change the "security access mask" value to KEY_READ.

Best regards,
Doug Norman
0 Kudos
Message 2 of 5
(2,946 Views)
I was able to get my printers using your VI reading the key, HKEY_CURRENT_USER\Printer\Connections also using LabVIEW 6.1 on XP Pro.

The System\CurrentControlSet\Control\Print\Printers key is empty on my PC, so can't help there. Everything looks correct from what I can tell.

Ed


Ed Dickens - Certified LabVIEW Architect - DISTek Integration, Inc. - NI Certified Alliance Partner
Using the Abort button to stop your VI is like using a tree to stop your car. It works, but there may be consequences.
0 Kudos
Message 3 of 5
(2,946 Views)
Your vi worked fine for me. I'm using LV7 / XP Home. Are you sure the registry key exists and there is a value?

Tim
0 Kudos
Message 4 of 5
(2,946 Views)
Hi,

How about rootkey:"HKEY_LOCAL_MACHINE" and key
"SYSTEM\CurrentControlSet\Control\Print\Printers"

Use Regedit to check... The key you used doesn't have any printers on my PC.

Regards,

Wiebe.

"ziraf77" wrote in message
news:5065000000080000006AB70000-1073519706000@exchange.ni.com...
> I can't access to a Registry Key. For example, the VI in attchments to
> get printer list, gets out an empty string array.
> I'm using LV 6.1 over WinXPPro.
>
> Any one can help me?
> Thank's
0 Kudos
Message 5 of 5
(2,946 Views)