running simulink model from matlab

2 visualizaciones (últimos 30 días)
Tsugin Lin
Tsugin Lin el 29 de Oct. de 2015
Respondida: Sebastian Castro el 30 de Oct. de 2015
I am able to run the program in Matlab using >>sim ('PumpLocation');
but when I assign QQQ to a flow source (see pic1.JPG)
and use >>sim ('PumpLocation','QQQ','40') - it no longer works

Respuestas (1)

Sebastian Castro
Sebastian Castro el 30 de Oct. de 2015
I don't see a picture attached. If the following doesn't answer your question, please ensure to attach something and I can take a look.
Is QQQ just a workspace variable that feeds into a flow source? If so, you can do:
>> QQQ = 40;
>> simout1 = sim('PumpLocation','StopTime','20', ... );
>> QQQ = 50;
>> simout2 = sim('PumpLocatiom','StopTime','20', ... );
- Sebastian

Categorías

Más información sobre Simulink en Help Center y File Exchange.

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by