Automatic test system and test control method based on NI-cRIO-LabVIEW cooperation
Through an automatic testing system based on NI-cRIO-LabVIEW collaboration, the problem of separation of measurement and control systems and rigid testing methods in the existing technology is solved, and the measurement and control integration of the tank performance test system is realized and the test efficiency and automation are improved.
Patent Information
- Application Number
- CN202411790863.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-06
- Publication Date
- 2025-04-04
AI Technical Summary
The existing tank performance testing system has problems such as separation of measurement and control systems, single functions, poor scalability, rigid testing and control methods, poor flexibility, and complex testing processes, which lead to omissions that affect the test efficiency.
An automatic testing system based on NI-cRIO-LabVIEW collaboration includes field equipment units, real-time platform units and terminal management units to achieve integrated measurement and control, control and measurement through FPGA units, RT real-time control units and I/O modules that support hot-swap removal, and human-computer interaction and instruction analysis are realized through LabVIEW.
The real-time, accuracy and response speed requirements of control parameters are realized, the accuracy requirements of measurement parameters are met, the flexibility and automation of the test are improved, manual intervention is reduced, and the trial efficiency is comprehensively improved.
Smart Images

Figure CN119756462A_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of tank performance testing, and relates to an automatic testing system and a test control method based on NI-cRIO-LabVIEW collaboration. Background Art
[0002] The piston tank is an important part of the power unit and is widely used in the aerospace field. Its initial starting ability, environmental temperature adaptability and structural reliability are very important performance indicators of the tank.
[0003] In order to fully grasp the various performance indicators of the tank, the following test types are involved: tank performance emission test, which is mainly used to evaluate the emission performance of the tank. According to the different tank models, under different test conditions, the displacement of the piston rod and the quality of the discharged water are measured to obtain the self-draining ability and high-pressure discharge capacity of the tank; the piston reciprocating motion fatigue test is used to measure the fatigue state and performance retention ability of the tank under long-term reciprocating motion; the extreme working condition emission test is used to judge the performance of the tank under extreme working conditions to ensure that the tank can still maintain a stable working state under harsh conditions.
[0004] It can be seen that the tank test requires a wide variety of parameters to be measured and controlled, and the test process is complex, the test types are diverse, the data communication methods are diverse, and high requirements are placed on the real-time, accuracy, and response speed of the measurement and control parameters. The existing test control method requires the cooperation of multiple staff members, which is inefficient and prone to misoperation, affecting the test and increasing economic and time costs; the large number of test types affects the standardized implementation of the test process, has poor flexibility, and is not conducive to the quality control and result evaluation of the test.
[0005] In summary, the shortcomings of the prior art are:
[0006] (1) The measurement and control systems are separated, with single functions and poor scalability;
[0007] (2) The test control method is rigid and inflexible;
[0008] (3) The complicated test process makes it easy for omissions to occur, affecting the test efficiency. Summary of the invention
[0009] The technical problem solved by the present invention is: to overcome the shortcomings of the prior art, to propose an automatic test system and test control method based on NI-cRIO-LabVIEW collaboration, to achieve measurement and control integration, to meet the automatic control requirements of various types of tests, to solve the problems of rigidity and poor flexibility of the automated test process, to completely solve the influence of cumbersome manual intervention on the test, and to comprehensively improve the test efficiency.
[0010] The technical solution of the present invention is: an automatic test system based on NI-cRIO-LabVIEW collaboration, including a field device unit, a real-time platform unit and a terminal management unit;
[0011] The field equipment unit includes a measuring unit and a control unit. The measuring unit is used to collect physical quantity data on site, including a pressure transmitter, a displacement transmitter, a liquid level transmitter and an electronic scale; the control unit is a field execution device, including a solenoid valve and an electric proportional valve, which adjusts the pressure of the test pipeline according to the control instructions;
[0012] The real-time platform unit is used to receive the operation instructions issued by the terminal management unit and issue instructions to control and measure the objects of the field equipment unit, including the FPGA unit, the RT real-time control unit, and the I / O module that supports hot swapping; the FPGA unit is directly associated with the field I / O module, the timing is controlled by the hardware clock division, and the data acquisition runs on the FPGA unit; the RT real-time control unit runs on the NI-cRIO controller to realize the control of various valves;
[0013] The terminal management unit realizes human-computer interaction, command issuance, data display and recording. The unit uses LabVIEW as the development platform.
[0014] Furthermore, the measuring unit adopts a piezoresistive pressure transmitter to measure the pressure value of the gas source, the pressure value after the high-pressure regulating valve, and the pressure value after the low-pressure regulating valve; adopts a laser displacement transmitter to measure the displacement of the piston rod; adopts a contact liquid level transmitter to monitor the water level in the water tank, and gives an alarm when the water level is lower than the set water volume; and adopts an electronic scale to measure the mass of the product before and after drainage and the drainage mass to calculate the discharge efficiency.
[0015] Furthermore, the control unit, the high-pressure discharge air supply circuit and the water tank boost circuit are respectively provided with a high-pressure electrical proportional valve and a low-pressure electrical proportional valve; the solenoid valve includes a water injection valve, a transfer valve, a filling valve, a drain valve, a discharge boost valve, and multiple air release valves.
[0016] Furthermore, the hot-swappable I / O module includes a DO digital output module, an AI analog input module, and an AO analog output module; the DO digital output module controls the solenoid valve, the AI analog input module collects real-time parameters and feedback signals of the electric proportional valve; the AO analog output module controls the opening of the voltage proportional valve.
[0017] Furthermore, the terminal management unit performs real-time communication and data transmission with the real-time platform unit via Ethernet.
[0018] Furthermore, the terminal management unit uses a serial port server as an intermediate bridge to achieve RS232 / 485 communication with the electronic scale in the field device unit.
[0019] Furthermore, the FPGA unit and the RT real-time control unit implement data transmission in a first-in-first-out manner.
[0020] The test control method of the automatic test system based on NI-cRIO-LabVIEW collaboration includes the following steps:
[0021] Write instructions in the Excel table according to the storage format. During the formal test, the user imports the Excel table, and the terminal management unit determines whether the format of the table is standardized. If there is an error, it will prompt. If there is no error, it will prompt to start the test;
[0022] After starting the experiment, do the following:
[0023] ① The terminal management unit parses the sequence number, steps, types, conditions, and actions of the Excel table, performs format analysis, and converts them into general mathematical formulas;
[0024] ② Read the type of the current instruction and determine whether the instruction is a delay waiting setting, a recording setting, a solenoid valve control setting, a proportional valve control setting, a prompt setting or a jump setting;
[0025] ③Enter the corresponding branch and perform the corresponding action;
[0026] ④Judge the execution status of each step, set the completion status of the current step and the execution sequence number;
[0027] ⑤The current step status is completed, the execution sequence number is automatically accumulated, and the next cycle is entered, repeating steps ①~⑤. When all steps are completed, exit.
[0028] Furthermore, the delay of program step execution is set. The delay time is adjustable in seconds. The delay time is set based on the switching between steps and the conditions where the program cannot be read, combined with actual conditions and experience.
[0029] The recording setting is as follows: the recording function records and saves the current value collected by the AI simulation input module in real time; the weight information and initial displacement information need to be measured multiple times at different stages of the test as key data for subsequent calculations;
[0030] The solenoid valve control setting is: setting state 1 or 0 to control the opening or closing of the solenoid valve. The solenoid valves included in the automatic test system are: water injection valve, transfer valve, filling valve, drain valve, discharge boost valve, and multiple air release valves, which are driven by a DO digital output module;
[0031] The proportional valve control setting is: setting two control modes: closed-loop regulation and open-loop regulation, wherein the open-loop regulation setting is: controlling the valve opening by setting the opening value 0% to 100%; the closed-loop regulation setting is: accurately controlling the valve opening according to the pressure value after the valve to achieve precise pressure regulation; the automatic test system includes a high-pressure pressure reducing valve and a low-pressure pressure reducing valve, which are driven by an AO analog output module;
[0032] The prompt setting is: for the key processes that affect the test equipment, set manual interpretation, which requires personnel confirmation before continuing to execute. If an abnormality occurs, terminate the test;
[0033] The jump setting is as follows: if the current condition is met when the current step is executed, a jump is performed; if not, a manual interpretation is performed; during the step-by-step pressurization process, the matching of the current pressure value and the displacement needs to be judged in real time; if the set displacement value is met, the current product is considered to meet the design requirements and automatically jumps to the next step; otherwise, it stops.
[0034] Furthermore, the condition is the basis for judging the execution process of the test step. If the condition is met, the action is executed, otherwise it is not executed; the conditional statement is a mathematical operation, including addition, subtraction, multiplication and division operations, numerical comparison operations and logical judgments. Through the conditional statement setting, it is judged in real time whether the current collected value meets the set condition;
[0035] The action is the instruction output when executing the current step, and there is a one-to-one mapping relationship between the action and the type.
[0036] The beneficial effects of the present invention compared with the prior art are:
[0037] (1) The present invention proposes a tank automatic test system based on a reconfigurable embedded measurement and control platform, which realizes the integration of tank test measurement and control, achieves the real-time, accuracy and response speed requirements of control parameters, and meets the accuracy requirements of measurement parameters.
[0038] (2) The present invention proposes a NI-cRIO-LabVIEW collaborative test control method, which combines the Excel instruction storage function with the LabVIEW parsing function to facilitate user-defined processes and provide a flexible way to implement automated experiments.
[0039] (3) The present invention adopts a cross-platform automated test process, which effectively improves the automation and accuracy of the entire test operation from instruction storage, parsing, interpretation to execution by defining a universal data interface and interpretation method. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] Figure 1 The overall architecture diagram of the automatic test system according to the embodiment of the present invention;
[0041] Figure 2 The following is a flowchart of the automatic test system software program according to an embodiment of the present invention. DETAILED DESCRIPTION
[0042] The present invention proposes an automatic test system based on NI-cRIO-LabVIEW collaboration, which realizes the real-time, accuracy and response speed requirements of control parameters by integrating a measurement system and a control system, and at the same time meets the precision requirements of measurement parameters. The components of the automatic test system include a field device unit, a real-time platform unit and a terminal management unit.
[0043] The field equipment unit is the basis of the entire tank performance test system, including a measuring unit and a control unit. The measuring unit is used to collect physical quantity data on site, including a pressure transmitter, a displacement transmitter, a liquid level transmitter and an electronic scale.
[0044] Specifically, the measuring unit adopts a piezoresistive pressure transmitter to measure the pressure value of the gas source, the pressure value after the high-pressure regulating valve, and the pressure value after the low-pressure regulating valve; adopts a laser displacement transmitter to measure the displacement of the piston rod; adopts a contact liquid level transmitter to monitor the water level in the water tank, and gives an alarm when the water level is lower than the set water volume; and adopts an electronic scale to measure the mass of the product before and after drainage and the drainage mass to calculate the discharge efficiency.
[0045] The control unit includes field execution equipment such as solenoid valves and electrical proportional valves, which can adjust the pressure of the test pipeline according to the control instructions. According to the control accuracy, it is divided into precise control electrical proportional valves and simple control solenoid valves. High-pressure discharge air supply line and water tank booster line are respectively equipped with high-pressure electrical proportional valves and low-pressure electrical proportional valves. The solenoid valve includes water injection valve, transfer valve, filling valve, drain valve, discharge booster valve, air release valve 1, and air release valve 2.
[0046] The real-time platform unit is mainly used to receive the operation instructions issued by the terminal management unit, and issue instructions to control and measure the objects of the field equipment unit, specifically involving the NI-cRIO controller, and 3 types of C series I / O modules that can support hot plugging: DO (Digital Output) digital output module, AI (Analog Output) analog input module, AO (Analog Output) analog output module. Among them, the DO module controls the solenoid valve, the AI module collects real-time parameters and feedback signals of the electric proportional valve; the AO module controls the opening of the voltage proportional valve.
[0047] According to the software function division, the real-time platform unit is further divided into FPGA (Fielded-Programmable-Gate-Array) unit and RT (Real-Time) real-time control unit. Among them, the FPGA unit is directly associated with the field I / O module, the timing is controlled by the hardware clock division, and the response accuracy is at the ns level. The data acquisition of the present invention runs on the FPGA unit, which can realize high-speed real-time acquisition. The RT real-time control unit runs on the NI-cRIO controller, which can realize the control of various valves, and the response speed is at the ms level. The FPGA unit and the RT unit use a first-in-first-out method to realize data transmission, thereby improving data transmission efficiency.
[0048] The terminal management unit realizes the top-level management of the whole system by running the host computer software on the industrial computer. It mainly realizes human-computer interaction, command issuance, data display and recording, etc. The unit uses LabVIEW as the development platform.
[0049] The terminal management unit performs real-time communication and data transmission with the real-time platform unit via Ethernet; in addition, a serial port server is used as an intermediate bridge to realize RS232 / 485 communication with the electronic scale in the field device unit.
[0050] The present invention proposes an automatic test instruction control method in collaboration with NI-cRIO-LabVIEW. Compared with the method of manually setting test instructions, the method uses Excel tables to store instructions, making editing and management more convenient and efficient, reducing manual operation errors and improving the efficiency of the instruction preparation stage. At the same time, the powerful parsing function of LabVIEW is used to process Excel instructions, which can give full play to the advantages of both and improve the flexibility of the test.
[0051] The present invention provides a test control method based on NI-cRIO-LabVIEW collaboration, which realizes the whole test process from instruction storage, analysis, interpretation to execution, and includes the following steps:
[0052] First, write the instructions in the Excel table according to the storage format. During the formal test, the user imports the Excel table, and the terminal management unit determines whether the format of the written table is standardized. If there is an error, a prompt will be given. If it is correct, it will prompt that the test can be started. After clicking Start: ① The terminal management unit parses the sequence number, step, type, condition, and action of the Excel table, performs format analysis, and converts it into a general mathematical formula; ② Determine the type of the current instruction and determine whether the instruction is a delay wait setting (delay), record setting (record), solenoid valve control setting (conventional), proportional valve control setting (open loop / closed loop), prompt setting (prompt), jump setting (GOTO); ③ Enter the corresponding branch and execute the corresponding instruction action; ④ Determine the execution status of each step, set the completion status of the current step and the execution sequence number; ⑤ The step status is completed, the execution sequence number is automatically accumulated, and enter the next cycle, repeating steps ①~⑤). When all steps are executed, exit.
[0053] The present invention will be further described below in conjunction with the accompanying drawings and embodiments.
[0054] Example 1
[0055] In this embodiment, an automatic test system based on NI-cRIO-LabVIEW collaboration is proposed to achieve integrated measurement and control. The automatic test instruction control method based on NI-cRIO-LabVIEW collaboration is used to meet the automatic control requirements of various types of tests, solve the problems of rigid and poor flexibility of automated test processes, completely solve the impact of cumbersome manual intervention on the test, and comprehensively improve the test efficiency.
[0056] like Figure 1 As shown, in this embodiment, an automatic test system based on NI-cRIO-LabVIEW collaboration is proposed, which includes a field device unit, a real-time platform unit, and a terminal management unit.
[0057] In this embodiment, the field equipment unit is the basis of the entire tank performance test system, including a measuring unit and a control unit. The measuring unit is used to collect physical quantity data on site, including a pressure transmitter, a displacement transmitter, a liquid level transmitter and an electronic scale. A piezoresistive pressure transmitter is used to measure the pressure value of the gas source, the pressure value after the high-pressure regulating valve, and the pressure value after the low-pressure regulating valve; a laser displacement transmitter is used to measure the displacement of the piston rod; a contact liquid level transmitter is used to monitor the water level in the water tank, and an alarm is given if the water level is lower than the set water volume; an electronic scale is used to measure the quality of the product before and after drainage and the drainage quality to calculate the discharge efficiency. The control unit includes field execution equipment such as solenoid valves and electrical proportional valves, which can adjust the pressure of the test pipeline according to the control instructions. According to the control accuracy, it is divided into a precisely controlled electrical proportional valve and a simply controlled solenoid valve. A high-pressure electrical proportional valve and a low-pressure electrical proportional valve are respectively set for the high-pressure discharge air supply line and the water tank booster line. The solenoid valve comprises a water injection valve, a transfer valve, a filling valve, a liquid discharge valve, a discharge boost valve, an air release valve 1 and an air release valve 2.
[0058] In this embodiment, the real-time platform unit is mainly used to receive operation instructions issued by the terminal management layer, and issue instructions to control and measure objects in the field device layer, specifically involving NI-cRIO controllers, and 3 types of C series I / O modules that can support hot plugging: DO (Digital Output) digital output module, AI (Analog Output) analog input module, AO (Analog Output) analog output module. Among them, the DO module controls the solenoid valve, the AI module collects real-time parameters and feedback signals of the electric proportional valve; the AO module controls the opening of the voltage proportional valve.
[0059] In this embodiment, according to the software function division, the real-time platform unit is specifically divided into an FPGA (Fielded-Programmable-Gate-Array) unit and an RT (Real-Time) unit. Among them, the FPGA unit is directly associated with the field I / O module, the timing is controlled by the hardware clock division, and the response accuracy is at the ns level. The data acquisition of the present invention runs on the FPGA unit, which can realize high-speed real-time acquisition. The real-time control unit runs on the NI-cRIO controller, which can realize the control of various valves, and the response speed is at the ms level. The FPGA unit and the RT unit use a first-in-first-out method to realize data transmission in the direct memory access process, thereby improving data transmission efficiency.
[0060] In this embodiment, the terminal management unit implements the top-level management of the entire system by running the host computer software on the industrial computer. It mainly implements human-computer interaction, command issuance, data display and recording, etc. The unit uses LabVIEW as the development platform.
[0061] In this embodiment, the terminal management unit performs real-time communication and data transmission with the real-time platform unit via Ethernet; in addition, a serial port server is used as an intermediate bridge to achieve RS232 / 485 communication with the electronic scale in the field device unit.
[0062] like Figure 2 As shown in the figure, it is a flow chart of the automatic test system software program. The Excel table can be customized according to the test requirements to achieve the minimum steps of test execution, and then different types of tests can be completed through the combination of each step. The method of storing instructions in Excel includes creating specific steps in the table, where the instruction creation of the table includes sequence number, step, type, condition and action.
[0063] The serial number is an Arabic numeral, starting from 1 and increasing by 1 each time an action is performed.
[0064] A step is the smallest execution unit of a decomposed action instruction, and is accumulated starting from step 1. There is a corresponding relationship between the sequence number and the step.
[0065] Types are different kinds of test steps, including:
[0066] 1) Prompt setting: For key processes that affect the test equipment, set up manual interpretation, which requires personnel confirmation procedures before continuing. If an abnormality occurs, the test will be terminated.
[0067] 2) Delay waiting setting: set the delay of program step execution. The delay time is adjustable in seconds. The delay time is set according to the switching between steps and the conditions where the program cannot be read, combined with actual conditions and experience;
[0068] 3) Recording settings: The recording function can record and save the current values collected by the AI module in real time. The weight information and initial displacement information need to be measured multiple times at different stages of the test as key data for subsequent calculations.
[0069] 4) Solenoid valve control setting: Program setting 1 or 0 to control the opening or closing of the solenoid valve. The automatic test equipment contains 7 types of solenoid valves: water injection valve, transfer valve, filling valve, drain valve, discharge boost valve, air release valve 1 and air release valve 2. This type of solenoid valve is driven by the DO module.
[0070] 5) Proportional valve control settings: The program sets two control modes: closed-loop regulation and open-loop regulation. Among them, ① open-loop setting: control the valve opening by setting the opening value (0%~100%); ② closed-loop setting: accurately control the valve opening according to the pressure value after the valve to achieve precise pressure regulation. The automatic test equipment includes a high-pressure pressure reducing valve and a low-pressure pressure reducing valve, which are driven by the AO module.
[0071] 6) GOTO setting: If the current conditions are met when this step is executed, it will jump. If not, it will be manually judged. During the step-by-step pressurization process, it is necessary to judge the matching of the current pressure value and displacement in real time. If the set displacement value is met, it is considered that the current product meets the design requirements and automatically jumps to the next step. Otherwise, it stops.
[0072] The condition is the basis for judging the execution process of the test step. If the condition is met, the action will be executed, otherwise it will not be executed. The conditional statement is a mathematical operation, including simple mathematical operations (addition, subtraction, multiplication and division), numerical comparison (greater than or equal to, greater than, equal to, less than or equal to, less than) and logical judgment (AND or NOT). Through the conditional statement setting, it can be judged in real time whether the current acquisition value meets the set conditions.
[0073] The action is the instruction output when executing the step. There is a one-to-one mapping relationship between actions and types.
[0074] 1) Prompt setting: When this step is executed, a dialog box for action setting content will pop up.
[0075] 2) Delay setting: The action setting format corresponding to the delay setting is Time = X. X is an Arabic numeral, and a delay of X seconds will be performed when executing the delay waiting step.
[0076] 3) Recording settings: During the test, a total of 5 masses need to be recorded, namely the initial mass of the product, the mass before filling, the mass after filling, the discharge mass, and the final mass of the product. They are named M1, Q1, Q2, Q3, and M2 respectively. Recording statement: M1=1, which means that the current electronic scale mass is recorded in the M1 frame of the program interface, that is, the initial mass of the product is recorded, and the others are similar.
[0077] 4) General settings (solenoid valve control settings): Program settings 1 or 0 to control the opening or closing of the solenoid valve. The seven solenoid valves, namely, the water injection valve, transfer valve, filling valve, drain valve, discharge boost valve, air release valve 1 and air release valve 2, are named SV_01, SV_02, SV_03, SV_04, SV_05, SV_06 and SV_07 respectively. SV_01=1 means that the solenoid water injection valve is open; SV_01=0 means that the solenoid water injection valve is closed. The pressurization, discharge, filling, etc. of the test process are controlled by the opening and closing of the solenoid valve.
[0078] 5) Proportional valve control settings:
[0079] There are two control methods for electric proportional valves, open-loop regulation and closed-loop regulation, which are set as open-loop and closed-loop respectively in the table type.
[0080] ① Open loop setting: Control the valve opening of the electric proportional valve by setting the digital opening value, where the digital opening value 0~1 represents the opening 0%~100%. PRV_01 represents the high-voltage electric proportional valve, PRV_02 represents the low-voltage electric proportional valve, and the action instruction is set: PRV_01=0.35, which means that the opening of the high-voltage electric proportional valve is adjusted to 35%.
[0081] ② Closed loop setting: According to the valve back pressure value, the electric proportional valve can achieve accurate closed loop pressure regulation. The valve back pressure of the high pressure reducing valve PRV_01 is PT_02, and the valve back pressure of the low pressure reducing valve PRV_02 is PT_03. PT_02 and PT_03 are collected through the AI module. Set the action command: PRV_01 = 0.3, which means that the valve back pressure PT_02 is adjusted to 0.3MPa by adjusting the proportional valve opening.
[0082] 6) GOTO setting: When the setting conditions are met, jump to the corresponding statement. GOTO=32 means jump to sequence number 32 and execute step 32. By setting the jump statement, logical judgment and loop setting can be flexibly implemented to achieve effective control of test errors.
[0083] The software program interface of the automatic test system can be set as follows: the user front panel trigger includes 5 events: import, start, jump out, pause, and stop. First, write the instructions in the Excel table according to the storage format. During the formal test, the user imports the Excel table, and the terminal management unit determines whether the format of the written table is standardized. If there is an error, a prompt will be given. If it is correct, it will prompt that the test can be started. After clicking Start: ① The terminal management unit parses the sequence number, step, type, condition, and action of the Excel table, performs format analysis, and converts it into a general mathematical formula; ② Determine the type of the current instruction and determine whether the instruction is a delay wait setting (delay), record setting (record), solenoid valve control setting (conventional), proportional valve control setting (open loop / closed loop), prompt setting (prompt), jump setting (GOTO); ③ Enter the corresponding branch and execute the corresponding instruction; ④ Determine the execution status of each step, set the completion status of the current step and the execution sequence number; ⑤ The status of the step is completed, the execution sequence number is automatically accumulated, and enter the next cycle, repeating steps ①~⑤). When all steps are executed, exit. When the automatic program is being executed, the user can trigger the jump, stop, and pause commands to terminate or exit the automatic program.
[0084] Although the present invention has been disclosed as above in the form of a preferred embodiment, it is not intended to limit the present invention. Any person skilled in the art may make possible changes and modifications to the technical solution of the present invention by using the methods and technical contents disclosed above without departing from the spirit and scope of the present invention. Therefore, any simple modifications, equivalent changes and modifications made to the above embodiments based on the technical essence of the present invention without departing from the content of the technical solution of the present invention shall fall within the protection scope of the technical solution of the present invention.
Claims
1. The automatic test system based on NI-cRIO-LabVIEW collaboration is characterized by: It includes field equipment unit, real-time platform unit and terminal management unit; The field equipment unit includes a measuring unit and a control unit. The measuring unit is used to collect physical quantity data on site, including a pressure transmitter, a displacement transmitter, a liquid level transmitter and an electronic scale; the control unit is a field execution device, including a solenoid valve and an electric proportional valve, which adjusts the pressure of the test pipeline according to the control instructions; The real-time platform unit is used to receive the operation instructions issued by the terminal management unit and issue instructions to control and measure the objects of the field equipment unit, including the FPGA unit, the RT real-time control unit, and the I / O module that supports hot swapping; the FPGA unit is directly associated with the field I / O module, the timing is controlled by the hardware clock division, and the data acquisition runs on the FPGA unit; the RT real-time control unit runs on the NI-cRIO controller to realize the control of various valves; The terminal management unit realizes human-computer interaction, command issuance, data display and recording. The unit uses LabVIEW as the development platform.
2. The automatic test system based on NI-cRIO-LabVIEW collaboration according to claim 1, characterized in that: The measuring unit adopts a piezoresistive pressure transmitter to measure the pressure value of the gas source, the pressure value after the high-pressure regulating valve, and the pressure value after the low-pressure regulating valve; adopts a laser displacement transmitter to measure the displacement of the piston rod; adopts a contact liquid level transmitter to monitor the water level in the water tank, and gives an alarm when the water level is lower than the set water volume; and adopts an electronic scale to measure the mass of the product before and after drainage and the drainage mass to calculate the discharge efficiency.
3. The automatic test system based on NI-cRIO-LabVIEW collaboration according to claim 1, characterized in that: The control unit, the high-pressure discharge air supply circuit and the water tank boost circuit are respectively provided with a high-pressure electrical proportional valve and a low-pressure electrical proportional valve; the solenoid valve includes a water injection valve, a transfer valve, a filling valve, a drain valve, a discharge boost valve, and multiple air release valves.
4. The automatic test system based on NI-cRIO-LabVIEW collaboration according to claim 1, characterized in that: The hot-swappable I / O module includes a DO digital output module, an AI analog input module, and an AO analog output module; the DO digital output module controls the solenoid valve, the AI analog input module collects real-time parameters and feedback signals of the electric proportional valve; and the AO analog output module controls the opening of the voltage proportional valve.
5. The automatic test system based on NI-cRIO-LabVIEW collaboration according to claim 1, characterized in that: The terminal management unit performs real-time communication and data transmission with the real-time platform unit via Ethernet.
6. The automatic test system based on NI-cRIO-LabVIEW collaboration according to claim 1, characterized in that: The terminal management unit uses a serial port server as an intermediate bridge to achieve RS232 / 485 communication with the electronic scale in the field device unit.
7. The automatic test system based on NI-cRIO-LabVIEW collaboration according to claim 1, characterized in that: The FPGA unit and the RT real-time control unit use a first-in-first-out method to implement data transmission.
8. The test control method of the automatic test system based on NI-cRIO-LabVIEW collaboration according to any one of claims 1 to 7, characterized in that: The following steps are involved: Write instructions in the Excel table according to the storage format. During the formal test, the user imports the Excel table, and the terminal management unit determines whether the format of the table is standardized. If there is an error, it will prompt. If there is no error, it will prompt to start the test; After starting the experiment, do the following: ① The terminal management unit parses the sequence number, steps, types, conditions, and actions of the Excel table, performs format analysis, and converts them into general mathematical formulas; ② Read the type of the current instruction and determine whether the instruction is a delay waiting setting, a recording setting, a solenoid valve control setting, a proportional valve control setting, a prompt setting or a jump setting; ③Enter the corresponding branch and perform the corresponding action; ④Judge the execution status of each step, set the completion status of the current step and the execution sequence number; ⑤The current step status is completed, the execution sequence number is automatically accumulated, and the next cycle is entered, repeating steps ①~⑤. When all steps are completed, exit.
9. The test control method according to claim 8, characterized in that: The delay waiting setting is as follows: setting the delay of program step execution, the delay time is adjustable, the delay unit is seconds, and the delay time is set according to the switching between each step and the condition that the program cannot be read, combined with actual conditions and experience; The recording setting is as follows: the recording function records and saves the current value collected by the AI simulation input module in real time; the weight information and initial displacement information need to be measured multiple times at different stages of the test as key data for subsequent calculations; The solenoid valve control setting is: setting state 1 or 0 to control the opening or closing of the solenoid valve. The solenoid valves included in the automatic test system are: water injection valve, transfer valve, filling valve, drain valve, discharge boost valve, and multiple air release valves, which are driven by a DO digital output module; The proportional valve control setting is: setting two control modes: closed-loop regulation and open-loop regulation, wherein the open-loop regulation setting is: controlling the valve opening by setting the opening value 0% to 100%; the closed-loop regulation setting is: accurately controlling the valve opening according to the pressure value after the valve to achieve precise pressure regulation; the automatic test system includes a high-pressure pressure reducing valve and a low-pressure pressure reducing valve, which are driven by an AO analog output module; The prompt setting is: for the key processes that affect the test equipment, set manual interpretation, which requires personnel confirmation before continuing to execute. If an abnormality occurs, terminate the test; The jump setting is as follows: if the current condition is met when the current step is executed, a jump is performed; if not, a manual interpretation is performed; during the step-by-step pressurization process, the matching of the current pressure value and the displacement needs to be judged in real time; if the set displacement value is met, the current product is considered to meet the design requirements and automatically jumps to the next step; otherwise, it stops.
10. The test control method according to claim 8, characterized in that: The condition is the basis for judging the execution process of the test step. If the condition is met, the action is executed, otherwise it is not executed; the conditional statement is a mathematical operation, including addition, subtraction, multiplication and division operations, numerical comparison operations and logical judgment. Through the conditional statement setting, it is judged in real time whether the current collected value meets the set condition; The action is the instruction output when executing the current step, and there is a one-to-one mapping relationship between the action and the type.