CN113886647A - Data dictionary creating method, terminal device and medium - Google Patents

Data dictionary creating method, terminal device and medium Download PDF

Info

Publication number
CN113886647A
CN113886647A CN202111045504.1A CN202111045504A CN113886647A CN 113886647 A CN113886647 A CN 113886647A CN 202111045504 A CN202111045504 A CN 202111045504A CN 113886647 A CN113886647 A CN 113886647A
Authority
CN
China
Prior art keywords
dictionary
data dictionary
information
data
creating
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.)
Pending
Application number
CN202111045504.1A
Other languages
Chinese (zh)
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.)
Dongfeng Motor Corp
Original Assignee
Dongfeng Motor Corp
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 Dongfeng Motor Corp filed Critical Dongfeng Motor Corp
Priority to CN202111045504.1A priority Critical patent/CN113886647A/en
Publication of CN113886647A publication Critical patent/CN113886647A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/901Indexing; Data structures therefor; Storage structures
    • G06F16/9017Indexing; Data structures therefor; Storage structures using directory or table look-up
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/12Use of codes for handling textual entities
    • G06F40/151Transformation
    • G06F40/157Transformation using dictionaries or tables
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • G06F40/177Editing, e.g. inserting or deleting of tables; using ruled lines
    • G06F40/18Editing, e.g. inserting or deleting of tables; using ruled lines of spreadsheets

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Databases & Information Systems (AREA)
  • Software Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Hydrogen, Water And Hydrids (AREA)

Abstract

The invention discloses a method for creating a data dictionary, terminal equipment and a medium, wherein the method comprises the following steps: acquiring control variable information in a hydrogen-fuel control system; constructing dictionary basic information on the control variable information to obtain corresponding dictionary basic information; and creating a corresponding data dictionary for the hydrogen-fuel control system according to the dictionary basic information by adopting a programming technology. By adopting the method and the device, the technical problems of low efficiency, low accuracy and the like in the manual data dictionary creation in the prior art can be solved.

Description

