Error building Simulink Real-Time with Bus Creator connect to File Log
4 ビュー (過去 30 日間)
古いコメントを表示
I have a Simulink file which could be built, generate codes and download in to Speedgoat normally.
But things change when I insert a File Log block into Simulink. It works normal when individual signals are connected to the File Log, but when I try to mix individual signal and bus signals into a bus creator, and let it connect to a Bus Creator, it gives me error during built.
Is a File Log block not allowed to used with Bus Creator? What is the best solution if I want to use minimum File Log block for all signal instead of a lot of File Log block for each signal/Bus?
Thanks a lot.
The following is the error message:
Error using tlc_new
Error: Simulink Coder Error in block: "xxxxx/File Log2/TAQSigLogging_InsertedFor_Bus
Creator5_at_outport_0", block type "ToAsyncQueueBlock": PWork size mismatch detected.
Block requires : 6 elements
Actually generated: 4 elements
This can occur when an inlined s-function defines more/less work
vector elements in TLC than it did in the C-MEX version of the block.
Error in callTLCService
Error in tlc_c
Error in tlc_c
Error in coder.internal.ModelBuilder>i_buildProcedure (line 807)
buildResult = tlc_c(hCodegenMgr,...
Error in coder.internal.ModelBuilder.make_rtw (line 132)
[buildResult, mainObjFolder] = i_buildProcedure...
Error in build_target
Error in build_target
Error in build_standalone_rtw_target
Error in slbuild_private
Error in slbuild_private
Error in sl
Error in slbuild
Error in slbuild
0 件のコメント
回答 (1 件)
Stefanie Schwarz
2022 年 9 月 28 日
Do any of the signals going into the File Log block come from an S-Function block? If yes, is it one developed by you or is it a shipping S-Function block? If it doesn't involve any custom S-Function blocks, please contact Technical Support with a reproduction model:
0 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!