CN114547784B - Automatic signal modeling method for vehicle components with same attributes - Google Patents

Automatic signal modeling method for vehicle components with same attributes Download PDF

Info

Publication number
CN114547784B
CN114547784B CN202210447529.2A CN202210447529A CN114547784B CN 114547784 B CN114547784 B CN 114547784B CN 202210447529 A CN202210447529 A CN 202210447529A CN 114547784 B CN114547784 B CN 114547784B
Authority
CN
China
Prior art keywords
template file
model template
component model
name
attribute
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.)
Active
Application number
CN202210447529.2A
Other languages
Chinese (zh)
Other versions
CN114547784A (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.)
China Automotive Technology and Research Center Co Ltd
CATARC Automotive Test Center Tianjin Co Ltd
Original Assignee
China Automotive Technology and Research Center Co Ltd
CATARC Automotive Test Center Tianjin 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 China Automotive Technology and Research Center Co Ltd, CATARC Automotive Test Center Tianjin Co Ltd filed Critical China Automotive Technology and Research Center Co Ltd
Priority to CN202210447529.2A priority Critical patent/CN114547784B/en
Publication of CN114547784A publication Critical patent/CN114547784A/en
Application granted granted Critical
Publication of CN114547784B publication Critical patent/CN114547784B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/10Geometric CAD
    • G06F30/15Vehicle, aircraft or watercraft design
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/20Design optimisation, verification or simulation
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02TCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO TRANSPORTATION
    • Y02T90/00Enabling technologies or technologies with a potential or indirect contribution to GHG emissions mitigation

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Geometry (AREA)
  • General Physics & Mathematics (AREA)
  • Evolutionary Computation (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Automation & Control Theory (AREA)
  • Aviation & Aerospace Engineering (AREA)
  • Computational Mathematics (AREA)
  • Mathematical Analysis (AREA)
  • Mathematical Optimization (AREA)
  • Pure & Applied Mathematics (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention provides a signal automatic modeling method for components with the same attribute of a vehicle, which comprises the following steps: developing a template library; defining a file name of an original component model template; any special field flag is used; obtaining a target component model template file; checking and verifying the target component model template file; obtaining a modified target component model template file; checking and verifying the modified target component model template file; obtaining a target model file, and completing modeling of a component model with the same attribute; repeating the steps to obtain N component models with the same attribute; and finishing the modeling. The automatic signal modeling method for the components with the same attributes of the vehicle solves the problem of automatic modeling of the components with the same attributes in the building process of the virtual simulation model of the vehicle. The original component model template file is used for generating the target component model with the same specific attributes according to the steps of the invention, thereby avoiding artificial copy and modification operation, reducing modeling errors to the maximum extent and greatly improving simulation modeling efficiency.

Description

Automatic signal modeling method for vehicle components with same attributes
Technical Field
The invention belongs to the field of vehicle modeling simulation, and particularly relates to an automatic signal modeling method for components with the same attribute of a vehicle.
Background
At present, a vehicle virtual simulation technology is an important development tool in the initial stage of automobile research and development, and plays a positive role in the aspects of cost reduction and efficiency improvement of vehicles. The core of the vehicle virtual simulation technology is to build a part simulation model which can reduce the actual performance of the vehicle as much as possible, wherein the simulation model is the mapping of the actual physical configuration of the vehicle. In the process of developing a vehicle simulation platform, if a vehicle has a plurality of components with the same attribute, the accuracy of component attribute, signal attribute and parameter attribute must be ensured in the process of building a vehicle model by using the components, otherwise, errors are easy to occur. If the components with the same attribute are deleted, a certain corresponding design rule is required in the development process, and the occurrence of signal errors is prevented. Therefore, in the process of developing a vehicle simulation platform, a signal automatic modeling method of components with the same attribute is provided, so that the vehicle model modeling efficiency can be greatly improved, and the error probability can be reduced.
Disclosure of Invention
In view of this, the present invention aims to provide an automatic signal modeling method for vehicle components with the same attribute, which can improve the automation degree of modeling for components with the same attribute, reduce repeated work in the process of modeling components with the same attribute, improve modeling efficiency, and reduce matching errors, so as to solve the problem of automatic signal modeling for components with the same attribute when a virtual simulation model of a vehicle is built in the process of developing a simulation platform.
In order to achieve the purpose, the technical scheme of the invention is realized as follows:
a method for automatically modeling signals of components with the same attribute of a vehicle comprises the following steps:
s1, developing a template library required by vehicle modeling in a simulation platform, wherein the template library consists of various types of original component model template files; defining the name of each original component model template file as a component name _ M, wherein each original component model template file at least comprises an input/output port signal and a parameter signal, the name of the input/output port signal is named according to the component name _ port attribute, and the name of the parameter signal is named according to the component name _ parameter attribute;
s2, using any special field to mark the input/output port signal and parameter signal of each original component model template file to be modified, the marked input/output port signal name is 'component name _ port attribute _ special field', the marked parameter signal name is 'component name _ parameter attribute _ special field', and entering step S3;
s3, copying and renaming a single original component model template file to obtain a target component model template file of the original component model template file, renaming the target component model template file to be a component name _ M1, enabling the cycle number to be equal to 1, and entering a step S4;
s4, checking and verifying the target component model template file in the step S3 in the simulation platform, and judging whether the input/output port signal and the parameter signal marked by the target component model template file are consistent with the input/output port signal and the parameter signal marked by the original component model template file; if yes, checking and verifying to be valid, and entering step S5;
if not, checking the verification is invalid, adding 1 to the cycle number, judging whether the cycle number is less than 10, if so, returning to the step S4 to re-execute the checking verification, and if not, directly entering the step S10;
s5, reading the target component model template file obtained in the step S4, replacing the input/output port signal and the parameter signal which are marked by the special field in the step S2 in the target component model template file to obtain a modified target component model template file, enabling the cycle number to be equal to 1 again, and entering the step S6;
s6, checking and verifying the modified target component model template file in the simulation platform, and judging whether special fields do not exist in the input/output port signal and the parameter signal of the modified target component model template file; if yes, checking and verifying to be valid, and entering step S7;
if not, the checking verification is invalid, the cycle number is added with 1, whether the cycle number is less than 10 is judged, if the cycle number is less than 10, the step S6 is returned to execute the checking verification again, and if the cycle number is more than or equal to 10, the step S10 is directly entered;
s7, obtaining a target model file of the target component model by using the target component model template file which is checked and verified in the step S6 under the simulation platform, wherein the target model file is named as 'component name _ component number _ component attribute', and the modeling of a component model with the same attribute is completed;
s8, according to the number of component models with the same attribute which are required to be built, determining the number N of component models with the same attribute in a simulation platform, wherein the number of the specified components of the N component models with the same attribute is from 1 to N;
s9, adding 1 to the part numbers sequentially from 1, repeating the step S3 to the step S7 for N times to obtain N part models with the same attribute;
and S10, finishing the modeling of the same-attribute component after all the N same-attribute component models are created.
Further, the input/output port signal in step S1 refers to the signal input to the original component model template file and the signal output from the original component model template file, and is directly linked to the transmission of data and information of other components except for the components with the same attribute in the vehicle overall model; the parameter signal refers to a signal for defining internal calling in the original component model template file, and data and information are not transmitted with other components except for components with the same attribute in the vehicle overall model, and no relation is generated.
Further, when the special field in step S2 indicates that the target model file is created from the original component model template file, whether the input/output port signal and the parameter signal need to be modified is set according to the signal attribute, and the input/output port signal and the parameter signal that need to be modified are marked with the special field.
Further, the checking and verifying of the target component model template file in step S4 includes the following steps:
a1, counting the number, serial number and name of input and output port signals marked by the original component model template file and the number, serial number and name of parameter signals to obtain an original component model template file attribute set;
a2, counting the number, serial number and name of input and output port signals marked by a target component model template file and the number, serial number and name of parameter signals to obtain a target component model template file attribute set;
a3, comparing whether the attribute set of the original component model template file is completely equal to the attribute set of the target component model template file;
a4, if the two sets are completely equal, the checking is successful, and the operation is effective; if the two sets are not completely equal, the checking and verification fails, and the operation is invalid.
Further, the replacing operation in step S5 includes the steps of:
b1, reading the target component model template file verified and validated in the step S4;
b2, searching an input/output port signal and a parameter signal with the special field mark used in the step S2 in the target component model template file;
b3, adding part numbers in the names of the input and output port signals and the names of the parameter signals searched by the step B2 respectively; deleting special field marks in the input/output port signal and the parameter signal name to obtain a modified target component model template file;
b4, naming the input/output port signal name of the modified target component model template file as "component name _ component number _ port name _ port attribute", and naming the parameter signal name of the modified target component model template file as "component name _ component number _ parameter name _ parameter attribute".
Further, the checking and verifying the modified target component model template file in the simulation platform in step S6 means counting the number of input/output port signals and parameter signals with special fields in the modified target component model template file, and if the number is greater than or equal to 1, it is determined that the checking and verifying fails.
Further, the part number in step S7 indicates the identification characteristics of N identical attribute part models, and the part numbers related to the part name, the input/output port signal name, and the parameter signal name of the identical part model are required to be identical.
Compared with the prior art, the automatic signal modeling method for the vehicle components with the same attribute has the following advantages:
(1) the automatic signal modeling method for the vehicle components with the same attributes is reasonable in design, the original component template files with the same attributes are used for deriving a plurality of specific target component model files with the same attributes, and the component models with the same attributes are reversely built through the target component model template files, so that the automatic modeling problem of the components with the same attributes in the building process of the virtual simulation model of the vehicle is solved. The original component model template file is used for generating the target component model with the same specific attributes according to the steps of the invention, thereby avoiding artificial copy and modification operation, reducing modeling errors to the maximum extent and greatly improving simulation modeling efficiency.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate an embodiment of the invention and, together with the description, serve to explain the invention and not to limit the invention. In the drawings:
fig. 1 is a schematic flow chart of the overall structure according to the embodiment of the present invention.
Detailed Description
It should be noted that the embodiments and features of the embodiments may be combined with each other without conflict.
In the description of the present invention, it is to be understood that the terms "central," "longitudinal," "lateral," "upper," "lower," "front," "rear," "left," "right," "vertical," "horizontal," "top," "bottom," "inner," "outer," and the like are used in the orientations and positional relationships indicated in the drawings, which are based on the orientations and positional relationships indicated in the drawings, and are used for convenience in describing the present invention and for simplicity in description, but do not indicate or imply that the device or element so referred to must have a particular orientation, be constructed in a particular orientation, and be operated, and thus should not be construed as limiting the present invention. Furthermore, the terms "first", "second", etc. are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first," "second," etc. may explicitly or implicitly include one or more of that feature. In the description of the present invention, "a plurality" means two or more unless otherwise specified.
In the description of the present invention, it should be noted that, unless otherwise explicitly specified or limited, the terms "mounted," "connected," and "connected" are to be construed broadly, e.g., as meaning either a fixed connection, a removable connection, or an integral connection; can be mechanically or electrically connected; they may be connected directly or indirectly through intervening media, or they may be interconnected between two elements. The specific meanings of the above terms in the present invention can be understood by those of ordinary skill in the art through specific situations.
The present invention will be described in detail below with reference to the embodiments with reference to the attached drawings.
As shown in fig. 1, a method for automatically modeling signals of components with the same attribute of a vehicle comprises the following steps:
s1, developing a template library required by vehicle modeling in a simulation platform, wherein the template library consists of various types of original component model template files; defining the file name of each original component model template as a component name _ M, wherein each original component model template file at least comprises an input/output port signal and a parameter signal, the signal name of the input/output port is named according to the component name _ port attribute, and the name of the parameter signal is named according to the component name _ parameter attribute;
s2, marking an input/output port signal and a parameter signal which need to be modified of each original component model template file by using any special field, wherein the name of the marked input/output port signal is 'component name _ port attribute _ special field', the name of the marked parameter signal is 'component name _ parameter attribute _ special field', and the step S3 is entered; in this embodiment, because each original component model template file needs to modify the input/output port signal and the parameter signal of the original component model template file when creating a target model file of a component having the same attribute as the original component model template file, any special field is used to mark the input/output port signal and the parameter signal of the original component model template file that need to be modified.
S3, copying and renaming a single original component model template file to obtain a target component model template file of the original component model template file, renaming the target component model template file to be a component name _ M1, enabling the cycle number to be equal to 1, and entering a step S4;
s4, checking and verifying the target component model template file in the step S3 in the simulation platform, and judging whether the input/output port signal and the parameter signal marked by the target component model template file are consistent with the input/output port signal and the parameter signal marked by the original component model template file; if yes, checking and verifying to be valid, and entering step S5;
if not, the checking verification is invalid, the cycle number is added with 1, whether the cycle number is less than 10 is judged, if the cycle number is less than 10, the step S4 is returned to execute the checking verification again, and if the cycle number is more than or equal to 10, the step S10 is directly entered;
s5, reading the target component model template file obtained in the step S4, replacing the input/output port signal and the parameter signal which are marked by the special field in the step S2 in the target component model template file to obtain a modified target component model template file, enabling the cycle number to be equal to 1 again, and entering the step S6;
s6, checking and verifying the modified target component model template file in the simulation platform, and judging whether the input/output port signal and the parameter signal of the modified target component model template file have no special fields; if yes, checking and verifying to be valid, and entering step S7;
if not, the checking verification is invalid, the cycle number is added with 1, whether the cycle number is less than 10 is judged, if the cycle number is less than 10, the step S6 is returned to execute the checking verification again, and if the cycle number is more than or equal to 10, the step S10 is directly entered;
s7, obtaining a target model file of the target component model by using the target component model template file which is checked and verified in the step S6 under the simulation platform, wherein the target model file is named as 'component name _ component number _ component attribute', and the modeling of a component model with the same attribute is completed;
s8, according to the number of component models with the same attribute which are required to be built, determining the number N of component models with the same attribute in a simulation platform, wherein the number of the specified components of the N component models with the same attribute is from 1 to N;
s9, sequentially adding 1 to the part numbers from 1, repeating the steps S3 to S7 for N times to obtain N part models with the same attribute;
and S10, finishing the modeling of the same-attribute component after the N same-attribute component models are completely created. If one or more of the same attribute component models are deleted, the component numbers of the component models without the same attribute are kept unchanged; if one or more of the same attribute component models are deleted, the M same attribute component models are continuously added, the number of the added M component models is N +1, 1 is added to N + M in sequence, and the steps S4 to S6 are repeated for M times to obtain the newly added M same attribute component models. The automatic signal modeling method for the vehicle components with the same attributes is reasonable in design, the original component template files with the same attributes are used for deriving a plurality of specific target component model files with the same attributes, and the target component model template files are used for reversely building the component models with the same attributes, so that the automatic modeling problem of the components with the same attributes in the building process of the virtual simulation model of the vehicle is solved. The original component model template file is used for generating the target component model with the same specific attributes according to the steps of the invention, so that artificial copy and modification operations are avoided, modeling errors are reduced to the maximum extent, and the simulation modeling efficiency is greatly improved.
The input/output port signal in step S1 refers to the signal input to the original component model template file and the signal output from the original component model template file, and is directly linked to the transmission of data and information of other components in the vehicle overall model except for the components with the same attribute; the parameter signal refers to a signal for defining internal calling in the original component model template file, and data and information are not transmitted with other components except for components with the same attribute in the vehicle overall model, and no relation is generated. And when the original component model template file is used for creating the target model file, only the names of the input/output port signal, the interface signal and the parameter signal need to be modified, all contents except the names do not need to be changed, the target model file is ensured not to be built from the beginning again when being created every time, and the modeling efficiency is improved.
When the special field in step S2 refers to creating the target model file from the original component model template file, the user can set whether the input/output port signal and the parameter signal need to be modified according to the signal attribute, and the input/output port signal and the parameter signal that need to be modified are marked with the special field. The special fields used should avoid confusion with other fields in the input/output port signal and parameter signal names and loss of labeling; the input/output port signal and the parameter signal are divided into two parts which need to be modified and do not need to be modified by using the special field, so that on one hand, the user modeling is more flexible, and if the input voltage signals of all motor part models with the same attribute are required to be the same by the user when the motor parts with the same attribute are modeled, the input voltage signals can be marked by using the special field without using the special field; on the other hand, all signals needing to be modified can be quickly positioned for identification by using the special field, and the modeling efficiency is improved. Note: the special field is not limited to the modify.
The original component model template file is copied and renamed in step S3 to obtain a target component model template file, which is intended to protect the original component model template file, and the operations performed on the target component model template file in the subsequent steps do not destroy the original component model template file.
The description in the target part model template file is traversed under the simulation platform in step S4, and all attributes of the target part model template file are checked (the contents of the check ensure that at least the input-output port signal and the parameter signal marked in the target part model template file are included). The checking and verifying of the target component model template file comprises the following steps:
a1, counting the number, serial number and name of input and output port signals marked by the original component model template file and the number, serial number and name of parameter signals to obtain an original component model template file attribute set;
a2, counting the number, serial number and name of input and output port signals marked by a target component model template file and the number, serial number and name of parameter signals to obtain a target component model template file attribute set;
a3, comparing whether the attribute set of the original component model template file is completely equal to the attribute set of the target component model template file;
a4, if the two sets are completely equal, the checking is successful, and the operation is effective; if the two sets are not completely equal, the checking and verification fails, and the operation is invalid.
The replacement operation in step S5 includes the steps of:
b1, reading the target component model template file verified and validated in the step S4;
b2, searching an input/output port signal and a parameter signal with the special field mark used in the step S2 in the target component model template file;
b3, adding part numbers to the names of the input and output port signals and the names of the parameter signals found in step B2, specifically, adding part numbers to the "part name" field in the input and output port signal name of the target part model template file found in step B2, and adding part numbers to the "part name" field in the parameter signal name of the target part model template file found in step B2; deleting special field marks in the names of the input and output port signals and the parameter signals to obtain a modified target component model template file;
b4, naming the input/output port signal name of the modified target component model template file as "component name _ component number _ port name _ port attribute", and naming the parameter signal name of the modified target component model template file as "component name _ component number _ parameter name _ parameter attribute".
Checking and verifying the modified target component model template file in the simulation platform in step S6 means counting the number of input/output port signals and parameter signals with special fields in the modified target component model template file, and if the number is greater than or equal to 1, determining that the checking and verifying fails.
The part number in step S7 refers to the identification features of N identical attribute part models, and the part numbers related to the part names, i/o port signal names, and parameter signal names of the identical part models are the same, so as to ensure that the signal name rules of a single identical attribute part are consistent and can be distinguished from other identical attribute parts.
Example 1
The invention is explained using Simulink as an example for the automatic modeling of the building of 3 motor components of the same properties, with the following steps:
c1, building a motor component original component model template file under a Simulink platform, wherein the motor component original component model template file is named as 'mot _ M', and comprises the following steps: the input/output port signal name is named according to a component name _ port attribute, such as a motor component input voltage port signal name 'mot _ volt _ in', and the parameter signal name is named according to a component name _ parameter attribute, such as a motor quality parameter signal name 'mot _ mass _ static';
c2, using a special field mark "_ modify" to create an input/output port signal and a parameter signal which need to be modified when creating a motor component target model file through a motor component original component model template file, wherein the name of the marked input/output port signal is "component name _ port attribute _ special field", the name of the marked parameter signal is "component name _ parameter attribute _ special field", for example, the name of a motor component input current port signal is "mot _ curr _ in _ modify";
c3, copying and renaming the original component model template file of the motor component to obtain a target component model template file of the motor component, renaming the target component model template file of the motor component to be 'mot _ M1', enabling the cycle number to be equal to 1, and entering the step C4;
c4, checking and verifying a motor part target part model template file mot _ M1, wherein the file at least comprises input/output port signals and parameter signal information, the input/output port signals and the parameter signal information are completely consistent with those of the original part model template file, otherwise, the file is determined to be invalid, the cycle number is added by 1, the step C4 is returned to execute checking and verifying again, and if the cycle number is more than or equal to 10 times of checking and verifying, the subsequent steps are stopped to be executed; if the verification is valid, entering step C5;
c5, reading the motor component target component model template file mot _ M1 obtained in the step C4, searching all input/output port signals and parameter signals with a _ modify 'mark, adding a component number after a' component name 'field in the searched input/output port signals and parameter signal names, deleting a special field _ modify', for example, the motor component model input current port signal name of the component number 2 is 'mot _2_ curr _ in', once again making the cycle number equal to 1, and entering the step C6;
c6, checking and verifying the modified target component model template file in the simulation platform development program, wherein the file cannot have a special field _ modify', otherwise, the file is determined to be invalid, the cycle number is increased by 1, the step C6 is returned to re-execute the checking and verifying, and if the cycle number is more than or equal to 10 times, the checking and verifying is still invalid, the subsequent steps are stopped; if the verification is valid, entering step C7;
c7, obtaining a target model file by using the target component model template file which is verified and verified in the step C6 under the Simulink platform, wherein the target model file is named as 'component name _ component number _ component attribute', and modeling of a component model with the same attribute is completed, and for example, the target model file with the component number 2 is named as 'mot _2_ unit';
c8, according to the number 3 of the motor component models with the same attribute which are required to be built, determining the number 3 of the component models with the same attribute in a simulation platform development program, wherein the component numbers of the component models with the 3 same attributes are respectively from 1 to 3;
c9, repeating the steps C3 to C7 for 3 times by sequentially adding 1 to the part number from 1 to obtain 3 motor part models with the same attribute;
after the motor component models with the same attributes of C10 and 3 are completely created, if the component model with the component number of 2 is deleted, the component numbers 1 and 3 of the undeleted components are kept unchanged; if the part model with the part number of 2 is deleted, continuing to add 2 part models with the same attribute, starting to add 1 to 5 in sequence when the part number of the added 2 part models is 4, and repeating the steps C3 to C7 for 2 times to obtain 2 newly added part models with the same attribute;
c11, after the creation of all the same attribute component models is completed, the modeling of the specified same attribute component is ended.
Note: the motor in embodiment 1 is prior art.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.

Claims (6)

1. A method for automatically modeling signals of components with the same attribute of a vehicle is characterized by comprising the following steps: the method comprises the following steps:
s1, developing a template library required by vehicle modeling in a simulation platform, wherein the template library consists of various types of original component model template files; defining the file name of each original component model template as a component name _ M, wherein each original component model template file at least comprises an input/output port signal and a parameter signal, the signal name of the input/output port is named according to the component name _ port attribute, and the name of the parameter signal is named according to the component name _ parameter attribute;
s2, using any special field to mark the input/output port signal and parameter signal of each original component model template file to be modified, the marked input/output port signal name is 'component name _ port attribute _ special field', the marked parameter signal name is 'component name _ parameter attribute _ special field', and entering step S3;
s3, copying and renaming a single original component model template file to obtain a target component model template file of the original component model template file, renaming the target component model template file to be a component name _ M1, enabling the cycle number to be equal to 1, and entering a step S4;
s4, checking and verifying the target component model template file in the step S3 in the simulation platform, and judging whether the input/output port signal and the parameter signal marked by the target component model template file are consistent with the input/output port signal and the parameter signal marked by the original component model template file; if yes, checking and verifying to be valid, and entering step S5;
if not, the checking verification is invalid, the cycle number is added with 1, whether the cycle number is less than 10 is judged, if the cycle number is less than 10, the step S4 is returned to execute the checking verification again, and if the cycle number is more than or equal to 10, the step S10 is directly entered;
s5, reading the target component model template file obtained in the step S4, replacing the input/output port signal and the parameter signal which are marked by the special field in the step S2 in the target component model template file to obtain a modified target component model template file, enabling the cycle number to be equal to 1 again, and entering the step S6;
the replacement operation in step S5 includes the steps of:
b1, reading the target component model template file verified and validated in the step S4;
b2, searching an input/output port signal and a parameter signal with the special field mark used in the step S2 in the target component model template file;
b3, adding part numbers to the name of the I/O port signal and the name of the parameter signal searched by the step B2 respectively; deleting special field marks in the names of the input and output port signals and the parameter signals to obtain a modified target component model template file;
b4, naming the input/output port signal name of the modified target component model template file as "component name _ component number _ port name _ port attribute", and naming the parameter signal name of the modified target component model template file as "component name _ component number _ parameter name _ parameter attribute";
s6, checking and verifying the modified target component model template file in the simulation platform, and judging whether the input/output port signal and the parameter signal of the modified target component model template file have no special fields; if yes, checking and verifying to be valid, and entering step S7;
if not, checking the verification is invalid, adding 1 to the cycle number, judging whether the cycle number is less than 10, if so, returning to the step S6 to re-execute the checking verification, and if not, directly entering the step S10;
s7, obtaining a target model file of the target component model by using the target component model template file which is checked and verified in the step S6 under the simulation platform, wherein the target model file is named as 'component name _ component number _ component attribute', and the modeling of a component model with the same attribute is completed;
s8, according to the number of component models with the same attribute which are required to be built, determining the number N of component models with the same attribute in a simulation platform, wherein the number of the specified components of the N component models with the same attribute is from 1 to N;
s9, adding 1 to the part numbers sequentially from 1, repeating the step S3 to the step S7 for N times to obtain N part models with the same attribute;
and S10, finishing the modeling of the same-attribute component after the N same-attribute component models are completely created.
2. The method for automatically modeling the signals of the same-attribute components of the vehicle as set forth in claim 1, wherein: the input/output port signal in step S1 refers to the signal input to and output from the original component model template file, and is directly linked to the transmission of data and information of other components in the vehicle entire model except for the component with the same attribute; the parameter signal refers to a signal for defining internal calling in the original component model template file, and data and information are not transmitted with other components except for components with the same attribute in the vehicle overall model, and no relation is generated.
3. The method for automatically modeling the signals of the same-attribute components of the vehicle as set forth in claim 1, wherein: the special field in step S2 indicates whether the i/o port signal and the parameter signal need to be modified according to the signal attribute when creating the target model file from the original component model template file, and the i/o port signal and the parameter signal need to be modified are marked with the special field.
4. The method for automatically modeling the signals of the same-attribute components of the vehicle as set forth in claim 1, wherein: the verification of the target part model template file in step S4 includes the steps of:
a1, counting the number, serial number and name of input and output port signals marked by the original component model template file and the number, serial number and name of parameter signals to obtain an original component model template file attribute set;
a2, counting the number, serial number and name of input and output port signals marked by a target component model template file and the number, serial number and name of parameter signals to obtain a target component model template file attribute set;
a3, comparing whether the attribute set of the original component model template file is completely equal to the attribute set of the target component model template file;
a4, if the two sets are completely equal, the checking is successful, and the operation is effective; if the two sets are not completely equal, the checking and verification fails, and the operation is invalid.
5. The method for automatically modeling the signals of the same-attribute components of the vehicle as set forth in claim 1, wherein: checking and verifying the modified target component model template file in the simulation platform in step S6 means counting the number of input/output port signals and parameter signals with special fields in the modified target component model template file, and if the number is greater than or equal to 1, determining that the checking and verifying fails.
6. The method for automatically modeling the signals of the same-attribute components of the vehicle as set forth in claim 1, wherein: the part number in step S7 indicates the identification characteristics of N identical attribute part models, and the part numbers related to the part name, the input/output port signal name, and the parameter signal name of the identical part model are required to be identical.
CN202210447529.2A 2022-04-27 2022-04-27 Automatic signal modeling method for vehicle components with same attributes Active CN114547784B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210447529.2A CN114547784B (en) 2022-04-27 2022-04-27 Automatic signal modeling method for vehicle components with same attributes

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210447529.2A CN114547784B (en) 2022-04-27 2022-04-27 Automatic signal modeling method for vehicle components with same attributes

Publications (2)

Publication Number Publication Date
CN114547784A CN114547784A (en) 2022-05-27
CN114547784B true CN114547784B (en) 2022-07-01

Family

ID=81666987

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210447529.2A Active CN114547784B (en) 2022-04-27 2022-04-27 Automatic signal modeling method for vehicle components with same attributes

Country Status (1)

Country Link
CN (1) CN114547784B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1940908A (en) * 2005-09-29 2007-04-04 鸿富锦精密工业(深圳)有限公司 System and method for merging homogeneous hole in workpiece image files
CN103678812A (en) * 2013-12-18 2014-03-26 上海森松制药设备工程有限公司 Accurate plotting method of engineering drawing
CN111581700A (en) * 2020-05-06 2020-08-25 中国电建集团成都勘测设计研究院有限公司 Method for adding BIM attribute and outputting BIM attribute table based on CATIA model
CN111985056A (en) * 2020-07-07 2020-11-24 北京机电工程研究所 Machining part design method capable of realizing rapid process planning

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112507449B (en) * 2020-11-27 2022-10-14 中汽研汽车检验中心(天津)有限公司 Vehicle performance simulation data construction method based on XML
CN113779657B (en) * 2021-08-10 2023-09-26 中策橡胶集团股份有限公司 Tire sidewall text content and position association design method, application and equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1940908A (en) * 2005-09-29 2007-04-04 鸿富锦精密工业(深圳)有限公司 System and method for merging homogeneous hole in workpiece image files
CN103678812A (en) * 2013-12-18 2014-03-26 上海森松制药设备工程有限公司 Accurate plotting method of engineering drawing
CN111581700A (en) * 2020-05-06 2020-08-25 中国电建集团成都勘测设计研究院有限公司 Method for adding BIM attribute and outputting BIM attribute table based on CATIA model
CN111985056A (en) * 2020-07-07 2020-11-24 北京机电工程研究所 Machining part design method capable of realizing rapid process planning

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于SolidWorks设计图样的更改;孙键 等;《金属加工(冷加工)》;20131231(第19期);第66-67页 *

Also Published As

Publication number Publication date
CN114547784A (en) 2022-05-27

Similar Documents

Publication Publication Date Title
US6530072B1 (en) Rule based hierarchy generation in a circuit design verification system
US5995736A (en) Method and system for automatically modelling registers for integrated circuit design
US6550052B1 (en) Software development framework for constructing embedded vehicle controller software
US20050091627A1 (en) Comparison of two hierarchical netlist to generate change orders for updating an integrated circuit layout
US6898775B2 (en) System for ensuring correct pin assignments between system board connections using common mapping files
EP1626359A2 (en) Methods and systems for electronic device modelling
CN100392651C (en) Universal constraining realizing method for real-time internal memory database
CN1534764A (en) Integrated circuit design conforming method and component element, transaction method and product applied thereby
US20050160401A1 (en) System and method for adding user-defined objects to a modeling tool
US20230018381A1 (en) Method for automatically identifying design changes in building information model
US7454325B2 (en) Method, system and program product for defining and recording threshold-qualified count events of a simulation by testcases
CN114547784B (en) Automatic signal modeling method for vehicle components with same attributes
CN114564500A (en) Method and system for implementing structured data storage and query in block chain system
CN115033936B (en) Material model management method for SolidWorks system
WO2013029817A1 (en) Database record repair
US8782587B2 (en) Systems and methods for generating a higher level description of a circuit design based on connectivity strengths
CN115391173A (en) Method for converting Simulink-Stateflow model into NuSMV model
CN114860689A (en) Method and system for migrating data objects between heterogeneous databases
CN115705462A (en) DRC test pattern generation method and device, electronic equipment and storage medium
CN113010489A (en) Data migration method and system
CN117130811A (en) Method, device, electronic equipment and medium for generating vehicle diagnosis description file
CN116627843A (en) Method and device for automatically generating test data, electronic equipment and storage medium
CN116088860A (en) Verification method and system for database development logic and electronic equipment
CN117194718A (en) Processing method and device of open type diagnosis data exchange file and related equipment
CN117725766A (en) Verification method, device and equipment of geometric modeling model

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant