Simulink Dataset - Saving and Loading back into Simulink
이전 댓글 표시
Hello,
I have a bus in my model that contains many levels of nested buses. I want to log this signal and load this bus's signals in another Simulink model.
I have logged a signal in Simulink by right-clicking it > Signal Properties > Log signal data. This allows me to log the bus signal easily without extracting everything out of it. The ToWorkspace block did not work.
However, now I do not know how to load this new Simulink Dataset variable, named sigsOut by default, in my other Simulink model. It is nowhere near the format needed for the FromWorkspace block. Is there an easy way?
Horace
답변 (3개)
Kaustubha Govind
2013년 4월 30일
0 개 추천
It seems like you should be able to import that data back into another model using the Root Inport blocks. Also see Import Structures of timeseries Objects for Buses (apparently the Dataset format actually uses MATLAB timeseries objects).
Horace Lai
2013년 5월 2일
0 개 추천
댓글 수: 4
Kaustubha Govind
2013년 5월 2일
I think you can use the Bus Creator block (see this blog post) with the "Output as nonvirtual bus" checkbox selected to automatically create a bus object for your virtual bus.
Horace Lai
2013년 5월 3일
Kaustubha Govind
2013년 5월 3일
Oops, you're right. How about you follow the instructions under 'Making a bus object' on this blog post using Simulink.Bus.createObject? Does that help you generate a bus object?
Horace Lai
2013년 5월 6일
Horace Lai
2013년 5월 6일
0 개 추천
댓글 수: 1
Kaustubha Govind
2013년 5월 6일
Horace: Please post this as a new question. Writing this a new "Answer" to your old question is not the recommended way on this forum. Thanks!
카테고리
도움말 센터 및 File Exchange에서 Prepare Model Inputs and Outputs에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!