Problem with Simulink Integrator block
조회 수: 6 (최근 30일)
이전 댓글 표시
I'm trying to integrate a data stream that is single precision and keep getting the follow error:
Only 'double' signals are accepted by block type Integrator. The signals at the ports of
'Model/Integrator2' are of data type 'single'.
The data is coming from a simulink "From File" block which is loading a 1x1 single timeseries.
Is there a way to convert the data stream from single to double in Simulink? Or a better way to import this data? It seems that timeseries are always single precision. The timeseries was created from two vectors of equal length. One vector is a series of timesteps, the other a series of data points.
댓글 수: 0
채택된 답변
추가 답변 (1개)
Yu Jiang
2014년 8월 13일
Yes, there is a block called Data Type Conversion. See the following for details: http://www.mathworks.com/help/simulink/slref/datatypeconversion.html
-Yu Jiang
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Sources에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!