Weird behavior of Simulink when the Real-Time Windows Target is used
2 ビュー (過去 30 日間)
古いコメントを表示
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
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
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
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Target Computer Setup についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!