Effacer les filtres
Effacer les filtres

Info

Cette question est clôturée. Rouvrir pour modifier ou répondre.

Simulink modelling with timeseries data

1 vue (au cours des 30 derniers jours)
An
An le 8 Juin 2020
Clôturé : An le 8 Juin 2020
Dear Matlab/Simulink users,
I have a major problem, which I am unable to solve and it prevents proceeding my work.
Particularly, I need to work with timeseries data, which will be imported through Matlab (either to import variables to the workspace or try to do as separate file). However, the file type is not good enough to continue with it in the model.
I received an error message and don't know how to convert it:
  • Unable to load column vector data for Inport not configured with a function call output. Use one of these solutions: 1) To load the workspace data, use a different data format. 2) Configure the Inport to output a function call. 3) Turn off external input loading.
First, I need to use the each datapoint inside the if condition and then to use it as an input. It is shown here:
I specifically need the values of "uu" one by on and use its elements inside "if" comparison.
Do you have recommendation, how to work woth this?
  3 commentaires
An
An le 8 Juin 2020
Thank you for your answer. [t,uu] alone with just a scope works nicely, the output is a sinosoidal wave. But I guess the reason of the problem with model is that [t,uu] from the workspace is some kind of timeseries object and the if-condition does not how to deal with that because the condition needs to compare each element separately. With different Simulink signals and a constant my model works nicely but I need to work my personal input timeseries data where will be "uu" as timeseries points. Do you know how to do that?
An
An le 8 Juin 2020
I managed to solve the problem :)

Réponses (0)

Cette question est clôturée.

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by