From: Zia on
Hello ppl,

i am working on a simulation in simulink and with two inputs(From Workspace). I have created a stand alone from that model and now in order to run it from gui i am giving the following code in call back function:

save myparamfile.mat myrtp;
exeloc='DM.exe';
runstr =['!',exeloc,' ','-p',' ',['myparamfile.mat'],' ',...
'-f',' ','input.mat=input.mat',' ','-f',' ','flowrate.mat=flowrate.mat',...
' ','-tf',' ',num2str(Sim_Time)];
eval(runstr)
load DM.mat

but when i run it i am having the following error:

Error parsing input arguments: too many -f switches were specified

Anybody have any idea how can overcome this. As both inputs are very necessary to run the simulation. Any suggestion would be appreciated.

Thanks in advance.

Regards!