Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

rtwintgt won't install real time windows target kernel

306 views
Skip to first unread message

Pengfei Wang

unread,
Jan 5, 2013, 6:15:09 PM1/5/13
to
Dear all,

PLEASE HELP because I am really getting mad.

I tried to use rtwintgt -setup to install real-time windows target kernel. After typing 'y' to the prompt, MATLAB command line shows 'The Real-Time Windows Target kernel has been successfully installed'. But when I type rtwho to prove it, it shows 'Real-Time Windows Target installation is not complete. Please type 'rtwintgt -setup' to complete the installation. Type 'help rtwintgt' for more information.' It is really a dead circle, and it didn't give any error message.

Please help if you know any reason can cause this.

Thanks a lot.

Pengfei

Pengfei Wang

unread,
Jan 7, 2013, 4:34:11 AM1/7/13
to
"Pengfei Wang" <p.w...@live.co.uk> wrote in message <kcac5s$1hm$1...@newscl01ah.mathworks.com>...
Can anyone help please. I got no problem with R2011b, but in R2012a, R2012b, it says the RTWT is successfully installed, but actually not.

Jan Houska

unread,
Jan 8, 2013, 10:39:43 AM1/8/13
to p.w...@live.co.uk
Hi Pengfei,
what operating system do you have? What version, and is it 32-bit or 64-bit?

Jan


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

Pengfei Wang

unread,
Jan 8, 2013, 5:51:09 PM1/8/13
to
Hello, Jan

So glad to hear from someone. I am using 32 bit Windows XP. It is running as a virtual machine in 64 bit Windows 7. All the versions of MATLAB are running in this virtual machine. I also run other software in this virtual machine, like Siemens. Until now don't have any problem with the virtual environment.

Pengfei

Jan Houska <hou...@humusoft.com> wrote in message <50EC3DBF...@humusoft.com>...

Jan Houska

unread,
Jan 9, 2013, 3:11:37 AM1/9/13
to p.w...@live.co.uk
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
--

Pengfei Wang

unread,
Jan 9, 2013, 4:25:08 AM1/9/13
to
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 <hou...@humusoft.com> wrote in message <50ED2639...@humusoft.com>...

Jan Houska

unread,
Jan 11, 2013, 8:09:06 AM1/11/13
to
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
0 new messages