Abstract
In this paper two methods for real-time debugging and testing of a control system are proposed. The basic instruments used are personal computers, a Visual C++ compiler and MATLAB including the GUI Design Environment, Simulink, real-time workshop, xPC target, and some relevant hardware. For the first method, MATLAB functions are used to build a control system debugging and testing environment. This method is flexible and only one RS-232 serial cable is used. Limited programming is used for the second method and ready-made blocks in MATLAB/Simulink are used to build the simulation environment and communication channel. In both methods, the parameters of the emulation system can be modified online, important graphs can be drawn in real time and relevant data can be easily saved for the later analysis. As can be seen from the presented examples, both techniques are easily realized.
Highlights
Limited programming is used for the second method and ready-made blocks in MATLAB/Simulink are used to build the simulation environment and communication channel
The parameters of the emulation system can be modified online, important graphs can be drawn in real time and relevant data can be saved for the later analysis
It is a practical necessity to debug and test a controller before deploying it in a physical environment
Summary
It is a practical necessity to debug and test a controller before deploying it in a physical environment. A physical simulation system can be constructed [1], or the controller can be directly put into the field to test its performance. These methods have excessive time and cost implications and debugging and testing are constraint by the set-up and physical environment. Two methods using MATLAB and relevant hardware are proposed to debug and test a controller. MATLAB is used to set up a flexible software environment. A communication channel is established to facilitate the exchange of information between the controller and the PC for debugging and performance assessment
Talk to us
Join us for a 30 min session where you can share your feedback and ask us any queries you have
Disclaimer: All third-party content on this website/platform is and will remain the property of their respective owners and is provided on "as is" basis without any warranties, express or implied. Use of third-party content does not indicate any affiliation, sponsorship with or endorsement by them. Any references to third-party content is to identify the corresponding services and shall be considered fair use under The CopyrightLaw.