Path: news.mathworks.com!newsfeed-00.mathworks.com!news.tele.dk!feed118.news.tele.dk!feed116.news.tele.dk!bofh.vszbr.cz!news.radio.cz!news1.as3257.net!newsfeed1.eu.ignite.net!news.cesnet.cz!news.felk.cvut.cz!not-for-mail
From: Jan Houska <houska@humusoft.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: rtwintgt won't install real time windows target kernel
Date: Fri, 11 Jan 2013 14:09:06 +0100
Organization: HUMUSOFT s.r.o.
Lines: 74
Message-ID: <kcp2tj$5p0$1@ns.felk.cvut.cz>
References: <kcac5s$1hm$1@newscl01ah.mathworks.com> <kce4qj$k7$1@newscl01ah.mathworks.com> <50EC3DBF.8070006@humusoft.com> <kci7st$1rr$1@newscl01ah.mathworks.com> <50ED2639.3090305@humusoft.com> <kcjd1k$2h4$1@newscl01ah.mathworks.com>
NNTP-Posting-Host: hackvm.humusoft.cz
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: ns.felk.cvut.cz 1357909747 5920 88.208.79.131 (11 Jan 2013 13:09:07 GMT)
X-Complaints-To: usenet@news.felk.cvut.cz
NNTP-Posting-Date: Fri, 11 Jan 2013 13:09:07 +0000 (UTC)
User-Agent: Thunderbird 2.0.0.23 (Windows/20090812)
In-Reply-To: <kcjd1k$2h4$1@newscl01ah.mathworks.com>
Xref: news.mathworks.com comp.soft-sys.matlab:786405

Hi Pengfei,

it is interesting that you are able to install R2011b kernel but not the 
newer ones. Do you have access to the prerelease of the next version? If 
yes, could you try that? There are some changes in the installation 
process, mostly to support Windows 8, but they may help here as well.

The slower than expected run in the native machine is very likely due to 
power saving scheme getting active. Please try to find EIST or C1E 
settings in your computer BIOS and disable that ("disabled" means 
maximum performance, no power saving). However, if you need to use a 
third-party DLL that is 32-bit, this cannot be done in 64-bit MATLAB.

Best Regards, Jan


Pengfei Wang wrote:
> Hello, Jan
> Thank you very much for your explanation. Can I ask more please?
> 
> I am using Windows virtual machine, not VMware or other software. It is 
> integrated into Windows 7 very well. I can use it as host for xPC target 
> , and I can install RTWT kernel on MATLAB 2011b. Why it only doesn't 
> work with MATALB 2012a or MATLAB 2012b. I know there are some updates, 
> but I don't think it will affect installing RTWT kernel. I want to use 
> the later version, because it has a new Real-time Synchronization Block.
> 
> As you suggested, I tried installing MATLAB in Windows 7.  The RTWT 
> kernel installs with no problem. When I insert a Real-time 
> Synchronization Block into a very simple model (a signal generator and a 
> 2nd order transfer function, 0.01s smaple time), the model runs slower 
> than real time (more than twice slow). That is really another issue, I 
> am trying to figure it out. The biggest problem I have is that I need to 
> communicate with 3rd party software through s function using their 
> supplied .dll file. I can't get it working if I use MATLAB in Windows 7.
> 
> Thanks again for your help.
> 
> Pengfei
> 
> Jan Houska <houska@humusoft.com> wrote in message 
> <50ED2639.3090305@humusoft.com>...
>> Hi Pengfei,
>>
>> I'm afraid that, generally, you cannot run Real-Time Windows Target in 
>> a virtual machine. This also depends on the virtual machine 
>> implementation, e.g VMware Workstation is known to work in most (but 
>> not all) cases. However, there is no official support for running in a 
>> virtual machine.
>>
>> The reason is that the real-time kernel needs direct access to 
>> computer hardware at a very low level. This is in particular true for 
>> the timing engine - it accesses the system timer hardware in a way 
>> that very often conflicts with the virtual machine engine.
>>
>> And, there is also the question of data acquisition hardware. 
>> Real-Time Windows Target needs direct access to it but this is not 
>> supported by virtual machines.
>>
>> If you want to stay at that computer, your best choice is probably 
>> installing 64-bit MATLAB and Real-Time Windows Target to the host 
>> machine.
>>
>> Good Luck, Jan


-- 

--
Jan Houska                                           HUMUSOFT s.r.o.
houska@humusoft.com                                  Pobrezni 20
http://www.humusoft.com                              186 00 Praha 8
tel: ++ 420 284 011 730                              Czech Republic
fax: ++ 420 284 011 740