Automatic universal measurement and control method based on PXI bus architecture

By adopting the automated general measurement and control method based on the PXI bus architecture in the measurement and control system, the problems of low automation and poor versatility of the existing systems are solved, and efficient and automated testing processes and bandwidth management are realized, reducing costs and human errors.

CN120144381APending Publication Date: 2025-06-13SHANGHAI YUNCHI MEASUREMENT & CONTROL TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510342012.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-03-21
Publication Date
2025-06-13

AI Technical Summary

Technical Problem

The existing measurement and control systems have low automation and poor versatility, resulting in low testing efficiency and high cost, making it difficult to adapt to different types of testing tasks.

Method used

The automated general measurement and control method based on the PXI bus architecture is adopted to establish communication connections between the upper computer and the board, automatically set up and generate measurement and control instructions, collect and process real-time data, generate test reports, and manage bandwidth by monitoring the bus load in real time.

Benefits of technology

It improves the degree of test automation, reduces human error, improves test efficiency, enhances the universality and adaptability of the system, realizes automatic management of bus bandwidth, and reduces costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120144381A_ABST
    Figure CN120144381A_ABST
Patent Text Reader

Abstract

The invention discloses an automatic general measurement and control method based on a PXI bus architecture, and relates to the technical field of measurement and control. According to the method, after data are collected through a board card, the data are transmitted to a main scheduling program through a PXI bus and a universal board card driving program, the main scheduling program automatically preprocesses the data, then comprehensive analysis including data classification, anomaly judgment, deviation degree calculation and hidden danger estimation is carried out, meanwhile, an evaluation trend chart is constructed according to a preset rule, and the evaluation trend chart is analyzed. The test data, the evaluation trend chart and the abnormal level are filled into the pre-constructed report template to generate the test report, report printing and storage in various formats are also supported, links of manual data processing and report generation are reduced, personal errors are reduced, and the test efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of measurement and control, and specifically to an automated general measurement and control method based on the PXI bus architecture. Background Art

[0002] In modern industrial production and scientific research experiments, it is crucial to accurately test and control various devices and systems.

[0003] However, the existing measurement and control systems still have the following deficiencies in actual application: The automation level of the existing systems is not high. From the setting of test parameters, the execution of the test process to the processing of test results and the generation of reports, many links rely on manual operations, which not only easily introduce human errors, but also make it difficult to improve the test efficiency; In addition, the versatility of the systems is poor. Most of them are specially designed for specific devices or specific test requirements and are difficult to flexibly adapt to different types of test tasks. When the test requirements change, it is often necessary to carry out large-scale transformation or even re-development of the entire system, with high costs and low efficiency.

[0004] Therefore, an automated general measurement and control method based on the PXI bus architecture is introduced. Summary of the Invention

[0005] The purpose of the present invention is to solve the problems pointed out in the background art and propose an automated general measurement and control method based on the PXI bus architecture.

[0006] The purpose of the present invention can be achieved through the following technical solutions: An automated general measurement and control method based on the PXI bus architecture, including: Host computer startup: Start the host computer and run the pre-developed main calling program. The main calling program first establishes a communication connection with each board in the PXI chassis, and then sends an initialization instruction for initialization operations to obtain the board ID, description, and initialization status result of each board; Test start: Pre-set test parameters on the test interface of the main calling program. The test parameters include board acquisition channels, sampling frequency, and acquisition time. Before starting the test, the set test parameters are sent to the user for confirmation. After the user confirms, the main calling program generates corresponding measurement and control instructions according to the test parameters; PXI bus communication: According to the communication protocol of the test board, use the pre-written general board driver program to convert the measurement and control instructions into executable control signals, and control the board to collect test data according to the test requirements. During the collection process, the board returns the collected test data to the general board driver program in real time through the PXI bus, and the general board driver program then transmits the test data to the main calling program; Data processing: After the calling program receives the transmitted test data, it performs data preprocessing. After the preprocessing is completed, it comprehensively analyzes the test data collected by the current board, constructs an evaluation trend chart corresponding to the test data collected by the current board; at the same time, the calling program fills the test data, the evaluation trend chart, and the abnormal level into a pre-constructed report template to generate a test report.

