Problem with Simulink Integrator block

12 ビュー (過去 30 日間)
Milo
Milo 2014 年 8 月 13 日
コメント済み: Ranjeet 2024 年 2 月 25 日
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.

採用された回答

A Jenkins
A Jenkins 2014 年 8 月 13 日
Did you try a Data Type Conversion block?
  1 件のコメント
Ranjeet
Ranjeet 2024 年 2 月 25 日
thanks

サインインしてコメントする。

その他の回答 (1 件)

Yu Jiang
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

カテゴリ

Help Center および File ExchangeSave Run-Time Data from Simulation についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by