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

조회 수: 2 (최근 30일)
Daniel
Daniel 2013년 9월 19일
답변: ammar al jodah 2021년 2월 23일
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
Jan Houska
Jan Houska 2013년 9월 25일
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.

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

답변 (1개)

ammar al jodah
ammar al jodah 2021년 2월 23일
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

카테고리

Help CenterFile Exchange에서 Target Computer Setup에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by