Warning Msg: Trace to source might be incomplete because trace enters a loop
Hello everyone,
i´m having a Simulink Model which consists of custom library blocks. The connections between the blocks can be seen in the attached picture (BlockDiagramm.jpg ; highlighted trace).
During connecting the blocks, the Matlab Command Window gets filled with a lot of warning messages from same type:
"Warning: Trace to source might be incomplete because the trace enters a loop at output port 1 of …"
When I run the model, no warning or error message appears (-> Simulink is able to solve it and serves correct values).
So i´m wondering about the behaviour during building the model – why does Matlab send those warning messages before running the model and how to get rid of them? For signals in a loop I use the "Unit Delay"-Block.
Typing >> Simulink.BlockDiagram.getAlgebraicLoops(bdroot) << provides:
No algebraic loops were found.
ans =
0×0 AlgebraicLoop array with properties:
Model
Id
VariableBlockHandles
BlockHandles
IsArtificial
Typing >> w = warning(‘query’,’last’) << provides:
identifier: ‘Simulink:HiliteTool:LineTracingBusLoopWarning’
state: ‘on’
I know that i can turn the warning off using warning(‘off’,w.identifier) – but it would be nice to debug my model. And if there is not a problem with the model in general, I´d like to disable this warning constantly. It has to be said, that the warning does not appear on the diagnostic screen in Simulink, but in the Command Window in Matlab. Turning off "Edit-Time Errors and Warnings" in Simulink doesn´t help.
Thanks for your answers in advance.Hello everyone,
i´m having a Simulink Model which consists of custom library blocks. The connections between the blocks can be seen in the attached picture (BlockDiagramm.jpg ; highlighted trace).
During connecting the blocks, the Matlab Command Window gets filled with a lot of warning messages from same type:
"Warning: Trace to source might be incomplete because the trace enters a loop at output port 1 of …"
When I run the model, no warning or error message appears (-> Simulink is able to solve it and serves correct values).
So i´m wondering about the behaviour during building the model – why does Matlab send those warning messages before running the model and how to get rid of them? For signals in a loop I use the "Unit Delay"-Block.
Typing >> Simulink.BlockDiagram.getAlgebraicLoops(bdroot) << provides:
No algebraic loops were found.
ans =
0×0 AlgebraicLoop array with properties:
Model
Id
VariableBlockHandles
BlockHandles
IsArtificial
Typing >> w = warning(‘query’,’last’) << provides:
identifier: ‘Simulink:HiliteTool:LineTracingBusLoopWarning’
state: ‘on’
I know that i can turn the warning off using warning(‘off’,w.identifier) – but it would be nice to debug my model. And if there is not a problem with the model in general, I´d like to disable this warning constantly. It has to be said, that the warning does not appear on the diagnostic screen in Simulink, but in the Command Window in Matlab. Turning off "Edit-Time Errors and Warnings" in Simulink doesn´t help.
Thanks for your answers in advance. Hello everyone,
i´m having a Simulink Model which consists of custom library blocks. The connections between the blocks can be seen in the attached picture (BlockDiagramm.jpg ; highlighted trace).
During connecting the blocks, the Matlab Command Window gets filled with a lot of warning messages from same type:
"Warning: Trace to source might be incomplete because the trace enters a loop at output port 1 of …"
When I run the model, no warning or error message appears (-> Simulink is able to solve it and serves correct values).
So i´m wondering about the behaviour during building the model – why does Matlab send those warning messages before running the model and how to get rid of them? For signals in a loop I use the "Unit Delay"-Block.
Typing >> Simulink.BlockDiagram.getAlgebraicLoops(bdroot) << provides:
No algebraic loops were found.
ans =
0×0 AlgebraicLoop array with properties:
Model
Id
VariableBlockHandles
BlockHandles
IsArtificial
Typing >> w = warning(‘query’,’last’) << provides:
identifier: ‘Simulink:HiliteTool:LineTracingBusLoopWarning’
state: ‘on’
I know that i can turn the warning off using warning(‘off’,w.identifier) – but it would be nice to debug my model. And if there is not a problem with the model in general, I´d like to disable this warning constantly. It has to be said, that the warning does not appear on the diagnostic screen in Simulink, but in the Command Window in Matlab. Turning off "Edit-Time Errors and Warnings" in Simulink doesn´t help.
Thanks for your answers in advance. warning linetracing, busloop MATLAB Answers — New Questions