RT-LAB + MATLAB installation problems 下载本文

内容发布更新时间 : 2024/6/18 20:17:17星期一 下面是文章的全部内容请认真阅读。

RT-LAB + MATLAB installation problems

Problem

You can't either run RT-LAB or compile the rtdemo models.

Solution

In most cases, it's due to either a bad license file or a bad installation of MATLAB. 1.

Check your license file. Run the RT-LAB license server; select RT-LAB, check “LMTOOLS ignores license file path env. var”, go to server diags and click on “perform diagnostics”. You must have a lot of lines like this :

\locked to ethernet address \expires: yyy TS_OK: Checkout permitted when client is using terminal client This license can be checked out

>> from win32com.client import Dispatch >> Dispatch('matlab.application') 2.

Check your MATLAB version is supported by RT-Lab. You can look at this file : C:\\OPAL-RT\\RT-LABx.x.x\\help\\pdf\\ RT-LAB_IG.pdf 3.

Be sure you are using a 32 bit version of MATLAB. You can type “ver” in MATLAB command and look for “64bit version”. If you have a 64bit version, uninstall it and reinstall the 32bit version by browsing your MATLAB DVD/win32/setup.exe 4.

Try first to connect as an administrator. If it works, it’s due to administrative rights. Look at this article : rt-lab-and-running-non-administrator.

A good workaround is to run the Metacontroller as an admin (right click / run as an administrator) and run RT-Lab by double-clicking on the icon (instead of running it from the desktop) 5.

With Windows Vista, 7 or more, even if you are administrator, programs are not run in administrator mode.

Try to put matlab.exe, metacontroller.exe maincontrol.exe and rtlab.exe properties to administrator. To do that, right click on the exe file, go to properties, compatibility and check the last checkbox (always run as administrator).

Another way can be by disabling UAC: disable_uac_in_windows_vista or run-administrator. 6.

Disable your firewall and your antivirus.

RT-LAB is unable to compile if you have a firewall (check with your system administrator on how to add an exception for RT-LAB) and can have some issue with some old antivirus scanner. 7.

Check your MATLAB COM component is working. Open a python prompt (C:\\OPAL-RT\\RT-LAB10.x.x\\python\\ python.exe) and type :

If it open MATLAB and show you the last line, everything is ok. Type ver in this window to check you are running the right version. If not, look at this article: rt-lab-10-fix-disabled-matlab-versions-opening-current-matlab-version.

If you don’t have any window or it report you an error, your MATLAB COM is not working.You can try to do this:

rt-lab-10-fix-disabled-matlab-versions-opening-current-matlab-version

If it’s not working, the best way is to reinstall either the same or another MATLAB version then reinstall RT-LAB. 8.

Check that the RT-LAB installation went successful. In MATLAB command, type “which

setup_rtlab”.

If

it

reports

you

something

like

C:\\Program

Files\\MATLAB\\xxx\\toolbox\\local\\setup_rtlab.m, then it’s ok.

If not, it can be due to “read only” flag put during the installation of MATLAB. You can remove the read-only flag on MATLAB folder and all of its subfolder. The best way is to uninstall then reinstall MATLAB

You can also try to unzip the attached file local.zip to C:\\Program Files\\MATLAB\\xxx \\toolbox\\local folder.