i get the following error when trying to run rtwintgt -setup
You are going to install the Real-Time Windows Target kernel.
Do you want to proceed? [y] : y
'C:\Program' is not recognized as an internal or external command,
operable program or batch file.
Error using fread
Invalid file identifier. Use fopen to generate a valid file identifier.
Error in rtwintgt>RunInstaller (line 230)
errmsg = regexprep(fread(logh, inf, '*char').', {'^Error: ', '[\n]*$'}, '');
Error in rtwintgt>rtwt_setup (line 112)
result = RunInstaller(prompt, 'install');
Error in rtwintgt (line 58)
retval = feval(subfn, prompt);
Any ideas?

 채택된 답변

Kaustubha Govind
Kaustubha Govind 2012년 2월 22일

1 개 추천

There seems to be a small bug in the RTWT installer in R2011b which causes problems when your MATLAB is installed in a path containing spaces. You can fix this bug yourself:
>> edit rtwintgt
Find the that reads as follows:
result = system(sprintf('%s %s', installer, args));
and replace it with:
result = system(sprintf('"%s" %s', installer, args));
This adds a pair of double quotes around the installer path, so that when it is run using the System shell, there are no problems because of the space in the path.

댓글 수: 3

Sriharsha
Sriharsha 2012년 2월 23일
Hi mam,
I tried what you suggested.
But still i am facing following error..
-------------------------------------------
>> rtwintgt -install
You are going to install the Real-Time Windows Target kernel.
Do you want to proceed? [y] : y
Error using rtwintgt>ErrorDialog (line 318)
Installer error: "Failed to start Real-Time Windows Target kernel service.
An instance of the service is already running.".
Error in rtwintgt>RunInstaller (line 239)
ErrorDialog(prompt, message('rtwin:installer:installererror', errmsg));
Error in rtwintgt>rtwt_setup (line 112)
result = RunInstaller(prompt, 'install');
Error in rtwintgt (line 58)
retval = feval(subfn, prompt);
--------------------------------------------------
- sriharsha
Kaustubha Govind
Kaustubha Govind 2012년 2월 23일
Since the error says "An instance of the service is already running" - you don't need to start it again. Run "rtwho" and see what you get as the status.
vinay pandey
vinay pandey 2015년 5월 3일
Got the same error as @sriharsha. edited rtwintgt as suggested by @kaustubha. Again getting the same error as @sriharsha. Now i ran rtwho and got this- Real-Time Windows Target engine error: Real-Time Windows Target installation is not complete. Please type 'rtwintgt -setup' to complete the installation. Type 'help rtwintgt' for more information. Help!! ps-i am also using r2011b, because of my real time setup limitations.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기

태그

질문:

2012년 2월 22일

댓글:

2015년 5월 3일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by