Automatic test system (ATS) is a general term for a type of system that can automatically complete measurement, data processing, and display (output) test results. In different technical fields, the test content, requirements, conditions, and automatic test systems are different, but they all use computers to replace human testing activities. A general automatic test system includes a controller, an excitation source, a measuring instrument, a switch system, a human-machine interface, and a unit-machine interface under test. The test object of this automatic test system is a PWM circuit board, as shown in Figure 1. PWM (pulse width modulation) is a circuit that changes the output voltage by changing the duty cycle. PWM technology is widely used in DC motor speed regulation and other occasions.
Its working principle is as follows: As shown in Figure 2, a triangle wave is generated at point F. The amplitude of the triangle wave can be adjusted by adjusting RP3, and the frequency of the triangle wave can be adjusted by adjusting RP2. U1D is a voltage comparator. The waveform at point F and the waveform at point B are compared to finally obtain the waveform at point C. Since the PWM waveform at point C is obtained by comparing the voltages at points F and B, the voltage value at point B can be adjusted by adjusting RP1, and the duty cycle of the waveform at point C can be adjusted to ensure that the duty cycle of the waveform at point C exceeds 50%. The waveform at point C is driven by the OTL circuit to obtain the final test waveform at point D. After the amplified square wave signal is obtained at point D, it is used as a drive output signal through the CMOS tube to drive a motor or a signal light.
1 Test Task
The test task of this design is: taking the PWM circuit board as the test object, using the digital oscilloscope Tek TBS1012B-SC with USB interface and matrix switch, digital I/O card to build a test platform, and on the LabVIEW development platform, design an automatic test system for measuring the key point waveform of the PWM circuit board.
Make it have the following functions:
(1) The triangular wave output frequency and waveform can be observed and adjusted, and can be adjusted in a human-computer interactive manner, fo=1kHz±5%; Up=3V±10%.
(2) The waveform of the comparator output point C can be observed. The duty cycle of point C can be adjusted to 50% through human-computer interaction.
(3) The modulation waveform at point D can be observed.
(4) The measured waveforms, frequencies and amplitudes of points F, C and D can be centrally displayed on the test system interface.
2 Hardware Platform
This system uses LabVIEW as a development platform to write test programs. The key points of the PWM circuit are tested to determine whether the circuit components achieve the intended functions. The system hardware platform is mainly composed of Tek TDS1012B-SC, voltage regulator, matrix switch, matrix switch driver - NI6509 digital I/O card and other parts. The hardware platform is shown in Figure 3.
2.1 Oscilloscope
Since the system is used to measure the waveforms of the key points F, C, and D in the PWM circuit, the circuit needs to be adjusted before the system starts testing. The debugging requirements are: adjust the frequency and amplitude of the triangle wave to make fo=1kHz±5%; Up=3V±10%, and the debugging process needs to be carried out by observing the oscilloscope. In addition, after a general oscilloscope measures the waveform of a test point, the test point must be switched manually. If it is a Tek digital oscilloscope, the waveform can be tested continuously. Its function is to measure the waveform and automatically transmit the waveform and data to the computer.
2.2 Matrix switch
To measure the waveforms of key points F, C, and D in the PWM circuit, but there is only one oscilloscope, we need to use one oscilloscope to measure the waveforms of three test points, so a multi-point switch is needed for switching. We use a matrix switch to switch between points.
This test system uses a 4×24 matrix switch to assign different test points (such as F, C, and D) to the input of the oscilloscope to achieve time-sharing measurement of multi-point waveforms by the oscilloscope. The principle circuit diagram of the matrix switch is shown in Figure 4.
Generally, the measuring instruments are connected to H0, H1, H2, H3, and V0, V1, V2, ..., V23 are connected to the test points. As long as the switch that crosses the row and column is turned on, the instrument connected to the row can be connected to the test point of the column. For example, if the oscilloscope is connected to H0, as long as K0 is turned on, the oscilloscope measures the waveform at point V0. If k1 is turned on, the oscilloscope measures the waveform at the V1 test point. For this system, H0 is connected to the oscilloscope, V0 is connected to point F of the circuit, V1 is connected to point C of the circuit, and V2 is connected to point D of the circuit. The actions of K0, K1, and K2 are controlled by the driving circuit of the matrix switch, that is, under the control of the driver, K0 is closed to measure the waveform at point F, K1 is closed to measure the waveform at point C, and K2 is closed to measure the waveform at point D.
2.3 Matrix switch driver component - NI6509 digital I/O card
The NI PCI-6509 Industrial 96-channel Digital I/O Board for PCI features 96 bidirectional digital I/O lines capable of high current drive (24mA) without the need for jumpers. With the PCI-6509, you can input and output at 5VDC digital levels and directly drive external digital devices such as solid-state relays (SSRs) at up to 24mA per channel. Each port (8 lines) can be configured as input or output, and no external power is required for output. With programmable power-up states, the initial output state can be configured in software, ensuring safe and trouble-free operation when connected to industrial actuators (pumps, gates, motors, relays).
For applications that require on-board pull-up resistors , consider using the NIPCI-DIO-96 parallel digital I/O board.
In the event of a computer or application failure, the PCI-6509 uses a digital I/O watchdog to switch to a configurable safe output state, ensuring that once it is connected to the industrial actuator, the fault condition can be detected and safely recovered. With change detection, the digital I/O board can notify and trigger your software when a digital state changes (no polling required). Programmable input filters can be used to eliminate glitches/spikes and debounce digital switches/relays through selectable software digital filters.
The 4-row 24-column array switch used in this system requires 96 I/O ports to drive, and the 6509 digital I/O card has 12 8-bit digital ports, which can fully meet the needs. Therefore, the 6509 digital I/O card is selected for operation.
Previous article:Measurement and control of smart grid networks
Next article:Microcurrent measurement solution
- Popular Resources
- Popular amplifiers
- Keysight Technologies Helps Samsung Electronics Successfully Validate FiRa® 2.0 Safe Distance Measurement Test Case
- 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?
- Innolux's intelligent steer-by-wire solution makes cars smarter and safer
- 8051 MCU - Parity Check
- How to efficiently balance the sensitivity of tactile sensing interfaces
- What should I do if the servo motor shakes? What causes the servo motor to shake quickly?
- 【Brushless Motor】Analysis of three-phase BLDC motor and sharing of two popular development boards
- Midea Industrial Technology's subsidiaries Clou Electronics and Hekang New Energy jointly appeared at the Munich Battery Energy Storage Exhibition and Solar Energy Exhibition
- Guoxin Sichen | Application of ferroelectric memory PB85RS2MC in power battery management, with a capacity of 2M
- Analysis of common faults of frequency converter
- In a head-on competition with Qualcomm, what kind of cockpit products has Intel come up with?
- Dalian Rongke's all-vanadium liquid flow battery energy storage equipment industrialization project has entered the sprint stage before production
- Allegro MicroSystems Introduces Advanced Magnetic and Inductive Position Sensing Solutions at Electronica 2024
- Car key in the left hand, liveness detection radar in the right hand, UWB is imperative for cars!
- After a decade of rapid development, domestic CIS has entered the market
- Aegis Dagger Battery + Thor EM-i Super Hybrid, Geely New Energy has thrown out two "king bombs"
- A brief discussion on functional safety - fault, error, and failure
- In the smart car 2.0 cycle, these core industry chains are facing major opportunities!
- The United States and Japan are developing new batteries. CATL faces challenges? How should China's new energy battery industry respond?
- Murata launches high-precision 6-axis inertial sensor for automobiles
- Ford patents pre-charge alarm to help save costs and respond to emergencies
- New real-time microcontroller system from Texas Instruments enables smarter processing in automotive and industrial applications
- What are the losses in transformers? Explain eddy current, hysteresis, leakage flux, etc.
- [CB5654 Intelligent Voice Development Board Evaluation] CDK development environment construction, re-flashing YoC Intelligent Voice SDK
- Problems with si4010
- [GD32L233C-START Review] Development Board Power Consumption Test
- Release an IoT core board, Tiny OS open source system
- DSP Program Structure Programming Notes
- Qorvo Online Design Conference - 5G Ecosystem and Next-Generation Infrastructure Deployment
- [Voice and vision module based on ESP32S3] Project submission
- MicroPython stm32 branch adds SD card option
- The difference between ELM327 Bluetooth OBD and QBD66 Bluetooth OBD