Simulink/Stateflow Coder Error - failed to create *sfun_debug_macros.h.
이전 댓글 표시
Hello,
I'm attempting to implement a simple post-processing function to calculate the mode of a sample. I have a signal buffer immediately prior to a user-defined mode function. I made a test model using a random number generator and then multiplied, rounded, and buffered the signal to achieve the same dimensional input of my real project model. The function performs fine in this test case. The signal in my project model emits from the Index port of a Minimum block.
When I implement the same buffer and user-defined function in my project, I get the following errors:
Coder Error - Stateflow - Failed to create file: C:\...path removed...\*filename*sfun_debug_macros.h.
Model Error - Simulink - Error using ==> sf Error using ==> construct_error at 109 Failed to create file: C:\...path removed...\*filename*sfun_debug_macros.h.
I thought perhaps my student version was limiting me, but I have no issue employing my user-defined function in another model. Any suggestions are much appreciated.
채택된 답변
추가 답변 (1개)
Walter Roberson
2012년 1월 27일
0 개 추천
As best I can tell, Simulink Coder and Stateflow Coder are not available for the Student Version.
However, it is not clear to me that you are using Simulink Coder or Stateflow Coder as such.
댓글 수: 8
Michael
2012년 1월 27일
Walter Roberson
2012년 1월 27일
Is that *filename* in the file name literal? backslash asterisk "filename" asterisk sfun_debug_macros.h ?
Michael
2012년 1월 27일
Kaustubha Govind
2012년 1월 27일
Could you try running "mex -setup", select a selected compiler and rerun the model to see if the error goes away?
Michael
2012년 1월 27일
Michael
2012년 1월 27일
Kaustubha Govind
2012년 1월 27일
Do you have a Stateflow chart in your model? Or is your user-defined function using an (Embedded) MATLAB Function block?
Michael
2012년 1월 27일
카테고리
도움말 센터 및 File Exchange에서 Event Functions에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!