Non-destructive testing(NDT)technology based on ultrasonic phased array(UPA)is receiving more and more research and application due to its unique advantages.The wizardstyle user interface and ultrasonic image synthesis algorithm are studied,and ultrasonic quantitative calibration algorithm is improved.An NDT software based on UPA is designed and implemented on Windows Embedded System.Firstly,the basic principles of UPA detection technology is studied,and the transmission and reception delay calculation formulas of phase-controlled focusing and phase-controlled deflection in the presence or absence of wedge are derived.Based on this,the scanning and focusing method of UPA are discussed,and the display view of the UPA image is introduced.Secondly,the functional requirements of the software are analyzed using UML use case diagram,UML activity diagram and UML sequence diagram.Thence,the software architecture is designed as a three-tier architecture including user interface layer,business processing layer and model data layer,and an wizard-style and hierarchical design plan for user interface design is proposed.The subsystem modules are divided and the software UML class diagram is drawn to design the code level of the software,the software performance indicators are proposed in the non-functional requirements.Particularly,the ultrasonic image synthesis algorithm and the improvement of the TCG calibration algorithm is focused on.With taking the vertex coordinate transformation first and then texture color mapping being used as general idea,an image rendering scheme is designed based on Direct3 D,including texture color mapping algorithm,gate detection and saturation detection algorithms of A-scan,column refresh algorithm of Bscan and C-scan,data processing algorithm of removing baseline and enveloping in full-focus image,the image vertex transformation algorithm of S-scan sector scan and linear scan with or without wedges,and the vertex transformation algorithm and pixel fusion algorithm of P-scan images.In order to solve the problems of repeated steps and complicated operations in typical TCG calibration algorithms,an improved strategy for maximum coverage and defect point trajectory straightening is proposed,which improves the calibration efficiency under the premise of ensuring the calibration effect.The implementation of each subsystem module is discussed based on the design plan.The test results show that the measurement error of the defect depth is no larger than 3% and the TCG calibration result is reasonable.The USB transmission performance can ensure no frame lost continuously at a rate of 27.25MB/s,the software memory usage is stable at 476 MB and the CPU usage rate is about 60% without memory leak. |