Main Content

Troubleshoot Signal Data Logging from inport in Referenced Model in Test Harness

I created a Simulink® Test™ test harness for my Simulink Real-Time™ model. The model has a referenced model that contains an inport whose signal I have marked for data logging in the Simulation Data Inspector. During testing, I see this error:

Warning: Streaming to the SDI is not available for signal at
<sldiag objui="outport" objparam="1"
objname="{'Example_Harness1/Example', 'Example/Input'}">output
port 1</sldiag> of block '{'Example_Harness1/Example',
'Example/Input'}'. Add a SignalCopy block at that port and
instrument the SignalCopy output port.

What This Issue Means

It is not possible to stream signal data from the referenced model inport for logging from within the test harness.

Try This Workaround

Mark the input signals to the model block for logging. This model provides and example workaround. For more information, see Simulink Test documentation.

Image of example model workaround for signal data logging

Related Topics