Battery State-of-Charge Estimation Study: Addressing Errors Encountered After Saving
3 ビュー (過去 30 日間)
古いコメントを表示
Hello, I am working on a study called Battery State-of-Charge Estimation. When I save it to my computer and want to work on it again later, I receive an error saying: 'Error evaluating 'PreLoadFcn' callback of block_diagram 'BatterySOCEstimation'. Callback string is 'BatterySOCEstimationData;' Caused by: Unrecognized function or variable 'BatterySOCEstimationData'.' How can I work on it again after saving without encountering this error?
0 件のコメント
回答 (2 件)
Xiangchun
2023 年 11 月 30 日
Hi Eren,
The PreLoadFcn runs BatterySOCEstimationData.m script to parameterize certain variables that are required to run the plant model and the "SOC Estimator (Kalman Filter)" block. To solve the error message, please make sure that "BatterySOCEstimationData.m" file provided by the example is included in the active MATLAB search path.
Best wishes,
Xiangchun
0 件のコメント
Vidip
2023 年 12 月 1 日
I understand that you are facing the error "Unrecognized function or variable 'BatterySOCEstimationData'" which indicates that the MATLAB Simulink model is unable to find the function or variable named "BatterySOCEstimationData" when attempting to execute the PreLoadFcn callback. This error typically occurs when the model is saved to a different location or when the workspace is cleared, causing the model to lose reference to the function or variable.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Battery Pack Modeling についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!