How do I log certain samples only in Simulink?

When my signal crosses a threshold, I would like to write the time the threshold was crossed and the subsystem that it came from into a file. The "to file" and "to workspace" blocks do not support this, as they will log every single timestep.

Answers (0)

This question is closed.

Asked:

on 6 Feb 2019

Closed:

on 20 Aug 2021

Community Treasure Hunt

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

Start Hunting!