Can I use my own C code (structures or custom data types) as input/output to/from the state machine? Yes - that is possible in the Pro Edition of YAKINDU Statechart Tools. You’ll find more information in this blog post.
I need high-performance target code? How does YAKINDU Statechart Tools achieve this goal? The generated code is very performant (less forks and joins). If you have higher requirements you need to customize your code generator. Please refer to FAQ regarding configurable generators.
Are the generators configurable? Yes there are some configuration options for naming, locations, code structure etc. For more details refer to the documentation
Is it possible to open a statechart model as a text file? Yes it is. Right click on the statechart file choose “open with…” - “Text Editor”. But be careful with your changes. They may break the model.
I want to generate slim target language artifacts. Is it possible to adjust the code generator to generate slim code? You can influence the size of the generated code by configuring the generator model. Please refer to our documentation for this. Please note that hierarchies and parallel regions result in a large code amount.
How can I import my statecharts to YAKINDU Statechart Tools? It may take various implementation effort to adapt YAKINDU Statechart Tools to your custom state machines. There are not importers for various statechart models. But Matlab/Simulink, EA and Stateflow models are no big issue as we maintain the required infrastructure with our YAKINDU Model Viewer product. Contact us if you need adaption support or have more detailed questions.
YAKINDU Statechart Tools seems to be slow (with large models)? You can do some steps to increase performance:
You can also add the following lines to your SCT.ini:-vmargs -XX:MaxPermSize=512m -Xms512m -Xmx2500m
During editing statecharts you gain performance if you turn off Build automatically in the Project menu.
Turn off the live validation by choosing Window - Preferences - YAKINDU SCT - Diagramm Appearance and check off “Enable live validation”.
Turn off spell checking: open the Window - Preferences dialog and go on page General - Editors - Text Editors - Spelling and unselect Enable spell checking.
If this did not help enough do not hesitate to contact us. Together we will find a solution.
My YAKINDU Statechart Tools does not start. Why? This may be due to different problems. Here are some hints for possible solutions:
No Java installed: You need to install the Java Runtime Environment (JRE) in version 7 or higher on your machine. You can find it at https://www.java.com.
Not matching Java version: Maybe you have downloaded the 64bit version of YSCT and have an 32bit version of Java installed or vice versa.
If it is none of these please write an email to our support team, tell us what your system properties are (OS, Version, Java-Version) and attach the log-file.
Is the generated code threadsave? The generators that we provide generate code that is agnostic of the target platform. So at its core the generated code makes no assumption about specific multithreading approaches. This fact implies two points:
You can adapt the generated code to any multithreading model.
This adaption implies efforts.
This adaption can be done manually for each generated state machine or it is possible to extend the existing code generators in order to generate platform specific code that handles multithreading aspects. Our Java code generator for example provides the option to generate a ‚RunnableWrapper‘ that performs simple synchronization based on standard Java threads and wraps the generated state machine in order to implement the desired multithreading behavior.