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

Risposte (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 Commenti

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!

Accedi per commentare.

Prodotti

Release

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by