Calendar Latest Topics
 
 
 


Reply
  Author   Comment  
Jaewon

Administrator
Registered:
Posts: 971
Reply with quote  #1 

Running MATLAB as administrator may not be an issue to those who use MATLAB with academic licenses, but it is not something you can do in any circumstance. I am posting this tip here, hoping that it is helpful to someone. You still need administrator rights to carry out this tip. Just the user who runs MATLAB does not have to be an administrator.

-----

In order to control NI devices with Data Acquisition Toolbox in MATLAB, you first need to run MATLAB as administrator and execute the DAQREGISTER command (see this). However, running MATLAB as administrator is not possible, if you have to log in with a different username to be an administrator and your MATLAB activation type is Standalone Named User. MATLAB just won’t start when you switch to your admin account, because the Standalone Named User license does not allow anyone to use MATLAB but the licensed named user. You can bypass this problem by giving your non-admin MATLAB user write permission for the following two registry entries so that you can execute DAQREGISTER as a standard user. This was tested on 64-bit Windows 7 with MATLAB 2015a. You may not see the second key, "Wow6432Node", in 32-bit Windows.

HKEY_LOCAL_MACHINE\SOFTWARE\Classes
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Classes

To modify registry permissions, you need to run REGEDIT as administrator. (Or open a command window as administrator and type REGEDIT.) Then find the key above, right-click on it, click "Permissions..." on the popup menu, add/choose your non-admin username in the resulting window, check "Full Control" under "Allow" and click the OK button.

0
Previous Topic | Next Topic
Print
Reply

Quick Navigation:

Easily create a Forum Website with Website Toolbox.