LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Visa: lack of privileges under WIN XP, Error: 42, Constant0042, VI_ERROR_INV_CONTEXT, 0xBFFF002A

Hello,

do someone know how to work with VISA devices as an
"normal user" (no administrative rights).
My software works fine with administrative rights under
Windows XP. But with "normal rights" the VI "VISA Find Resource"
finds no (zero - nada - nischt) device.
The error code is "42", the file "visainfo.ini" (LabView6.0.1),
tells me, that this is the error flag: VI_ERROR_INV_CONTEXT.

Do someone know how to set the rights properly, so that a normal
user can run my application?
For the people with LabView < v7.0 I publish here a screen shot
of my code to find the local devices.

Please can me tell someone how to set the rights for VISA instruments
like COM-Ports?

Regards,

Stefan

Download All
0 Kudos
Message 1 of 3
(2,684 Views)
Hello Stefan,

please take a look at the following KnowledgeBase entry
Guest or Non-Administrator Accounts Cannot Access NI-VISA functions in Windows XP

Hope this helped out and feel free to reply if you have more questions.

Best regards,

Benjamin
National Instruments
0 Kudos
Message 2 of 3
(2,658 Views)
Hello Benjamin,

thank you very much for the link!
This knowledge base article is not easy to find,
I failed to find it myself, perhaps you can add
the error-message, that you receive,
when you get in trouble with visa-ports
as normal user.
I received the error code -1073807346.

Kind regards,

Stefan



0 Kudos
Message 3 of 3
(2,642 Views)