CN103677815A - Method for generating program to automatically test electrical performance of spacecraft low-frequency cable - Google Patents

Method for generating program to automatically test electrical performance of spacecraft low-frequency cable Download PDF

Info

Publication number
CN103677815A
CN103677815A CN201310629248.XA CN201310629248A CN103677815A CN 103677815 A CN103677815 A CN 103677815A CN 201310629248 A CN201310629248 A CN 201310629248A CN 103677815 A CN103677815 A CN 103677815A
Authority
CN
China
Prior art keywords
electric connector
list
cable
information
test
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201310629248.XA
Other languages
Chinese (zh)
Other versions
CN103677815B (en
Inventor
徐新宇
杨猛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Satellite Manufacturing Factory Co Ltd
Original Assignee
Beijing Satellite Manufacturing Factory Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Satellite Manufacturing Factory Co Ltd filed Critical Beijing Satellite Manufacturing Factory Co Ltd
Priority to CN201310629248.XA priority Critical patent/CN103677815B/en
Publication of CN103677815A publication Critical patent/CN103677815A/en
Application granted granted Critical
Publication of CN103677815B publication Critical patent/CN103677815B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses a method for generating a program to automatically test electrical performance of a spacecraft low-frequency cable. Currently, electrical performance testing work of spacecraft low-frequency cable products is in a stage of manual testing all the time, so that testing efficiency is low, testing quality is difficult to guarantee, and requirements of actual work cannot be met. A software method is utilized to convert a contact list into a correct testing program, so that manual intervention is reduced to smallest extent, requirements on high-efficiency, high-reliability and full-coverage testing are met, core problems and difficulties in the process of testing of the spacecraft low-frequency cable are solved, electrical performance quality of the spacecraft low-frequency cable products is guaranteed, and related automation technology and equipment are enabled to be capable of being truly applied in developing of the spacecraft low-frequency cable products.

Description

A kind of spacecraft low-frequency cable electrical property autotest program generation method
Technical field
The present invention relates to a kind of autotest program generation method, relate in particular to a kind of spacecraft low-frequency cable electrical property autotest program generation method, belong to spacecraft low-frequency cable product field of automatic testing.
Background technology
Spacecraft low-frequency cable net is the visual plant of realizing the functions such as electric power conveying between each subsystem instrument and equipment of spacecraft or uphole equipment, command, message exchange, " blood vessel " and " neural network " in star, boat system, the quality of spacecraft low-frequency cable net quality is most important for the combination property of spacecraft, determining the success or failure of aerial mission, particularly, to manned task, be related to spacefarer's life.
Yet the electric performance test work of spacecraft low-frequency cable net product at present rests on the stage of test manually always, by two people or many people, coordinated, the information such as contrast drawing, connection table, core line are used the conventional tool pointwises such as megohmmeter and hummer to detect.Testing efficiency is low, speed is slow, working strength is large, easily make people tired, very easily cause undetected, false retrieval, also cannot obtain concrete measured value simultaneously, without actual observation record, manual detection is easily subject to the impact of personal mood in addition, and test mass is difficult to guarantee, cannot have met spacecraft develops task demand for development.Ge population unit, to Product Acceptance Review stage, general assembly and whole star test phase, all needs a large amount of low-frequency cable products to carry out electric performance test, and these work all mainly rely on manual completing, and workload is huge.
Development along with China's aerospace industry, during " 12 ", development and the test assignment of spacecraft low-frequency cable net product more will be doubled and redoubled, and continuing to adopt manual test mode to become affects the bottleneck that development task completes smoothly, must adopt automatic test means to address this problem.
Aviation at present, military project, automobile, the other industries such as locomotive generally adopt ripe ATE (automatic test equipment) to complete the test job of low-frequency cable product.But in aerospace system, though through repeatedly making great efforts, rarely has the case of ripe scheme or successful implementation and application.Tracing it to its cause, is mainly because existing equipment and scheme are difficult to meet feature and the test request of spacecraft cable system product.Testing apparatus on market and method of testing be generally only applicable in enormous quantities, on a small scale, simple in structure, the simple situation of annexation, and be difficult to adapt to the feature of space product and development task.By analysis, the difficulty of spacecraft cable system product application automatic test technology mainly contains these points:
(1) large, the complex structure of spacecraft cable scale, high to the Capability Requirement of equipment
Spacecraft cable has fairly large conventionally, and for example the electric connector quantity of a leader cable of certain model satellite has surpassed 300; Whole star, ship low-frequency cable net product are comprised of tens to hundreds of cables conventionally, have both comprised through-type cable one to one, also comprise tens and even the tree-shaped cable system of up to a hundred branches, and this power of test to testing apparatus has proposed high requirement.
(2) electric connector specifications and models are numerous, few in batches, cause switching difficulty
Through rough estimates, the electric connector specifications and models that each model cable system product is used have reached hundreds of, have both comprised domestic electric connector, also comprise import electric connector; Also comprise in addition a large amount of contact pins, jack, weld tabs, free end, the non-electric-connecting device components and parts such as travel switch, transit case and grafting process are complicated.
In addition, because the interface of product electric connector is numerous, and testing apparatus is often used single face, therefore test must be used switching tooling automatically, and due to the singularity of space product, the batch of cable product is minimum, cost is high to manufacture special tooling, and cannot meet the test request of multiple product, and making universal fixture, switching scheme is difficult to determine, switching tooling enormous amount, be difficult to management, cost is also difficult to control.
(3) electric connecting relation is complicated, and design document form is numerous, and data volume is huge, causes generating test procedure difficulty:
, also there is the annexation crossing one another between a plurality of electric connectors in the special circumstances such as the electric connecting relation of spacecraft cable system is complicated, and data volume is huge, not only has a large amount of short circuits, and body contact, connects shielding, two point two-wire.How to convert various annexations to correct test procedure is a difficult problem.
Therefore, be badly in need of the problems that a kind of method thoroughly solves automatic establishment test procedure, realize spacecraft low-frequency cable electrical property and automatically test, automatic test technology can be really applied in the development work of spacecraft low-frequency cable.
Summary of the invention
The technical matters that the present invention solves is: overcome the deficiencies in the prior art, a kind of spacecraft low-frequency cable electrical property autotest program generation method is provided, the present invention can generate fast the test procedure of specifying cable within several seconds or tens of seconds, meet the requirement of high-level efficiency, highly reliable, all standing test, guaranteed the electrical property quality of spacecraft low-frequency cable product.
Technical scheme of the present invention is: a kind of spacecraft low-frequency cable electrical property autotest program generation method, is characterized in that comprising the steps:
(1) according to the design of various different-formats contact list file, generate the test contact table that XML file layout represents, test mainly comprises information that electric connector under tested cable information, tested cable is right and the wiring relation data under every pair of electric connector with contact table, and wherein the right information of each electric connector comprises top electric connector information and terminal electric connector information;
(2) according to test, with contact table, extract electric connector to information, obtain electric connector list;
(3) according to electric connector list, generate electric connector library file and transit cable library file;
(4) according to test, with contact table, generate test data file;
(5) in testing apparatus, carry out the test procedure being formed by electric connector library file, transit cable library file and test data file, realize spacecraft low-frequency cable electrical property and automatically test.
In described step (2), according to test, with contact table, extract electric connector to information, the step that obtains electric connector list is as follows:
(2.1) extract the right information of electric connectors all in contact table for test, form an electric connector to list, in this list, comprise n element, n be electric connector to sum, each element comprises four column informations: top electric connector code name, top electric connector specification, terminal electric connector code name, terminal electric connector specification;
(2.2) set up an empty electric connector list, the element in list comprises two column informations: electric connector code name and electric connector specification, and the data in list do not repeat;
(2.3) information of the electric connector obtaining in extraction (2.1) to i element in list, the initial value of i is 1;
(2.4) if the code name of the top electric connector of i element and terminal electric connector and specification are all empty, the value of i is added to 1, if i≤n, execution step (2.3)-(2.4), if i>n enters (2.5); Otherwise code name information and the specification information of electric connector are added in the electric connector list of setting up in (2.2), the value of i is added to 1, if i≤n, execution step (2.3)-(2.4), if i>n enters (2.5);
(2.5) finish, obtain electric connector list.
As follows according to the implementation method of electric connector list generation electric connector library file in described step (3):
(3.1) utilize DOM technology to set up Document object, utilize Document object to set up the root node of dom tree;
(3.2) extract the specification information of j electric connector in the electric connector list obtaining in claim 2, under the root node of dom tree for this electric connector is set up electric connector node, the specification information that the name attribute of this electric connector node is this electric connector is set, and the initial value of j is 1;
(3.3) what according to the specification of j electric connector, obtain this kind of specification electric connector connects period list information, and the element connecing in period list comprises a column information: connect period;
(3.4) read connecing k in period list and connecing period of j electric connector, the initial value of k is 1, and under j electric connector node, being that k is individual connects period and set up child node, and the name attribute that this contact work song node is set is for connecing period; The value of k is added to 1, if the value of k is less than or equal to the sum that connects element in period list, repeated execution of steps (3.4), otherwise carry out (3.5);
(3.5) under j electric connector node, increase body contact point child node and respective attributes;
(3.6) value of j is added to 1, if the value of j is less than or equal to the sum of element in the electric connector list obtaining in claim 2, execution step (3.2)-(3.6), otherwise carry out (3.7);
(3.7) under the root node of dom tree, add the node of change-over terminal electric connector, the specification title that is change-over terminal electric connector by its name setup of attribute, the period information that connects of adding change-over terminal electric connector under change-over terminal electric connector node;
(3.8) dom tree of generation is converted into file, this document is electric connector library file.
As follows according to the implementation method of electric connector list generation transit cable library file in described step (3):
(4.1) utilize DOM technology to set up Document object, and with Document object, set up the root node of dom tree;
(4.2) extract code name and the specification information of m electric connector in the electric connector list obtaining in claim 2, according to electric connector specification, obtain this kind of corresponding transit cable list of specification electric connector, from transit cable list, find out the transit cable that first " is not taken ", the initial value of m is 1;
(4.3) transit cable establishment transit cable node " not taken " for first under the root node of dom tree, the code name of the relevant information of this transit cable and m electric connector and specification information are write in the respective attributes of transit cable node, and the state that this transit cable is set is " taking ";
(4.4) according to the specification of m electric connector, obtain the number of contacts of this specification electric connector, and according to the number of contacts of this specification electric connector, calculate the number d of the corresponding change-over terminal electric connector of current transit cable;
(4.5) under transit cable node, set up successively each change-over terminal electric connector child node, its sequence number is respectively 1 to d;
(4.6) value of m is added to 1, if the value of m is less than or equal to the element sum in the electric connector list obtaining in claim 2, execution step (4.2)-(4.6), otherwise carry out (4.7);
(4.7) dom tree of generation is converted into file, this document is transit cable library file.
In described step (4.4), according to the number of contacts of this specification electric connector, calculate the implementation method of number of the corresponding change-over terminal electric connector of current transit cable as follows:
a=(p+1)/c
b=(p+1)%c
If b=0, the number d=a of the corresponding change-over terminal electric connector of so current transit cable, otherwise d=a+1;
Wherein, p represents the number of contacts of this specification electric connector, and c represents the number of contacts of change-over terminal electric connector, by transit cable, is determined, calculating is divided exactly in "/" representative, and " % " represents complementation calculating.
The implementation method that generates test data file according to test with contact table in described step (4) is as follows:
(6.1) from testing with extracting tested cable information contact table, form the list of tested cable code name; And create empty test data file;
(6.2) from the list of tested cable code name, extract the information of x root cable, the initial value of x is 1, writes the information such as testing parameter data and cable code name in test data file, and wherein testing parameter data is stipulated by the design document of tested cable;
(6.3) set up an empty test connection relation list, the element in list comprises four column informations, is respectively that top electric connector code name, top connect period, terminal electric connector code name, terminal and connects period; Set up an empty use and connect period list, the element in list only comprises row and connects period information;
(6.4) from test with obtaining electric connector under x root cable contact table to list;
(6.5) from this electric connector to extracting y list to all annexations under top electric connector and terminal electric connector, form y to the connection relation list under top electric connector and terminal electric connector, the initial value of y is 1;
(6.6) from y to extracting z annexation in the connection relation list top electric connector and terminal electric connector, according to top and terminal annexation and the electric connector information of short circuit relation, top and the terminal contact of contact separately, extract top electric connector code name, top and connect period, terminal electric connector code name, terminal and connect period and add in test connection relation list; Top in z annexation and terminal contact are all joined to have used simultaneously and connect in period list; The initial value of z is 1;
(6.7) value of z is added to 1, if the value of z is less than or equal to y to the element sum in the connection relation list under top electric connector and terminal electric connector, performs step (6.6)-(6.7), otherwise carry out (6.8);
(6.8) value of y is added to 1, if the electric connector that the value of y is less than or equal under x root cable is total to the element in list, execution step (6.5)-(6.8), otherwise carry out (6.9);
(6.9) the test connection relation list generating according to step (6.5)-(6.8) is set up figure, utilizes graph traversal method to obtain the incoherent period list that connects;
(6.10) what obtain each electric connector under x root cable completely connects period list, checks whether each element wherein appears to have used to connect in period list, and what obtain all electric connectors untappedly connects period list; Incoherent period list and the untapped complete insulation meter that has formed x root cable together with period list that connects of connecing;
(6.11) the annexation data of x root cable and insulation meter data are write in test data file;
(6.12) value of x is added to 1, if the value of x is less than or equal to the element sum of tested cable list, execution step (6.2)-(6.12), otherwise carry out (6.13);
(6.13) finish, obtain complete test data file.
The present invention compared with prior art has following beneficial effect: the electric performance test work of spacecraft low-frequency cable product rests on the stage of test manually always, and testing efficiency is low, and test mass is difficult to guarantee, is difficult to meet the needs of real work.The proposition of the invention a kind of test procedure automatic generating method of all standing type, meet the requirement of high-level efficiency, highly reliable, all standing test, key problem and difficulty in spacecraft low-frequency cable test process have been solved, guaranteed the electrical property quality of spacecraft low-frequency cable product, made in the development work that is applied in spacecraft low-frequency cable product that relevant automatic technology and equipment can be real.
Accompanying drawing explanation
Fig. 1 is the inventive method process flow diagram.
Embodiment
As shown in Figure 1, the invention provides a kind of spacecraft low-frequency cable electrical property autotest program generation method, comprise the steps:
(1) according to the design of various different-formats contact list file, generate the test contact table that XML file layout represents, test mainly comprises information that electric connector under tested cable information, tested cable is right and the wiring relation data under every pair of electric connector with contact table, and wherein the right information of each electric connector comprises top electric connector information and terminal electric connector information;
(2) according to test, with contact table, extract electric connector to information, obtain electric connector list;
Its step is as follows:
(2.1) extract the right information of electric connectors all in contact table for test, form an electric connector to list, in this list, comprise n element, n be electric connector to sum, each element comprises four column informations: top electric connector code name, top electric connector specification, terminal electric connector code name, terminal electric connector specification;
(2.2) set up an empty electric connector list, the element in list comprises two column informations: electric connector code name and electric connector specification, and the data in list do not repeat;
(2.3) information of the electric connector obtaining in extraction (2.1) to i element in list, the initial value of i is 1;
(2.4) if the code name of the top electric connector of i element and terminal electric connector and specification are all empty, the value of i is added to 1, if i≤n, execution step (2.3)-(2.4), if i>n enters (2.5); Otherwise code name information and the specification information of electric connector are added in the electric connector list of setting up in (2.2), the value of i is added to 1, if i≤n, execution step (2.3)-(2.4), if i>n enters (2.5);
(2.5) finish, obtain electric connector list.
(3) according to electric connector list, generate electric connector library file and transit cable library file;
The implementation method that generates electric connector library file according to electric connector list is as follows:
(3.1) utilize DOM technology to set up Document object, utilize Document object to set up the root node of dom tree;
(3.2) extract the specification information of j electric connector in the electric connector list obtaining in claim 2, under the root node of dom tree for this electric connector is set up electric connector node, the specification information that the name attribute of this electric connector node is this electric connector is set, and the initial value of j is 1;
(3.3) what according to the specification of j electric connector, obtain this kind of specification electric connector connects period list information, and the element connecing in period list comprises a column information: connect period;
(3.4) read connecing k in period list and connecing period of j electric connector, the initial value of k is 1, and under j electric connector node, being that k is individual connects period and set up child node, and the name attribute that this contact work song node is set is for connecing period; The value of k is added to 1, if the value of k is less than or equal to the sum that connects element in period list, repeated execution of steps (3.4), otherwise carry out (3.5);
(3.5) under j electric connector node, increase body contact point child node and respective attributes;
(3.6) value of j is added to 1, if the value of j is less than or equal to the sum of element in the electric connector list obtaining in claim 2, execution step (3.2)-(3.6), otherwise carry out (3.7);
(3.7) under the root node of dom tree, add the node of change-over terminal electric connector, the specification title that is change-over terminal electric connector by its name setup of attribute, the period information that connects of adding change-over terminal electric connector under change-over terminal electric connector node;
(3.8) dom tree of generation is converted into file, this document is electric connector library file.
The implementation method that generates transit cable library file according to electric connector list is as follows:
(4.1) utilize DOM technology to set up Document object, and with Document object, set up the root node of dom tree;
(4.2) extract code name and the specification information of m electric connector in the electric connector list obtaining in claim 2, according to electric connector specification, obtain this kind of corresponding transit cable list of specification electric connector, from transit cable list, find out the transit cable that first " is not taken ", the initial value of m is 1;
(4.3) transit cable establishment transit cable node " not taken " for first under the root node of dom tree, the code name of the relevant information of this transit cable and m electric connector and specification information are write in the respective attributes of transit cable node, and the state that this transit cable is set is " taking ";
(4.4) according to the specification of m electric connector, obtain the number of contacts of this specification electric connector, and according to the number of contacts of this specification electric connector, calculate the number d of the corresponding change-over terminal electric connector of current transit cable;
Implementation method is as follows:
a=(p+1)/c
b=(p+1)%c
If b=0, the number d=a of the corresponding change-over terminal electric connector of so current transit cable, otherwise d=a+1;
Wherein, p represents the number of contacts of this specification electric connector, and c represents the number of contacts of change-over terminal electric connector, by transit cable, is determined, calculating is divided exactly in "/" representative, and " % " represents complementation calculating.
(4.5) under transit cable node, set up successively each change-over terminal electric connector child node, its sequence number is respectively 1 to d;
(4.6) value of m is added to 1, if the value of m is less than or equal to the element sum in the electric connector list obtaining in claim 2, execution step (4.2)-(4.6), otherwise carry out (4.7);
(4.7) dom tree of generation is converted into file, this document is transit cable library file.
(4) according to test, with contact table, generate test data file;
Implementation method is as follows:
(6.1) from testing with extracting tested cable information contact table, form the list of tested cable code name; And create empty test data file;
(6.2) from the list of tested cable code name, extract the information of x root cable, the initial value of x is 1, writes the information such as testing parameter data and cable code name in test data file, and wherein testing parameter data is stipulated by the design document of tested cable;
(6.3) set up an empty test connection relation list, the element in list comprises four column informations, is respectively that top electric connector code name, top connect period, terminal electric connector code name, terminal and connects period; Set up an empty use and connect period list, the element in list only comprises row and connects period information;
(6.4) from test with obtaining electric connector under x root cable contact table to list;
(6.5) from this electric connector to extracting y list to all annexations under top electric connector and terminal electric connector, form y to the connection relation list under top electric connector and terminal electric connector, the initial value of y is 1;
(6.6) from y to extracting z annexation in the connection relation list top electric connector and terminal electric connector, according to top and terminal annexation and the electric connector information of short circuit relation, top and the terminal contact of contact separately, extract top electric connector code name, top and connect period, terminal electric connector code name, terminal and connect period and add in test connection relation list; Top in z annexation and terminal contact are all joined to have used simultaneously and connect in period list; The initial value of z is 1;
(6.7) value of z is added to 1, if the value of z is less than or equal to y to the element sum in the connection relation list under top electric connector and terminal electric connector, performs step (6.6)-(6.7), otherwise carry out (6.8);
(6.8) value of y is added to 1, if the electric connector that the value of y is less than or equal under x root cable is total to the element in list, execution step (6.5)-(6.8), otherwise carry out (6.9);
(6.9) the test connection relation list generating according to step (6.5)-(6.8) is set up figure, utilizes graph traversal method to obtain the incoherent period list that connects;
(6.10) what obtain each electric connector under x root cable completely connects period list, checks whether each element wherein appears to have used to connect in period list, and what obtain all electric connectors untappedly connects period list; Incoherent period list and the untapped complete insulation meter that has formed x root cable together with period list that connects of connecing;
(6.11) the annexation data of x root cable and insulation meter data are write in test data file;
(6.12) value of x is added to 1, if the value of x is less than or equal to the element sum of tested cable list, execution step (6.2)-(6.12), otherwise carry out (6.13);
(6.13) finish, obtain complete test data file.
(5) in testing apparatus, carry out the test procedure being formed by electric connector library file, transit cable library file and test data file, realize spacecraft low-frequency cable electrical property and automatically test.
Embodiment:
Complete test procedure comprises electric connector library file, transit cable library file, test data file, and wherein electric connector library file has been described this and tested specification information and the core arrangement information of all electric connectors that will use; Transit cable library file described all transit cables that this test will use and with the corresponding relation of product end; Test data file has been described the test parameter of this test and conducting table and insulation meter information to be tested.Generate complete, correct test procedure, need to complete related work according to above-mentioned flow process, generate successively above-mentioned three files.Comprise specifically:
(1) according to the design of various different-formats contact list file, generate the test contact table that XML file layout represents, the test of XML file layout is as follows with contact table, designs as shown in table 1 with contact table.
Figure 201310629248X100002DEST_PATH_IMAGE001
Table 1 design contact representation case
Figure BDA0000426544700000112
Figure BDA0000426544700000121
In this test, with in contact table, the annexation of a cable " W001 " has been described.Wherein having two electric connectors, is respectively " X01 " and " X02 ", and their specification is respectively " J36A-52TK " (electric connectors of rectangle 52 cores) and " J36A-62TJ " (electric connectors of rectangle 62 cores).Test with the concatenate rule described in contact table is: bracket represents short circuit, the contact outside top bracket and the contact short circuit in bracket, and the contact outside top bracket is corresponding one by one with the contact of terminal simultaneously, connects long line.
(2) generate electric connector list, generate electric connector library file, generate transit cable library file.
According to test, with contact table, extract electric connector to information, obtain electric connector list, and generate electric connector library file and transit cable library file according to electric connector list.Electric connector library file and transit cable library file are XML files, and XML is a kind of extend markup language, can be used for representing the complex data of tree structure.What read-write XML file was used is DOM technology, DOM(Document Object Model) be document dbject model, can control the data object in XML file.
Read electric connector list, the groundwork that generates electric connector library file and transit cable library file is that XML file is processed, and uses DOM technology to read or write DOM node according to the requirement of XML file layout.The electric connector library file generating is as follows:
Figure 201310629248X100002DEST_PATH_IMAGE002
The transit cable library file generating is as follows:
Figure DEST_PATH_IMAGE003
(3) generate test data file
With an example explanation, generate the concrete grammar of test data file below.
According to test, use contact table, the annexation in contact table can be converted to 20 groups of connection relational table one to one:
W001:
Link[1]:X01:14,X01:15
Link[2]:X01:14,X02:41
Link[3]:X01:16,X01:17
Link[4]:X01:16,X02:42
Link[5]:X01:18,X01:19
Link[6]:X01:18,X02:51
Link[7]:X01:20,X01:21
Link[8]:X01:20,X02:52
Link[9]:X01:22,X01:23
Link[10]:X01:22,X02:53
Link[11]:X01:24,X01:25
Link[12]:X01:24,X02:54
Link[13]:X01:11,X02:47
Link[14]:X01:12,X02:48
Link[15]:X01:1,X02:55
Link[16]:X01:2,X02:56
Link[17]:X01:3,X02:57
Link[18]:X01:4,X02:58
Link[19]:X01:5,X02:59
Link[20]:X01:6,X02:60
And then, can generate figure according to above-mentioned connection relational table, and generate test network table by graph traversal algorithm, this net list one to one annexation generates 14 net lists, the contact being interrelated is placed in same net list to (numeral in bracket is the nodes in net list) as follows:
W001:
Net[1](2):X01:1,X02:55
Net[2](2):X01:11,X02:47
Net[3](2):X01:12,X02:48
Net[4](3):X01:14,X01:15,X02:41
Net[5](3):X01:16,X01:17,X02:42
Net[6](3):X01:18,X01:19,X02:51
Net[7](2):X01:2,X02:56
Net[8](3):X01:20,X01:21,X02:52
Net[9](3):X01:22,X01:23,X02:53
Net[10](3):X01:24,X01:25,X02:54
Net[11](2):X01:3,X02:57
Net[12](2):X01:4,X02:58
Net[13](2):X01:5,X02:59
Net[14](2):X01:6,X02:60
Wherein network 1,2, and 3,7,11,12,13,14 only have two nodes, and remaining network respectively has three nodes.
According to knowing in this net list, each node of each net list inside has annexation, there is no annexation between each net list.Generate insulation meter, need according to net list, extract any one node (for convenience of processing, getting first node of each net list) in each net list, can generate first's insulation meter, the first's insulation meter having generated is as follows shown in column data:
X01:1,X01:11,X01:12,X01:14,X01:16,X01:18X01:2,X01:20,X01:22,X01:24,X01:3,X01:4,X01:5,X01:6
And only have this part insulation meter, be inadequate, because also have a large amount of ignores not to be used in electric connector, also should carry out complete test, to guarantee mistakes that connect not more, in order to check the situation of fifth wheel, also should test body contact point in addition.Therefore again according to the specification of electric connector in database, the core number that can obtain above-mentioned connector X01 and X02 is respectively 52 cores and 62 cores.The data that contrast above-mentioned connection table can obtain the list of ignore and body contact point (KD represents body contact point).As follows:
X01:7,X01:8,X01:9,X01:10,X01:13,X01:26,X01:27,X01:28,X01:29,X01:30,X01:31,X01:32,X01:33,X01:34,X01:35,X01:36,X01:37,X01:38,X01:39,X01:40,X01:41,X01:42,X01:43,X01:44,X01:45,X01:46,X01:47,X01:48,X01:49,X01:50,X01:51,X01:52,X02:1,X02:2,X02:3,X02:4,X02:5,X02:6,X02:7,X02:8,X02:9,X02:10,X02:11,X02:12,X02:13,X02:14,X02:15,X02:16,X02:17,X02:18,X02:19,X02:20,X02:21,X02:22,X02:23,X02:24,X02:25,X02:26,X02:27,X02:28,X02:29,X02:30,X02:31,X02:32,X02:33,X02:34,X02:35,X02:36,X02:37,X02:38,X02:39,X02:40,X02:43,X02:44,X02:45,X02:46,X02:49,X02:50,X02:61,X02:62,X01:KD,X02:KD
Finally first's insulation meter and second portion insulation meter are combined, have just formed complete insulation meter, use this insulation meter can guarantee cable product to carry out complete test, stop quality leak and dead angle.
The test procedure finally generating is as follows:
Figure BDA0000426544700000161
Figure BDA0000426544700000171
The present invention not detailed description is known to the skilled person technology.

Claims (6)

1. a spacecraft low-frequency cable electrical property autotest program generation method, is characterized in that comprising the steps:
(1) according to the design of various different-formats contact list file, generate the test contact table that XML file layout represents, test mainly comprises information that electric connector under tested cable information, tested cable is right and the wiring relation data under every pair of electric connector with contact table, and wherein the right information of each electric connector comprises top electric connector information and terminal electric connector information;
(2) according to test, with contact table, extract electric connector to information, obtain electric connector list;
(3) according to electric connector list, generate electric connector library file and transit cable library file;
(4) according to test, with contact table, generate test data file;
(5) in testing apparatus, carry out the test procedure being formed by electric connector library file, transit cable library file and test data file, realize spacecraft low-frequency cable electrical property and automatically test.
2. a kind of spacecraft low-frequency cable electrical property autotest program generation method according to claim 1, is characterized in that: in described step (2), according to test, with contact table, extract electric connector to information, the step that obtains electric connector list is as follows:
(2.1) extract the right information of electric connectors all in contact table for test, form an electric connector to list, in this list, comprise n element, n be electric connector to sum, each element comprises four column informations: top electric connector code name, top electric connector specification, terminal electric connector code name, terminal electric connector specification;
(2.2) set up an empty electric connector list, the element in list comprises two column informations: electric connector code name and electric connector specification, and the data in list do not repeat;
(2.3) information of the electric connector obtaining in extraction (2.1) to i element in list, the initial value of i is 1;
(2.4) if the code name of the top electric connector of i element and terminal electric connector and specification are all empty, the value of i is added to 1, if i≤n, execution step (2.3)-(2.4), if i>n enters (2.5); Otherwise code name information and the specification information of electric connector are added in the electric connector list of setting up in (2.2), the value of i is added to 1, if i≤n, execution step (2.3)-(2.4), if i>n enters (2.5);
(2.5) finish, obtain electric connector list.
3. a kind of spacecraft low-frequency cable electrical property autotest program generation method according to claim 2, is characterized in that: in described step (3), according to electric connector list, generate the implementation method of electric connector library file as follows:
(3.1) utilize DOM technology to set up Document object, utilize Document object to set up the root node of dom tree;
(3.2) extract the specification information of j electric connector in the electric connector list obtaining in claim 2, under the root node of dom tree for this electric connector is set up electric connector node, the specification information that the name attribute of this electric connector node is this electric connector is set, and the initial value of j is 1;
(3.3) what according to the specification of j electric connector, obtain this kind of specification electric connector connects period list information, and the element connecing in period list comprises a column information: connect period;
(3.4) read connecing k in period list and connecing period of j electric connector, the initial value of k is 1, and under j electric connector node, being that k is individual connects period and set up child node, and the name attribute that this contact work song node is set is for connecing period; The value of k is added to 1, if the value of k is less than or equal to the sum that connects element in period list, repeated execution of steps (3.4), otherwise carry out (3.5);
(3.5) under j electric connector node, increase body contact point child node and respective attributes;
(3.6) value of j is added to 1, if the value of j is less than or equal to the sum of element in the electric connector list obtaining in claim 2, execution step (3.2)-(3.6), otherwise carry out (3.7);
(3.7) under the root node of dom tree, add the node of change-over terminal electric connector, the specification title that is change-over terminal electric connector by its name setup of attribute, the period information that connects of adding change-over terminal electric connector under change-over terminal electric connector node;
(3.8) dom tree of generation is converted into file, this document is electric connector library file.
4. a kind of spacecraft low-frequency cable electrical property autotest program generation method according to claim 2, is characterized in that: in described step (3), according to electric connector list, generate the implementation method of transit cable library file as follows:
(4.1) utilize DOM technology to set up Document object, and with Document object, set up the root node of dom tree;
(4.2) extract code name and the specification information of m electric connector in the electric connector list obtaining in claim 2, according to electric connector specification, obtain this kind of corresponding transit cable list of specification electric connector, from transit cable list, find out the transit cable that first " is not taken ", the initial value of m is 1;
(4.3) transit cable establishment transit cable node " not taken " for first under the root node of dom tree, the code name of the relevant information of this transit cable and m electric connector and specification information are write in the respective attributes of transit cable node, and the state that this transit cable is set is " taking ";
(4.4) according to the specification of m electric connector, obtain the number of contacts of this specification electric connector, and according to the number of contacts of this specification electric connector, calculate the number d of the corresponding change-over terminal electric connector of current transit cable;
(4.5) under transit cable node, set up successively each change-over terminal electric connector child node, its sequence number is respectively 1 to d;
(4.6) value of m is added to 1, if the value of m is less than or equal to the element sum in the electric connector list obtaining in claim 2, execution step (4.2)-(4.6), otherwise carry out (4.7);
(4.7) dom tree of generation is converted into file, this document is transit cable library file.
5. a kind of spacecraft low-frequency cable electrical property autotest program generation method according to claim 4, is characterized in that: in described step (4.4), according to the number of contacts of this specification electric connector, calculate the implementation method of number of the corresponding change-over terminal electric connector of current transit cable as follows:
a=(p+1)/c
b=(p+1)%c
If b=0, the number d=a of the corresponding change-over terminal electric connector of so current transit cable, otherwise d=a+1;
Wherein, p represents the number of contacts of this specification electric connector, and c represents the number of contacts of change-over terminal electric connector, by transit cable, is determined, calculating is divided exactly in "/" representative, and " % " represents complementation calculating.
6. a kind of spacecraft low-frequency cable electrical property autotest program generation method according to claim 1, is characterized in that: the implementation method that generates test data file according to test with contact table in described step (4) is as follows:
(6.1) from testing with extracting tested cable information contact table, form the list of tested cable code name; And create empty test data file;
(6.2) from the list of tested cable code name, extract the information of x root cable, the initial value of x is 1, writes the information such as testing parameter data and cable code name in test data file, and wherein testing parameter data is stipulated by the design document of tested cable;
(6.3) set up an empty test connection relation list, the element in list comprises four column informations, is respectively that top electric connector code name, top connect period, terminal electric connector code name, terminal and connects period; Set up an empty use and connect period list, the element in list only comprises row and connects period information;
(6.4) from test with obtaining electric connector under x root cable contact table to list;
(6.5) from this electric connector to extracting y list to all annexations under top electric connector and terminal electric connector, form y to the connection relation list under top electric connector and terminal electric connector, the initial value of y is 1;
(6.6) from y to extracting z annexation in the connection relation list top electric connector and terminal electric connector, according to top and terminal annexation and the electric connector information of short circuit relation, top and the terminal contact of contact separately, extract top electric connector code name, top and connect period, terminal electric connector code name, terminal and connect period and add in test connection relation list; Top in z annexation and terminal contact are all joined to have used simultaneously and connect in period list; The initial value of z is 1;
(6.7) value of z is added to 1, if the value of z is less than or equal to y to the element sum in the connection relation list under top electric connector and terminal electric connector, performs step (6.6)-(6.7), otherwise carry out (6.8);
(6.8) value of y is added to 1, if the electric connector that the value of y is less than or equal under x root cable is total to the element in list, execution step (6.5)-(6.8), otherwise carry out (6.9);
(6.9) the test connection relation list generating according to step (6.5)-(6.8) is set up figure, utilizes graph traversal method to obtain the incoherent period list that connects;
(6.10) what obtain each electric connector under x root cable completely connects period list, checks whether each element wherein appears to have used to connect in period list, and what obtain all electric connectors untappedly connects period list; Incoherent period list and the untapped complete insulation meter that has formed x root cable together with period list that connects of connecing;
(6.11) the annexation data of x root cable and insulation meter data are write in test data file;
(6.12) value of x is added to 1, if the value of x is less than or equal to the element sum of tested cable list, execution step (6.2)-(6.12), otherwise carry out (6.13);
(6.13) finish, obtain complete test data file.
CN201310629248.XA 2013-11-29 2013-11-29 A kind of spacecraft low-frequency cable electrical property autotest program generates method Active CN103677815B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310629248.XA CN103677815B (en) 2013-11-29 2013-11-29 A kind of spacecraft low-frequency cable electrical property autotest program generates method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310629248.XA CN103677815B (en) 2013-11-29 2013-11-29 A kind of spacecraft low-frequency cable electrical property autotest program generates method

Publications (2)

Publication Number Publication Date
CN103677815A true CN103677815A (en) 2014-03-26
CN103677815B CN103677815B (en) 2016-09-21

Family

ID=50315482

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310629248.XA Active CN103677815B (en) 2013-11-29 2013-11-29 A kind of spacecraft low-frequency cable electrical property autotest program generates method

Country Status (1)

Country Link
CN (1) CN103677815B (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104280648A (en) * 2014-10-31 2015-01-14 中国航空工业集团公司上海航空测控技术研究所 Automatic adapting cable test device and method
CN105319468A (en) * 2015-11-13 2016-02-10 北京卫星制造厂 A low frequency cable grouping electric performance test scheme generating method
CN106501640A (en) * 2016-10-18 2017-03-15 北京空间技术研制试验中心 Electrical property integrated test facility after reusable launch vehicle return
CN107103137A (en) * 2017-04-26 2017-08-29 上海航天控制技术研究所 A kind of design method of satellite control system cable system
CN108107304A (en) * 2017-12-25 2018-06-01 北京航天晨信科技有限责任公司 A kind of automation cable test device
CN111596647A (en) * 2020-06-01 2020-08-28 国电联合动力技术有限公司 Efficient and intelligent test system and method for wind turbine generator
CN115015683A (en) * 2022-08-09 2022-09-06 深圳永贵技术有限公司 Cable production performance test method, device, equipment and storage medium

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102915029A (en) * 2012-10-15 2013-02-06 中国运载火箭技术研究院 Avionics system automatic test platform based on reusable spacecraft

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102915029A (en) * 2012-10-15 2013-02-06 中国运载火箭技术研究院 Avionics system automatic test platform based on reusable spacecraft

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
应朝龙 等: "机上电缆无线测试仪设计", 《海军航空工程学院学报》 *
张振天 等: "某新型航空发动机电缆自动测试系统研究", 《中国新技术新产品》 *
徐新宇 等: "航天器电子装联工艺和生产准备数字化研究", 《中国航天科技集团2011数字化制造论坛》 *

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104280648A (en) * 2014-10-31 2015-01-14 中国航空工业集团公司上海航空测控技术研究所 Automatic adapting cable test device and method
CN105319468A (en) * 2015-11-13 2016-02-10 北京卫星制造厂 A low frequency cable grouping electric performance test scheme generating method
CN105319468B (en) * 2015-11-13 2018-05-22 北京卫星制造厂 A kind of generation method of low-frequency cable grouping electric performance test scheme
CN106501640A (en) * 2016-10-18 2017-03-15 北京空间技术研制试验中心 Electrical property integrated test facility after reusable launch vehicle return
CN106501640B (en) * 2016-10-18 2019-05-10 北京空间技术研制试验中心 Electrical property integrated test facility after reusable launch vehicle returns
CN107103137A (en) * 2017-04-26 2017-08-29 上海航天控制技术研究所 A kind of design method of satellite control system cable system
CN108107304A (en) * 2017-12-25 2018-06-01 北京航天晨信科技有限责任公司 A kind of automation cable test device
CN111596647A (en) * 2020-06-01 2020-08-28 国电联合动力技术有限公司 Efficient and intelligent test system and method for wind turbine generator
CN111596647B (en) * 2020-06-01 2021-08-06 国电联合动力技术有限公司 Efficient and intelligent test system and method for wind turbine generator
CN115015683A (en) * 2022-08-09 2022-09-06 深圳永贵技术有限公司 Cable production performance test method, device, equipment and storage medium
CN115015683B (en) * 2022-08-09 2022-11-04 深圳永贵技术有限公司 Cable production performance test method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN103677815B (en) 2016-09-21

Similar Documents

Publication Publication Date Title
CN103677815A (en) Method for generating program to automatically test electrical performance of spacecraft low-frequency cable
CN109522228B (en) Interface automation test data construction method, device, platform and storage medium
CN103728885A (en) Comprehensive wiring management method based on aviation bus
CN106777687B (en) CAD/CAE integration method and system for support steel structure of nuclear power plant
CN104331570A (en) System and method for simulating power transformation equipment for inspection
CN111522741A (en) Interface test code generation method and device, electronic equipment and readable storage medium
CN107247827B (en) Virtual terminal model modeling and automatic wiring method based on machine learning
CN115757483A (en) Automatic testing method and device, electronic equipment and storage medium
CN111625964A (en) Method, system and equipment for constructing transformer substation graph model based on logical relationship
CN115329556A (en) Transformer substation CAD drawing auditing method and device
CN111611665B (en) Intelligent substation design method based on three-dimensional modular design
CN112906132A (en) Method and device for generating aircraft harness component data
CN115345078B (en) Cable management method and device based on cable iteration model
CN107391812A (en) A kind of intelligent substation SCD loops method of calibration and device
CN115114789A (en) Automatic simulation modeling method for power distribution system
CN113705143B (en) Automatic simulation system and automatic simulation method
CN111783373A (en) Topology analysis method of PSCAD simulation model
CN112632801A (en) E3 and NX-based electrical collaborative design method
CN112328538A (en) PMS2.0 graph model file importing method
CN116628275B (en) Method for realizing bidirectional conversion between graph database and standardized topology
CN112186741B (en) Power grid operation weak point distinguishing method based on BPA (Business Process analysis) simulation calculation
Guo et al. The technique of parsing vehicle wiring harness tooling diagram based on pattern recognition
CN113705023B (en) Method and device for modeling power system based on electromagnetic transient model
CN113609577B (en) Automobile electric appliance principle inspection method
Yang et al. A Training simulator for PD detection personnel

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant