Popis: |
This paper proposes a new cost-effective data acquisition system using open-source hardware and Matlab/Simulink. The proposed data acquisition (DAQ) system has features that it uses the framed data protocol based on hex encoding, it can acquire multiple data which are not of the same type at different sample rates, and the system receives data through USB communication or serial communication. The software of the proposed system consists of the firmware of a microcontroller and user-defined Simulink function block. The firmware of a microcontroller is in the form of a header file, and the data acquisition can be easily achieved by calling a few functions defined in the header file. The developed user-defined Simulink block can get multiple data at different sample rates by configuring the GUI parameters appropriately. For implementation of the system, we use the Arch Max, which is the open-source hardware with an ARM Cortex-M4 core, and also use a user-defined c-code S-function of Matlab/Simulink. For the demonstration of the superiority of the implemented system, we compare the proposed systemâs performance with that of the data acquisition system provided in Matlab/Simulink Instrument Control Toolbox. Finally we illustrate how presented system can be actually used by applying the proposed system to DC motor control. |