[0007] As a preferred embodiment of the present invention, the comprehensive analysis of the test data collected by the current board is specifically as follows: Classify the test data collected by the current board, and assign a unique label after classification; Preset the normal reference range corresponding to each classified test data, extract the test data corresponding to each time point within each label, and match it with the corresponding preset normal reference range. If the test data at a certain time point of each label does not match the normal reference range, it is determined as abnormal data; Calculate the abnormal data and the normal reference range to determine the deviation degree value; extract the groups of deviation degree values obtained from the corresponding labels, and after accumulation, obtain the hidden danger estimation value of each label during the current test process.

[0008] As a preferred embodiment of the present invention, the construction of the evaluation trend chart corresponding to the test data collected by the current board is specifically as follows: Preset the arrangement order corresponding to each classified test data. Starting from the origin of coordinates, arrange the value of the hidden danger estimation value corresponding to the first-order label as the line segment length, and construct a straight line horizontally to the right. Then, starting from the other end point of the straight line, arrange the value of the hidden danger estimation value corresponding to the second-order label as the line segment length, and construct a straight line vertically downward; Similarly, construct the remaining arranged labels by alternately constructing a straight line horizontally to the right and a straight line vertically downward until the construction of the test data collected by the current board is completed, and obtain the evaluation trend chart corresponding to the test data collected by the current board.

[0009] As a preferred embodiment of the present invention, the specific calculation process for determining the deviation degree value is as follows: Identify the determination basis of the abnormal data. If the determination basis is lower than the preset normal reference range, extract the lower limit value of the normal reference range and perform a difference calculation with the abnormal data, and take the absolute value to obtain the deviation degree value; If the determination basis is higher than the preset normal reference range, extract the upper limit value of the normal reference range and perform a difference calculation with the abnormal data to obtain the deviation degree value.

[0010] As a preferred embodiment of the present invention, it further includes: Communication bandwidth adjustment: Monitor the bus load situation in real time and analyze it. Based on the analysis results, selectively trigger management signaling and execute corresponding steps to manage the bus bandwidth.

[0011] As a preferred embodiment of the present invention, monitoring the bus load situation in real time and analyzing it specifically includes: Set the time interval for evaluating the bus load situation. After reaching the set time interval, obtain the transmission rates of each board at each time point within the set time period, and accumulate the transmission rates of each board at the same time point to obtain the total transmission rate; For the total transmission rate at each time point, calculate the proportion of the total transmission rate at each time point in the bus reference bandwidth; obtain the bandwidth proportion at each time point within the set time period.

[0012] As a preferred embodiment of the present invention, selectively trigger management signaling based on the analysis results, specifically including: Preset the allowable highest proportion corresponding to the bandwidth proportion, identify the time points within the set time period where the bandwidth proportion is higher than the allowable highest proportion, and intercept the time segments during which the proportion is higher than the allowable highest proportion. After accumulating each group of time segments, obtain the continuous duration; if the continuous duration is higher than the set threshold duration, trigger management signaling.

[0013] As a preferred embodiment of the present invention, execute corresponding steps to manage the bus bandwidth, specifically including: After triggering the management signaling, identify the preset priorities corresponding to the test instructions of each board; the priorities include high, medium, and low, and different priorities respectively correspond to a limit additional coefficient Pi; i = 1, 2, or 3, corresponding to high, medium, and low priorities respectively; Calculate the average value and standard deviation of the transmission rates of each board within the set time period, denoted as the average rate Ae and the fluctuation rate Aq. At the same time, extract the peak value of the transmission rate of each board within the set time period, denoted as the peak rate Ar; According to the formula Perform weighted calculation on the average rate Ae, fluctuation rate Aq, and peak rate Ar of each board within the set time period, so as to obtain the bandwidth impact index of each board within the set time period ; are respectively the preset reference standard rate and reference fluctuation rate; ga, gb, and gc are respectively the influence weight factors of the average rate Ae, fluctuation rate Aq, and peak rate Ar; For each board, sort in descending order according to the bandwidth impact index and extract the top two boards in the sorting as the bandwidth-limiting boards; Identify the peak value of the bandwidth occupancy ratio within the continuous duration and calculate the difference from the allowed maximum occupancy ratio to obtain the bandwidth limit evaluation value; preset the intervals where each group of evaluation values corresponding to the bandwidth limit evaluation value is located, and each interval of evaluation values corresponds to a bandwidth limit ratio; After determining the bandwidth limit ratio, calculate the difference between the bandwidth impact indices of two groups of bandwidth limit boards to obtain the index difference. If the index difference is less than the preset reference difference, then divide the bandwidth limit ratio by two and use it as the bandwidth limit ratio for the two groups of bandwidth limit boards, and lower the bandwidth limit ratio on the pre-allocated bandwidth ratios of the two groups of bandwidth limit boards; If the index difference is higher than the preset reference difference, then multiply the bandwidth limit ratio by two-thirds, round the result, and use it as the bandwidth impact index of the bandwidth limit board with a higher bandwidth, multiply the bandwidth limit ratio by one-third, round the result, and use it as the bandwidth impact index of the bandwidth limit board with a lower bandwidth.

