Skip to content
NNNIC edited this page Sep 16, 2018 · 4 revisions

Welcome to the psgg-cpp-sample wiki!

Environment

  • Windows 10
  • SYN-G-GEN
  • MinGW

How to make "m0" sample

1. Execute SYN-G-GEN and create a new state machine.

(1) Select C++ STARTER KIT.
(2) Set the state machine name to "TestControl".
(3) Set the document folder to "c:\hoge\doc".
(4) Set the source folder to "c:\hoge".
(5) Create!

2. Copy reference files and check if it works.

(1) Copy psgg-cpp-sample/reference/make.bat to c:\hoge
(2) Copy psgg-cpp-sample/reference/test.cpp to c:\hoge
(3) Double-click "make.bat" in c:\hoge then the batch shows "Hello!..." as result of compiling and running.

3. Create states

(1) S_PRINT

(2) S_INPUT

(3) S_YES

(4) S_NO

(5) Connect

4. Result