Simulink Test halves time axis of Signal Builder's boolean signal

Hello Mathworks Community,
unfortunately I face the following issue and couldn't find an issue in the bug fixes of Simulink Test. This is why I hope that I do something wrong.
I have created a harness for a statemachine. The statemachine has in summary nine input signals. Seven of them are boolean signal and two of them are enumerations.
In Simulink Test I have created a simulation test and added a mat file to in 'Inputs' and mapped the signals accordingly.
With the Signal Builder the signal have been modified. For all boolean signals the 'built' time in the Signal Builder will be halved when running the test with Simulink Test (fig. 3). When I check the signals with the 'Visualize' feature (fig. 1) or when I add the *.mat file in a Signal Builder block (fig. 2) in Simulink and check the result, the time is not halved. Meaning when the change from false to true happens at second 0.5 in the Signal Builder it will happen at second 0.25 (fig. 3) in the test result of Simulink Test.
The interesting thing is that the time Enumeration signal from the *.mat file is not halved. The *.mat file is attached to this request.
So my question is, why is the time halved for boolean and not for enumerations? Due to the architecture it is not possible to change the type from boolean (fig. 4) to an enumeration.
For testing purposes I already modified the signal type from boolean to uint8 but this hasn't solved the issue.
(fig. 1)
(fig. 2)
(fig. 3)
(fig. 4)

 Respuesta aceptada

Thomas Müller
Thomas Müller el 1 de Abr. de 2020
Hello Mathworks Community,
I have found a solution for this so called issue. It seems to be a misinterpretation of how to use the Signal Editor. I do not know why but when the In_Clamp15 signal is changed to the following Signal Editor signal description the issue is resolved and the step occurs at the accurate timing of 0.5s:
Thank you anyway for reading this query.
Best regards,
Thomas

Más respuestas (0)

Productos

Versión

R2018a

Preguntada:

el 28 de Mzo. de 2020

Respondida:

el 1 de Abr. de 2020

Community Treasure Hunt

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

Start Hunting!

Translated by