Reading in 1-D array data to Simulink error

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

Swarooph
Swarooph 2016년 11월 10일
The data array that you are sending in are time based values, am I right?
Ted Yang
Ted Yang 2016년 11월 12일
You are correct, 1-D arrays of longitude and latitude, attitude data all recorded discretely on a 20ms interval.
Ted Yang
Ted Yang 2016년 11월 13일
Hi all, I manage to run the simulation by converting all my data set into a Matlab Timeseries object and send in the input using the simin(from workspace) function block.
Ted Yang
Ted Yang 2016년 11월 14일
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 2016년 11월 14일
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).

댓글을 달려면 로그인하십시오.

 채택된 답변

Ted Yang
Ted Yang 2016년 11월 14일
편집: Ted Yang 2016년 11월 14일

0 개 추천

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.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Event Functions에 대해 자세히 알아보기

질문:

2016년 11월 10일

편집:

2016년 11월 14일

Community Treasure Hunt

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

Start Hunting!

Translated by