Info

Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.

Simulink modelling with timeseries data

1 Ansicht (letzte 30 Tage)
An
An am 8 Jun. 2020
Geschlossen: An am 8 Jun. 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 Kommentare
An
An am 8 Jun. 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 am 8 Jun. 2020
I managed to solve the problem :)

Antworten (0)

Diese Frage ist geschlossen.

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by