Be the first to rate this file! 0 Downloads (last 30 days) File Size: 73.24 KB File ID: #18942
image thumbnail

MdlInfo: Windows Explorer tooltips for Simulink MDL files

by Malcolm Wood

 

27 Feb 2008 (Updated 27 Feb 2008)

Shell extension describing an MDL file's contents (created using Real-Time Workshop and Stateflow)

| Watch this File

File Information
Description

By default, the tooltip which is shown in Windows Explorer when you hold the mouse over an MDL-file icon says only "Simulink Model File". This is misleading in the case where the MDL file contains a Simulink Library. With this shell extension, the Windows Explorer distinguishes between these two types of file and also includes the Description field, if the file includes one.

The code to extract the description from an MDL file has been generated from a Stateflow chart using the Real-Time Workshop. The model containing the chart is included.

Source code is provided, including a Visual Studio 2005 project. Some header files from the Real-Time Workshop installation are required, and it may be necessary to edit the project file if your MATLAB installation is in a different location from mine. It has been tested on Windows XP, using Microsoft Visual Studio 2005. At runtime, the extension is independent of MATLAB and Simulink.

This shell extension is based heavily on an example published in The Code Project's "Idiot's Guide to Writing Shell Extensions":
http://www.codeproject.com/shell/shellextguide1.asp
 
Also included in the ZIP file is the pre-compiled DLL, MdlInfo.dll. To use this without compiling it yourself, copy it to a permanent location on your machine and run the DOS command: "regsvr32 MdlInfo.dll" in the directory containing the DLL.

To uninstall the extension run "regsvr32 /U MdlInfo.dll".

MATLAB release MATLAB 7.5 (R2007b)
Other requirements Windows only. To use the extension: no products required. To rebuild: Microsoft Visual Studio 2005. To simulate the model: Simulink. To re-generate the code: (additionally) Stateflow, Stateflow coder, Real-Time Workshop Embedded Coder.
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
simulink Malcolm Wood 22 Oct 2008 09:50:48
simulink stateflow codegen mdl windows explorer tooltip shell ex Malcolm Wood 22 Oct 2008 09:50:48

Contact us at files@mathworks.com