필터 지우기
필터 지우기

Why the Integrator block in Simulink Real Time can not work well when i download it to the target computer

조회 수: 7 (최근 30일)
As the picture showed, i created a simple simulink model with a Signal Generator(Sine Wave; Amplitude = 1; Frequency = 20Hz ) and a Integrator block.
it works well in simulink Normal Simulation mode, the signal O1 and O2 are consistent with the correct result.However, when i download this model to the target computer using the Simulink RealTime code generation.
the signal O1 is consistent with the corect result, while the signal O2 is not right, and the signal will instantaneous increase to a very large value in an random way, for example, the signal O2 will suddenly increase to 1.0e20 from 0.002 in a random simulation time.
Due to the well work of signal O1, so i consider this strange result is related to the integrator block ,may be i didn't configurate a right model parameter, may be it happend in the processes of code generation, may be there were some problem in my target computer.I am stil trying to figure out the real reason of this strange result.
I would like to know how can i solve this, does anyone had meet similar problem as i described above, or can share me a Demo model using Integrator block and can work well in target computer .may be we can have a discussion to overcome it.
By the way My Matlab version is R2018a, Simulink Real-Time version is 6.8.
Best wishes to you, thanks a lot.

답변 (1개)

Sebastian K
Sebastian K 2019년 2월 27일
Hi Brolian,
The issue you describe sounds like a bug that was recently fixed:
If you are in R2018a, you can install Update 3 or later and that should resolve the issue. Make sure you re-generate the kernel on your target machine (re-create boot disk) after the update is installed. If you are using network boot, that should be fairly trivial. If you're using USB or something else, make sure you actually update the Simulink Real-Time image that you are booting from.
Cheers,
Sebastian

카테고리

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