3.0

3.0 | 3 ratings Rate this file 5 Downloads (last 30 days) File Size: 1.65 KB File ID: #9874

Call a waitbar from within a DLL written in C

by Bill Davidson

 

03 Feb 2006 (Updated 03 Feb 2006)

Example code for embedding a call to the Matlab waitbar() function from within a DLL written in C

| Watch this File

File Information
Description

When a DLL takes a long time to run, things go silent. It can look like the program has crashed even when it is running along just fine. The Matlab waitbar() function can be used in Matlab, but a waitbar is not available in C. However, Matlab can be called from C, so the user can still be notified that processing is still taking place. This code is an example of how to call the waitbar() from within a DLL that is written in C.

MATLAB release MATLAB 7.0.1 (R14SP1)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (3)
07 Feb 2006 vijay labade

GOOD

10 Mar 2006 Mikhail Zvyagintsev

I don't understand how to use it...

27 Nov 2006 J.T. Perron

Bill, you rock! I've been trying to figure out how to do this for an hour. In your example function, should the 'Processing...' string not be in double quotes, i.e., "Processing..." ?

To implement this, just copy Bill's 3 functions plus the declarations into your C mex file, and use Bill's functions in a loop within your mexFunction(), with the syntax as indicated in his example.

Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
external interface Bill Davidson 22 Oct 2008 08:14:31
c Cristina McIntire 06 Feb 2009 11:25:00
matlab Cristina McIntire 06 Feb 2009 11:25:00
waitbar Cristina McIntire 06 Feb 2009 11:25:00
dll Cristina McIntire 06 Feb 2009 11:25:00
waitbar Yair Altman 23 Apr 2012 05:02:08

Contact us at files@mathworks.com