how to generate one signal from a vector data in simulink

4 vues (au cours des 30 derniers jours)
Bilal
Bilal le 24 Fév 2016
Commenté : Bilal le 10 Mar 2016
I am having a problem like if you have 10 data points say in a vector and you use simulink constant block it shows 10 continuous lines for this. how can i just create a one continuous waveform from it.
  1 commentaire
Bilal
Bilal le 4 Mar 2016
Yes, this is what i want to do but the problem is that i can't update the values each time in repeating sequence block. Actually I have like 3 values that are coming from user defined block after some calculation and the get updated after one cycle, I tried to edit the repeating sequence block so that i can input these valves it to but i am unable to do so. please help.

Connectez-vous pour commenter.

Réponse acceptée

Sebastian Castro
Sebastian Castro le 25 Fév 2016
My understanding if your question is that you want those 10 values to make up one period of a periodic waveform, right?
If so, check out the Repeating Sequence block: http://www.mathworks.com/help/simulink/slref/repeatingsequence.html
The block above generates a continuous-time signal so you have to also specify time values. There are also "Repeating Sequence Interpolated" and "Repeating Sequence Stair" blocks that may better meet your needs.
- Sebastian
  1 commentaire
Bilal
Bilal le 10 Mar 2016
Yes, this is what i want to do but the problem is that i can't update the values each time in repeating sequence block. Actually I have like 3 values that are coming from user defined block after some calculation and the get updated after one cycle, I tried to edit the repeating sequence block so that i can input these valves it to but i am unable to do so. please help.

Connectez-vous pour commenter.

Plus de réponses (0)

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by