How to simulate a variable DC load using a variable from workspace?

Hi
I want to model a variable DC load (kW) using the values from a variable stored in my workspace. Could anyone help me on how to start with this?
Thanks
Nanda

답변 (1개)

Jemima Pulipati
Jemima Pulipati 2020년 12월 19일

1 개 추천

Hello,
From my understanding, you want to use the data defined in the MATLAB's workspace while running the simulation.
You can use the 'From Workspace' block to load data from the workspace.
Here are some documentation links which can help you get started:

댓글 수: 3

Thank you for your answer.
I have used the "From Workspace Block" and am able to plot the values using a scope sucessfully. The problem I am facing is how to use this values for the parameters of a simscape block like resistor values.
Thank you so much. This is exactly what I wanted!

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Data Logging에 대해 자세히 알아보기

제품

릴리스

R2020a

질문:

2020년 12월 17일

댓글:

2020년 12월 23일

Community Treasure Hunt

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

Start Hunting!

Translated by