Inputting frame-based signals to Stateflow Chart
Mostra commenti meno recenti
My Stateflow chart has only one input- "signal". It is a [64 1] frame-based signal. When I do Display->Signals & Ports->Signal Dimensions from the Simulink model I get the following error-
Cannot propagate frame-based signal through input 'signal' because this input expects a sample-based signal.
I have set the dimensions of "signal" to [64 1] in Model Explorer, but that doesn't fix the problem. How can I input a frame-based signal to the Chart?
Risposta accettata
Più risposte (1)
Guy Rouleau
il 21 Nov 2012
1 voto
As mentioned in the link provided by Kaustubha, it is important to realize that since R2010b, the concept of "frame-based" changed.
When you think about that, a frame is just a vector of data.
In the old way of thinking, the "frame-based" property was associated to signals.
The new way of thinking is to let the block decide if they process the data they receive in a frame-based manner or in a sample-based manner.
I introduced this change here:
In your case, you could try inserting a Reshape block or a Frame to Vector block before the chart. That way, the chart will receive the same data and you will be able to process it the way you want inside the chart.
1 Commento
Jim Clay
il 21 Nov 2012
Categorie
Scopri di più su Decision Logic in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!