VP State Machine Code Generation Help


I am new to VP and at work we are interested at using it to generate UML State Machines and generate C++ code . I searched for tutorials on this but the ones I have found are somewhat basic. I was hoping to ask someone if they knew of some tutorials that went more in dept. Alternitevly we could use this post to write and share know-how on how to use this tool!

My main question is:I know how to make the UML diagram for documentation & design purposes, but what items should I keep in mind in order to use it suitable for code generation?



I tried to make a simple state machine and generate the code for it, but I keep getting the error

Expecting either a guard, push, pop or end state.
A ‘{’ must proceed any action definitions.
After the state name is given, then either an entry action, exit action or ‘{’ is expected.