필터 지우기
필터 지우기

Save data from Simulink Outports with Bus Object Data Types

조회 수: 1 (최근 30일)
Eric O'Neill
Eric O'Neill 2017년 1월 5일
답변: Jordan Ross 2017년 1월 9일
I am working with models that occasionally have outports with Bus object data types. Whenever I run these models, I the resulting saved output does not have any data from those Bus Object data types. I do not want to modify the models, so I cannot add a 'to file' or 'to workspace' block. How do I get these ports to save their data and preserve the structure of the Bus in that saved data. I've attached a modified version of the ex_load_bus_root_inport model that demonstrates. Load and run the model, check the yout variable, then remove the data type from 'In2' and run it again. Output from Outport 2 appears, but it removes all structure from the Bus.
For reference, I am running Matlab 2013a.

답변 (1개)

Jordan Ross
Jordan Ross 2017년 1월 9일
Hello Eric,
As I understand, you are trying to log the output of the Out2 outport in your model which as a custom bus type. Unfortunately, this functionality is not supported in MATLAB R2013a. However, in R2016b you can log the signals using the "Dataset" format and can preserve the structure of your custom Bus object.

카테고리

Help CenterFile Exchange에서 Schedule Model Components에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by