How do I trigger a .mfile to run from simulink?

I have a simulink model that I'm using with a real-time machine. I want to take the .dat files from the real time machine and change them into csv files. I already can do it with a .mfile but I only want this to run this during certain conditions in my simulink model. Any ideas? Thanks.

Answers (1)

Did you try enable Subsystem block?

2 Comments

If I did use an enabled subsystem block what block would I use inside it?
MATLAB function block

Sign in to comment.

Categories

Find more on Modeling in Help Center and File Exchange

Asked:

on 24 Aug 2016

Commented:

on 26 Aug 2016

Community Treasure Hunt

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

Start Hunting!