How to use this tutorial and source code
The tutorial contains two folders: Book and Code.
- Book: contains the KINGSTAR Motion 4.2 tutorial. The home page of the tutorial is
KS_Tutorial_4.htm
, which can be opened by web browsers. - Code: contains the source code used in the tutorial. Double-click
RT_Project_01.sln
to open the Visual Studio project. In Solution Explorer, find the code in the Header Files and Source Files folders. The main function is inmain.cpp
, in which each chapter's code is separated using a/*Chapter Name*/
comment and enclosed in the#if-#endif
preprocessor directive, which functions as a switch that allows you to turn on or off a code block. By default, each chapter's code is set to#if 0
. It won't be compiled when you run the progam. If you want to compile any chapter's code, change#if 0
to#if 1
.
RT_Project_01_Reader.sln
is for Chapter 13 > Use user variables between projects.