3.66667

3.7 | 3 ratings Rate this file 25 Downloads (last 30 days) File Size: 78.12 KB File ID: #9738
image thumbnail

Simulink Waitbar

by Jeremy Schaeffer

 

24 Jan 2006 (Updated 25 Jan 2006)

Allows user to see a progress bar for a simulink simulation when running the model from Matlab.

| Watch this File

File Information
Description

Allows user to see a progress bar for a simulink simulation when running the model from Matlab.

Comments in the m-file explain how to use.

Required Products Simulink
MATLAB release MATLAB 7.1.0 (R14SP3)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (4)
13 Mar 2007 Neil O'Leary

Cool waitbar
Add a zero order hold between the clock and EML block so avoid decrease in simulation speed.

28 Jun 2007 Alexander Dahl

Simple and useful.
Few annotations:
 * the output of the EML is not necessary, just delete the 'y=' in the first line and the other line with the assignement to y
 * also works with waitbar alternative from http://www.mathworks.com/matlabcentral/fileexchange/loadFile.do?objectId=11398
   you have to delete line 'h = waitbar(0,..' then and replace 'close(h)' with 'waitbar()'
 * I didn't need the mexw32 file on two computers, Matlab creates this if it's missing

29 May 2011 Luca  
22 Nov 2011 Lennart

Nice idea!
The files should also work without integrating them in a model right? When I run the files I get following error:
"Error using Sim_WaitBar (line 11)
Error due to multiple causes.

Caused by:
    Error using Sim_WaitBar (line 11)
    Errors occurred during parsing of MATLAB function 'Embedded MATLAB
    Function'(#48)
    Error using Sim_WaitBar (line 11)
    Error in port widths or dimensions. Output port 1 of 'model/Embedded
    MATLAB Function/u2' is a one dimensional vector with 1 elements.
 "

Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
simulink Jeremy Schaeffer 22 Oct 2008 08:13:34
simulink waitbar progress bar sim_waitbar Jeremy Schaeffer 22 Oct 2008 08:13:34

Contact us at files@mathworks.com