

The ability to experiment with the effects of different control strategies on real-world processes is even more helpful.

Simulating control systems helps students understand control methods better than written textbook examples. LabVIEW code can be compiled to run on computers, (soft) real-time targets, and FPGAs (hard real-time targets), so students can easily and quickly step up to real industrial measurement and control problems without the need to learn new programming environments. Then a myRIO Student Embedded Device is used to control a real servo system. The first didactic step is a simulation with the Control Design and Simulation, as well as MathScript RT Modules. However, the mathematical background of sliding mode control is difficult compared to conventional PID control the SMC implementation for practical uses can be quite simple, as the presented example demonstrates. The graphical “coding” can help novice users to see through their algorithms. Both programming environments and the connection to NI hardware are relatively easy to use, therefore, ideal for education. The control of an actual system with LabVIEW and NI hardware provides an efficient implementation platform, using both LabVIEW’s graphical programming and the text-based m-file language MathScript RT. The main contribution of this paper is to present the efficiency of LabVIEW in simulating and controlling a servo system with conventional methods (PI and PID control), as well as sliding mode control (SMC).
