Record block isn't producing a "recordout" field
2 次查看(过去 30 天)
显示 更早的评论
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
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1455912/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1455917/image.png)
1 个评论
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
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
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Simulink Functions 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!