. |
Software Tools mdl2mw Utility (mdl2mw.exe)The command line application, mdl2mw.exe is used to download a Simulink model to a ZMP controller. Usage:mdl2mw [options] <mdl file1> [<mdl file2> <mdl file3>] Options:mdl2mw [-control #] [-server #] [-port #] [-trace #] [-save #] [-model #] [-help] [-workspace #] [-suppressModelError] [-clearFirst] [-quiet]
Additional Information:Executing mdl2mw will load all of the MechaWare blocks into controller memory for execution by the controller firmware. The blocks will be initialized (zeroing the static data) and then the models will be enabled in the firmware. The mdl2mw utility creates a map of the blocks loaded and stores that map in a file with the same name as the Simulink .mdl file but with a .map extension. This file is useful when accessing the blocks using the C++ API. The following is an example of a .map file:
The Block Names on the left duplicate the “Name” field of the blocks in the Simulink model. The Model and Block numbers indicate the indices used by the API to access the blocks. MATLAB Workspace Import (mdl2mw Model Loader for MechaWare 4.0)MechaWare block parameters can reference variables from a Matlab workspace. Use the variable name as the parameter value as shown in step 1.
Notes
Note: MAT file formats Version 5 and Version 7 are explicitly supported. (MAT file format Version 4 is not supported) This feature complements symbolic reference of subsystem mask parameters. It allows block parameters to refer to their containing subsystem block’s parameters which in turn refer to Matlab workspace variables. See Subsystem Blocks - Mask Parameters. Workspace variables referring to other workspace variables by name is not currently supported.
|
| | Copyright © 2001-2009 Motion Engineering |