- Use a “from workspace” block to read data into Simulink, please follow the documentation mentioned below for reference: Load signal data from workspace into Simulink model - Simulink
- Convert the generated workspace data to “MAT” file and then use the “MAT” file to feed data to “Inport blocks”, please follow the documentation mentioned below for reference: Use MAT-Files to Feed Data to Inport Blocks for Rapid Simulations - MATLAB & Simulink
What is the easiest way to import all workspace data into a Simulink file for Simulink Coder?
조회 수: 1 (최근 30일)
이전 댓글 표시
I am doing some model integration for a system that has an initialization script that generates workspace data, which then is used to run a simulink simulation. I want to compile this simulink file as an executable to maximize run speed, but I need to import the data.
Is there a way to import all of the workspace data? Or will I have to use inport blocks for each instance?
I am also having errors with the root inport tool, which spurred this question
댓글 수: 0
답변 (1개)
Suvansh Arora
2022년 12월 1일
Two ways that you can use to automate the process of using workspace data in Simulink are mentioned below:
I hope the above information helps you.
댓글 수: 0
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!