[0014] Compared with the prior art, the beneficial effects of the present invention are as follows: 1. After the data is collected by the board card in the present invention, the data is transmitted to the main control program through the PXI bus and the general board card driver program. The main control program automatically preprocesses the data, and then conducts comprehensive analysis, including data classification, anomaly judgment, calculation of the deviation degree and hidden danger evaluation. At the same time, an evaluation trend chart is constructed according to the preset rules, and the test data, evaluation trend chart and anomaly level are filled into the pre-constructed report template to generate a test report, which also supports report printing and saving in multiple formats, reducing the links of manual data processing and report generation, reducing human errors, and improving the test efficiency; 2. By real-time monitoring the bus load situation and calculating the bandwidth occupancy ratio at each time point in the present invention, when the continuous duration of the bandwidth occupancy ratio higher than the allowed maximum occupancy ratio exceeds the set threshold, the management signaling is automatically triggered. Subsequently, according to parameters such as the preset priority, average value, standard deviation and peak value of the transmission rate of each board card test instruction, calculate the bandwidth impact index of each board card, sort the board cards according to the bandwidth impact index, select the top two as the bandwidth limit boards, determine the bandwidth limit ratio according to the bandwidth limit evaluation value, and then dynamically adjust the bandwidth limit ratio of the bandwidth limit boards in combination with the bandwidth impact index difference, realizing the automatic management and reasonable allocation of the bus bandwidth, avoiding the impact on the system operation due to bandwidth problems, and further improving the automation level; 3. After the upper computer is started in the present invention, the main control program automatically establishes a communication connection with each board card in the PXI chassis and initializes it to obtain the board card information. During the test, the user sets the test parameters on the main control program interface. After the setting is completed and confirmed by the user, the main control program can automatically generate the measurement and control instructions without manual intervention in the generation process of the test instructions; 4. By utilizing the characteristics of the PXI bus architecture and pre-writing a general board driver, the present invention can adapt to the communication protocols of different test boards, enhancing the adaptability to different types of test tasks, reducing costs, and improving efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] For the convenience of those skilled in the art to understand, the present invention will be further described below in conjunction with the accompanying drawings.

[0016] Figure 1 is the flowchart of the present invention; Figure 2 is the schematic diagram of the evaluation trend chart in the present invention. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0017] The technical solutions of the present invention will be clearly and completely described below in conjunction with the embodiments. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all of the embodiments. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present invention without creative efforts shall fall within the protection scope of the present invention.

