Borrar filtros
Borrar filtros

InitFcn Error at Simulink

8 visualizaciones (últimos 30 días)
Sule Soylu
Sule Soylu el 22 de Feb. de 2023
Respondida: Paul el 22 de Feb. de 2023
I am getting such error in matlab in BLDC with PWM simulation. What should I do? Can you help me?
Error evaluating 'InitFcn' callback of block_diagram 'BLDC_PWM_control'. Callback string is 'load bldcData'
Caused by: Unable to find file or directory 'bldcData'.

Respuestas (1)

Paul
Paul el 22 de Feb. de 2023
The model (likely) needs information stored in a file called bldcData.mat in order to execute, so the InitFcn callback tries to load the data from that file into the base workspace. Make sure that bldcData.mat is located in a folder on the path. If you don't have bldcData.mat you'll need to get it (except in the unlikely event it's not really needed, in which case you could comment out the load command in the InitFcn). InitFcn doc page

Categorías

Más información sobre Programmatic Model Editing en Help Center y File Exchange.

Productos


Versión

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by