Data dictionary creating method, terminal device and medium
Technical Field
The present invention relates to the field of terminal technologies, and in particular, to a method for creating a data dictionary, a terminal device, and a medium.
Background
At present, the hydrogen fuel cell is called as a hot field of active research in the new energy field at home and abroad with the advantages of high efficiency, zero emission, short hydrogenation time, long endurance and the like.
For the hydrogen-gas combustion control system, many key components are controlled by a Controller Area Network (CAN), which may also be referred to as a CAN communication network, in a coordinated manner. The advantages of the hydrogen combustion electric control system are exerted and key indexes are achieved, and the hydrogen combustion electric control system is not separated from the control function of the hydrogen combustion electric controller. The control of the hydrogen combustion controller is jointly completed by three parts, namely upper application control, bottom driving control and upper and bottom integration. However, when the hydrogen-fuel control system completes the scheduling of the top-layer application to the bottom-layer driver, a large number of control variables exist between the top layer and the bottom layer in the process of building a simulation model (such as Simulink), and the control variables are realized by a data dictionary (DataDictionary) module of the Simulink.
However, in practice, it is found that the data dictionary corresponding to the control variable is manually created in the DataDictionary module of Simulink in a manual manner. However, because the number of control variables involved in the hydrogen-gas combustion control system is almost 2000, great time and effort are needed to be consumed by adopting a manual completion mode, the working efficiency is low, errors are prone to occurring, and the efficiency and the accuracy of data dictionary creation are low.
Disclosure of Invention
By providing the method for creating the data dictionary, the technical problems of low efficiency, low accuracy and the like in the manual data dictionary creation in the prior art are solved.
In one aspect, an embodiment of the present application provides a method for creating a data dictionary, where the method includes:
acquiring control variable information in a hydrogen-fuel control system;
constructing dictionary basic information on the control variable information to obtain corresponding dictionary basic information;
and creating a corresponding data dictionary for the hydrogen-fuel control system according to the dictionary basic information by adopting a programming technology.
Optionally, the constructing dictionary basis information on the control variable information to obtain corresponding dictionary basis information includes:
and storing the control variable information in a preset storage format to obtain the dictionary basic information.
Optionally, the acquiring control variable information in the hydrogen combustion control system comprises:
acquiring initial variable information in a hydrogen-fuel control system;
classifying and carding the initial variable information to obtain the control variable information;
the control variable information comprises variable information, parameter information, two-dimensional lookup table information and signal line information.
Optionally, the creating a corresponding data dictionary for the hydrogen combustion control system according to the dictionary basic information by using a programming technology comprises:
defining a conversion function for converting the dictionary base information into the data dictionary;
and calling the conversion function to convert the dictionary basic information into the data dictionary.
Optionally, the calling the conversion function, and the converting the dictionary basis information into the data dictionary includes:
defining a data dictionary object and creating a data dictionary file for storing the data dictionary;
assigning the created data dictionary file to the data dictionary object, and specifying the data dictionary file in the conversion function;
and calling the conversion function to convert the dictionary basic information into the data dictionary.
Optionally, the calling the conversion function, and the converting the dictionary basis information into the data dictionary includes:
and calling the conversion function, reading the dictionary basic information in a breakpoint, table and name identification mode, and storing the dictionary basic information into the conversion breakpoint and conversion table of the corresponding created entry in the data dictionary to obtain the converted data dictionary.
Optionally, the method further comprises:
opening the data dictionary and detecting whether the data dictionary is established correctly;
if yes, the conversion function is stored in a preset format file.
Optionally, the method further comprises:
creating a function reference for the data dictionary and displaying the data dictionary when the function reference is executed.
On the other hand, the present application provides a device for creating a data dictionary through an embodiment of the present application, where the device includes an obtaining module, a constructing module, and a creating module, where:
the acquisition module is used for acquiring control variable information in the hydrogen-fuel control system;
the construction module is used for constructing dictionary basic information of the control variable information to obtain corresponding dictionary basic information;
the creating module is used for creating a corresponding data dictionary for the hydrogen-fuel control system according to the dictionary basic information by adopting a programming technology.
For the content that is not introduced or not described in the embodiment of the present application, reference may be made to the related descriptions in the foregoing method embodiments, and details are not described here again.
On the other hand, the present application provides a terminal device according to an embodiment of the present application, where the terminal device includes: a processor, a memory, a communication interface, and a bus; the processor, the memory and the communication interface are connected through the bus and complete mutual communication; the memory stores executable program code; the processor executes a program corresponding to the executable program code by reading the executable program code stored in the memory for executing the data dictionary creating method as described above.
On the other hand, the present application provides a computer-readable storage medium storing a program that executes the method for creating a data dictionary as described above when the program runs on a terminal device, by an embodiment of the present application.
One or more technical solutions provided in the embodiments of the present application have at least the following technical effects or advantages: this application acquires the control variable information among the hydrogen combustion electric control system, then right the control variable information carries out the construction of dictionary basic information, obtains corresponding dictionary basic information, and then adopts programming technique direct basis the dictionary basic information does the hydrogen combustion electric control system establishes corresponding data dictionary, compares in the manual mode and establishes data dictionary, and this application can directly adopt programming technique to realize quick, the intelligent establishment of hydrogen combustion electric control system's data dictionary to save dictionary and establish time, improve and establish efficiency, reduce the error rate, also solved simultaneously among the prior art and adopted the manual mode to establish technical problem such as the efficiency is lower, the degree of accuracy is lower in the data dictionary.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on the drawings without creative efforts.
Fig. 1 is a schematic diagram of a data dictionary created manually according to the prior art.
Fig. 2 is a schematic flowchart of a method for creating a data dictionary according to an embodiment of the present application.
Fig. 3 is a flowchart of another data dictionary creation provided in an embodiment of the present application.
Fig. 4 is a schematic display interface diagram of a data dictionary according to an embodiment of the present application.
Fig. 5 is a schematic structural diagram of a data dictionary creating apparatus according to an embodiment of the present application.
Fig. 6 is a schematic structural diagram of a terminal device according to an embodiment of the present application.
Detailed Description
The applicant has also found in the course of the present application that: the existing hydrogen-fuel control system controls a large number of control variables in upper and lower layer integration, such as an upper and lower layer integration variable Simulink Signal (Signal line information) and a calibration observation Simulink Parameter (Parameter information), which are manually established in a DataDictionary module of Simulink. Please refer to fig. 1, which illustrates a diagram of data dictionary creation in the prior art. As shown in fig. 1, a user first opens a resource manager (specifically, Simulink Model Explorer) of a house live Model, and then adds control Variable types, such as Variable information (MTALAB Variable), Parameter information (Simulink Parameter), two-dimensional lookup table information (Simulink lookup table function), and Signal line indication information (Simulink Signal). And then, performing attribute definition on the variable types to be added, and finally storing the newly added variable types after the information is filled.
However, in practice, it is found that, for nearly 2000 control variables involved in the hydrogen-fuel control system, the work is completed manually, which requires a lot of time and effort, and has low work efficiency, high error probability, difficult error correction, long debugging time and the like.
By providing the method for creating the data dictionary, the technical problems of low efficiency, low accuracy and the like in the manual data dictionary creation in the prior art are solved.
In order to solve the technical problems, the general idea of the embodiment of the application is as follows: acquiring control variable information in a hydrogen-fuel control system; constructing dictionary basic information on the control variable information to obtain corresponding dictionary basic information; and creating a corresponding data dictionary for the hydrogen-fuel control system according to the dictionary basic information by adopting a programming technology.
In order to better understand the technical solution, the technical solution will be described in detail with reference to the drawings and the specific embodiments.
First, it is stated that the term "and/or" appearing herein is merely one type of associative relationship that describes an associated object, meaning that three types of relationships may exist, e.g., a and/or B may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" herein generally indicates that the former and latter related objects are in an "or" relationship.
In order to solve the problem of manual creation of a large number of control variables in the upper and lower layer integration of hydrogen-fuel control system control, a programming technology/means is adopted to realize the rapid creation of the control variables in a data dictionary (DataDirectionary) of a simulation model (Simulink). The technical principle adopted by the application is as follows: the data dictionary in the Simulink is a persistent repository for storing related data of the Simulink model, and the data dictionary has the function of uniformly storing all data objects used by one model to one place for management. The data objects include signal objects, parameter objects, variable objects, enumerated quantities, constants, and the like, i.e., the data dictionary is a collection of many data objects. The Simulink model does not need to be reloaded during running, and data are automatically searched from the data dictionary. The data dictionary is traceable, and not only records data, but also records modification behaviors and versions of the data. According to the technical scheme, the quick establishment project of the control variables and the calibration observed quantity integrated on the upper layer and the lower layer of the hydrogen-fuel control system is realized through a computer programming means. Specifically, the method comprises the following steps:
the method comprises the steps of firstly, combing control variables related to a hydrogen combustion control system and data object types, names and the like of calibration observed quantities, and storing the control variables and the data object types and the names in an electronic form; and programming the control variable information in the spreadsheet into a data dictionary of the hydrogen-fuel control system in a DataDictionary manner meeting the Simulink model by taking the control variable information in the spreadsheet as a basic data source.
Please refer to fig. 2, which is a flowchart illustrating a method for creating a data dictionary according to an embodiment of the present application. The method as shown in fig. 2 comprises the following implementation steps:
s201, acquiring control variable information in the hydrogen-fuel control system.
The number of control variable information (specifically, upper and lower integrated control variables in the system) related to the hydrogen-fuel control system of the application is about 2000, and the information specifically includes four types: variable information (MTALAB Variable), Parameter information (Simulink Parameter), two-dimensional lookup table information (Simulink lookup table function), Signal line information (Simulink Signal), and the like.
In an optional embodiment, the present application may first obtain initial variable information in a hydrogen-fuel control system, and then classify and comb the initial variable information to obtain the controlled variable information, where the controlled variable information includes four types of information: variable information, parameter information, two-dimensional lookup table information, and signal line information.
Wherein the variable information, the Parameter information, the two-dimensional lookup table information, and the signal line information are all set by the hydrogen-fuel control system, for example, the Simulink Parameter includes but is not limited to: coolt _ pstkinsstartthreshold _ C (stack cooling water pressure establishment threshold), Coolt _ tsteststopthreshold _ C (shutdown completion cooling water temperature threshold), FCState _ stTestCtrl _ C (state machine test control state), FCState _ stTest _ C (state machine test state), FC _ iDeloadThreshold _ C (load down completion current threshold setting), and FC _ idesethreshold _ C (idle state switching current threshold), and the like. The Simulink Signal includes but is not limited to: cool _ tStkOutStopThreshold (shutdown completion cooling water temperature threshold), Dsm _ eprominfoold (EEPROM memory state check), FCState _ st (fuel cell state), FCState _ stRaw (fuel cell state original value), FCState _ stTest (fuel cell test state), FC _ stloadoverflg (unloading completion flag), FC _ stletorufflg (operating state switching flag), FC _ stvlvsstopflg (valve close flag), FC _ idle (idle operating timer), FC _ tillealow (idle allowed maximum time), idletate _ In (entering idle state), and idletate _ Out (exiting idle state), and the like.
It should be noted that, the control variable information corresponding to each control variable includes one or more field information, for example, it may include, but is not limited to, any one or combination of the following field information: order (serial number), Name (Name), Status (Status), Value (initial Value), DataType (variable type), Dimensions (dimension), Complexity (complex type), Min (minimum Value), Max (maximum Value), Unit (Unit), and StorageClass (storage type).
S202, constructing dictionary basic information on the control variable information to obtain corresponding dictionary basic information.
The method and the device can store and convert the combed control variable information into the corresponding dictionary basic information in a preset storage format, so as to serve as a data source of a data dictionary for creating a Simulink model of the hydrogen combustion control system.
The preset storage format is set by a system in a self-defined mode, for example, the preset storage format is in an Excel spreadsheet form and the like. Taking an Excel spreadsheet as an example, the method can store the combed control variable information into the Excel spreadsheet to serve as a data source created by a data dictionary.
It should be noted that the control variable information obtained by the step S201 is constructed into Excel dictionary basic information in a standard format, and it is very important to determine the specific value of each field information in the dictionary basic information, and the accuracy of the variable definition directly affects the accuracy of the Simulink model of the hydrogen combustion control system. In particular, the storage type of the control variable in the data dictionary is determined by the storage type of the control variable in the dictionary base information. The variable storage types supported by the Simulink data dictionary include, but are not limited to, constants, calibration observations, lookup two-dimensional lookup tables, signal lines, and the like. For example, please refer to table 1 below to show dictionary basis information of a possible Excel spreadsheet.
TABLE 1
Figure BDA0003251014130000081
And S203, creating a corresponding data dictionary for the hydrogen combustion control system according to the dictionary basic information by adopting a programming technology.
Please refer to fig. 3, which is a flowchart illustrating another method for creating a data dictionary according to an embodiment of the present application. FIG. 3 shows that the creation flow of the data dictionary includes four parts: the method comprises the steps of combing control variables of the upper layer and the lower layer of the hydrogen combustion control system (S301), constructing dictionary basic information of a control variable data dictionary (S302), realizing a programming technology of the control variables to the data dictionary function (S303) and creating references of the data dictionary function (S304). The steps S301 and S302 may refer to the related description in the foregoing steps S201 and S202, and are not described herein again. Steps S303 and S304 may correspond to step S203, which is specifically implemented as:
first, a function for converting dictionary base information into a data dictionary may be defined, for example, a function importexextadd () for converting Excel dictionary base information into a data dictionary. Wherein, function import exceltodd (workbook, dictionary name); wherein, the workbook file is Excel dictionary basic information including control variable information; the dictionary name is an ssld file for converting control variable information of Excel into a Simulink data dictionary to store the converted data dictionary information. In addition, the two-dimensional lookup table in the workbook, which is used for converting the dictionary basic information of Excel into the data dictionary, can be in any size. In the whole page browsing of the workbook, the basic information of the Excel dictionary is divided into a breakpoint, a table (table) and a name identifier thereof. Assuming that breakpoint 1 is in the first column and breakpoint 2 is in the first row, cells a2, B1, and B2 define breakpoint names and table names, Excel dictionary base information is ready to be stored in the design data (design data) portion of the data dictionary where entries can be created to store corresponding conversion breakpoints and conversion tables.
Then, a data dictionary file myexceltodd is created for storing the data dictionary, which can also be understood as creating data dictionary storage information table data. Specifically, the present application may first define a data dictionary object, such as mydictionary obj, and create a data dictionary file name, such as myexceltodd.sldd; and further assigning the file name of the created data dictionary to the defined data dictionary object, wherein the code is as follows:
myDictionaryObj=Simulink.data.dictionary.create('myExcelToDD.sldd')
and then appointing the data dictionary file in a function for converting the defined Excel dictionary basic information into a data dictionary, wherein the code is as follows:
importExcelToDD(‘controlvar.xlsx’,’myExcelToDD.sldd’)
moreover, the Excel dictionary basic information can be converted into a function of the data dictionary by calling, so that the dictionary basic information is converted into the data dictionary. Specifically, when calling a function for converting Excel dictionary basic information into a data dictionary, the method inputs variables workbook file and dictionary name, wherein:
workbookFile=‘controlvar.xlsx’
dictionaryName=’myExcelToDD.sldd’
the code is as follows:
importExcelToDD(‘controlvar.xlsx’,’myExcelToDD.sldd’)
furthermore, the data dictionary can be opened in the model resource manager. Specifically, in the Simulink model resource manager, the created data dictionary is opened, and the correctness of the creation of the data dictionary is detected, for example, whether the software cannot open the data dictionary automatically or whether each field information of the control variable information is correct or not is detected manually and automatically. If the result is correct, the subsequent flow is continuously executed; otherwise, ending the flow. Fig. 4 is a schematic diagram of a data dictionary in a possible Simulink model resource manager.
Furthermore, the function is saved as a file with a preset format, such as an m file of Matlab, importexeltedd.m, and the like. Specifically, the constructed dictionary base information of the Excel control variable is converted into a function of a data dictionary of the Simulink model and stored as an m file of Matlab, and the file name is import excelToDD.
Finally, the application can create a reference myexceltodd. Specifically, the data dictionary object can be created first, and the codes are as follows:
myDictionaryObj=Simulink.data.dictionary.create('myExcelToDD.sldd');
the call command then displays the data dictionary object with the call command codes as follows:
show(myDictionaryObj)。
it should be noted that the programming languages that may be referred to in the present application include, but are not limited to, Excel, Matlab, etc.
Through implementing this application, this application acquires the control variable information among the hydrogen combustion electric control system, then right the control variable information carries out the construction of dictionary basic information, obtains corresponding dictionary basic information, and then adopts programming technique direct basis the dictionary basic information is hydrogen combustion electric control system establishes corresponding data dictionary, compares in the manual mode and establishes data dictionary, and this application can directly adopt programming technique to realize quick, the intelligent establishment of hydrogen combustion electric control system's data dictionary to save dictionary and establish time, improve and establish efficiency, reduce the error rate, also solved the technical problem such as the efficiency that exists is lower, the degree of accuracy is lower among the prior art in adopting the manual mode to establish data dictionary simultaneously.
Based on the same inventive concept, another embodiment of the present application provides a device and a terminal device for implementing the method for creating a data dictionary in the embodiment of the present application.
Please refer to fig. 5, which is a schematic structural diagram of a data dictionary creating apparatus according to an embodiment of the present application. The apparatus shown in fig. 5 comprises: an obtaining module 501, a constructing module 502 and a creating module 503, wherein:
the acquiring module 501 is used for acquiring control variable information in the hydrogen-fuel control system;
the constructing module 502 is configured to construct dictionary basic information for the control variable information to obtain corresponding dictionary basic information;
the creating module 503 is configured to create a corresponding data dictionary for the hydrogen combustion control system according to the dictionary basic information by using a programming technique.
Optionally, the building module 502 is specifically configured to:
and storing the control variable information in a preset storage format to obtain the dictionary basic information.
Optionally, the obtaining module 501 is specifically configured to:
acquiring initial variable information in a hydrogen-fuel control system;
classifying and carding the initial variable information to obtain the control variable information;
the control variable information comprises variable information, parameter information, two-dimensional lookup table information and signal line information.
Optionally, the creating module 503 is specifically configured to:
defining a conversion function for converting the dictionary base information into the data dictionary;
and calling the conversion function to convert the dictionary basic information into the data dictionary.
Optionally, the creating module 503 is specifically configured to:
defining a data dictionary object and creating a data dictionary file for storing the data dictionary;
assigning the created data dictionary file to the data dictionary object, and specifying the data dictionary file in the conversion function;
and calling the conversion function to convert the dictionary basic information into the data dictionary.
Optionally, the creating module 503 is specifically configured to:
and calling the conversion function, reading the dictionary basic information in a breakpoint, table and name identification mode, and storing the dictionary basic information into the conversion breakpoint and conversion table of the corresponding created entry in the data dictionary to obtain the converted data dictionary.
Optionally, the creating module 503 is further configured to:
opening the data dictionary and detecting whether the data dictionary is established correctly;
if yes, the conversion function is stored in a preset format file.
Optionally, the creating module 503 is further configured to:
creating a function reference for the data dictionary and displaying the data dictionary when the function reference is executed.
Please refer to fig. 6, which is a schematic structural diagram of a terminal device according to an embodiment of the present application. The terminal device 60 shown in fig. 6 includes: at least one processor 601, a communication interface 602, a user interface 603 and a memory 604, wherein the processor 601, the communication interface 602, the user interface 603 and the memory 604 can be connected by a bus or other means, and the embodiment of the present invention is exemplified by being connected by the bus 605. Wherein the content of the first and second substances,
processor 601 may be a general-purpose processor, such as a Central Processing Unit (CPU).
The communication interface 602 may be a wired interface (e.g., an ethernet interface) or a wireless interface (e.g., a cellular network interface or using a wireless local area network interface) for communicating with other terminals or websites. In this embodiment of the present invention, the communication interface 602 is specifically configured to obtain control variable information.
The user interface 603 may specifically be a touch panel, including a touch screen and a touch screen, for detecting an operation instruction on the touch panel, and the user interface 603 may also be a physical button or a mouse. The user interface 603 may also be a display screen for outputting, displaying images or data.
Memory 604 may include Volatile Memory (Volatile Memory), such as Random Access Memory (RAM); the Memory may also include a Non-Volatile Memory (Non-Volatile Memory), such as a Read-Only Memory (ROM), a Flash Memory (Flash Memory), a Hard Disk (Hard Disk Drive, HDD), or a Solid-State Drive (SSD); the memory 604 may also comprise a combination of the above types of memory. The memory 604 is used for storing a set of program codes, and the processor 601 is used for calling the program codes stored in the memory 604 and executing the following operations:
acquiring control variable information in a hydrogen-fuel control system;
constructing dictionary basic information on the control variable information to obtain corresponding dictionary basic information;
and creating a corresponding data dictionary for the hydrogen-fuel control system according to the dictionary basic information by adopting a programming technology.
Optionally, the constructing dictionary basis information on the control variable information to obtain corresponding dictionary basis information includes:
and storing the control variable information in a preset storage format to obtain the dictionary basic information.
Optionally, the acquiring control variable information in the hydrogen combustion control system comprises:
acquiring initial variable information in a hydrogen-fuel control system;
classifying and carding the initial variable information to obtain the control variable information;
the control variable information comprises variable information, parameter information, two-dimensional lookup table information and signal line information.
Optionally, the creating a corresponding data dictionary for the hydrogen combustion control system according to the dictionary basic information by using a programming technology comprises:
defining a conversion function for converting the dictionary base information into the data dictionary;
and calling the conversion function to convert the dictionary basic information into the data dictionary.
Optionally, the calling the conversion function, and the converting the dictionary basis information into the data dictionary includes:
defining a data dictionary object and creating a data dictionary file for storing the data dictionary;
assigning the created data dictionary file to the data dictionary object, and specifying the data dictionary file in the conversion function;
and calling the conversion function to convert the dictionary basic information into the data dictionary.
Optionally, the calling the conversion function, and the converting the dictionary basis information into the data dictionary includes:
and calling the conversion function, reading the dictionary basic information in a breakpoint, table and name identification mode, and storing the dictionary basic information into the conversion breakpoint and conversion table of the corresponding created entry in the data dictionary to obtain the converted data dictionary.
Optionally, the processor 601 is further configured to:
opening the data dictionary and detecting whether the data dictionary is established correctly;
if yes, the conversion function is stored in a preset format file.
Optionally, the processor 601 is further configured to:
creating a function reference for the data dictionary and displaying the data dictionary when the function reference is executed.
Since the terminal device described in this embodiment is a terminal device used for implementing the method for creating a data dictionary in this embodiment, based on the method for creating a data dictionary described in this embodiment, a person skilled in the art can understand the specific implementation of the terminal device in this embodiment and various variations thereof, and therefore, how to implement the method in this embodiment by the terminal device is not described in detail here. The terminal device used by a person skilled in the art to implement the method for processing information in the embodiment of the present application is within the scope of the protection intended by the present application.
The technical scheme in the embodiment of the application at least has the following technical effects or advantages: this application acquires the control variable information among the hydrogen combustion electric control system, then right the control variable information carries out the construction of dictionary basic information, obtains corresponding dictionary basic information, and then adopts programming technique direct basis the dictionary basic information does the hydrogen combustion electric control system establishes corresponding data dictionary, compares in the manual mode and establishes data dictionary, and this application can directly adopt programming technique to realize quick, the intelligent establishment of hydrogen combustion electric control system's data dictionary to save dictionary and establish time, improve and establish efficiency, reduce the error rate, also solved simultaneously among the prior art and adopted the manual mode to establish technical problem such as the efficiency is lower, the degree of accuracy is lower in the data dictionary.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the invention.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (10)

