. |
Software Tools
MechaWare Software Topics >
User Interface
mdl2mw Utility (mdl2mw.exe)The command line application, md2mw.exe is used to download a Simulink model to a ZMP controller. The command syntax is:
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.
|
| | Copyright © 2001-2021 Motion Engineering |