[0018] Please refer to Figure 1 shown, the automated general measurement and control method based on the PXI bus architecture includes; Host computer startup: Start the host computer and run the pre-developed main calling program. The main calling program first establishes a communication connection with each board in the PXI chassis, and then sends an initialization instruction for initialization operations to obtain the board ID, description, and initialization status result of each board; Development of the main calling program: Use the C# language to develop the main calling program, and utilize the rich class libraries and tools provided by.NET Framework to build a user interaction interface and implement various functional modules; Specific implementation, taking the NI6259 acquisition card as an example, after the main calling program sends an initialization instruction, the acquisition card performs internal initialization operations. After completion, it returns the board ID (such as 0x1234), board description ("NI 6259 multi-functional data acquisition card"), and initialization status information ("OK"); after the main calling program obtains this information, it is displayed on the software interface to inform the user that the system has successfully recognized and initialized the board; Test start: Pre-set test parameters on the test interface of the main calling program. The test parameters include the board acquisition channel, sampling frequency, and acquisition time. Before starting the test, the set test parameters are sent to the user for confirmation. After the user confirms, the main calling program generates corresponding measurement and control instructions according to the test parameters; for example, collect data from channels 1-4 of the NI6259 acquisition card at a sampling rate of 100 kHz for 10 s; For example, select parameters such as the acquisition channels (e.g., channels 1 - 4), sampling rate (e.g., 100 kHz), acquisition time (e.g., 10 s) of the NI 6259 acquisition card; provide the functions of saving and loading configuration parameters. Users can save common test parameters as configuration files and directly load them during the next test to improve test efficiency; PXI bus communication: According to the hardware characteristics and communication protocols of different boards, write a general board driver using LabVIEW. According to the communication protocol of the test board, convert the measurement and control instructions into executable control signals using the pre-written general board driver, and control the board to collect test data according to the test requirements. During the acquisition process, the board returns the collected test data to the general board driver in real time through the PXI bus, and the general board driver then transmits the test data to the calling program; Communication bandwidth adjustment: Monitor the bus load situation in real time and analyze it. Based on the analysis results, selectively trigger management signaling and execute corresponding steps to manage the bus bandwidth; Specifically: Set the time interval for evaluating the bus load situation. After reaching the set time interval, obtain the transmission rates of each board at each time point within the set time period, and accumulate the transmission rates of each board at the same time point to obtain the total transmission rate; For the total transmission rate at each time point, calculate the proportion of the total transmission rate at each time point in the bus reference bandwidth; the bus reference bandwidth is set to 1 GB / s; obtain the bandwidth proportion at each time point within the set time period; Preset the allowable highest proportion corresponding to the bandwidth proportion, identify the time points within the set time period where the bandwidth proportion is higher than the allowable highest proportion, and intercept the time segments that last longer than the allowable highest proportion. After accumulating each group of time segments, obtain the continuous duration; if the continuous duration is higher than the set threshold duration, trigger the management signaling; After triggering the management signaling, identify the preset priorities corresponding to the test instructions of each board; the priorities include high, medium, and low, and different priorities respectively correspond to a limit additional coefficient Pi; the range of the limit additional coefficient is set between 1.039 - 1.157, and the specific value is set by the technical personnel, and the higher the priority, the lower the limit additional coefficient; i = 1, 2, or 3, corresponding to high, medium, and low priorities respectively; Calculate the average value and standard deviation of the transmission rate of each board within the set time period, denoted as the average rate Ae and the fluctuation rate Aq. At the same time, extract the peak value of the transmission rate of each board within the set time period, denoted as the peak rate Ar; According to the formula Perform weighted calculation on the average rate Ae, fluctuation rate Aq, and peak rate Ar of each board within the set time period, so as to obtain the bandwidth influence index of each board within the set time period ; They are a preset reference standard rate and a reference fluctuation rate respectively; ga, gb, and gc are the influence weight factors of the average rate Ae, the fluctuation rate Aq, and the peak rate Ar respectively; For each board card, according to the bandwidth influence index Sort them from large to small according to the size, and extract the top two board cards in the sorting as the bandwidth-limiting board cards; Identify the peak of the bandwidth occupancy ratio during the continuous duration and calculate the difference from the allowed maximum occupancy ratio to obtain the bandwidth-limiting evaluation value; preset the intervals where each group of evaluation values corresponding to the bandwidth-limiting evaluation value is located, and each interval where each group of evaluation values is located corresponds to a bandwidth-limiting ratio; After determining the bandwidth-limiting ratio, calculate the difference between the bandwidth influence indices of the two groups of bandwidth-limiting board cards to obtain the index difference. If the index difference is less than the preset reference difference, then divide the bandwidth-limiting ratio by two and use it as the bandwidth-limiting ratio of the two groups of bandwidth-limiting board cards, and lower the bandwidth-limiting ratio on the pre-allocated bandwidth ratios of the two groups of bandwidth-limiting board cards; If the index difference is higher than the preset reference difference, then multiply the bandwidth-limiting ratio by two-thirds, round the result, and use it as the bandwidth influence index of the bandwidth-limiting board card with a higher value, multiply the bandwidth-limiting ratio by one-third, round the result, and use it as the bandwidth influence index of the bandwidth-limiting board card with a lower value; It should be noted that by real-time monitoring the bus load situation, accurately calculating the bandwidth occupancy ratio at each time point, and triggering the management signaling according to the preset allowed maximum occupancy ratio and threshold duration, the tense situation of the bus bandwidth can be discovered in time. After triggering the management signaling, differential bandwidth limitation is carried out according to multi-dimensional parameters such as the priority of each board card and the bandwidth influence index, so that the bandwidth resources can be more reasonably allocated, avoiding the problems of communication blockage or resource waste of some board cards caused by unreasonable bandwidth allocation, and improving the use efficiency and overall utilization rate of the bus bandwidth; Preset the priority for the board card test instructions, and set corresponding limiting additional coefficients for different priorities. The limiting additional coefficient of the high-priority board card is lower. When performing bandwidth limitation, the communication requirements of the high-priority board cards are guaranteed first, ensuring that the board cards for key tasks such as safety monitoring and core control can still work normally under the condition of tight bandwidth, improving the reliability and stability of the system, and ensuring the continuity of key services; After determining the bandwidth limit ratio, the boards are sorted according to the size of the bandwidth impact index, and for the top two bandwidth-limited boards, the bandwidth limit ratio is dynamically adjusted according to the bandwidth impact index difference and the preset reference difference. This differentiated bandwidth limit strategy can more scientifically limit boards with different bandwidth impact levels. For boards with similar bandwidth impact indexes, a relatively balanced bandwidth limit ratio is adopted, and for boards with large differences, the bandwidth limit ratio is reasonably allocated according to their impact levels, so that the system can meet the bandwidth limit requirements while minimizing the impact on the normal operation of the boards.

