Error evaluating 'InitFcn' callback of block_diagram 'Faultag'. Callback string is 'Set_parameters_R2018' Caused by:

2 views (last 30 days)
I have a hybrid microgrid model. it consists of variable loading matlab file also. Now I required to write another program for collecting data for different fault fault condition in the same model.but while run this program it shows the following error
Error evaluating 'InitFcn' callback of block_diagram 'Faultag'.
Callback string is 'Set_parameters_R2018'
Caused by:
Error using ff
how can I able to eliminate this error

Answers (1)

Youssef Noureddine
Youssef Noureddine on 9 Nov 2022
Edited: Youssef Noureddine on 9 Nov 2022
Hi Nirma,
This error is happening prior to your model 'Faultag' simulating. You will have to take a look at the callback titled 'Set_parameters_R2018' that is causing this error.
I am unable to tell you why you experience this just based on the error message and without access to the files called by your model's callback, but what I would recommend doing is running your callback string outside of Simulink (either in the command window or an empty MATLAB script) to see if you still encounter the error and if so, see if the error message gives you a better idea of why calling 'Set_parameters_R2018' is erroring when using ff.
Sincerely,
Youssef
Edit: I forgot to mention this, but if you are still unable to determine how to prevent this error after examining the offending callback more closely, feel free to contact MathWorks Technical Support directly.

Categories

Find more on Image Data Workflows in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!