Use of Array-plot in Simulink real time

2 ビュー (過去 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 Center および File ExchangeScopes and Data Logging についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by