[0019] Data processing: After receiving the transmitted test data, the main calling program performs data preprocessing, including filtering the collected analog signals to remove noise interference; after the preprocessing is completed, a comprehensive analysis is performed on the test data collected by the current board, and an evaluation trend chart corresponding to the test data collected by the current board is constructed; at the same time, the main calling program fills the test data, evaluation trend chart and abnormal level into the pre-built report template to generate a test report; The test report contains information such as test parameters, collected data, and data processing results. Users can choose to print the test report directly at this time, or save the test report as a PDF or Excel file for subsequent viewing and analysis. If the user chooses to save the report, when printing is required, the saved report file can be reopened for printing by starting the print function in the main program; Specifically: S1: Classify the test data collected by the current board and assign unique labels after classification; for example, if the NI6259 acquisition card is used to collect data, the data of different channels can be labeled, such as "Channel 1-voltage" and "Channel 2-temperature". Preset the normal reference range corresponding to each classification test data, extract the test data corresponding to each time point in each label, and match it with the corresponding preset normal reference range. If the test data at a certain time point of each label does not match the normal reference range, it is determined to be abnormal data; Identify the basis for abnormal data. If the basis for determination is lower than the preset normal reference range, extract the lower limit of the normal reference range and calculate the difference between it and the abnormal data, and then obtain the degree of deviation after taking the absolute value; If the judgment basis is higher than the preset normal reference range, the upper limit value of the normal reference range is extracted and the difference between it and the abnormal data is calculated to obtain the deviation degree value; With the help of historical data, theoretical calculations or industry standards, set a normal range for the data corresponding to each tag. For example, for temperature data, the normal temperature range is determined to be 20℃-30℃ according to the working environment and design requirements of the equipment; for voltage data, the normal range is set to 4.5V-5.5V; S2: Extract the deviation degree values of each group obtained by corresponding tags, and after accumulation, obtain the hidden danger estimation values of each tag in the current test process; Accumulate the deviation degree values of each group obtained by corresponding tags to obtain the hidden danger estimation values of each tag in the current test process; this hidden danger estimation value can reflect the abnormal degree of the data corresponding to each tag in the entire test process, providing a quantitative index for subsequent comprehensive evaluation; S3: Preset the arrangement order corresponding to each classification test data. Starting from the coordinate origin, use the value of the hidden danger estimation corresponding to the first-ranked tag as the line segment length, and construct a straight line horizontally to the right. Then, starting from the other endpoint of the straight line, use the value of the hidden danger estimation corresponding to the second-ranked tag as the line segment length, and construct a straight line vertically downward; S4: Similarly to step S3, the remaining arranged tags are constructed by taking turns constructing a straight line horizontally to the right and a straight line vertically downward until the test data collected by the current board is constructed, obtaining the evaluation trend graph corresponding to the test data collected by the current board; Preset the arrangement order corresponding to each classification test data, and construct an evaluation trend graph according to this order. By starting from the coordinate origin and constructing a straight line according to certain rules, the hidden danger estimation values of each tag are displayed in a graphical manner, facilitating the intuitive observation of the abnormal trend of the data and the relationship between each tag; First, determine the arrangement order of each classification test data, which can be set according to actual needs or importance; then, starting from the coordinate origin, use the value of the hidden danger estimation corresponding to the first-ranked tag as the line segment length, and construct a straight line horizontally to the right; then, starting from the other endpoint of this straight line, use the value of the hidden danger estimation corresponding to the second-ranked tag as the line segment length, and construct a straight line vertically downward; for example, assume that "Channel 1 - Voltage" is the first-ranked tag, and its hidden danger estimation value is 5, then starting from the coordinate origin (0, 0), construct a straight line with a length of 5 horizontally to the right; then, assume that "Channel 2 - Temperature" is the second-ranked tag, and its hidden danger estimation value is 3, then starting from the endpoint of the just-mentioned straight line, construct a straight line with a length of 3 vertically downward; According to the method of step S3, operate on the remaining arranged tags in turn, taking turns constructing a straight line horizontally to the right and a straight line vertically downward until all tags are processed, obtaining the evaluation trend graph corresponding to the test data collected by the current board; in this way, the data abnormality situations of all tags can be comprehensively displayed in a graphical form, facilitating users to conduct a comprehensive evaluation and analysis; For the remaining tags, construct a straight line according to their hidden danger valuations in sequence according to the arrangement order; each time a straight line is constructed, use the end point of the previous straight line as the new starting point and follow the rule of alternating horizontally to the right and vertically downwards; for example, the next tag is "Channel 3 - Humidity" with a hidden danger valuation of 4. Since the previous straight line was constructed vertically downwards, a straight line with a length of 4 is constructed horizontally to the right from this end point this time; the next tag is "Channel 4 - Pressure" with a hidden danger valuation of 2, then a straight line with a length of 2 is constructed vertically downwards from the current end point; repeat this process until all tags are constructed, and finally an evaluation trend graph reflecting the abnormal data conditions of each tag is obtained; The preferred embodiments of the present invention disclosed above are only used to help illustrate the present invention. The preferred embodiments do not describe all the details in detail, nor do they limit the invention to only the specific implementation manners. Obviously, according to the content of this specification, many modifications and changes can be made. This specification selects and specifically describes these embodiments in order to better explain the principle and practical application of the present invention, so that those skilled in the art can well understand and utilize the present invention. The present invention is only limited by the claims and their full scope and equivalents.

