Problem with running a Real-Time Windows Target

Hello,
I am running a 64-bit MATLAB 2013b on a PC with Windows 10.
When I try to run my models that I can compile successfully, following happens:
  1. A quick check with rtwho before connecting the target shows, that the RTWT has been installed correctly (see Image 1).
  2. I can (apparently successsfully) connect to the target, which I again confirm with rtwho (see Image 2).
  3. If I press Run to start running the model, everything behaves as the models has been running, but the running time stayes frozen at 0 sec (see Images 3). I can not really stop the running of the model.
  4. Eventually MATLAB and complete Windows freeze out. Only the hard reset helps.
I am completely lost:
  • At first I had problems also installing Real-Time Windows Target. However, this issue has been resolved once I have changed the BIOS settings, i.e. disabled the Intel VT-d virtualization feature.
  • High Performance Event Timer is also enabled in BIOS.
  • I have also unsuccessfully tried to change the setting bcdedit /set useplatformclock yes.
  • The models I am trying to run are probed to be ok, in fact I can still compile and run them successfully on a much older PC (also with MATLAB 2013b)
  • I have an Intel® Core™ i5-7500 CPU 3.40GHz Desktop PC, not a laptop, with Windows 10 Pro.
  • The PCI-Card in use is an Advantech PCI-1711U (drivers are installed correctly, also when inserted in the other older PC it works without problems).
I would appreciate any of your help!
Simon

Respuestas (3)

Simon Vidrih
Simon Vidrih el 15 de Ag. de 2018
Hi Juan Carlos,
indeed I managed to solve it, but only indirectly. This is the answer I've received directly from the Mathworks Support:
"According to our Development team, R2013b is not supported on Windows 10. The first MATLAB release that has been supported on Windows 10 was R2015a. Although other products may work, Real-Time Windows Target (now renamed to Simulink Desktop Real-Time) is known not to work. The only workaround is to upgrade to a supported MATLAB release.
Because Windows 10 is evolving over time and the currently available release is significantly different from the original one, it is recommended to upgrade to the latest available MATLAB release to have the best available support for the current release of Windows 10."
However, in general I find the "cooperation" between Windows 10 (also 7) and Simulink Desktop Real Time (current versions) pretty "shaky". On a suggestion of a MATLAB support team the following extra workaround had to be applied (at least in our Real-Time-projects), starting the Real-Time-Kernel in different (debug) modes, in order to achieve successful system operation. This workaround doesn't work at all with Windows 8.1.
Cheers, Simon
---
tchk_kernelError = false;
tchk_success = false;
for tchk_DebugConf = 0 : 2 : 4
try
tchk_k = RT.Kernel;
tchk_k.DebugConfig(1) = tchk_DebugConf;
for tchk_tries = 0 : 1 : 3
reinitialize(tchk_k);
tchk_t = createTimer(tchk_k);
start(tchk_t);
pause(0.01);
stop(tchk_t);
tchk_ticks = tchk_t.Ticks;
destroy(tchk_t);
if tchk_ticks > 0
tchk_success = true;
break;
end
end
if tchk_tries == 3 && tchk_DebugConf == 4 && tchk_ticks == 0
tchk_kernelError = true;
break;
end
tchk_tries = 0;
catch
clear exc
tchk_kernelError = true;
end
if tchk_kernelError || tchk_success
break;
end
end
if tchk_kernelError tchk_bt_state = warning('backtrace'); warning('off', 'backtrace'); warning('A problem with the real time kernel has been detected!') warning('Real time models will not function properly.') rtwho warning(tchk_bt_state); end clear tchk_*
Juan Carlos Flores Paredes
Juan Carlos Flores Paredes el 15 de Ag. de 2018

0 votos

I'm facing a similar problem. Did you manage to solve it? Thanks..
francois defay
francois defay el 21 de Ag. de 2018

0 votos

Hi,
We have the same bug with matlab 2017b (update 7) and windows 7.. If you have any response, we will be great.
francois

Categorías

Preguntada:

el 8 de Feb. de 2018

Respondida:

el 21 de Ag. de 2018

Community Treasure Hunt

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

Start Hunting!

Translated by