Borrar filtros
Borrar filtros

2019b 설치 후 Code generation에서 Error 발생합니다.

19 visualizaciones (últimos 30 días)
Taeseok Kang
Taeseok Kang el 9 de Abr. de 2020
Respondida: Angelo Yeo el 17 de Mayo de 2024
2018b 버전에서 정상적으로 Code generation되었던 Project가 PC 교체 후 2019b 버전으로 Upgraded 이후 아래와 같이 Error 가 발생 합니다.
※ 2018b 버전을 추가적으로 설치하여 확인 결과 동일 Error 발생
Code generation assertion 'fromType.isMatrix() == toType.isMatrix() || (!fromType.isMatrix() && toType.isMatrix() && toType.isDynamic() && toType.getMatrixSize() == 1)' failed in 'b:\matlab\src\rtwcg\rtwcg_utils\rtwcg_local_node_factory.cpp:361' [ 0] 0x00000002a05e1b12 bin\win64\rtwcg.dll+04266770 RTWCG::OutputConnector::replace+00000162 [ 1] 0x00000002a05dbc52 bin\win64\rtwcg.dll+04242514 RTWCG::DataConnectorContainer::addData+00002498 [ 2] 0x00000002a05d9291 bin\win64\rtwcg.dll+04231825 RTWCG::ConnectBlockData+00001345 [ 3] 0x00000002a05d9ae0 bin\win64\rtwcg.dll+04233952 RTWCG::ConnectBlockData+00003472 [ 4] 0x00000002a05d9702 bin\win64\rtwcg.dll+04232962 RTWCG::ConnectBlockData+00002482 [ 5] 0x000000029fd42ea2 bin\win64\cgir_support.dll+03026594 CG::ScopeTransform::apply+00000098 [ 6] 0x00000002a0768960 bin\win64\rtwcg.dll+05867872 SLCG::Pass::Driver::execute+00000880 [ 7] 0x00000002a07656c6 bin\win64\rtwcg.dll+05854918 SLCG::Pass::Driver::addTransform+00000086 [ 8] 0x00000002000e17b4 bin\win64\slcg_driver.dll+00137140 load_slcg_driver+00084132 [ 9] 0x00000002a077a7ab bin\win64\rtwcg.dll+05941163 SLCG::Pass::optimizeAndEmitCodePhase1+00000331 [ 10] 0x00000002a065f770 bin\win64\rtwcg.dll+04781936 RTWCG::RTWCGModule::OptimizeAndEmitCodePhase1+00000080 [ 11] 0x0000000299588266 bin\win64\libmwsimulink.dll+12485222 DiscreteBlockExecWrapper::getAdaptorEnable+00098518 [ 12] 0x000000029957c1c6 bin\win64\libmwsimulink.dll+12435910 DiscreteBlockExecWrapper::getAdaptorEnable+00049206 [ 13] 0x0000000299600772 bin\win64\libmwsimulink.dll+12978034 sl::simharness::SlSigDescriptor::getUnitId+00182770 [ 14] 0x0000000299609254 bin\win64\libmwsimulink.dll+13013588 sl::simharness::SlSigDescriptor::getUnitId+00218324 [ 15] 0x000000029926b63e bin\win64\libmwsimulink.dll+09221694 QueryMLFcnTable_libmwsimulink+00086638
### Build procedure for model: 'LDctObject' aborted due to an error.
Code generation assertion 'fromType.isMatrix() == toType.isMatrix() || (!fromType.isMatrix() && toType.isMatrix() && toType.isDynamic() && toType.getMatrixSize() == 1)' failed in 'b:\matlab\src\rtwcg\rtwcg_utils\rtwcg_local_node_factory.cpp:361'.
  1 comentario
광용
광용 el 13 de Mayo de 2024
Editada: 광용 el 13 de Mayo de 2024
안녕하세요. 혹시 질문글의 error를 해결하셨나요? 2023b 버전이긴 하지만 동일한 error가 출력됩니다.

Iniciar sesión para comentar.

Respuestas (1)

Angelo Yeo
Angelo Yeo el 17 de Mayo de 2024
해당 이슈는 R2016b에서 R2018b 사이에 발생했던 이슈로 symbolic dimension과 numerical dimension 간의 차원 불일치에 대한 assertion에서 발생하는 이슈입니다. 이 이슈를 해결하기 위해서는 Signal Specification 블록을 이용해 Dimension 파라미터를 명시적으로 설정해줘야 합니다. 자세한 사항은 아래의 External Bug Report에서 확인하실 수 있습니다.

Categorías

Más información sobre MATLAB Coder en Help Center y File Exchange.

Productos


Versión

R2018b

Community Treasure Hunt

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

Start Hunting!