Claims

1. An automated general measurement and control method based on PXI bus architecture, characterized in that: include: Host computer startup: Start the host computer and run the pre-developed main program. The main program first establishes a communication connection with each board in the PXI chassis, then sends an initialization command to perform initialization operations and obtain the ID, description, and initialization status results of each board. Test start: pre-set test parameters on the test interface of the main calling program. The test parameters include the board acquisition channel, sampling frequency and acquisition time. Before starting the test, the set test parameters are sent to the user for confirmation. After the user confirms, the main calling program generates corresponding measurement and control instructions according to the test parameters. PXI bus communication: According to the communication protocol of the test board, the pre-written universal board driver is used to convert the measurement and control instructions into executable control signals. The control board collects test data according to the test requirements. During the collection process, the board returns the collected test data to the universal board driver in real time through the PXI bus, and the universal board driver then transmits the test data to the main calling program; Data processing: After receiving the transmitted test data, the main calling program performs data preprocessing. After the preprocessing is completed, a comprehensive analysis is performed on the test data collected by the current board card to construct an evaluation trend chart corresponding to the test data collected by the current board card; At the same time, the main calling program fills the test data, evaluation trend chart and abnormal level into the pre-built report template to generate a test report.

2. The automatic general measurement and control method based on PXI bus architecture according to claim 1 is characterized in that: Comprehensively analyze the test data collected by the current board, specifically: The test data collected by the current board is classified and assigned a unique label after classification; Preset the normal reference range corresponding to each classification test data, extract the test data corresponding to each time point in each label, and match it with the corresponding preset normal reference range. If the test data at a certain time point of each label does not match the normal reference range, it is determined to be abnormal data; The abnormal data and the normal reference range are calculated to determine the deviation value; the deviation values ​​of each group obtained by the corresponding label are extracted and accumulated to obtain the hidden danger estimation of each label in the current test process.