1. A method for creating a data dictionary, the method comprising:
acquiring control variable information in a hydrogen-fuel control system;
constructing dictionary basic information on the control variable information to obtain corresponding dictionary basic information;
and creating a corresponding data dictionary for the hydrogen-fuel control system according to the dictionary basic information by adopting a programming technology.
2. The method according to claim 1, wherein the constructing dictionary basis information for the control variable information to obtain corresponding dictionary basis information comprises:
and storing the control variable information in a preset storage format to obtain the dictionary basic information.
3. The method of claim 1, wherein the obtaining control variable information in a hydrogen combustion control system comprises:
acquiring initial variable information in a hydrogen-fuel control system;
classifying and carding the initial variable information to obtain the control variable information;
the control variable information comprises variable information, parameter information, two-dimensional lookup table information and signal line information.
4. The method of claim 1, wherein said employing a programming technique to create a corresponding data dictionary for the hydrogen combustion control system based on the dictionary basis information comprises:
defining a conversion function for converting the dictionary base information into the data dictionary;
and calling the conversion function to convert the dictionary basic information into the data dictionary.
5. The method of claim 4, wherein said invoking said transformation function to transform said dictionary basis information into said data dictionary comprises:
defining a data dictionary object and creating a data dictionary file for storing the data dictionary;
assigning the created data dictionary file to the data dictionary object, and specifying the data dictionary file in the conversion function;
and calling the conversion function to convert the dictionary basic information into the data dictionary.
6. The method of claim 5, wherein said invoking said transfer function to transfer said dictionary basis information to said data dictionary comprises:
and calling the conversion function, reading the dictionary basic information in a breakpoint, table and name identification mode, and storing the dictionary basic information into the conversion breakpoint and conversion table of the corresponding created entry in the data dictionary to obtain the converted data dictionary.
7. The method of claim 5, further comprising:
opening the data dictionary and detecting whether the data dictionary is established correctly;
if yes, the conversion function is stored in a preset format file.
8. The method of claim 1, further comprising:
creating a function reference for the data dictionary and displaying the data dictionary when the function reference is executed.
9. A terminal device, comprising: a processor, a memory, a communication interface, and a bus; the processor, the memory and the communication interface are connected through the bus and complete mutual communication; the memory stores executable program code; the processor executes a program corresponding to the executable program code by reading the executable program code stored in the memory for performing the method of creating a data dictionary as set forth in any one of claims 1 to 8 above.
10. A computer storage medium characterized in that the computer-readable storage medium stores a program that executes the method of creating a data dictionary according to any one of claims 1 to 8 when the program is run on a terminal device.
CN202111045504.1A 2021-09-07 2021-09-07 Data dictionary creating method, terminal device and medium Pending CN113886647A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111045504.1A CN113886647A (en) 2021-09-07 2021-09-07 Data dictionary creating method, terminal device and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111045504.1A CN113886647A (en) 2021-09-07 2021-09-07 Data dictionary creating method, terminal device and medium

