RTW/XPC target error, I cannot generate code
2 ビュー (過去 30 日間)
古いコメントを表示
Hello
I am trying to generate code using RTW/Xpctarget. I get the following error:
CGIR assertion in .\dom_core\lowering\DynamicMatrixTypeLowering.cpp(3110): '!typeIsDynamicMatrixReference(curr_node->type()) && !typeIsDynamicMatrixCompositeReference(curr_node->type())'
[0] libmwsimulink.dll:0x6e35e0d3() + 1849024723 bytes
[1] cg_ir.dll:0x6bc0199b() + 1807751579 bytes
[2] cgir_xform.dll:0x1eb13524() + 514929956 bytes
[3] cgir_xform.dll:0x1eb14e32() + 514936370 bytes
[4] cgir_xform.dll:0x1eb1501e() + 514936862 bytes
[5] cgir_xform.dll:0x1eb1557c() + 514938236 bytes
[6] rtwcg.dll:0x6d7d4d2c() + 1836928300 bytes
[7] rtwcg.dll:0x6d7d5dbb() + 1836932539 bytes
[8] rtwcg.dll:0x6d7a28a1() + 1836722337 bytes
[9] libmwsimulink.dll:0x6e32bf8e() + 1848819598 bytes
[10] libmwsimulink.dll:0x6e3293c2() + 1848808386 bytes
[11] libmwsimulink.dll:0x6e376500() + 1849124096 bytes
[12] libmwsimulink.dll:0x6e37698f() + 1849125263 bytes
[13] libmwsimulink.dll:0x6e142125() + 1846812965 bytes
[14] m_dispatcher.dll:0x7a29b55c() + 2049553756 bytes
[15] m_dispatcher.dll:0x7a29b1a7() + 2049552807 bytes
[16] m_interpreter.dll:0x7aa20372() + 2057438066 bytes
[17] m_interpreter.dll:0x7aa1e019() + 2057429017 bytes
[18] m_interpreter.dll:0x7aa33f17() + 2057518871 bytes
[19] m_interpreter.dll:0x7aa3403b() + 2057519163 bytes
[20] m_interpreter.dll:0x7aa2520c() + 2057458188 bytes
[21] m_interpreter.dll:0x7aa240a2() + 2057453730 bytes
[22] m_interpreter.dll:0x7aa2f347() + 2057499463 bytes
[23] m_interpreter.dll:0x7aa2f3c9() + 2057499593 bytes
[24] m_dispatcher.dll:0x7a29afc9() + 2049552329 bytes
[25] m_dispatcher.dll:0x7a29b254() + 2049552980 bytes
[26] m_interpreter.dll:0x7aa20372() + 2057438066 bytes
[27] m_interpreter.dll:0x7aa1e019() + 2057429017 bytes
on matlab command window and the following error
Unexpected or internal error encountered in "in CGIR: .\dom_core\lowering\DynamicMatrixTypeLowering.cpp line 3110: !typeIsDynamicMatrixReference(curr_node->type()) && !typeIsDynamicMatrixCompositeReference(curr_node->type())
". Please report this to The MathWorks if you can cause it to recur.
2 件のコメント
Kaustubha Govind
2011 年 10 月 28 日
This looks like it could be a bug. Please report it to MathWorks Tech Support and see if they can provide a resolution.
Omur
2011 年 11 月 21 日
Can you give some more information about the model? I've seen this happen when Embedded MATLAB code is involved.
回答 (1 件)
Alexandre Carvalho Leite
2012 年 5 月 25 日
Hi Rajeev, I really don't know the exact cause of the problem to explain how it can be solved, but I have a method to solve it.
I spent more than 8 hours trying to solve this problem and have not found anything in Internet about it. In my case I had several layers of m-files with the %#eml pragma, proper preallocation and running perfectly in a newer matlab version (2011b). Then I tryed to use the model in another computer connected to the hardware (using matlab 2010b) and I got the error.
I just did not call several m-files inside a single EMF anymore, but use other EMF working like "wrappers", just to call the m-files. I did it to debug each code separatelly and then added all blocks into a single matlab model. It worked. Just try not to change the inputs and output sizes of the lower layers, because you can solve the problem for the lower layers but once you get to the highest one that error message appears again.
So... This was the only thing which worked for me.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Deployment, Integration, and Supported Hardware についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!