From: Martin Stolpe on
Hello,
I'm using a m-script to simulate my model. When I try to run the following commands:

mdl = 'my_system';
load_system(mdl);

simMode = get_param(mdl, 'SimulationMode');
cs = getActiveConfigSet(mdl);
set_param(cs, 'StopTime', '1');
mdl_cs = cs.copy;
simOut = sim(mdl, mdl_cs);
set_param(mdl, 'SimulationMode', simMode);

I get the following error:
??? Error using ==> run_me at 37
Error using ==> slsf at 120
Target Function Library 'Simulation Target TFL IPP' is missing or does not contain a valid TFL Table.

It was already working. But some parameter of the model seems to have changed which are causing this error.

Regards,
Martin