Brushless DC motor control system based on dSPACE real-time simulation

The dSPACE real-time simulation system is a software and hardware working platform based on MATLAB/Simulink for control system development and hardware-in-the-loop simulation, which realizes complete seamless connection with MATLAB/Simulink/RTW. dSPACE real-time system has the advantages of strong real-time performance, high reliability and good expandability. The processors in the dSPACE hardware system have high-speed computing capabilities and are equipped with rich I/O support, which can be combined as needed. The software environment is powerful and easy to use, including automatic code generation/downloading and testing/debugging. The whole set of tools. dSPACE software and hardware has become the preferred real-time platform for rapid control prototyping and hardware-in-the-loop simulation.

The dSPACE real-time simulation system is a software and hardware working platform based on MATLAB/Simulink for control system development and hardware-in-the-loop simulation, which realizes complete seamless connection with MATLAB/Simulink/RTW. dSPACE real-time system has the advantages of strong real-time performance, high reliability and good expandability. The processors in the dSPACE hardware system have high-speed computing capabilities and are equipped with rich I/O support, which can be combined as needed. The software environment is powerful and easy to use, including automatic code generation/downloading and testing/debugging. The whole set of tools. dSPACE software and hardware has become the preferred real-time platform for rapid control prototyping and hardware-in-the-loop simulation.

dSPACE architecture

The dSPACE real-time simulation system is a working platform developed and tested by MATLAB/Simulink based on dSPACE, Germany, which realizes a complete seamless connection with MATLAB/Simulink. dSPACE real-time systems have high-speed computing hardware systems (including processors, I/O, etc.), as well as a software environment that is easy to use and enables code generation, download, testing, and debugging.

dSPACE hardware system

For different users, dSPACE can be divided into standard component systems and single board systems. The standard component system separates the processor board and the I/O board and provides multiple series and varieties, allowing the user to assemble according to specific needs, and can use multiple processor boards and multiple (multiple) I/O boards. The system's computing speed, memory and I/O capabilities can be greatly expanded to meet the needs of complex applications. The single board system itself is a complete real-time simulation system. The DSP and I/O are all integrated on the same board. The I/O includes most I/Os with fast control prototyping (such as A/D, D/A). Etc.), in order to meet the needs of the drive application, equipped with a PWM signal generator.

The hardware structure diagram of the single board system DS1104 is shown in Figure 1. The dSPACE system hardware mainly includes PowerPC and DSP-based processor chips for real-time operation of user-designed algorithms or simulation models. The PowerPC clock frequency is 250MHz and provides 16kB of on-chip data buffer and on-chip instruction cache. The memory includes 8MB of flash memory and 32MB of SDRAM main memory. To meet the hardware's needs for loop simulation, the DS1104 provides 8-channel A/D conversion, 8-channel D/A conversion, 20-bit digital I/O ports, and a synchronous serial interface. The DS1104 single board system has built-in TEXAS TMS320F240 DSP chip, which is connected to PPC through dual port memory (DualPortRAM). This built-in DSP is capable of generating PWM signals and has a 14-bit digital I/O port.

Brushless DC motor control system based on dSPACE real-time simulation

dSPACE software system

The dSPACE real-time simulation system allows the user to adjust controller parameters and operating environment in real time and provides a variety of parameter display methods. dSPACE's real-time simulation system is mainly composed of three parts, as shown in Figure 2, which are the control system algorithm design platform MATLAB/Smiulink, dSPACE real-time simulation system and external real environment and equipment. Among them, RTI (RealTmieInterface) is the link between dSPACE real-time system and MATLAB/Smiulink. Users can design the controller's Smiulink model by using the model in RTI library with MATLAB/Smiulink, and realize the extension of RTW (RealTmieWorkshop). Seamless automatic download from the Smiulink model to SPACE real-time hardware code. dSPACE real-time hardware is responsible for connecting with external devices, interactive control information and feedback information, monitoring test software, providing comprehensive management of the test process, adjusting parameters online, establishing user virtual instruments, and real-time observation of control effects.

For the three parts of the dSPACE real-time simulation system, the dSPACE software system is also composed of three modules: algorithm development module, real-time running module and real-time testing and monitoring module. Algorithm development includes designing online models in Simulink or writing model code in C language; real-time running modules are based on different forms of algorithm development, and there are also two ways: the Simulink-based model automatically completes the model code with the support of RTW and RTI. Generate, compile, link, download; manually written models need to run the batch command provided by dSPACE to complete the above functions; The real-time test and monitoring module is completed by the user interface software ControlDesk provided by dSPACE system. The graphical management of real-time hardware is realized by ControlDesk, including registration management of new hardware, control of starting and stopping of real-time programs, error monitoring, and establishment of virtual instruments. And visual management of dynamic data exchange with real-time programs, access to variable files generated by RTI, establishing links between variables and virtual instruments, and accessing variables related to real-time operations.

Brushless DC motor control system based on dSPACE real-time simulation

VDE POWER CORD

Guangdong Kaihua Electric Appliance Co., Ltd. , https://www.kaihuacable.com

Posted on