Error building Simulink Real-Time with Bus Creator connect to File Log

3 Ansichten (letzte 30 Tage)
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

Antworten (1)

Stefanie Schwarz
Stefanie Schwarz am 28 Sep. 2022
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:

Kategorien

Mehr zu Simulink Coder finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by