LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

My software gives Access error when I run LabVIEW dll as Non-administrator (User Group Only) account in Windows 7

I have a specific technical issue I’m trying to solve. I'm working on a software that uses a LabVIEW dll with NI-4474 card, on Windows 7 64-bit platform.

 

The problem is the following:

If the Windows user has Administrator rights and permissions, the software gets the appropriate results. But if the Windows user is a standard User (does not have Administrator rights and permissions), the software gives an Access Denied error.

I need to have this work appropriately for Administrators and for standard Users.

 

I’ve tried changing the permissions on the folders and files, but this doesn’t solve the problem.

I've read different threads here, but I can't get it to work for me.

 

What can I do to solve it? Can anybody please point me into the right direction?

Thank you in advance.

 

0 Kudos
Message 1 of 3
(1,377 Views)

You've given very little information to help solve this.

 

@danle20 wrote:

I'm working on a software that uses a LabVIEW dll

 


What is this software? Is it written in LabVIEW or some other environment? Are you certain that the LabVIEW dll is generating the access denied error? Is it being generated when some specific action is taken, or are you unable to start it due to this error?

 

Likely you are trying to write data to some protected location. Something in Program Files perhaps?

0 Kudos
Message 2 of 3
(1,337 Views)

Hi JimB, thank you for help.

 

I have a software written in VS C#, that is running on Win7 Pro 64-bits. This software calls a function in a DLL programmed in LabVIEW. The function takes measurements of sound and vibration from an NI-4474 card. I didn't program the LabVIEW DLL myself.

 

On the customer's computer, if the logged user is Administrator, everything works fine. But if the logged user is User (no Administrator privileges) then I get an "Error code: -200860. Device cannot be accessed." error message.

 

The customer cannot give Administrator privileges to all of their users, therefore my software needs to run for all users.

 

Reading other threads, I found a possible solution: Giving read/write permissions to appropriate folders. I tried doing this to the LabVIEW Run-Time folder tree down, and also to my software folder. But this didn't solve the problem.

 

On a side note, long before this, I had to copy some of the LabVIEW Run-Time files directly to my software folder, otherwise it couldn't find them.

 

I'm not a LabVIEW developer, so I am not familiar to all of its features and capabilities. If all of this project moves forward, I will look into LabVIEW for additional requirements.

 

Thank you in advance.

0 Kudos
Message 3 of 3
(1,305 Views)