Abstract
This control system is designed for a process control experiment platform, combining the advantages of LabVIEW and MATLAB to overcome their individual shortcomings. The system targets double-tank water level control, utilizing a PCI data acquisition card for data collection and control signal transmission. By implementing a hybrid programming approach, the researchers addressed LabVIEW's limitations in matrix calculation and MATLAB's challenges in real-time data communication. The resulting system leverages the efficient hardware communication of LabVIEW and the powerful computational capabilities of MATLAB, providing an effective experimental and teaching tool within limited laboratory resources.
Introduction
In process control education and research, a gap often exists between theoretical simulation and physical application. While software simulations are accessible, they frequently overlook real-world complexities like sensor noise and actuator lag. Engineers typically choose between LabVIEW, which excels at hardware interfacing and UI design but struggles with complex math, and MATLAB, the standard for control theory that lacks native, user-friendly real-time hardware tools. This paper proposes a hybrid architecture that utilizes both platforms to control a physical double-tank system.
System Architecture and Methods
The experimental setup integrates hardware and software to manage a "Double-capacity Water Tank." The hardware layer consists of liquid level pressure sensors and water pumps interfaced via a PCI data acquisition card.
The system's operation is divided into distinct functional blocks:
- Hardware Interfacing: A PCI card handles analog inputs (AI) from sensors and analog outputs (AO) to frequency converters.
- Communication: The Modbus protocol is used for serial communication, with custom LabVIEW "Sub-VIs" managing register reading and writing.
- Hybrid Programming: The core innovation is the use of the MATLAB Script node within LabVIEW. LabVIEW acts as the "body," managing I/O and the user interface, while MATLAB serves as the "brain," executing the PID control algorithms and matrix calculations via an ActiveX server.
The software logic follows a structured path: initializing serial ports, reading DAQ data, performing primary processing, and then branching based on whether the system is in manual or automatic mode. In automatic mode, LabVIEW calls MATLAB to calculate the necessary controller output based on set points (SP) and PID coefficients.
Key Results and Insights
The hybrid system was validated through step-response testing on the physical double-tank setup.
- Operational Stability: Under manual control, a 50% output maintained stable levels (10cm top, 5cm bottom). A 5% step increase successfully transitioned the system to new stable levels (15cm and 10cm).
- Control Performance: By utilizing MATLAB’s computational power, the system successfully implemented PID control with parameters tuned via the stability boundary method, achieving a smooth response curve.
- Educational Impact: This platform allows students to observe how abstract algorithms directly influence physical hardware in real-time, bridging the gap between theory and practice more effectively than pure simulation.
Conclusion and Future Work
The LabVIEW-MATLAB hybrid approach provides a cost-effective, high-performance solution for experimental process control. While the current implementation uses ActiveX for communication, future iterations could explore Dynamic Link Libraries (DLLs) to reduce latency for higher-speed applications. Furthermore, the established infrastructure is well-suited for testing advanced control strategies, such as Predictive or Fuzzy Control, which fully leverage MATLAB's extensive toolbox.
Summary updated