3. The automatic general measurement and control method based on PXI bus architecture according to claim 2 is characterized in that: Construct an evaluation trend chart corresponding to the test data collected by the current board, specifically: Preset the arrangement order corresponding to each classification test data, starting from the coordinate origin, arrange the value of the hidden danger estimation corresponding to the first-order label as the line segment length, build a straight line horizontally to the right, and then take the other end point of the straight line as the starting point, arrange the value of the hidden danger estimation corresponding to the second-order label as the line segment length, and build a straight line vertically downward; Similarly, the remaining arranged labels are constructed alternately by constructing a straight line horizontally to the right and a straight line vertically downward until the test data collected by the current board is completed, thereby obtaining an evaluation trend chart corresponding to the test data collected by the current board.

4. The automated general measurement and control method based on the PXI bus architecture according to claim 3 is characterized in that: The specific calculation process for determining the deviation value is as follows: Identify the basis for abnormal data. If the basis for determination is lower than the preset normal reference range, extract the lower limit of the normal reference range and calculate the difference between it and the abnormal data, and then obtain the degree of deviation after taking the absolute value; If the judgment basis is higher than the preset normal reference range, the upper limit value of the normal reference range is extracted and the difference between it and the abnormal data is calculated to obtain the deviation degree value.

5. The automatic general measurement and control method based on PXI bus architecture according to claim 4 is characterized in that: Also includes: Communication bandwidth adjustment: Real-time monitoring and analysis of bus load, selective triggering of management signaling based on the analysis results and execution of corresponding steps to manage bus bandwidth.

6. The automatic general measurement and control method based on PXI bus architecture according to claim 5 is characterized in that: Real-time monitoring and analysis of bus load, specifically: Setting a time interval for evaluating the bus load condition, obtaining the transmission rate of each board at each time point within the set time period after the set time interval is reached, and accumulating the transmission rate of each board at the same time point to obtain the total transmission rate; For the total transmission rate at each time point, calculate the proportion of the total transmission rate at each time point in the bus reference bandwidth; Get the bandwidth ratio at each time point in the set time period.

7. The automatic universal measurement and control method based on PXI bus architecture according to claim 6 is characterized in that: Selective triggering of management signaling based on analysis results, specifically: The maximum allowed percentage corresponding to the preset bandwidth percentage identifies the time point when the bandwidth percentage is higher than the maximum allowed percentage within the set time period, and intercepts the time segment that is higher than the maximum allowed percentage. The duration is obtained by accumulating each group of time segments; if the duration is higher than the set threshold duration, the management signaling is triggered.

8. The automatic universal measurement and control method based on PXI bus architecture according to claim 7 is characterized in that: Perform the corresponding steps to manage the bus bandwidth, specifically: After the management signaling is triggered, the preset priority corresponding to each board test instruction is identified; the priority includes high, medium and low, and different priorities correspond to a restriction additional coefficient Pi; i=1, 2 or 3, corresponding to high, medium and low priority respectively; Calculate the average value and standard deviation of the transmission rate of each board in the set time period, recorded as the average rate Ae and the fluctuation rate Aq, and extract the peak value of the transmission rate of each board in the set time period, recorded as the peak rate Ar; According to the formula The average rate Ae, fluctuation rate Aq and peak rate Ar of each board in the set time period are weighted and calculated to obtain the bandwidth impact index of each board in the set time period. ; They are the preset reference standard rate and reference fluctuation rate respectively; ga, gb and gc are the influence weight factors of average rate Ae, fluctuation rate Aq and peak rate Ar respectively; For each board, according to the bandwidth impact index Sort the cards from largest to smallest, and extract the first two cards as the width-limited cards; Identify the peak value of the bandwidth share within the duration and calculate the difference between it and the maximum allowed share to obtain a bandwidth limit assessment value; preset the intervals of each group of assessment values ​​corresponding to the bandwidth limit assessment value, and each interval of each group of assessment values ​​corresponds to a bandwidth limit ratio; After determining the bandwidth limit ratio, calculate the bandwidth impact index of the two sets of bandwidth limit boards The difference between the two sets of bandwidth limiting boards is used to obtain the index difference. If the index difference is less than the preset reference difference, the bandwidth limiting ratio is divided by two to be used as the bandwidth limiting ratio of the two sets of bandwidth limiting boards, and the bandwidth limiting ratio is adjusted down based on the bandwidth ratio pre-allocated by the two sets of bandwidth limiting boards. If the index difference is higher than the preset reference difference, the bandwidth limit ratio is multiplied by two-thirds and the result is rounded off as the bandwidth impact index. The bandwidth limit ratio of the higher bandwidth limit card is multiplied by one third and the result is rounded off as the bandwidth impact index. The bandwidth limit ratio of the lower bandwidth-limited card.