Simulink TE1400 External Mode: Signals visible in Scope but not in Data Inspector
42 次查看(过去 30 天)
显示 更早的评论
Hi everyone,
I’m using MATLAB Simulink with the TE1400 code generation for TwinCAT.
The code generation itself works fine: I can send a setpoint from the Simulink model to the PLC and receive sensor values back.
When I connect to the model via External Mode, I can see both the setpoint and the sensor values in a Simulink Scope, and I also connected all signals to a File Log block.
The issue:
- No values appear in the Data Inspector.
- No out file is created in the MATLAB workspace.
If I run the same model directly in Simulink (without code generation / PLC execution), the signals show up correctly in the Data Inspector and can also be exported.
Summary:
- Signals are visible in scopes when running via External Mode.
- Signals do not appear in the Data Inspector (and no .out file is created).
- Signals can be exported when running the same model directly in Simulink.
I also attached screenshots of:
- the scope and Data Inspector output in External Mode


- the scope output in normal Simulink simulation


Question:
Is there a way to make the signals from TE1400 External Mode visible in the Data Inspector (and exportable to the workspace), or is this not supported?
0 个评论
回答(1 个)
Broy
2025-9-2,3:31
Hi Raphael,
I understand that your goal is to visualize and log signal data in the Simulation Data Inspector (SDI) while running your Simulink model in External Mode using the TE1400 TwinCAT target.
The reason the signals are not visible in SDI is because, in External Mode, the model is executed on the PLC, not within Simulink itself. Simulink acts only as a viewer, streaming data from the PLC via ADS communication. Since SDI is designed to log data during Simulink managed simulations, it does not capture signals when the execution is offloaded to an external device like a PLC.
However, here are a few resources that can be helpful to get the expected behaviour:
• Beckhoff TE1400 File Logging Guide:
• MathWorks File Log Block Reference: Simulink File Log Block:
Hope this helps.
0 个评论
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!