CN201594262U - Simulator with motor control hardware in loop - Google Patents
Simulator with motor control hardware in loop Download PDFInfo
- Publication number
- CN201594262U CN201594262U CN2009201210177U CN200920121017U CN201594262U CN 201594262 U CN201594262 U CN 201594262U CN 2009201210177 U CN2009201210177 U CN 2009201210177U CN 200920121017 U CN200920121017 U CN 200920121017U CN 201594262 U CN201594262 U CN 201594262U
- Authority
- CN
- China
- Prior art keywords
- algorithm
- module
- dsp
- dsp chip
- motor
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
Images
Classifications
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02T—CLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO TRANSPORTATION
- Y02T10/00—Road transport of goods or passengers
- Y02T10/80—Technologies aiming to reduce greenhouse gasses emissions common to all road transportation technologies
- Y02T10/82—Elements for improving aerodynamics
Abstract
The utility model relates to a simulator with a loop in a motor hardware. A PCI bus protocol control module PCI9052, a digital signal processing DSP chip TMS320LF2812, a double-port memory IDT7143, an 8-digit extended digital input module, an 8-digit extended digital output module and an EEPROM93LC46B are integrated on a simulator PCI interface card; the PCI protocol control module completes PCI protocol conversion function, digital signal processing mainly realizes the functions of outputting motor control signals, inputting motor relative parameter signals and the like; and a hardware real-time communication function is realized by interrupted timing and interrupted triggering between a desk computer and a DSP. The simulator with the hardware in the loop enables motor control algorithm digital simulation to be tightly combined with algorithm programming; and optimized parameters and control algorithm obtained by simulation can automatically generate C-language codes to be automatically downloaded to the DSP chip to run and to be verified. The simulator with the loop in the motor hardware has wide application range, improves algorithm quality, lowers algorithm developing difficulty and shortens algorithm developing time.
Description
Technical field
The utility model relates to the teaching and scientific research field, is specifically related to a kind of built-in applied system development platform towards Electric Machine Control algorithm research or education experiment.
Background technology
At present, the development mode of theoretical research and System Discrimination, Digital Simulation, algorithm establishment and algorithm debugging is followed in teaching and scientific research field Electric Machine Control algorithm research and design gradually.Come the simulated machine control performance by Digital Simulation Electric Machine Control algorithm, can shorten the control algolithm development time.But the Matlab software of U.S. Mathworks company is generally used in Digital Simulation at present, and the algorithm establishment is general adopts the C language, and operation and checking on digital signal processing Digital Signal Process (DSP) chip.Its shortcoming is that Digital Simulation and algorithm establishment link breaks away from, control algolithm that the Matlab Digital Simulation obtains and optimized parameter can not directly realize hardware at loop simulation, finally generate C language control algolithm automatically and download to operation and checking on the DSP.
In addition, the solution that also has the establishment of data simulation and algorithm to combine closely at present is as the product of dSpace and Quanser company.But its price is very expensive, and can downloading-running and the dsp chip of checking older, function is also few.
Summary of the invention
The technical problems to be solved in the utility model is, be implemented in exploitation Electric Machine Control algorithm on the Matlab by hardware at the loop simulation device, utilize the Digital Simulation of Matlab software, in-circuit emulation and checking, finally generate C language control algolithm automatically and download to hardware and on loop simulation device DSP, move and verify, finish the control algolithm performance history, shorten the algorithm development time for this reason greatly, reduce cost of development and boosting algorithm quality.
The utility model solves the problems of the technologies described above by such technical scheme, promptly design a kind of Electric Machine Control hardware at the loop simulation device, integrated pci bus protocol conversion chip on a circuit board with Peripheral Component Interconnect (PCI) bus interface, dsp chip, dual-ported memory, numeral input and output module and eeprom memory, this circuit-board card inserts in the PCI slot of desk-top computer, hardware adopts pci bus interface and desk-top computer to carry out high-speed data exchange at the loop simulation device, finish the PCI protocol conversion function by PCI agreement control module, digital signal processing mainly realizes functions such as output motor control signal and input motor correlation parameter signal.PCI agreement control module and digital signal processing module are by the dual-port interaction data.Realize the hard real-time communication function by interrupt timing and down trigger between desk-top computer and the digital signal processing module.
The beneficial effects of the utility model are, this hardware combines closely Digital Simulation of Electric Machine Control algorithm and algorithm establishment at the loop simulation device, optimized parameter that emulation obtains and control algolithm can generate the C language codes automatically, and download on the dsp chip operation and checking automatically, have characteristics such as wide accommodation, real-time height and low cost, greatly boosting algorithm quality and reduction algorithm development difficulty, shortening algorithm development time, saving labour and minimizing cost of development.The utility model at present can the emulation AC induction motor, permagnetic synchronous motor, dc brushless motor etc.
Description of drawings
Below in conjunction with accompanying drawing utility model is described further, in the accompanying drawing:
Fig. 1 is the circuit board of hardware at loop simulation device pci bus interface.
Fig. 2 is that hardware is at loop simulation device principle of work model and process flow diagram.
Fig. 3 is the importation circuit block diagram of simulating signal.
Fig. 4 is the output circuit block diagram of motor control unit.
Fig. 5 is the importation circuit block diagram of expansion of digital signal.
Fig. 6 is the output circuit block diagram of expansion of digital signal.
Embodiment
In the PCI of desk-top computer slot, insert a circuit-board card with pci bus interface, as shown in Figure 1, be integrated with pci bus agreement control module PCI9052, dsp chip TMS320LF2812, dual-ported memory IDT7143,8 expanding digital load modules, 8 expanding digital output modules and eeprom memory 93LC46B on this card.The integrated 12bit analog input module of dsp chip, 2 road rotary coding signal acquisition module, 2 motor control unit EVA and EVB.The program that designs on dsp chip makes desk-top computer CPU can directly visit the inner any register of dsp chip in real time, guarantee the real-time performance of Windows operating system and DSP program by interrupt timing between PCI9052 and the dsp chip and triggering, can utilize desk-top computer CPU real-time operation Electric Machine Control algorithm like this with high performance float-point arithmetic capability, especially can utilize the Electric Machine Control algoritic module storehouse of Matlab, finally motor control signal is written to dsp chip in real time and controls motor, can guarantee 5000 hertz modulating frequency at present.In addition, after the program that designs on the dsp chip supports that the automatic C language Electric Machine Control algorithm that generates of Matlab compiles on the desk-top computer, download to DSP and operation automatically,, go up the exploitation of motor control algolithm to this DSP and finish if proof of algorithm is successful.Utilize this hardware at the loop simulation device, can accelerate algorithm development speed greatly, and improve the algorithm quality.
Hardware at loop simulation device principle of work model and process flow diagram as shown in Figure 2.The PCI circuit board inserts desk-top computer, add driver and Matlab interface routine, and Matlab software has just constituted the utility model Electric Machine Control hardware at the loop simulation device.Utilize this hardware at the loop simulation device, can develop the Electric Machine Control algorithm fast and reduce the algorithm development difficulty, the System Discrimination before this of its flow process, be to utilize the Simulink module of Matlab to set up model and real-time debug then, utilize the RTW of Matlab to generate the C code after the result is correct, and transplant the DSP download to the PCI circuit board and go up debugging and verification, if the result correctly the Electric Machine Control algorithm be shaped.
Be illustrated in figure 3 as the importation circuit block diagram of simulating signal, the input sample precision of simulating signal is 12, sampling rate 100Ksps, the input of 16 tunnel simulating signals.Analog input circuit adopts signal condition and conversion, and 16 tunnel simulating signals are input to respectively for 8 one group to be selected for 28 in 1 the DSP internal simulation switch, becomes digital quantity through the A/D of DSP inside transducer and delivers on the pci bus through PCI9052.
Be illustrated in figure 4 as the output circuit block diagram of motor control unit, have at a high speed and behind the desk-top computer computing Electric Machine Control algorithm of high performance float-point arithmetic capability through pci bus and PCI9052 chip, be input to DSP inside after the down trigger logic control, utilize integrated Electric Machine Control event management unit EVA of DSP or EVB to export 6 tunnel symmetry Plus Width Modulation (PWM) signals, become the 3.3V pwm signal through level conversion and be the 5V pwm signal.
Be illustrated in figure 5 as the importation circuit block diagram of expansion of digital signal, the input of 8 bit digital.Other 8 bit digital input is directly inputted among the DSP, and analog input is similar to DSP among its process and last Fig. 3.Be the inputs of 16 bit digital altogether.Expansion of digital signal is sent to the 74HC245 chip after isolating through photoelectricity, sends into desk-top computer by pci bus after finishing protocol conversion by PCI9052 again.
Be illustrated in figure 6 as the output circuit block diagram of expansion of digital signal, the output of 8 bit digital.Other 8 bit digital output is directly exported by DSP, and DSP output motor control signal is similar among its process and last Fig. 4.Be the outputs of 16 bit digital altogether.Desk-top computer sends among the PCI9052 by the digital signal of pci bus with desired output, finishes control 74HC574 digital latch output after the protocol conversion.
Claims (2)
1. an Electric Machine Control hardware is at the loop simulation device, this loop simulation device comprises the pci bus interface card, pci bus interface card driver module, Matlab interface and Matlab module is characterized in that: this bus interface card comprises pci bus protocol conversion chip, dsp chip, dual-ported memory, digital input/output module and eeprom memory; This bus interface card is installed on the desk-top computer PCI slot by pci bus protocol conversion chip; The two ends of this dual-ported memory are connected in order to interaction data with this dsp chip with this pci bus protocol conversion chip respectively; This numeral input and output module is connected in this dsp chip in order to output motor control signal and input motor correlation parameter; Guarantee the real time execution of Windows operating system and DSP program by interrupt timing/down trigger mechanism between this pci bus protocol conversion chip and the dsp chip.
2. Electric Machine Control hardware according to claim 1 is at the loop simulation device, it is characterized in that: this loop simulation device also is included in the module that designs on the dsp chip, comprise that desk-top computer CPU can directly visit the addressed location of the inner any register of dsp chip in real time, and utilize the Electric Machine Control algoritic module storehouse of Matlab that motor control signal is written to the control module that dsp chip is controlled motor in real time.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2009201210177U CN201594262U (en) | 2009-06-02 | 2009-06-02 | Simulator with motor control hardware in loop |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2009201210177U CN201594262U (en) | 2009-06-02 | 2009-06-02 | Simulator with motor control hardware in loop |
Publications (1)
Publication Number | Publication Date |
---|---|
CN201594262U true CN201594262U (en) | 2010-09-29 |
Family
ID=42776330
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2009201210177U Expired - Fee Related CN201594262U (en) | 2009-06-02 | 2009-06-02 | Simulator with motor control hardware in loop |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN201594262U (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102012856A (en) * | 2010-11-30 | 2011-04-13 | 中国人民解放军信息工程大学 | Method and device for automatically generating hardware component simulation engineering |
CN108287307A (en) * | 2017-12-22 | 2018-07-17 | 苏州恒美电子科技股份有限公司 | Data processing system for electromechanical testing |
-
2009
- 2009-06-02 CN CN2009201210177U patent/CN201594262U/en not_active Expired - Fee Related
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102012856A (en) * | 2010-11-30 | 2011-04-13 | 中国人民解放军信息工程大学 | Method and device for automatically generating hardware component simulation engineering |
CN108287307A (en) * | 2017-12-22 | 2018-07-17 | 苏州恒美电子科技股份有限公司 | Data processing system for electromechanical testing |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102508753B (en) | IP (Internet protocol) core verification system | |
CN110046387B (en) | SM2 module verification platform and verification method based on UVM | |
CN101504692B (en) | System and method for validating and testing on-chip system | |
Jiang et al. | Design of mixed synchronous/asynchronous systems with multiple clocks | |
CN112580295A (en) | Automatic verification method, system and device for multi-core SoC chip | |
CN102521444A (en) | Cooperative simulation/verification method and device for software and hardware | |
Liang et al. | FlexCL: A model of performance and power for OpenCL workloads on FPGAs | |
CN102495552A (en) | Real-time simulation system oriented to space-borne electronic system | |
CN105446859B (en) | The software condition monitoring of power consumption analysis and wave file automatic generation method | |
CN102184290B (en) | Cycle accurate and bit accurate system level model construction method for embedded micro-processor | |
CN201594262U (en) | Simulator with motor control hardware in loop | |
CN103440373A (en) | Interconnected configuration simulation method of multi-DSP system | |
Nava et al. | An open platform for developing multiprocessor SoCs | |
Wang et al. | A UVM verification platform for RISC-V SoC from module to system level | |
Ortega et al. | Models and methods for hw/sw intellectual property interfacing | |
CN116451617A (en) | Information processing method, device and application based on simulation waveform in chip simulation | |
Feng et al. | Design and application of reusable SoC verification platform | |
Aguirre et al. | Microprocessor and FPGA interfaces for in-system co-debugging in field programmable hybrid systems | |
CN107526585B (en) | Scala-based FPGA development platform and debugging and testing method thereof | |
CN112711213A (en) | Navigation acquisition resolving Soc processing system based on RiscV kernel and method thereof | |
CN111858218A (en) | FPGA AMBA bus interface debugging method and device and FPGA | |
Amor et al. | A tool for the automatic TLM-to-RTL conversion of embedded systems requirements for a seamless verification flow | |
Gopikrishna et al. | A multiprocessor system on chip verification on hardware accelerator and Software Emulation | |
CN112836455B (en) | SOC simulation method and system | |
Duan et al. | FPGA-based USB 2.0 data monitoring and acquisition circuit function and simulation design |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
C17 | Cessation of patent right | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20100929 Termination date: 20110602 |