Publications (1)

Publication Number Publication Date
CN113886647A true CN113886647A (en) 2022-01-04

Family

ID=79008520

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111045504.1A Pending CN113886647A (en) 2021-09-07 2021-09-07 Data dictionary creating method, terminal device and medium

Country Status (1)

Country Link
CN (1) CN113886647A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113971210A (en) * 2021-12-27 2022-01-25 宇动源(北京)信息技术有限公司 Data dictionary generation method and device, electronic equipment and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113971210A (en) * 2021-12-27 2022-01-25 宇动源(北京)信息技术有限公司 Data dictionary generation method and device, electronic equipment and storage medium
CN113971210B (en) * 2021-12-27 2022-04-08 宇动源(北京)信息技术有限公司 Data dictionary generation method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN107239392B (en) Test method, test device, test terminal and storage medium
US9009175B2 (en) System and method for database migration and validation
CN111738404B (en) Model training task processing method and device, electronic equipment and storage medium
CN111061475A (en) Software code generation method and device, computer equipment and storage medium
CN112506757A (en) Automatic test method, system, computer device and medium thereof
CN110795162B (en) Method and device for generating container mirror image file
CN113886647A (en) Data dictionary creating method, terminal device and medium
CN107844099A (en) A kind of FBD on-line debugging method based on metadata schema
CN108897551A (en) A kind of generation method and device of quoting resource relational tree
CN103106088A (en) Hardware and firmware independently updating system and method thereof
CN111124872A (en) Branch detection method and device based on difference code analysis and storage medium
CN112597023A (en) Case management method and device based on guide picture, computer equipment and storage medium
JP6516343B2 (en) Application user interface automatic test method, electronic device, system and storage medium
CN115543428A (en) Simulated data generation method and device based on strategy template
CN113626438B (en) Data table management method, device, computer equipment and storage medium
CN104615539A (en) Measurement parameter processing method and system
WO2019085354A1 (en) Excel system interface-based database linkage method, electronic device, and storage medium
CN113094240B (en) Abnormality monitoring method for application program, mobile terminal and storage medium
CN115221852A (en) Vxe-table based dynamic calculation table implementation method, device and computer equipment
CN114218261A (en) Data query method and device, storage medium and electronic equipment
CN114187685A (en) Method, system, equipment and medium for optimizing power consumption of intelligent lock
CN114326654B (en) Fault diagnosis method, system, equipment and computer readable storage medium
CN103116495B (en) Based on automatic storage method and the device of the single-chip microcomputer register value of IDE
WO2021051583A1 (en) Method and apparatus for transmitting and collecting variable, and computer-readable storage medium
CN112506501A (en) Editing method and device for screen detection application, computer equipment and storage medium

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