Embedded function block changes to sf_sfun block automatically!! why?!

1 view (last 30 days)
I closed Matlab by using task manager in windows system, due to the reason that the Matlab stops working and suspended. Then, I restart the Matlab again, and open my previous working Simulink .mdl file, after I double click the 'embedded function' block, the icon of matlab disappears, meanwhile, the embedded function block is changed to sf-sfun block automatically, I cannot find my previous code in that block. what's wrong?!! who could help me?
The error message is as following:
--------------------------------------
failed assertion in b:\matlab\toolbox\stateflow\src\stateflow\fsm\machine.cpp at line 715: chart->instances.length==1 [ 0] 0x00000000cfd005a2 C:\Program Files\MATLAB\R2014a\bin\win64\stateflow.dll+04195746 SF::get_last_error+00203506 [ 1] 0x00000000cfbbc02a C:\Program Files\MATLAB\R2014a\bin\win64\stateflow.dll+02867242 SF::BadgesRegistry::operator=+00001498 [ 2] 0x00000000cfbbe522 C:\Program Files\MATLAB\R2014a\bin\win64\stateflow.dll+02876706 SF::sf_mexFunction+00000018 [ 3] 0x00000000fc5ef711 C:\Program Files\MATLAB\R2014a\bin\win64\libmex.dll+00063249 mexRunMexFile+00000129 [ 4] 0x00000000fc5ee1e2 C:\Program Files\MATLAB\R2014a\bin\win64\libmex.dll+00057826 inSwapMexfileReader+00000226 [ 5] 0x00000000fc5ef294 C:\Program Files\MATLAB\R2014a\bin\win64\libmex.dll+00062100 _constructor_lm_mexmaci64+00001620 [ 6] 0x000000000464be4f C:\Program Files\MATLAB\R2014a\bin\win64\m_dispatcher.dll+00048719 Mfh_file::dispatch_fh+00000687 [ 7] 0x000000000464c77a C:\Program Files\MATLAB\R2014a\bin\win64\m_dispatcher.dll+00051066 Mfunction_handle::dispatch+00000810 [ 8] 0x00000000049fcdfe C:\Program Files\MATLAB\R2014a\bin\win64\m_interpreter.dll+00577022 MathWorks::MException::MExceptionEnvelope::GetID+00371822 [ 9] 0x00000000049f9569 C:\Program Files\MATLAB\R2014a\bin\win64\m_interpreter.dll+00562537 MathWorks::MException::MExceptionEnvelope::GetID+00357337 [ 10] 0x0000000004a1446f C:\Program Files\MATLAB\R2014a\bin\win64\m_interpreter.dll+00672879 MathWorks::MException::MExceptionEnvelope::GetID+00467679 [ 11] 0x0000000004a145b8 C:\Program Files\MATLAB\R2014a\bin\win64\m_interpreter.dll+00673208 MathWorks::MException::MExceptionEnvelope::GetID+00468008 [ 12] 0x0000000004a04a2d C:\Program Files\MATLAB\R2014a\bin\win64\m_interpreter.dll+00608813 MathWorks::MException::MExceptionEnvelope::GetID+00403613 [ 13] 0x0000000004a0192c C:\Program Files\MATLAB\R2014a\bin\win64\m_interpreter.dll+00596268 MathWorks::MException::MExceptionEnvelope::GetID+00391068 [ 14] 0x0000000004a111c9 C:\Program Files\MATLAB\R2014a\bin\win64\m_interpreter.dll+00659913 MathWorks::MException::MExceptionEnvelope::GetID+00454713 [ 15] 0x000000000464be4f C:\Program Files\MATLAB\R2014a\bin\win64\m_dispatcher.dll+00048719 Mfh_file::dispatch_fh+00000687 [ 16] 0x000000000464c77a C:\Program Files\MATLAB\R2014a\bin\win64\m_dispatcher.dll+00051066 Mfunction_handle::dispatch+00000810 [ 17] 0x0000000004a25e04 C:\Program Files\MATLAB\R2014a\bin\win64\m_interpreter.dll+00744964 MathWorks::MException::MExceptionEnvelope::GetID+00539764 [ 18] 0x0000000004a10782 C:\Program Files\MATLAB\R2014a\bin\win64\m_interpreter.dll+00657282 MathWorks::MException::MExceptionEnvelope::GetID+00452082 [ 19] 0x0000000004a03f6f C:\Program Files\MATLAB\R2014a\bin\win64\m_interpreter.dll+00606063 MathWorks::MException::MExceptionEnvelope::GetID+00400863 [ 20] 0x00000000049ecd43 C:\Program Files\MATLAB\R2014a\bin\win64\m_interpreter.dll+00511299 MathWorks::MException::MExceptionEnvelope::GetID+00306099 [ 21] 0x00000000049f644f C:\Program Files\MATLAB\R2014a\bin\win64\m_interpreter.dll+00549967 MathWorks::MException::MExceptionEnvelope::GetID+00344767 [ 22] 0x00000000049f9350 C:\Program Files\MATLAB\R2014a\bin\win64\m_interpreter.dll+00562000 MathWorks::MException::MExceptionEnvelope::GetID+00356800 [ 23] 0x0000000004a1446f C:\Program Files\MATLAB\R2014a\bin\win64\m_interpreter.dll+00672879 MathWorks::MException::MExceptionEnvelope::GetID+00467679 [ 24] 0x0000000004a145b8 C:\Program Files\MATLAB\R2014a\bin\win64\m_interpreter.dll+00673208 MathWorks::MException::MExceptionEnvelope::GetID+00468008 [ 25] 0x0000000004a04a2d C:\Program Files\MATLAB\R2014a\bin\win64\m_interpreter.dll+00608813 MathWorks::MException::MExceptionEnvelope::GetID+00403613 [ 26] 0x0000000004a0192c C:\Program Files\MATLAB\R2014a\bin\win64\m_interpreter.dll+00596268 MathWorks::MException::MExceptionEnvelope::GetID+00391068 [ 27] 0x0000000004a111c9 C:\Program Files\MATLAB\R2014a\bin\win64\m_interpreter.dll+00659913 MathWorks::MException::MExceptionEnvelope::GetID+00454713 [ 28] 0x000000000464be4f C:\Program Files\MATLAB\R2014a\bin\win64\m_dispatcher.dll+00048719 Mfh_file::dispatch_fh+00000687 [ 29] 0x000000000464c77a C:\Program Files\MATLAB\R2014a\bin\win64\m_dispatcher.dll+00051066 Mfunction_handle::dispatch+00000810 [ 30] 0x0000000004a55d06 C:\Program Files\MATLAB\R2014a\bin\win64\m_interpreter.dll+00941318 in_is_matlab_function+00012502 [ 31] 0x0000000004a65d37 C:\Program Files\MATLAB\R2014a\bin\win64\m_interpreter.dll+01006903 inCallFcn+00000071 [ 32] 0x00000000f56cfa0c C:\Program Files\MATLAB\R2014a\bin\win64\sl_services.dll+00260620 slsvFEVAL+00000076 [ 33] 0x00000000cfbbe90d C:\Program Files\MATLAB\R2014a\bin\win64\stateflow.dll+02877709 SF::sf_mexFunction+00001021 [ 34] 0x00000000cfd005a2 C:\Program Files\MATLAB\R2014a\bin\win64\stateflow.dll+04195746 SF::get_last_error+00203506 [ 35] 0x00000000cfbbc02a C:\Program Files\MATLAB\R2014a\bin\win64\stateflow.dll+02867242 SF::BadgesRegistry::operator=+00001498 [ 36] 0x00000000cfbbe522 C:\Program Files\MATLAB\R2014a\bin\win64\stateflow.dll+02876706 SF::sf_mexFunction+00000018 [ 37] 0x00000000fc5ef711 C:\Program Files\MATLAB\R2014a\bin\win64\libmex.dll+00063249 mexRunMexFile+00000129 [ 38] 0x00000000fc5ee1e2 C:\Program Files\MATLAB\R2014a\bin\win64\libmex.dll+00057826 inSwapMexfileReader+00000226 [ 39] 0x00000000fc5ef294 C:\Program Files\MATLAB\R2014a\bin\win64\libmex.dll+00062100 _constructor_lm_mexmaci64+00001620 [ 40] 0x000000000464be4f C:\Program Files\MATLAB\R2014a\bin\win64\m_dispatcher.dll+00048719 Mfh_file::dispatch_fh+00000687 [ 41] 0x000000000464c77a C:\Program Files\MATLAB\R2014a\bin\win64\m_dispatcher.dll+00051066 Mfunction_handle::dispatch+00000810 [ 42] 0x0000000004a55d06 C:\Program Files\MATLAB\R2014a\bin\win64\m_interpreter.dll+00941318 in_is_matlab_function+00012502 [ 43] 0x0000000004a65d37 C:\Program Files\MATLAB\R2014a\bin\win64\m_interpreter.dll+01006903 inCallFcn+00000071 [ 44] 0x00000000f56cfa0c C:\Program Files\MATLAB\R2014a\bin\win64\sl_services.dll+00260620 slsvFEVAL+00000076 [ 45] 0x00000000b6a4e1d0 C:\Program Files\MATLAB\R2014a\bin\win64\libmwsimulink.dll+11264464 getModelWSContentsAsStruct+00064864 [ 46] 0x00000000b630c697 C:\Program Files\MATLAB\R2014a\bin\win64\libmwsimulink.dll+03655319 SlSigHierInfoIter::getCompleteSignalName+00218135 [ 47] 0x00000000b630cbe3 C:\Program Files\MATLAB\R2014a\bin\win64\libmwsimulink.dll+03656675 SlSigHierInfoIter::getCompleteSignalName+00219491 [ 48] 0x00000000b630cc47 C:\Program Files\MATLAB\R2014a\bin\win64\libmwsimulink.dll+03656775 SlSigHierInfoIter::getCompleteSignalName+00219591 [ 49] 0x00000000b630d6b5 C:\Program Files\MATLAB\R2014a\bin\win64\libmwsimulink.dll+03659445 SlSigHierInfoIter::getCompleteSignalName+00222261 [ 50] 0x00000000b6bb3fed C:\Program Files\MATLAB\R2014a\bin\win64\libmwsimulink.dll+12730349 SLGlue::getPortSegment+00012509 [ 51] 0x00000000b6311636 C:\Program Files\MATLAB\R2014a\bin\win64\libmwsimulink.dll+03675702 SlSigHierInfoIter::getCompleteSignalName+00238518 [ 52] 0x00000000b6312d15 C:\Program Files\MATLAB\R2014a\bin\win64\libmwsimulink.dll+03681557 SlSigHierInfoIter::getCompleteSignalName+00244373 [ 53] 0x00000000b63466ce C:\Program Files\MATLAB\R2014a\bin\win64\libmwsimulink.dll+03892942 BlockReplacementSpec::operator=+00000094 [ 54] 0x000000000464c07f C:\Program Files\MATLAB\R2014a\bin\win64\m_dispatcher.dll+00049279 Mfh_file::dispatch_fh+00001247 [ 55] 0x000000000464c637 C:\Program Files\MATLAB\R2014a\bin\win64\m_dispatcher.dll+00050743 Mfunction_handle::dispatch+00000487 [ 56] 0x00000000049fcdfe C:\Program Files\MATLAB\R2014a\bin\win64\m_interpreter.dll+00577022 MathWorks::MException::MExceptionEnvelope::GetID+00371822 [ 57] 0x0000000004a65265 C:\Program Files\MATLAB\R2014a\bin\win64\m_interpreter.dll+01004133 inGetCurrentWS+00001365 [ 58] 0x00000000049faa4c C:\Program Files\MATLAB\R2014a\bin\win64\m_interpreter.dll+00567884 MathWorks::MException::MExceptionEnvelope::GetID+00362684 [ 59] 0x0000000004a1446f C:\Program Files\MATLAB\R2014a\bin\win64\m_interpreter.dll+00672879 MathWorks::MException::MExceptionEnvelope::GetID+00467679 [ 60] 0x0000000004a145b8 C:\Program Files\MATLAB\R2014a\bin\win64\m_interpreter.dll+00673208 MathWorks::MException::MExceptionEnvelope::GetID+00468008 [ 61] 0x0000000004a693b5 C:\Program Files\MATLAB\R2014a\bin\win64\m_interpreter.dll+01020853 inPushCheckpoint+00000549 [ 62] 0x0000000004a5c307 C:\Program Files\MATLAB\R2014a\bin\win64\m_interpreter.dll+00967431 MathWorks::MException::MExceptionEnvelope::MExceptionEnvelope+00007719 [ 63] 0x0000000004a6d9dc C:\Program Files\MATLAB\R2014a\bin\win64\m_interpreter.dll+01038812 inGetEcho+00001868 [ 64] 0x0000000004a6601b C:\Program Files\MATLAB\R2014a\bin\win64\m_interpreter.dll+01007643 inCallFcn+00000811 [ 65] 0x0000000004a6adeb C:\Program Files\MATLAB\R2014a\bin\win64\m_interpreter.dll+01027563 inPushCheckpoint+00007259 [ 66] 0x0000000004a6ae89 C:\Program Files\MATLAB\R2014a\bin\win64\m_interpreter.dll+01027721 inPushCheckpoint+00007417 [ 67] 0x0000000004a6bf5b C:\Program Files\MATLAB\R2014a\bin\win64\m_interpreter.dll+01032027 inEvalExpInWS+00000075 [ 68] 0x0000000004a6bec5 C:\Program Files\MATLAB\R2014a\bin\win64\m_interpreter.dll+01031877 inPushCheckpoint+00011573 [ 69] 0x0000000004a6bfb0 C:\Program Files\MATLAB\R2014a\bin\win64\m_interpreter.dll+01032112 inEvalExpInWS+00000160 [ 70] 0x000000000464c07f C:\Program Files\MATLAB\R2014a\bin\win64\m_dispatcher.dll+00049279 Mfh_file::dispatch_fh+00001247 [ 71] 0x000000000464c637 C:\Program Files\MATLAB\R2014a\bin\win64\m_dispatcher.dll+00050743 Mfunction_handle::dispatch+00000487 [ 72] 0x00000000049fcdfe C:\Program Files\MATLAB\R2014a\bin\win64\m_interpreter.dll+00577022 MathWorks::MException::MExceptionEnvelope::GetID+00371822 [ 73] 0x00000000049f9569 C:\Program Files\MATLAB\R2014a\bin\win64\m_interpreter.dll+00562537 MathWorks::MException::MExceptionEnvelope::GetID+00357337 [ 74] 0x0000000004a1446f C:\Program Files\MATLAB\R2014a\bin\win64\m_interpreter.dll+00672879 MathWorks::MException::MExceptionEnvelope::GetID+00467679 [ 75] 0x0000000004a145b8 C:\Program Files\MATLAB\R2014a\bin\win64\m_interpreter.dll+00673208 MathWorks::MException::MExceptionEnvelope::GetID+00468008 [ 76] 0x0000000004a04a2d C:\Program Files\MATLAB\R2014a\bin\win64\m_interpreter.dll+00608813 MathWorks::MException::MExceptionEnvelope::GetID+00403613 [ 77] 0x0000000004a0192c C:\Program Files\MATLAB\R2014a\bin\win64\m_interpreter.dll+00596268 MathWorks::MException::MExceptionEnvelope::GetID+00391068 [ 78] 0x0000000004a111c9 C:\Program Files\MATLAB\R2014a\bin\win64\m_interpreter.dll+00659913 MathWorks::MException::MExceptionEnvelope::GetID+00454713 [ 79] 0x000000000464be4f C:\Program Files\MATLAB\R2014a\bin\win64\m_dispatcher.dll+00048719 Mfh_file::dispatch_fh+00000687 [ 80] 0x000000000464c77a C:\Program Files\MATLAB\R2014a\bin\win64\m_dispatcher.dll+00051066 Mfunction_handle::dispatch+00000810 [ 81] 0x0000000004a55d06 C:\Program Files\MATLAB\R2014a\bin\win64\m_interpreter.dll+00941318 in_is_matlab_function+00012502 [ 82] 0x0000000004a65d37 C:\Program Files\MATLAB\R2014a\bin\win64\m_interpreter.dll+01006903 inCallFcn+00000071 [ 83] 0x0000000004a68735 C:\Program Files\MATLAB\R2014a\bin\win64\m_interpreter.dll+01017653 inFullFevalFcn+00000245 [ 84] 0x000000000464c07f C:\Program Files\MATLAB\R2014a\bin\win64\m_dispatcher.dll+00049279 Mfh_file::dispatch_fh+00001247 [ 85] 0x000000000464c637 C:\Program Files\MATLAB\R2014a\bin\win64\m_dispatcher.dll+00050743 Mfunction_handle::dispatch+00000487 [ 86] 0x0000000004a6638b C:\Program Files\MATLAB\R2014a\bin\win64\m_interpreter.dll+01008523 inCallFcn+00001691 [ 87] 0x0000000004a25ed7 C:\Program Files\MATLAB\R2014a\bin\win64\m_interpreter.dll+00745175 MathWorks::MException::MExceptionEnvelope::GetID+00539975 [ 88] 0x0000000004a10782 C:\Program Files\MATLAB\R2014a\bin\win64\m_interpreter.dll+00657282 MathWorks::MException::MExceptionEnvelope::GetID+00452082 [ 89] 0x0000000004a03f6f C:\Program Files\MATLAB\R2014a\bin\win64\m_interpreter.dll+00606063 MathWorks::MException::MExceptionEnvelope::GetID+00400863 [ 90] 0x00000000049ecd43 C:\Program Files\MATLAB\R2014a\bin\win64\m_interpreter.dll+00511299 MathWorks::MException::MExceptionEnvelope::GetID+00306099 [ 91] 0x00000000049f644f C:\Program Files\MATLAB\R2014a\bin\win64\m_interpreter.dll+00549967 MathWorks::MException::MExceptionEnvelope::GetID+00344767 [ 92] 0x00000000049f9350 C:\Program Files\MATLAB\R2014a\bin\win64\m_interpreter.dll+00562000 MathWorks::MException::MExceptionEnvelope::GetID+00356800 [ 93] 0x0000000004a1446f C:\Program Files\MATLAB\R2014a\bin\win64\m_interpreter.dll+00672879 MathWorks::MException::MExceptionEnvelope::GetID+00467679 [ 94] 0x0000000004a145b8 C:\Program Files\MATLAB\R2014a\bin\win64\m_interpreter.dll+00673208 MathWorks::MException::MExceptionEnvelope::GetID+00468008 [ 95] 0x0000000004a04a2d C:\Program Files\MATLAB\R2014a\bin\win64\m_interpreter.dll+00608813 MathWorks::MException::MExceptionEnvelope::GetID+00403613 [ 96] 0x0000000004a0192c C:\Program Files\MATLAB\R2014a\bin\win64\m_interpreter.dll+00596268 MathWorks::MException::MExceptionEnvelope::GetID+00391068 [ 97] 0x0000000004a111c9 C:\Program Files\MATLAB\R2014a\bin\win64\m_interpreter.dll+00659913 MathWorks::MException::MExceptionEnvelope::GetID+00454713 [ 98] 0x000000000464be4f C:\Program Files\MATLAB\R2014a\bin\win64\m_dispatcher.dll+00048719 Mfh_file::dispatch_fh+00000687 [ 99] 0x000000000464c77a C:\Program Files\MATLAB\R2014a\bin\win64\m_dispatcher.dll+00051066 Mfunction_handle::dispatch+00000810 [100] 0x0000000004a25e04 C:\Program Files\MATLAB\R2014a\bin\win64\m_interpreter.dll+00744964 MathWorks::MException::MExceptionEnvelope::GetID+00539764 [101] 0x0000000004a10782 C:\Program Files\MATLAB\R2014a\bin\win64\m_interpreter.dll+00657282 MathWorks::MException::MExceptionEnvelope::GetID+00452082 [102] 0x0000000004a03f6f C:\Program Files\MATLAB\R2014a\bin\win64\m_interpreter.dll+00606063 MathWorks::MException::MExceptionEnvelope::GetID+00400863 [103] 0x00000000049ecd43 C:\Program Files\MATLAB\R2014a\bin\win64\m_interpreter.dll+00511299 MathWorks::MException::MExceptionEnvelope::GetID+00306099 [104] 0x00000000049f644f C:\Program Files\MATLAB\R2014a\bin\win64\m_interpreter.dll+00549967 MathWorks::MException::MExceptionEnvelope::GetID+00344767 [105] 0x00000000049f9350 C:\Program Files\MATLAB\R2014a\bin\win64\m_interpreter.dll+00562000 MathWorks::MException::MExceptionEnvelope::GetID+00356800 [106] 0x0000000004a1446f C:\Program Files\MATLAB\R2014a\bin\win64\m_interpreter.dll+00672879 MathWorks::MException::MExceptionEnvelope::GetID+00467679 [107] 0x0000000004a145b8 C:\Program Files\MATLAB\R2014a\bin\win64\m_interpreter.dll+00673208 MathWorks::MException::MExceptionEnvelope::GetID+00468008 [108] 0x0000000004a04a2d C:\Program Files\MATLAB\R2014a\bin\win64\m_interpreter.dll+00608813 MathWorks::MException::MExceptionEnvelope::GetID+00403613 [109] 0x0000000004a0192c C:\Program Files\MATLAB\R2014a\bin\win64\m_interpreter.dll+00596268 MathWorks::MException::MExceptionEnvelope::GetID+00391068 [110] 0x0000000004a111c9 C:\Program Files\MATLAB\R2014a\bin\win64\m_interpreter.dll+00659913 MathWorks::MException::MExceptionEnvelope::GetID+00454713 [111] 0x000000000464be4f C:\Program Files\MATLAB\R2014a\bin\win64\m_dispatcher.dll+00048719 Mfh_file::dispatch_fh+00000687 [112] 0x000000000464c77a C:\Program Files\MATLAB\R2014a\bin\win64\m_dispatcher.dll+00051066 Mfunction_handle::dispatch+00000810 [113] 0x00000000049fcdfe C:\Program Files\MATLAB\R2014a\bin\win64\m_interpreter.dll+00577022 MathWorks::MException::MExceptionEnvelope::GetID+00371822 [114] 0x0000000004a768a7 C:\Program Files\MATLAB\R2014a\bin\win64\m_interpreter.dll+01075367 inEachVisibleName+00016119 [115] 0x00000000049fab1a C:\Program Files\MATLAB\R2014a\bin\win64\m_interpreter.dll+00568090 MathWorks::MException::MExceptionEnvelope::GetID+00362890 [116] 0x0000000004a1446f C:\Program Files\MATLAB\R2014a\bin\win64\m_interpreter.dll+00672879 MathWorks::MException::MExceptionEnvelope::GetID+00467679 [117] 0x0000000004a145b8 C:\Program Files\MATLAB\R2014a\bin\win64\m_interpreter.dll+00673208 MathWorks::MException::MExceptionEnvelope::GetID+00468008 [118] 0x0000000004a04a2d C:\Program Files\MATLAB\R2014a\bin\win64\m_interpreter.dll+00608813 MathWorks::MException::MExceptionEnvelope::GetID+00403613 [119] 0x0000000004a0192c C:\Program Files\MATLAB\R2014a\bin\win64\m_interpreter.dll+00596268 MathWorks::MException::MExceptionEnvelope::GetID+00391068 [120] 0x0000000004a111c9 C:\Program Files\MATLAB\R2014a\bin\win64\m_interpreter.dll+00659913 MathWorks::MException::MExceptionEnvelope::GetID+00454713 [121] 0x000000000464c00e C:\Program Files\MATLAB\R2014a\bin\win64\m_dispatcher.dll+00049166 Mfh_file::dispatch_fh+00001134 [122] 0x000000000464c77a C:\Program Files\MATLAB\R2014a\bin\win64\m_dispatcher.dll+00051066 Mfunction_handle::dispatch+00000810 [123] 0x0000000004a84a0e C:\Program Files\MATLAB\R2014a\bin\win64\m_interpreter.dll+01133070 inValidateLoadedObject+00003486 [124] 0x0000000004a8bd95 C:\Program Files\MATLAB\R2014a\bin\win64\m_interpreter.dll+01162645 inResetInterpreter+00005029 [125] 0x0000000004a90a05 C:\Program Files\MATLAB\R2014a\bin\win64\m_interpreter.dll+01182213 MathWorks::MException::MExceptionEnvelope::Copy+00010997 [126] 0x0000000004a909d2 C:\Program Files\MATLAB\R2014a\bin\win64\m_interpreter.dll+01182162 MathWorks::MException::MExceptionEnvelope::Copy+00010946 [127] 0x0000000004a90997 C:\Program Files\MATLAB\R2014a\bin\win64\m_interpreter.dll+01182103 MathWorks::MException::MExceptionEnvelope::Copy+00010887 MATLAB stack trace: > In stateflow\private\slsf>post_load at 202 In stateflow\private\slsf at 72 In general\private\openmdl at 12 In open at 158 In uiopen at 167 Warning: String Buffer locked in b:\matlab\toolbox\stateflow\src\stateflow\fsm\machine.cpp at 704 not unlocked.
The current block is wrong as following:
The correct one should be, the F(x) is a embedded function block, inside this block, there should be my codes, where is it now?
The current content of that embedded block is as following:
This is really strange.
Help!!!
  2 Comments
Hugh
Hugh on 29 Oct 2015
Edited: Hugh on 29 Oct 2015
Did you find a solution?
I have exactly the same problem. After deleting the corresponding block and starting simulation i recieve the following error message:
simulation target must be the first target!
target != NULL
> In stateflow\private\get_sf_block_port_info at 23 failed assertion in b:\matlab\toolbox\stateflow\src\stateflow\cdr\cdr_eml_construct.cpp at line 134: target != NULL Stack Trace:
Andy Wu
Andy Wu on 20 Dec 2018
I have the same issue.
Before click on the state flow or the MATLAB function, it's like below
1.png
After clicking it, it becomes.
2.png
Once goes into it, it becomes like this.
3.png
All of the code that I wrote is gone!!!

Sign in to comment.

Answers (0)

Categories

Find more on Startup and Shutdown in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!