I'm involved with a project to design a BLDC motor speed control with NI CompactRIO controller.
I found that your simulink simulator for a BRUSHLESS DC MOTOR ( Complete simulator for brushless dc motor based on MATLAB R13) in Matlab central - File exchange site very interesting and useful.
I've tried to simulate your simulation model in my Matlab version 6.5, but I'm getting some error.
Below are the 3 errors I'm getting from your simulink simulator model.
1) Error in S-function block 'mybldc_mdl2/ESTIMATE/S-Function': S-Function 'calc_core' does not exist.
2) Error in S-function block 'mybldc_mdl2/mybldc/S-Function': S-Function 'MYBLDC2' does not exist.
3) Error in S-function block 'mybldc_mdl2/zero-cross/M-file S-Function': S-Function 'delay' does not exist.
I'm realy interested to find out and troubleshoot these errors, I realy hope that you can help me in this.
You can reply my mail if you have any idea how to troubleshoot these errors. My email is email@example.com
The model cannot be run in MATLABR2013a. Can anyone suggest a way to get around the problem with the stateflow chart in the controller_mod block, given the difference in MATLAB version to the one this author used? The following error message is generated when attempting to run in MATLABR2013a:
The following chart(s) in the model 'mybldc_mdl2' have continuous
The behavior of continuous time Stateflow charts has changed
significantly in R2007b. Please read the documentation for the
Making simulation target "mybldc_mdl2_sfun", ...
'mybldc_mdl2_sfun.bat' is not recognized as an internal or external command,
operable program or batch file.
here is something wrong with the model，when i run the model,it turns up the summary:"At time 0.0005159318861234992, simulation hits (1000) consecutive zero crossings
I don't know why,could you tell me the reason.thanks! My matlab version is R2011a.