ha2stateflow
A converter from a hybrid automaton model to a Stateflow model
Science Score: 26.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
○.zenodo.json file
-
✓DOI references
Found 6 DOI reference(s) in README -
○Academic publication links
-
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (11.3%) to scientific vocabulary
Keywords
Repository
A converter from a hybrid automaton model to a Stateflow model
Basic Info
- Host: GitHub
- Owner: schillic
- Language: C
- Default Branch: master
- Size: 10.6 MB
Statistics
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
- Releases: 0
Topics
Metadata Files
README.md
This is supplementary material for the article Hybrid automata: from verification to implementation, STTT, 2017. See below for how to cite this work.
The tool has also been integrated in HyST.
The archive contains:
* a folder examples that includes all benchmarks
* a folder lib that includes an executable Jar file of Hyst
* a folder src that includes the source code of the translator
* a folder buck_interval that includes all necessary files to reproduce the experimental results for the buck converter evaluated in the paper;
Particularly, this folder contains the following:
* SpaceEx model files for buck converter using intervals
* a folder "buckintervaldata" that includes data obtained from SLSF simulation, reachability analysis with SpaceEx, and hardware experiment with dSPACE DS1103 system
* a folder "code_generation" that includes C code generation for the buck converter by dSPACE
* a file "dSPACE Experiment Report" that describes in details the dSPACE experiment for the buck converter
To run the translator, do the following:
- Open Matlab.
- Move to the folder where you extracted the files.
- Add the source code to the Matlab path (in the "Current Folder" view). For that, right-click on the folder "src" and select "Add to Path" and the subcategory "Selected Folders and Subfolders".
- Run the following command (where you replace "MODEL_NAME" by a meaningful relative path of your model file):
matlab
SpaceExToStateflow('MODEL_NAME', '-s');
This produces a StateFlow model (which might take some time, especially when the Simulink libraries have not been loaded yet).
Example call:
matlab
SpaceExToStateflow('examples\vanderpol\vanderpol.xml', '-s');
To run the simulation loop, run the following (parametrized) command:
matlab
simulationLoop('MODEL_NAME', NUM_SIMULATION, MAX_TIME, NUM_BACKTRACK);
Here, the parameters denote the following:
* the model name (automatically taken from the *.xml file)
* the number of simulations
* the maximum simulation time
* the number of backtrackings
Again, this might take some time the first time of the call because Simulink compiles the model in the background.
Example call:
matlab
simulationLoop('vanderpol', 5, 50, 3);
To reproduce the table of benchmarks in the appendix, run the following script file:
matlab
generateTable
Citation
bibtex
@article{BakBBJNS19,
author = {Stanley Bak and
Omar Ali Beg and
Sergiy Bogomolov and
Taylor T. Johnson and
Luan Viet Nguyen and
Christian Schilling},
title = {Hybrid automata: from verification to implementation},
journal = {Int. J. Softw. Tools Technol. Transf.},
volume = {21},
number = {1},
pages = {87--104},
year = {2019},
url = {https://doi.org/10.1007/s10009-017-0458-1},
doi = {10.1007/s10009-017-0458-1}
}
Owner
- Name: Christian Schilling
- Login: schillic
- Kind: user
- Location: Denmark
- Company: Aalborg University
- Website: http://www.christianschilling.net
- Repositories: 2
- Profile: https://github.com/schillic
Computer scientist
GitHub Events
Total
Last Year
Issues and Pull Requests
Last synced: 12 months ago
All Time
- Total issues: 0
- Total pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Total issue authors: 0
- Total pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 0
- Pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Issue authors: 0
- Pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0