Simulink Library
From Conqat
The Simulink library provides a Java parser for MDL files. MATLAB, Simulink, Stateflow are registered trademarks of The MathWorks, Inc. TargetLink is a registered trademark of dSPACE GmbH.
Download
CCSM Commons are released under Apache License 2.0. They can be downloaded here. Latest version is 2.6.
API Documentenation
The API documentation can be found here.
Example
package edu.tum.cs.simulink;
import java.io.File;
import java.io.FileNotFoundException;
import edu.tum.cs.commons.logging.SimpleLogger;
import edu.tum.cs.simulink.builder.SimulinkModelBuilder;
import edu.tum.cs.simulink.builder.SimulinkModelBuildingException;
import edu.tum.cs.simulink.model.SimulinkModel;
public class SimulinkDemo {
public static void main(String[] args) throws FileNotFoundException,
SimulinkModelBuildingException {
SimulinkModelBuilder builder = new SimulinkModelBuilder(new File(
args[0]), new SimpleLogger());
SimulinkModel model = builder.buildModel();
System.out.println(model);
}
}
History
Changes from version 2.5 to version 2.6
| CR 2511
| Preserve intersection parameter for StateFlow transitions
|
Changes from version 2.0 to version 2.5
| CR 2286
| Extend library to support rendering of diagrams
|
Changes from version 1.3 to version 2.0
| CR 1719
| Bug in TargetLink parser
|
| CR 1750
| Unclean behavior for models with unknown port types
|
Changes from version 1.2 to version 1.3
| CR 1185
| Check TargetLink parser
|
| CR 1205
| Clean up Stateflow implementation
|
| CR 1220
| Fix line deep cloning to work with flat models
|
| CR 1628
| Create utility method to get SimulinkBlock a Stateflow element belongs to
|
| CR 1672
| TargetLink parser fails for float literal with exponent
|
| CR 1682
| Need methods to determine state name
|
Changes from version 1.1 to version 1.2
| CR 1502
| Library should provide access to "hidden" block beneath Stateflow blocks
|