Be the first to rate this file! 3 Downloads (last 30 days) File Size: 7.56 KB File ID: #21570
image thumbnail

Simulink timeout

by Jaroslaw

 

24 Sep 2008 (Updated 25 Sep 2008)

Example timeout for long simulations

| Watch this File

File Information
Description

A sample simulink model including timeout based on tic-toc functions. Simulation taking more than defined time (wall-clock time) is stopped. Tic is executed by InitFcn callback.

Required Products Simulink
MATLAB release MATLAB 7.4 (R2007a)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (1)
24 Jun 2011 Christopher

This block does what it says it does, but it results in a monumental decrease in simulation speed due to the many calls to Matlab's toc function. I don't know if there is a way around this.

Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
clock Jaroslaw 22 Oct 2008 10:21:32
fun Jaroslaw 22 Oct 2008 10:21:33
simulink Jaroslaw 22 Oct 2008 10:21:33
utilities Jaroslaw 22 Oct 2008 10:21:33
timeout Jaroslaw 22 Oct 2008 10:21:33
timeout mina zerski 16 Jun 2009 12:05:31

Contact us at files@mathworks.com