This thesis mainly discusses how to use Windows Target real-time control toolbox in Matlab system, as a DC motor positioning controller. The control algorithm is the Bang-Bang control, which ensures the position tracking of the motor accurately and effectively in an unstable and unknown situation.
Regarding the hardware, the host personal computer acts as controller which uses data acquisition cards PCI-1716 high-resolution multi-function of Advantech Technology (Advantech) as a communication media between PC the plant. On the other hand, because the power of PCI-1716 is too small, it is necessary to add motor drivers L298N and counter circuit which is connected with motor encoders. The experiment uses Matlab (Simulink) graphic control software to design programs. Matlab (Simulink) graphic control software contains driver programs which support PCI-1716 to operate directly and auxiliary modules which help PCI-1716 to operate practically. The experimental results, verify the effectiveness of the control design.