フィルターのクリア

Record block isn't producing a "recordout" field

1 回表示 (過去 30 日間)
David
David 2023 年 8 月 12 日
回答済み: Fangjun Jiang 2023 年 8 月 14 日
I am recording a sine wave and a ramp in simulink using the record block. When I go into the workspace and type "out" into the cmd line, the only field available to me is "tout". How do I make sure that the record block has a "recordout" field? Because when I open the record's block parameters, it just takes me to some graphs
  1 件のコメント
Walter Roberson
Walter Roberson 2023 年 8 月 13 日
In the diagram you show, the model does not do anything except have a couple of input signals and a record block. What sample rate did you configure, and what simulation stop time did you configure? And did you configure discrete or continuous simulation?

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

回答 (1 件)

Fangjun Jiang
Fangjun Jiang 2023 年 8 月 14 日
"out" is a Simulink.SimulationOutput object. By default, it records the root level outputs. You don't have any Outport blocks.
The simulation has been run. out.tout shows that.
Repeat your step above and then double click the Record block, check "Record to Workspace" button and re-run the simulation, then you will see out.recordout

カテゴリ

Help Center および File ExchangeSimulink Functions についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by