Filter löschen
Filter löschen

Reading in 1-D array data to Simulink error

1 Ansicht (letzte 30 Tage)
Ted Yang
Ted Yang am 10 Nov. 2016
Bearbeitet: Ted Yang am 14 Nov. 2016
Hi all,
Trying to reading altitude, latitude, and longitude as well as aircraft attitude data into my Simulink model and sending these to FlightGear in order to visualise aircraft behaviour. I am not sure what blocks to use but I am encountering the following error:
and
As you can see, the data array I am sending in is a 1x9945 row array, however the individual elements are required within which needed to sync and sent to FlightGear6doF animation block. Appreciated if anyone could give some pointer on how to do this properly.
Rgds
  5 Kommentare
Ted Yang
Ted Yang am 14 Nov. 2016
Despite being able to run the simulations, it seemed that I am still having trouble with reading in the correct inputs from the work space with simulink simulation time. Anyone had any suggestions?
Ted Yang
Ted Yang am 14 Nov. 2016
UPDATE: I was able to read in the correct input by NOT including the actual time recorded in the TimeSeries object. And simply change my timeseries variable to only include the data only ex. tsuvel = timeseries(u).

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

Ted Yang
Ted Yang am 14 Nov. 2016
Bearbeitet: Ted Yang am 14 Nov. 2016
Thanks everyone who has taken the time to look at the question and replied. This question is now resolved. Please see the comment section above.

Weitere Antworten (0)

Kategorien

Mehr zu Simulation finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by