failed assertion in b:\matlab\toolbox\stateflow\src\stateflow\utils\object.cpp at line 2870: object[id]!=NULL (Matlab 2014a)
73 views (last 30 days)
Show older comments
Hello all,
We have an assignment to work with the auto-transmission model (sldemo_autotrans) and make it a more complex one.
We have added cruise control, rpm control etc.
My partner have done a lot of the work on his computer and now that I am trying to run the model on mine I get the following output:
failed assertion in b:\matlab\toolbox\stateflow\src\stateflow\utils\object.cpp at line 2870:
object[id]!=NULL
[ 0] 0x000000011291dc5c C:\Program Files\MATLAB\R2014a\bin\win64\stateflow.dll+00515164 SF::instantiateChart+00011868
[ 1] 0x0000000112ca05a2 C:\Program Files\MATLAB\R2014a\bin\win64\stateflow.dll+04195746 SF::get_last_error+00203506
[ 2] 0x0000000112b5c02a C:\Program Files\MATLAB\R2014a\bin\win64\stateflow.dll+02867242 SF::BadgesRegistry::operator=+00001498
[ 3] 0x0000000112b5e522 C:\Program Files\MATLAB\R2014a\bin\win64\stateflow.dll+02876706 SF::sf_mexFunction+00000018
[ 4] 0x00000000fc5ef711 C:\Program Files\MATLAB\R2014a\bin\win64\libmex.dll+00063249 mexRunMexFile+00000129
[ 5] 0x00000000fc5ee1e2 C:\Program Files\MATLAB\R2014a\bin\win64\libmex.dll+00057826 inSwapMexfileReader+00000226
[ 6] 0x00000000fc5ef294 C:\Program Files\MATLAB\R2014a\bin\win64\libmex.dll+00062100 _constructor_lm_mexmaci64+00001620
[ 7] 0x000000000461be4f C:\Program Files\MATLAB\R2014a\bin\win64\m_dispatcher.dll+00048719 Mfh_file::dispatch_fh+00000687
[ 8] 0x000000000461c77a C:\Program Files\MATLAB\R2014a\bin\win64\m_dispatcher.dll+00051066 Mfunction_handle::dispatch+00000810
[ 9] 0x0000000004795e04 C:\Program Files\MATLAB\R2014a\bin\win64\m_interpreter.dll+00744964 MathWorks::MException::MExceptionEnvelope::GetID+00539764
[ 10] 0x0000000004780782 C:\Program Files\MATLAB\R2014a\bin\win64\m_interpreter.dll+00657282 MathWorks::MException::MExceptionEnvelope::GetID+00452082
[ 11] 0x0000000004773f6f C:\Program Files\MATLAB\R2014a\bin\win64\m_interpreter.dll+00606063 MathWorks::MException::MExceptionEnvelope::GetID+00400863
[ 12] 0x000000000475cd43 C:\Program Files\MATLAB\R2014a\bin\win64\m_interpreter.dll+00511299 MathWorks::MException::MExceptionEnvelope::GetID+00306099
[ 13] 0x000000000476644f C:\Program Files\MATLAB\R2014a\bin\win64\m_interpreter.dll+00549967 MathWorks::MException::MExceptionEnvelope::GetID+00344767
[ 14] 0x0000000004769350 C:\Program Files\MATLAB\R2014a\bin\win64\m_interpreter.dll+00562000 MathWorks::MException::MExceptionEnvelope::GetID+00356800
[ 15] 0x000000000478446f C:\Program Files\MATLAB\R2014a\bin\win64\m_interpreter.dll+00672879 MathWorks::MException::MExceptionEnvelope::GetID+00467679
[ 16] 0x00000000047845b8 C:\Program Files\MATLAB\R2014a\bin\win64\m_interpreter.dll+00673208 MathWorks::MException::MExceptionEnvelope::GetID+00468008
[ 17] 0x0000000004774a2d C:\Program Files\MATLAB\R2014a\bin\win64\m_interpreter.dll+00608813 MathWorks::MException::MExceptionEnvelope::GetID+00403613
[ 18] 0x000000000477192c C:\Program Files\MATLAB\R2014a\bin\win64\m_interpreter.dll+00596268 MathWorks::MException::MExceptionEnvelope::GetID+00391068
[ 19] 0x00000000047811c9 C:\Program Files\MATLAB\R2014a\bin\win64\m_interpreter.dll+00659913 MathWorks::MException::MExceptionEnvelope::GetID+00454713
[ 20] 0x000000000461be4f C:\Program Files\MATLAB\R2014a\bin\win64\m_dispatcher.dll+00048719 Mfh_file::dispatch_fh+00000687
[ 21] 0x000000000461c77a C:\Program Files\MATLAB\R2014a\bin\win64\m_dispatcher.dll+00051066 Mfunction_handle::dispatch+00000810
[ 22] 0x00000000047c5d06 C:\Program Files\MATLAB\R2014a\bin\win64\m_interpreter.dll+00941318 in_is_matlab_function+00012502
[ 23] 0x00000000047d5d37 C:\Program Files\MATLAB\R2014a\bin\win64\m_interpreter.dll+01006903 inCallFcn+00000071
[ 24] 0x0000000061d1fa0c C:\Program Files\MATLAB\R2014a\bin\win64\sl_services.dll+00260620 slsvFEVAL+00000076
[ 25] 0x0000000112b5cbea C:\Program Files\MATLAB\R2014a\bin\win64\stateflow.dll+02870250 SF::BadgesRegistry::operator=+00004506
[ 26] 0x0000000112ca05a2 C:\Program Files\MATLAB\R2014a\bin\win64\stateflow.dll+04195746 SF::get_last_error+00203506
[ 27] 0x0000000112b5c02a C:\Program Files\MATLAB\R2014a\bin\win64\stateflow.dll+02867242 SF::BadgesRegistry::operator=+00001498
[ 28] 0x0000000112b5e522 C:\Program Files\MATLAB\R2014a\bin\win64\stateflow.dll+02876706 SF::sf_mexFunction+00000018
[ 29] 0x00000000fc5ef711 C:\Program Files\MATLAB\R2014a\bin\win64\libmex.dll+00063249 mexRunMexFile+00000129
[ 30] 0x00000000fc5ee1e2 C:\Program Files\MATLAB\R2014a\bin\win64\libmex.dll+00057826 inSwapMexfileReader+00000226
[ 31] 0x00000000fc5ef294 C:\Program Files\MATLAB\R2014a\bin\win64\libmex.dll+00062100 _constructor_lm_mexmaci64+00001620
[ 32] 0x000000000461be4f C:\Program Files\MATLAB\R2014a\bin\win64\m_dispatcher.dll+00048719 Mfh_file::dispatch_fh+00000687
[ 33] 0x000000000461c77a C:\Program Files\MATLAB\R2014a\bin\win64\m_dispatcher.dll+00051066 Mfunction_handle::dispatch+00000810
[ 34] 0x00000000047c5d06 C:\Program Files\MATLAB\R2014a\bin\win64\m_interpreter.dll+00941318 in_is_matlab_function+00012502
[ 35] 0x00000000047d5d37 C:\Program Files\MATLAB\R2014a\bin\win64\m_interpreter.dll+01006903 inCallFcn+00000071
[ 36] 0x0000000004b9e100 C:\Program Files\MATLAB\R2014a\bin\win64\m_interpreter.dll+04972800 MathWorks::MException::ProcessUnhandledMException+00333072
[ 37] 0x0000000004b00304 C:\Program Files\MATLAB\R2014a\bin\win64\m_interpreter.dll+04326148 inCallFcnInDesiredWS+00000084
[ 38] 0x0000000061d1f79b C:\Program Files\MATLAB\R2014a\bin\win64\sl_services.dll+00259995 CMatlabCommandNoWatermark::execute+00000219
[ 39] 0x0000000061d20f41 C:\Program Files\MATLAB\R2014a\bin\win64\sl_services.dll+00266049 CMatlabCommand::execute+00000161
[ 40] 0x0000000061d21467 C:\Program Files\MATLAB\R2014a\bin\win64\sl_services.dll+00267367 slsvFEVAL_NoThrow+00000151
[ 41] 0x000000013d6082ab C:\Program Files\MATLAB\R2014a\toolbox\stateflow\stateflow\sf_sfun.mexw64+00033451 NoSetErrorStatusException::operator=+00028187
[ 42] 0x000000013d60b592 C:\Program Files\MATLAB\R2014a\toolbox\stateflow\stateflow\sf_sfun.mexw64+00046482 NoSetErrorStatusException::operator=+00041218
[ 43] 0x000000013d60c2e4 C:\Program Files\MATLAB\R2014a\toolbox\stateflow\stateflow\sf_sfun.mexw64+00049892 mexFunction+00002196
[ 44] 0x00000000fc5ef711 C:\Program Files\MATLAB\R2014a\bin\win64\libmex.dll+00063249 mexRunMexFile+00000129
[ 45] 0x00000000fc5ee1e2 C:\Program Files\MATLAB\R2014a\bin\win64\libmex.dll+00057826 inSwapMexfileReader+00000226
[ 46] 0x00000000fc5ef294 C:\Program Files\MATLAB\R2014a\bin\win64\libmex.dll+00062100 _constructor_lm_mexmaci64+00001620
[ 47] 0x000000000461be4f C:\Program Files\MATLAB\R2014a\bin\win64\m_dispatcher.dll+00048719 Mfh_file::dispatch_fh+00000687
[ 48] 0x000000000467d18b C:\Program Files\MATLAB\R2014a\bin\win64\m_dispatcher.dll+00446859 mdAcquireMatlabFunction+00002523
[ 49] 0x000000000467d248 C:\Program Files\MATLAB\R2014a\bin\win64\m_dispatcher.dll+00447048 mdDoMatlabFcnCall+00000120
[ 50] 0x000000009874452a C:\Program Files\MATLAB\R2014a\bin\win64\libmwsimulink.dll+07619882 slDisplayErrorAlert+00000730
[ 51] 0x0000000061d1f6f8 C:\Program Files\MATLAB\R2014a\bin\win64\sl_services.dll+00259832 CMatlabCommandNoWatermark::execute+00000056
[ 52] 0x0000000098744599 C:\Program Files\MATLAB\R2014a\bin\win64\libmwsimulink.dll+07619993 slDisplayErrorAlert+00000841
[ 53] 0x0000000098b7547f C:\Program Files\MATLAB\R2014a\bin\win64\libmwsimulink.dll+12014719 slRegisterPrmAssoc+00317967
[ 54] 0x0000000098b73394 C:\Program Files\MATLAB\R2014a\bin\win64\libmwsimulink.dll+12006292 slRegisterPrmAssoc+00309540
[ 55] 0x0000000098b702c1 C:\Program Files\MATLAB\R2014a\bin\win64\libmwsimulink.dll+11993793 slRegisterPrmAssoc+00297041
[ 56] 0x0000000098b67edd C:\Program Files\MATLAB\R2014a\bin\win64\libmwsimulink.dll+11960029 slRegisterPrmAssoc+00263277
[ 57] 0x0000000098b6868d C:\Program Files\MATLAB\R2014a\bin\win64\libmwsimulink.dll+11961997 slRegisterPrmAssoc+00265245
[ 58] 0x0000000098b69a2a C:\Program Files\MATLAB\R2014a\bin\win64\libmwsimulink.dll+11967018 slRegisterPrmAssoc+00270266
[ 59] 0x0000000098b3f73e C:\Program Files\MATLAB\R2014a\bin\win64\libmwsimulink.dll+11794238 slRegisterPrmAssoc+00097486
[ 60] 0x00000000989906e4 C:\Program Files\MATLAB\R2014a\bin\win64\libmwsimulink.dll+10028772 DefaultBlockSetDefaultCompPortDimensionsFcn+00021380
[ 61] 0x00000000989907d2 C:\Program Files\MATLAB\R2014a\bin\win64\libmwsimulink.dll+10029010 DefaultBlockSetDefaultCompPortDimensionsFcn+00021618
[ 62] 0x00000000989cdfa5 C:\Program Files\MATLAB\R2014a\bin\win64\libmwsimulink.dll+10280869 BlockPositionPorts+00011397
[ 63] 0x00000000989d255b C:\Program Files\MATLAB\R2014a\bin\win64\libmwsimulink.dll+10298715 BlockPositionPorts+00029243
[ 64] 0x00000000982eb9e3 C:\Program Files\MATLAB\R2014a\bin\win64\libmwsimulink.dll+03062243 checkRuntimeVectConcatSizes+00142899
[ 65] 0x00000000982f4aaf C:\Program Files\MATLAB\R2014a\bin\win64\libmwsimulink.dll+03099311 checkRuntimeVectConcatSizes+00179967
[ 66] 0x00000000982fa23b C:\Program Files\MATLAB\R2014a\bin\win64\libmwsimulink.dll+03121723 checkRuntimeVectConcatSizes+00202379
[ 67] 0x0000000099eeb49b C:\Program Files\MATLAB\R2014a\bin\win64\sl_lang_blocks.dll+00898203 SubsystemBlock::EvalParams+00000043
[ 68] 0x00000000989ce038 C:\Program Files\MATLAB\R2014a\bin\win64\libmwsimulink.dll+10281016 BlockPositionPorts+00011544
[ 69] 0x00000000989d255b C:\Program Files\MATLAB\R2014a\bin\win64\libmwsimulink.dll+10298715 BlockPositionPorts+00029243
[ 70] 0x000000009854e39d C:\Program Files\MATLAB\R2014a\bin\win64\libmwsimulink.dll+05563293 SLGlue::SimUpdate::~SimUpdate+00402509
[ 71] 0x000000009854e5a9 C:\Program Files\MATLAB\R2014a\bin\win64\libmwsimulink.dll+05563817 SLGlue::SimUpdate::~SimUpdate+00403033
[ 72] 0x000000009850e861 C:\Program Files\MATLAB\R2014a\bin\win64\libmwsimulink.dll+05302369 SLGlue::SimUpdate::~SimUpdate+00141585
[ 73] 0x00000000985c759e C:\Program Files\MATLAB\R2014a\bin\win64\libmwsimulink.dll+06059422 sl::MappingManager::getModelMappingsFor+00063246
[ 74] 0x00000000985cba7e C:\Program Files\MATLAB\R2014a\bin\win64\libmwsimulink.dll+06077054 sl::MappingManager::getModelMappingsFor+00080878
[ 75] 0x00000000985cd71b C:\Program Files\MATLAB\R2014a\bin\win64\libmwsimulink.dll+06084379 sl::MappingManager::getModelMappingsFor+00088203
[ 76] 0x0000000098580aeb C:\Program Files\MATLAB\R2014a\bin\win64\libmwsimulink.dll+05769963 ReportDimsBlockMsg+00055915
[ 77] 0x0000000098b8cfde C:\Program Files\MATLAB\R2014a\bin\win64\libmwsimulink.dll+12111838 slRegisterPrmAssoc+00415086
[ 78] 0x0000000098b8d223 C:\Program Files\MATLAB\R2014a\bin\win64\libmwsimulink.dll+12112419 slRegisterPrmAssoc+00415667
[ 79] 0x000000009802cb75 C:\Program Files\MATLAB\R2014a\bin\win64\libmwsimulink.dll+00183157 SLGlue::SimUpdate::operator=+00000725
[ 80] 0x0000000098813d04 C:\Program Files\MATLAB\R2014a\bin\win64\libmwsimulink.dll+08469764 SLGlue::simulationStartPauseContinue+00000228
[ 81] 0x00000000fd9d4ae0 C:\Program Files\MATLAB\R2014a\bin\win64\sl_mi.dll+00019168
[ 82] 0x0000000004f0804b C:\Program Files\MATLAB\R2014a\bin\win64\mcos.dll+00098379 mcos::COSDictionary::getNameID+00002251
[ 83] 0x0000000004f08ccc C:\Program Files\MATLAB\R2014a\bin\win64\mcos.dll+00101580 mcos::COSDictionary::getNameID+00005452
[ 84] 0x0000000004f04b5f C:\Program Files\MATLAB\R2014a\bin\win64\mcos.dll+00084831 mcos::COSDataTypePtrHelper::getObject+00003327
[ 85] 0x0000000004f04692 C:\Program Files\MATLAB\R2014a\bin\win64\mcos.dll+00083602 mcos::COSDataTypePtrHelper::getObject+00002098
[ 86] 0x0000000004f02ded C:\Program Files\MATLAB\R2014a\bin\win64\mcos.dll+00077293 mcos::COSInterfacePtr::COSInterfacePtr+00000957
[ 87] 0x0000000004f3f1fa C:\Program Files\MATLAB\R2014a\bin\win64\mcos.dll+00324090 mcos::COSSpecializedInterfacePtr<mcos::COSDataType * __ptr64,mcos::COSDataTypePtrHelper>::COSSpecializedInterfacePtr<mcos::COSDataType * __ptr64,mcos::COSDataTypePtrHelper>+00015274
[ 88] 0x000000000461c2c0 C:\Program Files\MATLAB\R2014a\bin\win64\m_dispatcher.dll+00049856 Mfh_MATLAB_fn::dispatch_fh+00000464
[ 89] 0x0000000004f5e740 C:\Program Files\MATLAB\R2014a\bin\win64\mcos.dll+00452416 mcos::COSNameID::COSNameID+00000112
[ 90] 0x000000000461c77a C:\Program Files\MATLAB\R2014a\bin\win64\m_dispatcher.dll+00051066 Mfunction_handle::dispatch+00000810
[ 91] 0x0000000004618db2 C:\Program Files\MATLAB\R2014a\bin\win64\m_dispatcher.dll+00036274 Mdispatcher::cache_invalidate+00001058
[ 92] 0x000000000461dd9f C:\Program Files\MATLAB\R2014a\bin\win64\m_dispatcher.dll+00056735 mdMxarrayFunctionHandle::isHiddenFunctionBinding+00000495
[ 93] 0x00000000fe147b24 C:\Program Files\MATLAB\R2014a\bin\win64\libmx.dll+00293668 matrix::detail::noninlined::mx_array_api::mxFevalFunctionHandle+00000036
[ 94] 0x00000000047d86cc C:\Program Files\MATLAB\R2014a\bin\win64\m_interpreter.dll+01017548 inFullFevalFcn+00000140
[ 95] 0x000000000461c07f C:\Program Files\MATLAB\R2014a\bin\win64\m_dispatcher.dll+00049279 Mfh_file::dispatch_fh+00001247
[ 96] 0x000000000461c637 C:\Program Files\MATLAB\R2014a\bin\win64\m_dispatcher.dll+00050743 Mfunction_handle::dispatch+00000487
[ 97] 0x00000000047c5d06 C:\Program Files\MATLAB\R2014a\bin\win64\m_interpreter.dll+00941318 in_is_matlab_function+00012502
[ 98] 0x00000000047c5e02 C:\Program Files\MATLAB\R2014a\bin\win64\m_interpreter.dll+00941570 in_is_matlab_function+00012754
[ 99] 0x0000000004ba7521 C:\Program Files\MATLAB\R2014a\bin\win64\m_interpreter.dll+05010721 inCallFcnWithTrap+00000081
[100] 0x000000007e81806f C:\Program Files\MATLAB\R2014a\bin\win64\dastudio.dll+02261103 SafeCallMatlab+00000191
[101] 0x000000007e810c95 C:\Program Files\MATLAB\R2014a\bin\win64\dastudio.dll+02231445 ActionSchema::invokeCallback+00000117
[102] 0x000000007e815c3c C:\Program Files\MATLAB\R2014a\bin\win64\dastudio.dll+02251836 DigCallbackInvoker::invokeUDI+00000188
[103] 0x000000007e815dca C:\Program Files\MATLAB\R2014a\bin\win64\dastudio.dll+02252234 DigDefaultCallbackInvoker::invoke+00000058
[104] 0x000000007e8e565f C:\Program Files\MATLAB\R2014a\bin\win64\dastudio.dll+03102303 DeferredManager::exitTest+00000031
[105] 0x00000000fab6e026 C:\Program Files\MATLAB\R2014a\bin\win64\uiw.dll+00581670 UIW_IsUserMessage+00000086
[106] 0x00000000fab6e705 C:\Program Files\MATLAB\R2014a\bin\win64\uiw.dll+00583429 UIW_SetGLIMUserMsg+00000117
[107] 0x00000000fab6e789 C:\Program Files\MATLAB\R2014a\bin\win64\uiw.dll+00583561 UIW_SetGLIMUserMsg+00000249
[108] 0x0000000076c187fe C:\Windows\system32\USER32.dll+00165886 GetMenuBarInfo+00000638
[109] 0x0000000076bff5fb C:\Windows\system32\USER32.dll+00062971 SystemParametersInfoW+00000235
[110] 0x0000000076c04895 C:\Windows\system32\USER32.dll+00084117 IsProcessDPIAware+00000465
[111] 0x0000000076e611f5 C:\Windows\SYSTEM32\ntdll.dll+00332277 KiUserCallbackDispatcher+00000031
[112] 0x0000000076c09e6a C:\Windows\system32\USER32.dll+00106090 SfmDxSetSwapChainStats+00000026
[113] 0x0000000076c0615e C:\Windows\system32\USER32.dll+00090462 GetMessageA+00000078
[114] 0x00000000fab1c39f C:\Program Files\MATLAB\R2014a\bin\win64\uiw.dll+00246687 win_sleep+00000863
[115] 0x0000000004195529 C:\Program Files\MATLAB\R2014a\bin\win64\libmwbridge.dll+00021801 ioCmdLineEditSave+00001065
[116] 0x00000000041982ee C:\Program Files\MATLAB\R2014a\bin\win64\libmwbridge.dll+00033518 ioCmdLineEditSave+00012782
[117] 0x0000000004198676 C:\Program Files\MATLAB\R2014a\bin\win64\libmwbridge.dll+00034422 ioReadLine+00000118
[118] 0x000000000419870e C:\Program Files\MATLAB\R2014a\bin\win64\libmwbridge.dll+00034574 ioReadLine+00000270
[119] 0x000000000419c619 C:\Program Files\MATLAB\R2014a\bin\win64\libmwbridge.dll+00050713 mnInitializeParser+00001529
[120] 0x000000000419c6d5 C:\Program Files\MATLAB\R2014a\bin\win64\libmwbridge.dll+00050901 mnInitializeParser+00001717
[121] 0x000000000419ce96 C:\Program Files\MATLAB\R2014a\bin\win64\libmwbridge.dll+00052886 mnParser+00000454
[122] 0x00000000fd0afae4 C:\Program Files\MATLAB\R2014a\bin\win64\mcr.dll+00195300 mcrInstance::mnParser_on_interpreter_thread+00000036
[123] 0x00000000fd093af0 C:\Program Files\MATLAB\R2014a\bin\win64\mcr.dll+00080624 mcr::runtime::setInterpreterThreadToCurrent+00029488
[124] 0x00000000fd093b50 C:\Program Files\MATLAB\R2014a\bin\win64\mcr.dll+00080720 mcr::runtime::setInterpreterThreadToCurrent+00029584
[125] 0x00000000fab6e026 C:\Program Files\MATLAB\R2014a\bin\win64\uiw.dll+00581670 UIW_IsUserMessage+00000086
[126] 0x00000000fab6e705 C:\Program Files\MATLAB\R2014a\bin\win64\uiw.dll+00583429 UIW_SetGLIMUserMsg+00000117
[127] 0x00000000fab6e789 C:\Program Files\MATLAB\R2014a\bin\win64\uiw.dll+00583561 UIW_SetGLIMUserMsg+00000249
MATLAB stack trace:
> In stateflow\private\get_sf_block_port_info at 21
any1 got an idea on what to check?
4 Comments
Walter Roberson
on 28 Feb 2018
Probably the following is a different error, but it is worth checking as a possibility: https://www.mathworks.com/matlabcentral/answers/274135-mission-on-mars-2016-simulink-failed-assertion-after-the-first-run#answer_246910
Answers (7)
xiefuhong
on 29 Jan 2019
I have the same problem in the past few days and it is solved now. My solution is that I delete all side files, such as the .slxc files and the "slprj" folder, and only keep the source files such as .m scripts and Simulink model. When I restart the MATLAB again, the problem is fixed. I hope this can help you.
0 Comments
Alexander Kramlich
on 21 Jun 2017
Edited: Alexander Kramlich
on 21 Jun 2017
Same problem here (2017a). Why is nobody answering that?
0 Comments
越 商
on 16 Mar 2021
Hi,my version of matlab is2019b, I also have this question,First, I think it's a bug in mtlab,but I use my model in another computer, My model also can not run......That's drives me crazy....in the end, I find my solution, the TestScenarios(such as the model of include_ACC,include_AEBS files,do not edit casually) before you edit it,remember copy this files in case of error happen..
0 Comments
Aman Jacknoon
on 18 Dec 2018
I have just faced the same problem. I copied my project codes and simulink folder that was working fine in a flash drive to run it in another computer, and it gave me the same error.
I copied the source code again using the same flash from my laptop to the same computer and it worked well.
My interpretation to this, is that it seems as if copy of the code to the flash was not complete in the first time.
I am glad that this problem is resolved.
0 Comments
Mahin Mirshams
on 19 Dec 2018
I got this error when I was saving my diagram in simulink. I just simply copied my .slx file into another directory and then opened it again. It just worked! I guess it might be caused by a crash on the application and miss data replacement in the workspace or the run configurations.
2 Comments
Mahin Mirshams
on 24 Jan 2019
try deleting all files( except for the .slx one) and change the directory( maybe is sth wrong with the name:-?).
Ondrej Kamensky
on 4 Mar 2022
Edited: Ondrej Kamensky
on 4 Mar 2022
I had similar problem / error when I was trying to compile my model for NI Veristand 2020 in Matlab 2017a:
failed assertion in b:\matlab\toolbox\stateflow\src\stateflow\cdr\cdr_rtw_interface.cpp.....in some line.....
what was strange because I was not awared that I am using any stateflow feautures.
Strange was also that I was able to execute the model locally in simulink. I was not able just to compile / build DLL.
For me solution was in Simulink Configuration Parameters, under Code Generation / NI Configuration I had option "Disable all Stateflow signals". So I disabled it and then I was able to compile model and build DLL library.
But probably this will be not solution for somebody who intend to use Stateflow.
0 Comments
See Also
Categories
Find more on Simulink Functions 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!