Why do I get an iostream stream error 'iolib:badbit' in Simulink Test Manager when running my test cases in R2019b?

8 Ansichten (letzte 30 Tage)
In some cases my test file/suite runs fail with the error:
An error occurred ('iolib:badbit') when calling 'sim':
Error writing to output stream.
iostream stream error

Akzeptierte Antwort

MathWorks Support Team
MathWorks Support Team am 27 Mär. 2023
Bearbeitet: MathWorks Support Team am 27 Mär. 2023
Since the "iolib:badbit" error is related to printing to iostreams, please check the following:
1. What is the duration for which the test is run?
  • If you have a long simulation time: Does the error still occur when reducing the duration?
2. Is the harness model producing text output to the MATLAB command window when run outside of Simulink Test Manager?
  • Might there be forgotten semicolons in m scripts?
  • Or is any other logging information printed during the simulation run?
  • Might there be a modeling issue that causes many messages to be generated under certain conditions?
Anything causing the output stream to be too long will lead to this error.
Please check your model regarding the hints given above (specifically under item 2).

Weitere Antworten (0)

Tags

Noch keine Tags eingegeben.

Produkte


Version

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by