Data dictionary creation method, terminal equipment and media
By obtaining and constructing control variable information of hydrogen fuel power control system, programming technology is used to create a data dictionary, which solves the problems of low efficiency and low accuracy in the existing technology, and realizes fast and intelligent data dictionary creation.
Patent Information
- Application Number
- CN202111045504.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-09-07
- Publication Date
- 2025-08-12
- Estimated Expiration
- 2041-09-07
AI Technical Summary
In the prior art, the data dictionary creation of hydrogen-fuel power control systems is low in efficiency and accuracy, and the manual method is time-consuming and error-prone.
By obtaining the control variable information of the hydrogen-fuel power control system, the basic information of the dictionary is constructed, and programming technology is used to create a data dictionary.
It realizes the rapid and intelligent creation of the data dictionary of hydrogen fuel power control system, saving time, improving efficiency and reducing error rates.
Smart Images

Figure CN113886647B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of terminal technology, and in particular to a method for creating a data dictionary, a terminal device, and a medium. Background Art
[0002] At present, hydrogen fuel cells have become a hot field of research in the field of new energy at home and abroad due to their advantages such as high efficiency, zero emissions, short refueling time and long driving range.
[0003] For hydrogen-fired power control systems, many key components are coordinated and controlled as a whole through the controller area network (CAN) (also known as the CAN communication network). The effectiveness of the advantages of hydrogen-fired power control systems and the achievement of key indicators are closely related to the control functions of the hydrogen-fired power controller. The control of the hydrogen-fired power controller is completed by three parts: upper-layer application control, lower-layer driver control, and upper-layer and lower-layer integration. However, when the hydrogen-fired power control system completes the scheduling of the upper-layer application to the lower-layer driver, during the construction of the simulation model (such as Simulink), there are a large number of control variables in the upper and lower layers. These control variables are implemented by the Simulink Data Dictionary module.
[0004] However, in practice, it has been found that the data dictionary corresponding to the control variables is currently created manually in the Simulink DataDictionary module. However, due to the large number of control variables involved in hydrogen-fired power control systems (nearly 2,000), manual creation is time-consuming and labor-intensive, inefficient, and prone to errors, resulting in low efficiency and accuracy in data dictionary creation. Summary of the Invention
[0005] The embodiments of the present application provide a method for creating a data dictionary, thereby solving the technical problems of low efficiency and low accuracy in the prior art of manually creating a data dictionary.
[0006] On the one hand, the present application provides a method for creating a data dictionary through an embodiment of the present application, the method comprising:
[0007] Obtain control variable information in hydrogen fuel cell control systems;
[0008] Constructing dictionary basic information for the control variable information to obtain corresponding dictionary basic information;
[0009] A programming technique is used to create a corresponding data dictionary for the hydrogen-fired power control system according to the basic information of the dictionary.
[0010] Optionally, constructing dictionary basic information for the control variable information to obtain corresponding dictionary basic information includes:
[0011] The control variable information is stored in a preset storage format to obtain the dictionary basic information.
[0012] Optionally, obtaining control variable information in the hydrogen-fired power control system includes:
[0013] Obtaining initial variable information in the hydrogen fuel cell control system;
[0014] Classifying and sorting the initial variable information to obtain the control variable information;
[0015] The control variable information includes variable information, parameter information, two-dimensional lookup table information and signal line information.
[0016] Optionally, the creating a corresponding data dictionary for the hydrogen-fired power control system according to the dictionary basic information using programming technology includes:
[0017] defining a conversion function for converting the dictionary basic information into the data dictionary;
[0018] The conversion function is called to convert the dictionary basic information into the data dictionary.
[0019] Optionally, calling the conversion function to convert the dictionary basic information into the data dictionary includes:
[0020] Define a data dictionary object and create a data dictionary file for storing the data dictionary;
[0021] Assigning the created data dictionary file to the data dictionary object, and specifying the data dictionary file in the conversion function;
[0022] The conversion function is called to convert the dictionary basic information into the data dictionary.
[0023] Optionally, calling the conversion function to convert the dictionary basic information into the data dictionary includes:
[0024] The conversion function is called to read the basic information of the dictionary in the form of breakpoints, tables and name identifiers, and stored in the conversion breakpoints and conversion tables corresponding to the created entries in the data dictionary to obtain the converted data dictionary.
[0025] Optionally, the method further includes:
[0026] Open the data dictionary and check whether the data dictionary is created correctly;
[0027] If so, the conversion function is saved in a preset format file.
[0028] Optionally, the method further includes:
[0029] A function reference of the data dictionary is created, and the data dictionary is displayed when the function reference is executed.
[0030] On the other hand, the present application provides a device for creating a data dictionary through an embodiment of the present application, the device comprising an acquisition module, a construction module and a creation module, wherein:
[0031] The acquisition module is used to acquire control variable information in the hydrogen-fired power control system;
[0032] The construction module is used to construct dictionary basic information for the control variable information to obtain corresponding dictionary basic information;
[0033] The creation module is used to create a corresponding data dictionary for the hydrogen-fired power control system based on the basic information of the dictionary using programming technology.
[0034] For the contents not introduced or described in the embodiments of the present application, please refer to the relevant introduction in the aforementioned method embodiments, which will not be repeated here.
[0035] On the other hand, the present application provides a terminal device through an embodiment of the present application, and 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 communication with each other; the memory stores executable program code; the processor runs the program corresponding to the executable program code by reading the executable program code stored in the memory, so as to execute the data dictionary creation method as described above.
[0036] On the other hand, the present application provides a computer-readable storage medium through an embodiment of the present application, wherein the computer-readable storage medium stores a program, and when the program runs on a terminal device, the method for creating a data dictionary as described above is executed.
[0037] One or more technical solutions provided in the embodiments of the present application have at least the following technical effects or advantages: the present application obtains control variable information in a hydrogen-fired power control system, then constructs dictionary basic information for the control variable information to obtain corresponding dictionary basic information, and then uses programming technology to directly create a corresponding data dictionary for the hydrogen-fired power control system based on the dictionary basic information. Compared with manually creating a data dictionary, the present application can directly use programming technology to achieve fast and intelligent creation of a data dictionary for a hydrogen-fired power control system, thereby saving dictionary creation time, improving creation efficiency, and reducing error rate. At the same time, it also solves the technical problems of low efficiency and low accuracy in manually creating data dictionaries in the existing technology. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following is a brief introduction to the drawings required for use in the description of the embodiments. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0039] Figure 1 This is a schematic diagram of manually creating a data dictionary provided by the existing technology.
[0040] Figure 2 This is a flowchart of a method for creating a data dictionary provided in an embodiment of the present application.
[0041] Figure 3 This is another data dictionary creation flow chart provided in an embodiment of the present application.
[0042] Figure 4 This is a schematic diagram of a display interface of a data dictionary provided in an embodiment of the present application.
[0043] Figure 5 It is a structural diagram of a data dictionary creation device provided in an embodiment of the present application.
[0044] Figure 6 This is a structural diagram of a terminal device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0045] In the process of filing this application, the applicant also discovered that a large number of control variables in the upper and lower layer integration of the currently known hydrogen fuel cell control system, such as the upper and lower layer integration variable Simulink Signal (signal line information) and calibration observation quantity Simulink Parameter (parameter information), are all manually established in the Simulink DataDictionary module. Figure 1A schematic diagram showing the creation of a data dictionary in the prior art is shown. Figure 1 In the Simulink Model Explorer, users first open the house model's resource manager (specifically, the Simulink Model Explorer). Then, they add control variable types, such as variable information (MTALAB Variable), parameter information (Simulink Parameter), two-dimensional lookup table information (SimulinkLookupTable function), and signal line indication information (Simulink Signal). Then, they define the properties of the variable types they want to add. After completing the information, they save the newly added variable types.
[0046] However, in practice, it was found that the hydrogen-fired power control system involves nearly 2,000 control variables. Manually completing this project work requires a lot of time and energy, and the work efficiency is low, errors are prone to occur, error correction is difficult, and debugging takes a long time.
[0047] The embodiments of the present application provide a method for creating a data dictionary, thereby solving the technical problems of low efficiency and low accuracy in the prior art of manually creating a data dictionary.
[0048] The technical solution of the embodiment of the present application is to solve the above-mentioned technical problems. The overall idea is as follows: obtain the control variable information in the hydrogen-fired power control system; construct dictionary basic information for the control variable information to obtain corresponding dictionary basic information; use programming technology to create a corresponding data dictionary for the hydrogen-fired power control system based on the dictionary basic information.
[0049] In order to better understand the above technical solution, the above technical solution will be described in detail below with reference to the accompanying drawings and specific implementation methods.
[0050] First, the term "and / or" as used herein simply describes a relationship between associated objects, indicating that three possible relationships exist. For example, "A and / or B" can represent: A alone, A and B together, or B alone. Furthermore, the character " / " in this document generally indicates an "or" relationship between the associated objects.
[0051] In order to solve the problem of manual creation of a large number of control variables in the integration of upper and lower control layers of a hydrogen-fired power control system, this application adopts programming technology / means to realize the rapid creation of control variables in the data dictionary (DataDictionary) of a simulation model (Simulink). The technical principle adopted by this application is: the data dictionary in Simulink is a persistent repository for storing Simulink model-related data. The function of the data dictionary DataDictionary is to store all data objects used by a model in one place for management. Data objects include signal objects, parameter objects, variable objects, enumerations, and constants, etc., that is, the data dictionary is a collection of many data objects. The Simulink model does not need to be reloaded during operation, and data is automatically searched from the data dictionary. The data dictionary is traceable, it not only records data, but also records the modification behavior and version of the data. The technical solution of this application realizes the rapid creation of control variables and calibrated observation quantities for the integration of upper and lower layers of hydrogen-fired power control systems through computer programming means. Specifically:
[0052] This application first sorts out the data object types, names, etc. of the control variables and calibration observations involved in the hydrogen-fired power control system and stores them in a spreadsheet; using the control variable information in the spreadsheet as the basic data source, the control variable information in the spreadsheet is written into the data dictionary of the hydrogen-fired power control system through programming in a DataDictionary manner that satisfies the Simulink model.
[0053] See Figure 2 , is a flow chart of a method for creating a data dictionary provided in an embodiment of the present application. Figure 2 The method shown includes the following implementation steps:
[0054] S201. Obtain control variable information in a hydrogen fuel cell control system.
[0055] There are nearly 2,000 pieces of control variable information involved in the hydrogen-fired power control system of this application (specifically, the upper and lower integrated control variables in the system), which specifically include four categories: variable information (MTALAB Variable), parameter information (SimulinkParameter), two-dimensional lookup table information (Simulink LookupTable function) and signal line information (SimulinkSignal), etc.
[0056] In an optional embodiment, the present application may first obtain the initial variable information in the hydrogen-fired power control system, and then classify and sort the initial variable information to obtain the control variable information. The control variable information includes four types of information: variable information, parameter information, two-dimensional lookup table information and signal line information.
[0057] Among them, the variable information, the parameter information, the two-dimensional lookup table information and the signal line information are all customized settings of the hydrogen fuel cell control system. For example, the Simulink Parameter includes but is not limited to: Coolt_pStkInStartThreshold_C (stack cooling water pressure establishment threshold), Coolt_tStkOutStopThreshold_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 reduction completion current threshold setting) and FC_iIdleThreshold_C (idle state switching current threshold), etc. The Simulink Signal (signal line) includes but is not limited to: Coolt_tStkOutStopThreshold (cooling water temperature threshold for shutdown completion), Dsm_EepromInfoOld (EEPROM memory status check), FCState_st (fuel cell status), FCState_stRaw (fuel cell status raw value), FCState_stTest (fuel cell test status), FC_stDeloadOverFlg (unloading completion flag), FC_stIdleToRunFlg (running state switching flag), FC_stVlvStopFlg (valve closing flag), FC_tiIdle (idle operation timer), FC_tiIdleAlow (maximum idle time allowed), IdleState_In (entering idle state) and IdleState_Out (exiting idle state), etc.
[0058] 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 more combinations of the following field information: Order (serial number), Name (name), Status (status), Value (initial value), DataType (variable type), Dimensions (dimensions), Complexity (complex type), Min (minimum value), Max (maximum value), Unit (unit) and StorageClass (storage type), etc.
[0059] S202: Construct dictionary basic information for the control variable information to obtain corresponding dictionary basic information.
[0060] The present application can convert the sorted control variable information into the corresponding dictionary basic information in the form of a preset storage format, so as to serve as a data source for creating a data dictionary of a Simulink model of a hydrogen fuel cell control system.
[0061] The preset storage format is a system-defined format, such as an Excel spreadsheet, etc. Taking an Excel spreadsheet as an example, the present application can store the sorted control variable information in an Excel spreadsheet as a data source for creating a data dictionary.
[0062] It should be noted that this application constructs the control variable information sorted out by S201 into Excel dictionary basic information in a standard format. At the same time, it is very important to determine the specific value of each field information in the dictionary basic information. The accuracy of the variable definition directly affects the accuracy of the Simulink model of the hydrogen-fired power control system. In particular, the StorageClass (storage type) in the dictionary basic information determines the storage type of the control variable in the data dictionary. The variable storage types supported by the Simulink data dictionary include, but are not limited to, constants, calibrated observations, lookup two-dimensional lookup tables, and signal lines. For example, please refer to the following Table 1 which shows the dictionary basic information of a possible Excel spreadsheet.
[0063] Table 1
[0064]
[0065] S203: Create a corresponding data dictionary for the hydrogen-fired power control system according to the basic dictionary information using programming technology.
[0066] Please also see Figure 3 , is a flow chart of another method for creating a data dictionary provided in an embodiment of the present application. Figure 3 The data dictionary creation process is shown to include four parts: sorting out the upper and lower control variables of the hydrogen-fired power control system (S301), constructing the basic information of the control variable data dictionary (S302), programming techniques for implementing the control variable to data dictionary function (S303), and creating a reference to the data dictionary function function (S304). Among them, steps S301 and S302 can correspond to the relevant descriptions of the aforementioned steps S201 and S202, and will not be repeated here. Steps S303 and S304 can correspond to step S203, and their specific implementation is as follows:
[0067] First, this application can define a function that converts dictionary basic information into a data dictionary, such as defining a function importExcelToDD() that converts Excel dictionary basic information into a data dictionary. Among them, functionimportExcelToDD(workbookFile, dictionaryName); wherein workbookFile is the Excel dictionary basic information including control variable information; dictionaryName is the ssld file that converts Excel's control variable information into a Simulink data dictionary to store the converted data dictionary information. In addition, the two-dimensional lookup table in the workbook in which this application converts Excel's dictionary basic information into a data dictionary can be of any size. In the full-page browsing of the workbook, the Excel dictionary basic information is divided into breakpoints, tables (cells) and their name identifiers. Assuming that breakpoint 1 is in the first column and breakpoint 2 is in the first row, cells A2, B1 and B2 define the breakpoint name and table name, and the Excel dictionary basic information is to be stored in the design data (design data) part of the data dictionary. Entries can be created in the data dictionary to store the corresponding conversion breakpoints and conversion tables.
[0068] Next, create a data dictionary file myExcelToDD.sldd for storing the data dictionary, which can also be understood as creating a data dictionary to store information table data. Specifically, this application can first define a data dictionary object, such as myDictionaryObj, and create a data dictionary file name, such as myExcelToDD.sldd; further assign the created data dictionary file name to the defined data dictionary object, as shown in the following code:
[0069] myDictionaryObj=Simulink.data.dictionary.create('myExcelToDD.sldd')
[0070] Then, in the function that defines how to convert the basic information of the Excel dictionary into a data dictionary, specify the data dictionary file. The code is as follows:
[0071] importExcelToDD('controlvar.xlsx', 'myExcelToDD.sldd')
[0072] Furthermore, the application can call the function that converts the Excel dictionary basic information into a data dictionary to convert the dictionary basic information into a data dictionary. Specifically, when the application calls the function that converts the Excel dictionary basic information into a data dictionary, the variables workbookFile and dictionaryName are input, where:
[0073] workbookFile='controlvar.xlsx'
[0074] dictionaryName='myExcelToDD.sldd'
[0075] The code is as follows:
[0076] importExcelToDD('controlvar.xlsx', 'myExcelToDD.sldd')
[0077] Furthermore, this application can open the data dictionary in the model explorer. Specifically, this application opens the created data dictionary in the Simulink model explorer and checks the correctness of the data dictionary creation, such as whether the software cannot automatically open the data dictionary, or whether the information of each field of the control variable information is correct. If it is correct, continue to execute the subsequent process; otherwise, end the process. See Figure 4 Schematic diagram showing a possible data dictionary in the Simulink Model Explorer.
[0078] Furthermore, this application saves the function as a preset format file, for example, as a Matlab m file, importExcelToDD.m, etc. Specifically, this application converts the constructed dictionary basic information of the Excel control variable into a function of the data dictionary of the Simulink model and saves it as a Matlab m file named importExcelToDD.m.
[0079] Finally, the application can create a reference to the data dictionary function myExcelToDD.sldd. Specifically, the application can first create a data dictionary object, the code is as follows:
[0080] myDictionaryObj=Simulink.data.dictionary.create('myExcelToDD.sldd');
[0081] Then call the command to display the data dictionary object. The calling command code is as follows:
[0082] show(myDictionaryObj).
[0083] It should be noted that the programming languages that may be involved in this application include Excel and Matlab, but are not limited to them.
[0084] By implementing the present application, the present application obtains control variable information in a hydrogen-fired power control system, then constructs dictionary basic information for the control variable information to obtain corresponding dictionary basic information, and then uses programming technology to directly create a corresponding data dictionary for the hydrogen-fired power control system based on the dictionary basic information. Compared with manually creating a data dictionary, the present application can directly use programming technology to achieve fast and intelligent creation of a data dictionary for a hydrogen-fired power control system, thereby saving dictionary creation time, improving creation efficiency, and reducing error rate. At the same time, it also solves the technical problems of low efficiency and low accuracy in manually creating data dictionaries in the existing technology.
[0085] Based on the same inventive concept, another embodiment of the present application provides an apparatus and a terminal device for implementing the method for creating a data dictionary described in the embodiment of the present application.
[0086] See Figure 5 , is a structural diagram of a data dictionary creation device provided in an embodiment of the present application. Figure 5 The device shown includes: an acquisition module 501, a construction module 502 and a creation module 503, wherein:
[0087] The acquisition module 501 is used to acquire control variable information in the hydrogen fuel cell control system;
[0088] The construction module 502 is used to construct dictionary basic information for the control variable information to obtain corresponding dictionary basic information;
[0089] The creation module 503 is used to create a corresponding data dictionary for the hydrogen-fired power control system according to the basic dictionary information using programming technology.
[0090] Optionally, the building module 502 is specifically configured to:
[0091] The control variable information is stored in a preset storage format to obtain the dictionary basic information.
[0092] Optionally, the acquisition module 501 is specifically configured to:
[0093] Obtaining initial variable information in the hydrogen fuel cell control system;
[0094] Classifying and sorting the initial variable information to obtain the control variable information;
[0095] The control variable information includes variable information, parameter information, two-dimensional lookup table information and signal line information.
[0096] Optionally, the creation module 503 is specifically configured to:
[0097] defining a conversion function for converting the dictionary basic information into the data dictionary;
[0098] The conversion function is called to convert the dictionary basic information into the data dictionary.
[0099] Optionally, the creation module 503 is specifically configured to:
[0100] Define a data dictionary object and create a data dictionary file for storing the data dictionary;
[0101] Assigning the created data dictionary file to the data dictionary object, and specifying the data dictionary file in the conversion function;
[0102] The conversion function is called to convert the dictionary basic information into the data dictionary.
[0103] Optionally, the creation module 503 is specifically configured to:
[0104] The conversion function is called to read the basic information of the dictionary in the form of breakpoints, tables and name identifiers, and stored in the conversion breakpoints and conversion tables corresponding to the created entries in the data dictionary to obtain the converted data dictionary.
[0105] Optionally, the creation module 503 is further configured to:
[0106] Open the data dictionary and check whether the data dictionary is created correctly;
[0107] If so, the conversion function is saved in a preset format file.
[0108] Optionally, the creation module 503 is further configured to:
[0109] A function reference of the data dictionary is created, and the data dictionary is displayed when the function reference is executed.
[0110] Please refer to 6, which is a schematic diagram of the structure of a terminal device provided in an embodiment of the present application. Figure 6 The terminal device 60 shown includes: at least one processor 601, a communication interface 602, a user interface 603 and a memory 604. The processor 601, the communication interface 602, the user interface 603 and the memory 604 can be connected via a bus or other means. In the embodiment of the present invention, the connection via the bus 605 is used as an example.
[0111] The processor 601 may be a general-purpose processor, such as a central processing unit (CPU).
[0112] The communication interface 602 may be a wired interface (eg, an Ethernet interface) or a wireless interface (eg, a cellular network interface or 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 used to obtain control variable information.
[0113] The user interface 603 may be a touch panel, including a touch screen and a touch screen, for detecting operation instructions on the touch panel, or a physical button or mouse. The user interface 603 may also be a display screen for outputting and displaying images or data.
[0114] Memory 604 may include volatile memory, such as random access memory (RAM); non-volatile memory, such as read-only memory (ROM), flash memory, hard disk drive (HDD), or solid-state drive (SSD); or a combination of the aforementioned types of memory. Memory 604 is used to store a set of program codes, and processor 601 is used to call the program codes stored in memory 604 and perform the following operations:
[0115] Obtain control variable information in hydrogen fuel cell control systems;
[0116] Constructing dictionary basic information for the control variable information to obtain corresponding dictionary basic information;
[0117] A programming technique is used to create a corresponding data dictionary for the hydrogen-fired power control system according to the basic information of the dictionary.
[0118] Optionally, constructing dictionary basic information for the control variable information to obtain corresponding dictionary basic information includes:
[0119] The control variable information is stored in a preset storage format to obtain the dictionary basic information.
[0120] Optionally, obtaining control variable information in the hydrogen-fired power control system includes:
[0121] Obtaining initial variable information in the hydrogen fuel cell control system;
[0122] Classifying and sorting the initial variable information to obtain the control variable information;
[0123] The control variable information includes variable information, parameter information, two-dimensional lookup table information and signal line information.
[0124] Optionally, the creating a corresponding data dictionary for the hydrogen-fired power control system according to the dictionary basic information using programming technology includes:
[0125] defining a conversion function for converting the dictionary basic information into the data dictionary;
[0126] The conversion function is called to convert the dictionary basic information into the data dictionary.
[0127] Optionally, calling the conversion function to convert the dictionary basic information into the data dictionary includes:
[0128] Define a data dictionary object and create a data dictionary file for storing the data dictionary;
[0129] Assigning the created data dictionary file to the data dictionary object, and specifying the data dictionary file in the conversion function;
[0130] The conversion function is called to convert the dictionary basic information into the data dictionary.
[0131] Optionally, calling the conversion function to convert the dictionary basic information into the data dictionary includes:
[0132] The conversion function is called to read the basic information of the dictionary in the form of breakpoints, tables and name identifiers, and stored in the conversion breakpoints and conversion tables corresponding to the created entries in the data dictionary to obtain the converted data dictionary.
[0133] Optionally, the processor 601 is further configured to:
[0134] Open the data dictionary and check whether the data dictionary is created correctly;
[0135] If so, the conversion function is saved in a preset format file.
[0136] Optionally, the processor 601 is further configured to:
[0137] A function reference of the data dictionary is created, and the data dictionary is displayed when the function reference is executed.
[0138] Since the terminal device described in this embodiment is a terminal device used to implement the data dictionary creation method in the embodiment of this application, based on the data dictionary creation method described in the embodiment of this application, those skilled in the art will be able to understand the specific implementation of the terminal device of this embodiment and its various variations. Therefore, how the terminal device implements the method in the embodiment of this application will not be described in detail here. As long as a terminal device used by those skilled in the art to implement the information processing method in the embodiment of this application falls within the scope of protection of this application.
[0139] The technical solutions in the above-mentioned embodiments of the present application have at least the following technical effects or advantages: the present application obtains the control variable information in the hydrogen-fired power control system, and then constructs the dictionary basic information for the control variable information to obtain the corresponding dictionary basic information, and then uses programming technology to directly create a corresponding data dictionary for the hydrogen-fired power control system based on the dictionary basic information. Compared with manually creating a data dictionary, the present application can directly use programming technology to realize the rapid and intelligent creation of the data dictionary of the hydrogen-fired power control system, thereby saving dictionary creation time, improving creation efficiency, and reducing error rate. At the same time, it also solves the technical problems of low efficiency and low accuracy in the manual creation of data dictionaries in the existing technology.
[0140] It will be understood by those skilled in the art that embodiments of the present invention may be provided as methods, systems, or computer program products. Thus, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware. Furthermore, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to magnetic disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0141] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowcharts and / or block diagrams, as well as combinations of processes and / or blocks in the flowcharts and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowcharts and / or block diagrams. Figure 1 a process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0142] These computer program instructions may also be stored in a computer readable memory that can direct a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 a process or multiple processes and / or boxes Figure 1 The function specified in one or more boxes.
[0143] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operational steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing the instructions executed on the computer or other programmable device for implementing the process. Figure 1 a process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.
[0144] Although the preferred embodiments of the present invention have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the present invention.
[0145] Obviously, those skilled in the art may make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if such changes and modifications fall within the scope of the claims and their equivalents, the present invention is intended to include such changes and modifications.
Claims
1. A method for creating a data dictionary, characterized in that: The method comprises: Obtaining control variable information in a hydrogen-fired power control system, including: obtaining initial variable information in the hydrogen-fired power control system; classifying and sorting the initial variable information to obtain the control variable information; wherein the control variable information includes variable information, parameter information, two-dimensional lookup table information and signal line information, and the variable information, the parameter information, the two-dimensional lookup table information and the signal line information are all customized settings of the hydrogen-fired power control system; the parameter information includes: a stack cooling water pressure establishment threshold, a shutdown completion cooling water temperature threshold, a state machine test control state, a state machine test state, a load reduction completion current threshold setting and an idle state switching current threshold; the signal line information includes: a shutdown completion cooling water temperature threshold, a fuel cell state, a fuel cell state original value, a fuel cell test state, an unloading completion flag, an operation state switching flag, a valve closing flag, an idle operation timer, a maximum idle time allowed, entering an idle state and exiting an idle state; Constructing dictionary basic information for the control variable information to obtain corresponding dictionary basic information; Creating a corresponding data dictionary for the hydrogen-fired power control system based on the dictionary basic information using programming technology, including: defining a conversion function for converting the dictionary basic information into the data dictionary; 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; calling the conversion function to convert the dictionary basic information into the data dictionary; Among them, the basic information of the dictionary is divided into breakpoints, tables and their name identifiers. The conversion function is called to read the basic information of the dictionary in the form of breakpoints, tables and name identifiers, and store it in the conversion breakpoints and conversion tables corresponding to the creation entries in the data dictionary to obtain the converted data dictionary.
2. The method according to claim 1, characterized in that The construction of dictionary basic information for the control variable information to obtain corresponding dictionary basic information includes: The control variable information is stored in a preset storage format to obtain the dictionary basic information.
3. The method according to claim 1, characterized in that The method further comprises: Open the data dictionary and check whether the data dictionary is created correctly; If so, the conversion function is saved in a preset format file.
4. The method according to claim 1, wherein The method further comprises: A function reference of the data dictionary is created, and the data dictionary is displayed when the function reference is executed.
5. A terminal device, characterized in that: include: processors, memories, communication interfaces, and buses; The processor, the memory and the communication interface are connected via the bus and communicate with each other; The memory stores executable program code; The processor runs a program corresponding to the executable program code by reading the executable program code stored in the memory, so as to execute the method for creating a data dictionary as described in any one of claims 1 to 4.
6. A computer storage medium, characterized in that The computer-readable storage medium stores a program, and when the program is run on a terminal device, the method for creating a data dictionary as described in any one of claims 1 to 4 is executed.
Citation Information
Patent Citations
Method and system for generating Target Link data dictionary hierarchical tree
CN104281604A