MATLAB Answers

0

Use of Array-plot in Simulink real time

Asked by gbernardi on 6 Apr 2016
Latest activity Answered by gbernardi on 25 Apr 2016
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.

  0 Comments

Sign in to comment.

1 Answer

Answer by gbernardi on 25 Apr 2016
 Accepted Answer

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 Comments

Sign in to comment.