Weird behavior of Simulink when the Real-Time Windows Target is used

3 visualizaciones (últimos 30 días)
Daniel
Daniel el 19 de Sept. de 2013
Respondida: ammar al jodah el 23 de Feb. de 2021
I have recently installed an Advantech PCI-1716 card together with the RTWT tool for Simulink. So far so good, I could installed everything without problems.
The issue came when I tested my system with a real application. I connected a pulse generator to a digital output block. With the help of an oscilloscope I observed the following behavior:
Every certain time, the card did not output the expected signal, and later, it tries to recover the missing pulses by giving them in a faster (shorter period) manner. At the beginning I believed it was the card, but weirdest thing is that, when I open any block in Simulink during the simulation, the signals that came out from the card are just perfect.
For me it seems as the RTWT kernel enter into an idle behavior and give control to Windows to do some other things. As soon as a Simulink block is open (for example, for changing the frequency), the kernel probably reserve all the resources for simulink.
Is this behavior known? Is there any possibility to modify manually the kernel to avoid this idle behavior?
Thanks in advance! Daniel Fierro
Matlab 2012b 64 bits Windows 7 / Intel Core i5 / 64 bits / 3.4 GHz / 4 GB RAM
  1 comentario
Jan Houska
Jan Houska el 25 de Sept. de 2013
Are you running the model in Normal Mode or External Mode? If in Normal Mode, please try External Mode and post here whether the behavior persists.

Iniciar sesión para comentar.

Respuestas (1)

ammar al jodah
ammar al jodah el 23 de Feb. de 2021
https://au.mathworks.com/matlabcentral/fileexchange/87694-simulink-realtime-driver-for-advantech-pci-1716-pci-1716l?s_tid=prof_contriblnk
https://au.mathworks.com/matlabcentral/fileexchange/87689-simulink-realtime-driver-for-advantech-pci-1723?s_tid=prof_contriblnk

Community Treasure Hunt

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

Start Hunting!

Translated by