Use of Array-plot in Simulink real time

조회 수: 3 (최근 30일)
gbernardi
gbernardi 2016년 4월 6일
답변: gbernardi 2016년 4월 25일
Hello,
I am using Simulink Real-time (2015b) and a Speedgoat machine to run some algorithms in real time.
To check the IN/OUT signals of my model on the Target computer, I use the Scope block that can be found in the library Simulink Real-Time -> Displays and Output.
However, I'd also like to be able to plot some filter coefficients I am adaptively estimating with my algorithm and I need something similar to the Array-Plot block ( DSP System Toolbox -> Sinks). The filter is, for instance, formed by 64 coefficients updated at every iteration of my algorithm and I want to plot it against the ground truth to see the estimation error, see figure.
Does anyone have an idea of how to achieve this in Simulink Real-Time?
Cheers.

채택된 답변

gbernardi
gbernardi 2016년 4월 25일
I found a (partial) solution to my problem, should anyone else be in need of a similar application.
It is sufficient to place an unbuffer block before the Simulink Real-Time Scope to obtain a result similar to the array-plot, provided that the size of the frame inputting the unbuffer block be the same size of the "Number of samples" field in the Simulink Real-Time Scope.
I still can't visualize both the arrays in the same scope, but the current solution is good enough for me, at the moment.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Scopes and Data Logging에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by