There are generally two types of synchronization methods adopted in the test system: one is that the motion control card controls the motor to move to a certain specified position, and the data acquisition card can collect data at the position in real time. This method is called interruption; the other synchronization method is that if the data acquisition card collects a signal that meets certain conditions when the motor moves to a certain position, it is necessary to record the current movement position of the motor. This method is called capture.
Interrupt mode
interrupts are divided into absolute position interrupts, relative position interrupts and periodic position interrupts. Absolute position interrupt means that when the motor moves to a certain absolute position, the motion control card will generate an external interrupt signal; relative position interrupt means that when the difference between the motor's movement position and the position when the motor is allowed to generate an interrupt meets the set conditions, an interrupt signal is generated; modulo position interrupt means that each interrupt signal will be generated relative to a certain set position. Therefore, the interrupt method can be determined according to the different needs of the test system.
The principle of synchronization
When the motion control card controls the motor to move to a certain position, once the position signal returned by the encoder meets the set position condition, an interrupt signal will be issued. This signal can be used as a trigger condition for the data acquisition card to collect the signal, so that the acquisition card can collect the required data in real time. The motion control card and the data acquisition card can achieve synchronization between the two through the RTSI bus. The interrupt signal generated by the motion control card is transmitted to the RTSI output pin through the internal circuit. Currently, there are 7 RTSI output pins (RTSIO-RTSl6). The RPSI output pin can be connected to the RTSI pin of the data acquisition card through an external cable. The RTSI pin of the acquisition card can also be connected to its control signal (see Figure 1) through the internal circuit to achieve synchronization between the two.
When the motion control card controls the motor to move to a specified position, an interrupt signal will be generated. The interrupt output signal can be connected to the RTSI pin of the motion control card, and the RTSI pin of the motion control card is connected to the RTSI pin of the data acquisition card. In the acquisition card, the RTSI pin signal is used as the system scan clock and is connected to the sampling clock signal. Therefore, every time the motion control card generates an interrupt signal, the data acquisition card performs a channel scan to read the data collected from each sensor. The data will be stored in the set buffer. Once the data in the buffer is full, it will be displayed on the screen through multi-threading. In this way, synchronization between motion control and data acquisition is achieved.
Previous article:Circuit design of a new type of digital display power meter for power grid
Next article:Drive-based test system design
- Popular Resources
- Popular amplifiers
- From probes to power supplies, Tektronix is leading the way in comprehensive innovation in power electronics testing
- Seizing the Opportunities in the Chinese Application Market: NI's Challenges and Answers
- Tektronix Launches Breakthrough Power Measurement Tools to Accelerate Innovation as Global Electrification Accelerates
- Not all oscilloscopes are created equal: Why ADCs and low noise floor matter
- Enable TekHSI high-speed interface function to accelerate the remote transmission of waveform data
- How to measure the quality of soft start thyristor
- How to use a multimeter to judge whether a soft starter is good or bad
- What are the advantages and disadvantages of non-contact temperature sensors?
- In what situations are non-contact temperature sensors widely used?
- LED chemical incompatibility test to see which chemicals LEDs can be used with
- Application of ARM9 hardware coprocessor on WinCE embedded motherboard
- What are the key points for selecting rotor flowmeter?
- LM317 high power charger circuit
- A brief analysis of Embest's application and development of embedded medical devices
- Single-phase RC protection circuit
- stm32 PVD programmable voltage monitor
- Introduction and measurement of edge trigger and level trigger of 51 single chip microcomputer
- Improved design of Linux system software shell protection technology
- What to do if the ABB robot protection device stops
- Analysis of the application of several common contact parts in high-voltage connectors of new energy vehicles
- Wiring harness durability test and contact voltage drop test method
- From probes to power supplies, Tektronix is leading the way in comprehensive innovation in power electronics testing
- From probes to power supplies, Tektronix is leading the way in comprehensive innovation in power electronics testing
- Sn-doped CuO nanostructure-based ethanol gas sensor for real-time drunk driving detection in vehicles
- Design considerations for automotive battery wiring harness
- Do you know all the various motors commonly used in automotive electronics?
- What are the functions of the Internet of Vehicles? What are the uses and benefits of the Internet of Vehicles?
- Power Inverter - A critical safety system for electric vehicles
- Analysis of the information security mechanism of AUTOSAR, the automotive embedded software framework
- DSP Power Budget Digital Output Voltage Regulation
- Selling some components
- Detailed introduction to crystal oscillators and crystal parameters
- Timing Analysis of TB5128FTG’s Decay Action
- How to correct the scale of glass rotor flowmeter when in use
- msp430 button control LED light
- MATLAB simulation model for online parameter identification of permanent magnet synchronous motor based on MRAS
- It is said that noise spectral density is more useful than signal-to-noise ratio?
- Altium Designer 18 Schematic
- I am designing a transformer for a flyback switching power supply. Is my estimate of the maximum duty cycle correct?