Hi all,

I'm trying to add power flow analysis to my simulink model.
I added a MATLAB function in simulink and run matpower command such as load 
case, runpf, eta.
However, I received this errors:

Try and catch are not supported for code generation.


Function 'loadcase.m' (#54.4881.5039), line 129, column 13:
"try                             \%% assume it returns a struct"
Launch diagnostic report.
Does anybody familiar with running matpower in Simulink? Could you guys give me 
some hints about how should I fix it?
Thanks!

Fang-Yu

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to