필터 지우기
필터 지우기

InitFcn Error at Simulink

조회 수: 8 (최근 30일)
Sule Soylu
Sule Soylu 2023년 2월 22일
답변: Paul 2023년 2월 22일
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'.

답변 (1개)

Paul
Paul 2023년 2월 22일
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

카테고리

Help CenterFile Exchange에서 Programmatic Model Editing에 대해 자세히 알아보기

제품


릴리스

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by