How to use this tutorial and source code
The tutorial contains two folders: Book and Code.
- Book: contains the KINGSTAR Motion 4.1 tutorial. The home page of the tutorial is
KS_4_Tutorial.htm, which can be opened by web browsers.
- Code: contains the source code used in the tutorial. Double-click
RT_Project_01.slnto open the Visual Studio project. In Solution Explorer, find the code in the Header Files and Source Files folders. The main function is in
main.cpp, in which each chapter's code is separated using a
/*Chapter Name*/comment and enclosed in the
#if-#endifpreprocessor 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