| With the rapid development of electronic technology,the demand of testers to capture specific events in the test signal and accurately analyze the data information in the protocol signal is also increasing.Therefore,it is very important to develop an oscilloscope platform with a more comprehensive test solution.Based on the 12-bit digital storage oscilloscope platform,this paper adopts the whole machine architecture of "FPGA+PCIe interface+industrial computer",and uses C#language to realize the software design of search and labeling,advanced triggering and decoding analysis functions on the Visual Studio development tool.The details are as follows:1.Search and labeling module: Summarize the search algorithm of the basic point of the waveform,and propose the search algorithm of edge sequence and pulse sequence according to the basic point of the waveform,analyze the characteristics of each search type in detail,and realize a total of 8 search types.Using the waveform zoom function,you can view the waveform details corresponding to the marked events.The interactive function with triggers helps users to quickly set trigger conditions.The markup table saves and displays multiple sets of search results.Users can view event details through the parameter list.2.Advanced trigger module: Two software trigger types and trigger scan functions are designed on the hardware trigger system.The measurement results of some parameters of the waveform are used as constraints to find the measurement points,and the measurement points and trigger points are coincident.A total of 13 parameters are used as the measurement trigger function as the constraints.In the collected long waveforms,it is judged whether each waveform meets the conditions of multi-region association to complete the visual trigger function.Trigger scan automatically trains a series of critical trigger conditions for 6 trigger types: edge,pulse width,glitch,runt,interval and slope,and applies them in sequence,and adjusts the training intensity by increasing or decreasing the value ratio.3.Decoding analysis module: The software loops to obtain the user’s settings on the panel,sends the decoding parameter control command to the hardware through the PCIe interface,controls the decoding of the hardware,and reads the decoded data packets in the hardware RAM back to the software buffer,using The multi-thread technology parses the data packets and displays the analog waveform and the result label in the form of a bus,and finally completes the decoding and analysis of the CAN FD protocol.This paper adopts the idea of multi-thread programming and combines the software modular design to complete the coding of each module.Finally,each module runs stably in the industrial computer and functions correctly. |