CN111506543A - M file generation method and device - Google Patents

M file generation method and device Download PDF

Info

Publication number
CN111506543A
CN111506543A CN202010324529.4A CN202010324529A CN111506543A CN 111506543 A CN111506543 A CN 111506543A CN 202010324529 A CN202010324529 A CN 202010324529A CN 111506543 A CN111506543 A CN 111506543A
Authority
CN
China
Prior art keywords
file
exce
engineering
script
storing
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
CN202010324529.4A
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.)
Beijing Iwitech Automotive Technology Co ltd
Original Assignee
Beijing Iwitech Automotive Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Iwitech Automotive Technology Co ltd filed Critical Beijing Iwitech Automotive Technology Co ltd
Priority to CN202010324529.4A priority Critical patent/CN111506543A/en
Publication of CN111506543A publication Critical patent/CN111506543A/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/10File systems; File servers
    • G06F16/11File system administration, e.g. details of archiving or snapshots
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/16File or folder operations, e.g. details of user interfaces specifically adapted to file systems

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Stored Programmes (AREA)

Abstract

The application provides an M file generation method and device, wherein the M file generation method comprises the steps of obtaining an EXCE L file stored with engineering parameters and a script file corresponding to the EXCE L file, and generating the corresponding M file according to the EXCE L file by using the script file, so that the engineering parameters corresponding to an engineering project are managed by using the EXCE L file, the cost is low, direct management of the M file is avoided, and the more visual and flexible EXCE L file can be directly managed.

Description

M file generation method and device
Technical Field
The application relates to the field of engineering projects, in particular to a method and a device for generating an M file.
Background
However, with the increasing functions required in various fields, the parameters of M file management used for the development of MAT L AB modeling are more and more, thousands of M files and tens of thousands of M files, so that huge data management is time-consuming and labor-consuming.
Disclosure of Invention
An object of the embodiments of the present application is to provide a method and an apparatus for generating an M file, so as to solve the technical problem of high cost.
In order to achieve the above purpose, the technical solutions provided in the embodiments of the present application are as follows:
in a first aspect, an embodiment of the present application provides an M-file generating method, including obtaining an EXCE L file storing engineering parameters and a script file corresponding to the EXCE L file, and generating a corresponding M-file according to the EXCE L file by using the script file, so that engineering parameters corresponding to an engineering project are managed by using an EXCE L file, the cost is low, direct management of the M-file is avoided, and a more intuitive and flexible EXCE L file can be directly managed.
In an optional embodiment of the application, the obtaining of the EXCE L file storing the engineering parameters includes obtaining all the engineering parameters corresponding to one engineering project, and storing the engineering parameters into the EXCE L file according to a preset format, so that all the engineering parameters corresponding to one engineering project can be stored in one EXCE L file in the preset format, and the EXCE L file is used for managing the engineering parameters, thereby reducing the cost of data management.
In an optional embodiment of the application, the acquiring of the EXCE L file storing the engineering parameters further includes acquiring engineering information corresponding to the engineering project and storing the engineering information into the corresponding EXCE L file, so that when the EXCE L file is used for managing the engineering parameters corresponding to the engineering project, the engineering information corresponding to the engineering project can be stored at the same time, and the engineering parameters stored in the EXCE L file can be tracked according to the engineering information.
In an optional embodiment of the application, the obtaining of the script file corresponding to the EXCE L file includes obtaining the preset format and the engineering information, and generating the script file according to the preset format and the engineering information, so that the corresponding script file can be obtained by writing in an M language according to the preset format of the EXCE L file and the engineering information corresponding to the EXCE L file, an M file for engineering can be directly generated according to the EXCE L file through one script file, the efficiency of converting data in the EXCE L file into the M file is improved, and the probability of errors is reduced.
In an optional embodiment of the application, the generating of the corresponding M file according to the EXCE L file by using the script file comprises extracting data in the EXCE L file by using the script file, performing data logic processing on the extracted data by using the script file, and outputting the processed data as the M file, so that the data of the EXCE L file can be extracted by using one script file, and an M file for engineering is generated after the extracted data is subjected to data logic processing, thereby improving the efficiency of converting the data in the EXCE L file into the M file and reducing the probability of errors.
In an optional embodiment of the application, the M file generation method further comprises the steps of obtaining an absolute storage address of the EXCE L file, and correspondingly storing the absolute storage address and the M file, so that the absolute storage address of the EXCE L file can be obtained, and the problem of extraction errors and data confusion caused by the fact that a script file extracts data in the EXCE L file is avoided.
In an optional embodiment of the application, the method for generating the M file further includes obtaining an instruction for modifying the engineering parameters, creating an EXCE L file according to the instruction, and storing the modified engineering parameters into the newly created EXCE L file, so that when the engineering parameters in the M file need to be modified, a new EXCE L file can be created, the modified engineering parameters are stored into a new EXCE L file, and a corresponding M file is generated according to the new EXCE L file, thereby avoiding a problem of data confusion caused by directly modifying the M file.
In a second aspect, an embodiment of the present application provides an M-file generating apparatus, including a first obtaining module, configured to obtain an EXCE L file storing engineering parameters and a script file corresponding to the EXCE L file, and a generating module, configured to generate a corresponding M-file according to the EXCE L file by using the script file, so that the engineering parameters corresponding to an engineering project are managed by using an EXCE L file, which is low in cost, and avoids direct management of the M-file, and a more intuitive and flexible EXCE L file can be directly managed.
In an optional embodiment of the application, the first obtaining module is further configured to obtain all engineering parameters corresponding to one engineering project, and store the engineering parameters into an EXCE L file according to a preset format, so that all engineering parameters corresponding to one engineering project can be stored in an EXCE L file in a preset format, and the EXCE L file is used for managing the engineering parameters, thereby reducing the cost of data management.
In an optional embodiment of the application, the first obtaining module is further configured to obtain engineering information corresponding to the engineering project, and store the engineering information into the corresponding EXCE L file, so that when the engineering parameters corresponding to the engineering project are managed by using the EXCE L file, the engineering information corresponding to the engineering project can be stored at the same time, and the engineering parameters stored in the EXCE L file can be tracked according to the engineering information.
Therefore, the corresponding script file can be obtained by writing in an M language according to the preset format of the EXCE L file and the project information corresponding to the EXCE L file, so that the M file for engineering can be directly generated according to the EXCE L file through one script file, the efficiency of converting data in the EXCE L file into the M file is improved, and the probability of errors is reduced.
In an optional embodiment of the application, the generating module is further configured to extract data in the EXCE L file by using the script file, perform data logic processing on the extracted data by using the script file, and output the processed data as the M file, so that the data of the EXCE L file can be extracted by using one script file, and an M file for engineering is generated after the extracted data is subjected to data logic processing, thereby improving the efficiency of converting the data in the EXCE L file into the M file and reducing the probability of errors.
In an optional embodiment of the application, the M-file generating device further includes a second obtaining module, configured to obtain an absolute storage address of the EXCE L file, and a first storage module, configured to store the absolute storage address in correspondence with the M-file, so that the absolute storage address of the EXCE L file can be obtained, and a problem of extraction error and data confusion caused by extraction error when a script file extracts data in the EXCE L file is avoided.
In an optional embodiment of the application, the M-file generating apparatus further includes a third obtaining module, configured to obtain an instruction for modifying the engineering parameter, and create an EXCE L file according to the instruction, and a second storing module, configured to store the modified engineering parameter into the newly created EXCE L file, so that when the engineering parameter in the M-file needs to be modified, a new EXCE L file may be created, the modified engineering parameter is stored into the new EXCE L file, and a corresponding M-file is generated according to the new EXCE L file, thereby avoiding a problem of data confusion caused by directly modifying the M-file.
In a third aspect, an embodiment of the present application provides an electronic device, including: a processor, a memory, and a bus; the processor and the memory are communicated with each other through the bus; the memory stores program instructions executable by the processor, the processor invoking the program instructions to enable execution of the M-file generation method as in the first aspect.
In a fourth aspect, embodiments of the present application provide a non-transitory computer-readable storage medium storing computer instructions that cause the computer to perform the M-file generation method of the first aspect.
In order to make the aforementioned objects, features and advantages of the present application more comprehensible, embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments of the present application will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and that those skilled in the art can also obtain other related drawings based on the drawings without inventive efforts.
Fig. 1 is a flowchart of an M-file generation method according to an embodiment of the present application;
fig. 2 is a flowchart of another M-file generation method provided in an embodiment of the present application;
fig. 3 is a block diagram of an M-file generating apparatus according to an embodiment of the present disclosure;
fig. 4 is a block diagram of an electronic device according to an embodiment of the present disclosure.
Detailed Description
The technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application.
MAT L AB provides a unified software environment for multi-domain system design, can carry out simulation, analysis and test of high-performance dynamic systems, and can automatically generate efficient embedded codes meeting DO-178B/C, ISO-26262 and MISRA-C standards, and provides an integrated platform for developers.
For example, in recent years, the requirements of automobile safety, development tool safety, development process safety and the like are continuously improved, many automobile parts and finished automobile manufacturers begin to use modeled development based on MAT L AB tools, and with the continuous increase of automobile functions, the parameters of M file management used for the modeled development of MAT L AB are more and more, thousands and tens of thousands of different, so that huge data management is time-consuming and labor-consuming, and the cost of a plurality of professional management tools adopted at present is also high.
Based on the above analysis, the embodiment of the application provides an M-file generation method, which adopts an EXCE L file to manage engineering parameters in an M file used for development of an MAT L AB model, is low in cost, avoids direct management of the M file, and can directly manage a more intuitive and flexible EXCE L file.
The following describes in detail the M-file generation method provided in the embodiment of the present application.
Referring to fig. 1, fig. 1 is a flowchart of an M-file generating method according to an embodiment of the present disclosure, where the M-file generating method includes the following steps:
and S101, acquiring an EXCE L file storing the engineering parameters and a script file corresponding to the EXCE L file.
And step S102, generating a corresponding M file according to the EXCE L file by using the script file.
Specifically, the device executing the M-file generating method may first obtain an EXCE L file storing the engineering parameters and a script file corresponding to the EXCE L file, and then generate a corresponding M-file according to the obtained EXCE L file by using the obtained script file, where the device obtains the EXCE L file and obtains the script file in no order, and may obtain the EXCE L file first and then obtain the script file, or obtain the script file and then obtain the EXCE L file, or obtain the EXCE L file and the script file at the same time, which is not specifically limited in the embodiment of the present application.
Based on the M file generation method, when a manager manages the engineering parameters (including modification of the engineering parameters, matching of different engineering projects with different engineering data files, edition annotation of the engineering projects and the like), only the EXCE L file which is relatively visual and flexible needs to be managed, and direct management of the M file is omitted.
In step S101, there are various ways for the device to obtain the EXCE L file storing the engineering parameters, for example, the device executing the M file generation method generates an EXCE L file, receives an EXCE L file transmitted by another device, reads the stored EXCE L file from the database, and the like.
As an embodiment, taking the example that the device executing the M-file generating method generates the EXCE L file, the step S101 may include the following steps:
first, all engineering parameters corresponding to one engineering project are obtained.
And secondly, storing the engineering parameters into an EXCE L file according to a preset format.
The EXCE L file can independently manage all parameters of the M file of the MAT L AB project, so that the equipment can acquire all project parameters corresponding to a project to be managed, and then store all the project parameters corresponding to the project in an EXCE L file according to a preset format.
Similar to the manner of obtaining the EXCE L file storing the engineering parameters, the manner of obtaining all the engineering parameters corresponding to one engineering project by the device may also be various, for example, receiving the engineering parameters sent by other devices, reading the stored engineering parameters from the database, etc., which is not specifically limited in this application.
The preset format during storage can be a storage format preset by a manager and stored in the equipment, and the preset format can be directly read and stored when the equipment stores engineering parameters; or the manager uploads a plurality of storage formats in the database in advance, and the device can download and store the corresponding storage formats according to the project items to be managed. Different project projects can correspond to different preset formats, and a person skilled in the art can adjust the project appropriately according to actual conditions.
It should be noted that the EXCE L file may be generated by a device executing the M file generation method, or may be generated by a manager filling engineering parameters corresponding to an engineering project into an EXCE L file according to a preset format, so as to obtain an EXCE L file storing the engineering parameters.
Therefore, all the engineering parameters corresponding to one engineering project can be stored in a preset format in an EXCE L file, so that the EXCE L file is used for managing the engineering parameters, and the cost of data management is reduced.
As another embodiment, step S101 may further include the steps of:
firstly, acquiring engineering information corresponding to an engineering project.
Second, the project information is stored into the corresponding EXCE L file.
Since the EXCE L file and the M file are all in one-to-one correspondence with the project, that is, if a MAT L AB project can have different M file management for different projects, each M file is required to establish an independent EXCE L file to manage the project parameters.
The method comprises the steps of firstly, acquiring project information corresponding to a project, wherein the project information comprises project creation time, project version information, project creators, project information, file names, project application ranges, project maintenance personnel and the like, and then storing the project information into an EXCE L file corresponding to the project, so that close connection between project parameters and an M file can be established, project management is effectively achieved, and data confusion is avoided.
For example, the content related to the version information may be stored in a first page, and then the data may be classified and stored in different pages (more practical data requirements, paging management is performed), and the data storage may configure the corresponding storage format according to the data name and the related attributes (data type, data description, storage type, etc.).
Therefore, when the engineering parameters corresponding to the engineering project are managed by the EXCE L file, the engineering information corresponding to the engineering project can be stored at the same time, so that the engineering parameters stored in the EXCE L file can be tracked according to the engineering information.
In step S101, similar to the method of acquiring the EXCE L file storing the engineering parameters, there are various methods for the device to acquire the script file corresponding to the EXCE L file, for example, the device generates the script file, receives the script file transmitted by another device, and reads the stored script file from the database.
As an implementation manner, taking the device generating script file as an example, the step S101 may further include the following steps:
firstly, acquiring a preset format and engineering information.
And secondly, generating a script file according to the preset format and the engineering information.
The device can generate a corresponding script file according to a preset format of the EXCE L file and project information corresponding to the EXCE L file, wherein the script file is used for extracting data in the EXCE L file, performing data logic processing on the extracted data and generating an M file.
Therefore, the corresponding script file can be obtained by writing the M language according to the preset format of the EXCE L file and the project information corresponding to the EXCE L file, so that the M file for the project can be directly generated according to the EXCE L file through one script file, the efficiency of converting the data in the EXCE L file into the M file is improved, and the probability of errors is reduced.
As another embodiment, a manager can compile a corresponding script file based on the M language of MAT L AB according to the preset format of the EXCE L file and the engineering information corresponding to the EXCE L file, and then store the script file in a database or a device for the device to extract the script file.
In step S102, the device may run a corresponding script file to generate a corresponding M file from the EXCE L file.
In the first step, the script file is used to extract the data in the EXCE L file.
And secondly, performing data logic processing on the extracted data by using the script file.
And thirdly, outputting the processed data as an M file.
When the script file extracts the data in the EXCE L file, the data can be extracted according to the format of the project data stored in the EXCE L file, and the data logic processing of the extracted data by the script file comprises the data which is processed by a relevant algorithm to obtain the data suitable for the M file.
That is, a script based on M language can be developed based on the function of MAT L AB, and the extracted raw data is processed by the correlation algorithm to generate the data content of the related program requirement, so that a large amount of heavy raw data processing work can be reduced.
Therefore, the data of the EXCE L file can be extracted through one script file, and the M file for engineering is generated after the extracted data is subjected to data logic processing, so that the efficiency of converting the data in the EXCE L file into the M file is improved, and the probability of errors is reduced.
In the embodiment of the application, the EXCE L file is used for managing the engineering parameters corresponding to the engineering project, the cost is low, direct management of the M file is avoided, and the more intuitive and flexible EXCE L file can be directly managed.
Further, the method for generating the M file provided by the embodiment of the present application may further include the following steps:
in the first step, the absolute storage address of the EXCE L file is obtained.
And secondly, storing the absolute storage address and the M file correspondingly.
Specifically, the device may acquire the absolute storage address of the EXCE L file while performing the acquisition of the EXCE L file, wherein the absolute storage address of the EXCE L file refers to the actual storage address of the EXCE L file.
For example, when project management is carried out for debugging, a backup project can be copied, so that the same EXCE L file or M file appears under different folders of a certain level, if the absolute storage address of the EXCE L file is ignored when the script file extracts data in the EXCE L file, the extraction error of the EXCE L file can be caused, so that data confusion is caused, and therefore, the absolute storage address of the EXCE L file can be obtained in advance and stored in correspondence with the M file, and the problem is avoided.
In the embodiment of the application, the absolute storage address of the EXCE L file can be acquired, and the problem of extraction error caused by the fact that data confusion is caused when the script file extracts data in the EXCE L file is avoided.
Further, referring to fig. 2, fig. 2 is a flowchart of another M-file generating method provided in the embodiment of the present application, where the M-file generating method may include the following steps:
and step S201, acquiring an instruction for modifying the engineering parameters, and creating an EXCE L file according to the instruction.
And step S202, storing the modified project parameters into a newly-built EXCE L file.
Specifically, in order to ensure that the M file corresponds to the EXCE L file one to one, when parameters in the M file need to be modified, an EXCE L file may be newly created, and the modified engineering parameters are stored in the file to be distinguished from the EXCE L file before modification.
For example, when engineering management is performed, if parameters in an M file are modified manually, codes are generated and debugging is performed, which is troublesome, and the debugged parameters may be forgotten to be added to an EXCE L file, so that data is disordered.
In the embodiment of the application, when the engineering parameters in the M file need to be modified, a new EXCE L file can be newly created, the modified engineering parameters are stored in a new EXCE L file, and a corresponding M file is generated according to the new EXCE L file, so that the problem of data confusion caused by direct modification of the M file is avoided.
Referring to fig. 3, fig. 3 is a block diagram of an M-file generating apparatus according to an embodiment of the present disclosure, where the M-file generating apparatus 300 may include a first obtaining module 301 configured to obtain an EXCE L file storing engineering parameters and a script file corresponding to the EXCE L file, and a generating module 302 configured to generate a corresponding M-file according to the EXCE L file by using the script file.
In the embodiment of the application, the EXCE L file is used for managing the engineering parameters corresponding to the engineering project, the cost is low, direct management of the M file is avoided, and the more intuitive and flexible EXCE L file can be directly managed.
Further, the first obtaining module 301 is further configured to obtain all engineering parameters corresponding to one engineering project, and store the engineering parameters in an EXCE L file according to a preset format.
In the embodiment of the application, all the engineering parameters corresponding to one engineering project can be stored in one EXCE L file in a preset format, so that the engineering parameters are managed by using the EXCE L file, and the cost of data management is reduced.
Further, the first obtaining module 301 is further configured to obtain engineering information corresponding to the engineering project, and store the engineering information into the corresponding EXCE L file.
In the embodiment of the application, when the engineering parameters corresponding to the engineering project are managed by using the EXCE L file, the engineering information corresponding to the engineering project can be stored at the same time, so that the engineering parameters stored in the EXCE L file can be tracked according to the engineering information.
Further, the first obtaining module 301 is further configured to: acquiring the preset format and the engineering information; and generating the script file according to the preset format and the engineering information.
In the embodiment of the application, the corresponding script file can be obtained by writing in the M language according to the preset format of the EXCE L file and the project information corresponding to the EXCE L file, so that the M file for the project can be directly generated according to the EXCE L file through one script file, the efficiency of converting the data in the EXCE L file into the M file is improved, and the probability of errors is reduced.
Further, the generating module 302 is further configured to extract data in the EXCE L file by using the script file, perform data logic processing on the extracted data by using the script file, and output the processed data as the M file.
In the embodiment of the application, the data of the EXCE L file can be extracted through one script file, and the M file for engineering is generated after the extracted data is subjected to data logic processing, so that the efficiency of converting the data in the EXCE L file into the M file is improved, and the probability of errors is reduced.
Further, the M-file generating apparatus 300 further includes a second obtaining module configured to obtain an absolute storage address of the EXCE L file, and a first storing module configured to store the absolute storage address and the M-file correspondingly.
In the embodiment of the application, the absolute storage address of the EXCE L file can be acquired, and the problem of extraction error caused by the fact that data confusion is caused when the script file extracts data in the EXCE L file is avoided.
Further, the M-file generating device 300 further includes a third obtaining module, configured to obtain an instruction for modifying the engineering parameter and create an EXCE L file according to the instruction, and a second storing module, configured to store the modified engineering parameter into the newly created EXCE L file.
In the embodiment of the application, when the engineering parameters in the M file need to be modified, a new EXCE L file can be newly created, the modified engineering parameters are stored in a new EXCE L file, and a corresponding M file is generated according to the new EXCE L file, so that the problem of data confusion caused by direct modification of the M file is avoided.
Referring to fig. 4, fig. 4 is a block diagram of an electronic device according to an embodiment of the present disclosure, where the electronic device 400 includes: at least one processor 401, at least one communication interface 402, at least one memory 403 and at least one communication bus 404. Wherein the communication bus 404 is used for implementing direct connection communication of these components, the communication interface 402 is used for communicating signaling or data with other node devices, and the memory 403 stores machine-readable instructions executable by the processor 401. When the electronic device 400 is in operation, the processor 401 communicates with the memory 403 via the communication bus 404, and the machine-readable instructions, when called by the processor 401, perform the M-file generation method described above.
For example, the processor 401 of the embodiment of the application reads a computer program from the memory 403 through the communication bus 404 and executes the computer program to realize a method comprising the steps of S101, obtaining an EXCE L file storing engineering parameters and a script file corresponding to the EXCE L file, S102, generating a corresponding M file according to the EXCE L file by using the script file, in some examples, the processor 401 may further execute the steps of S201, obtaining an instruction for modifying the engineering parameters, newly creating an EXCE L file according to the instruction, S202, and storing the modified engineering parameters into the newly created EXCE L file.
The processor 401 may be an integrated circuit chip having signal processing capabilities. The processor 401 may be a general-purpose processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but also Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field-Programmable Gate arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components. Which may implement or perform the various methods, steps, and logic blocks disclosed in the embodiments of the present application. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The Memory 403 may include, but is not limited to, Random Access Memory (RAM), Read Only Memory (ROM), Programmable Read Only Memory (PROM), Erasable Read Only Memory (EPROM), electrically Erasable Read Only Memory (EEPROM), and the like.
It will be appreciated that the configuration shown in fig. 4 is merely illustrative and that electronic device 400 may include more or fewer components than shown in fig. 4 or have a different configuration than shown in fig. 4. The components shown in fig. 4 may be implemented in hardware, software, or a combination thereof. In the embodiment of the present application, the electronic device 400 may be, but is not limited to, an entity device such as a desktop, a laptop, a smart phone, an intelligent wearable device, and a vehicle-mounted device, and may also be a virtual device such as a virtual machine. In addition, the electronic device 400 is not necessarily a single device, but may be a combination of multiple devices, such as a server cluster, and the like.
The embodiment of the application also provides a computer program product, which comprises a computer program stored on a non-transitory computer readable storage medium, wherein the computer program comprises program instructions, and when the program instructions are executed by a computer, the computer can execute the steps of the M-file generation method in the embodiment, for example, the steps comprise acquiring an EXCE L file storing engineering parameters and a script file corresponding to the EXCE L file, and generating the corresponding M-file according to the EXCE L file by using the script file.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one logical division, and there may be other divisions when actually implemented, and for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of devices or units through some communication interfaces, and may be in an electrical, mechanical or other form.
In addition, units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
Furthermore, the functional modules in the embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
In this document, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions.
The above description is only an example of the present application and is not intended to limit the scope of the present application, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims (10)

1. An M-file generation method, comprising:
acquiring an EXCE L file storing engineering parameters and a script file corresponding to the EXCE L file;
and generating a corresponding M file according to the EXCE L file by using the script file.
2. The M-file generation method according to claim 1, wherein the obtaining of the EXCE L file storing the engineering parameters includes:
acquiring all engineering parameters corresponding to one engineering project;
and storing the engineering parameters into an EXCE L file according to a preset format.
3. The M-file generation method according to claim 2, wherein the obtaining of the EXCE L file storing the engineering parameters further comprises:
acquiring engineering information corresponding to the engineering project;
and storing the engineering information into the corresponding EXCE L file.
4. The M-file generation method according to claim 3, wherein the obtaining of the script file corresponding to the EXCE L file includes:
acquiring the preset format and the engineering information;
and generating the script file according to the preset format and the engineering information.
5. The M-file generating method according to claim 1, wherein the generating a corresponding M-file from the EXCE L file using the script file comprises:
extracting data in the EXCE L file by using the script file;
performing data logic processing on the extracted data by using the script file;
and outputting the processed data as the M file.
6. The M-file generation method according to claim 1, further comprising:
acquiring an absolute storage address of the EXCE L file;
and correspondingly storing the absolute storage address and the M file.
7. The M-file generation method according to claim 1, further comprising:
acquiring an instruction for modifying the engineering parameters, and creating an EXCE L file according to the instruction;
and storing the modified engineering parameters into the new EXCE L file.
8. An M-file generating apparatus, comprising:
the system comprises a first acquisition module, a second acquisition module and a third acquisition module, wherein the first acquisition module is used for acquiring an EXCE L file storing engineering parameters and a script file corresponding to the EXCE L file;
and the generating module is used for generating a corresponding M file according to the EXCE L file by using the script file.
9. An electronic device, comprising: a processor, a memory, and a bus;
the processor and the memory are communicated with each other through the bus;
the memory stores program instructions executable by the processor, the processor invoking the program instructions to enable execution of the M-file generation method of any of claims 1-7.
10. A non-transitory computer-readable storage medium storing computer instructions which, when executed by a computer, cause the computer to perform the M-file generation method according to any one of claims 1 to 7.
CN202010324529.4A 2020-04-22 2020-04-22 M file generation method and device Pending CN111506543A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010324529.4A CN111506543A (en) 2020-04-22 2020-04-22 M file generation method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010324529.4A CN111506543A (en) 2020-04-22 2020-04-22 M file generation method and device

Publications (1)

Publication Number Publication Date
CN111506543A true CN111506543A (en) 2020-08-07

Family

ID=71877943

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010324529.4A Pending CN111506543A (en) 2020-04-22 2020-04-22 M file generation method and device

Country Status (1)

Country Link
CN (1) CN111506543A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112905462A (en) * 2021-02-07 2021-06-04 北京航空航天大学 Method and device for processing data in simulation

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105868169A (en) * 2016-04-06 2016-08-17 西安电子科技大学 Data acquisition interface and data acquisition method and system
US20180150530A1 (en) * 2016-04-19 2018-05-31 Ping An Technology (Shenzhen) Co., Ltd. Method, Apparatus, Computing Device and Storage Medium for Analyzing and Processing Data
CN108647010A (en) * 2018-04-27 2018-10-12 武汉斗鱼网络科技有限公司 A kind of method, terminal device and the storage medium of projects initialization
CN109542877A (en) * 2018-11-20 2019-03-29 上海元城汽车技术有限公司 The parameter management method and device of battery management system
CN109933766A (en) * 2019-03-13 2019-06-25 腾讯科技(深圳)有限公司 Document generating method, device and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105868169A (en) * 2016-04-06 2016-08-17 西安电子科技大学 Data acquisition interface and data acquisition method and system
US20180150530A1 (en) * 2016-04-19 2018-05-31 Ping An Technology (Shenzhen) Co., Ltd. Method, Apparatus, Computing Device and Storage Medium for Analyzing and Processing Data
CN108647010A (en) * 2018-04-27 2018-10-12 武汉斗鱼网络科技有限公司 A kind of method, terminal device and the storage medium of projects initialization
CN109542877A (en) * 2018-11-20 2019-03-29 上海元城汽车技术有限公司 The parameter management method and device of battery management system
CN109933766A (en) * 2019-03-13 2019-06-25 腾讯科技(深圳)有限公司 Document generating method, device and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112905462A (en) * 2021-02-07 2021-06-04 北京航空航天大学 Method and device for processing data in simulation

Similar Documents

Publication Publication Date Title
CN109542399B (en) Software development method and device, terminal equipment and computer readable storage medium
CN110262783B (en) Interface generation method and device and terminal equipment
CN110765750B (en) Report data input method and terminal equipment
CN111125254A (en) Database synchronization method and device, electronic equipment and computer readable medium
CN110990053A (en) Method for creating and using machine learning scheme template and device
CN108170425B (en) Program code modification method and device and terminal equipment
CN105528418A (en) Design document generation method and apparatus
CN112115145A (en) Data acquisition method and device, electronic equipment and storage medium
CN111737227A (en) Data modification method and system
CN111291443B (en) Automatic generation method, device and equipment for I/O module model of vehicle control unit software
CN111506543A (en) M file generation method and device
CN111985194A (en) Data storage method and device, electronic equipment and storage medium
CN112948380A (en) Data storage method and device based on big data, electronic equipment and storage medium
CN111290961A (en) Interface test management method and device and terminal equipment
CN116301735A (en) Method, device and storage medium for organizing software elements into software data links
CN114911479A (en) Interface generation method, device, equipment and storage medium based on configuration
CN113010129A (en) Virtual studio full-flow multi-terminal blackboard writing extraction method and device
CN107357926B (en) Webpage processing method and device and electronic equipment
CN116450682B (en) Model generation method, device, equipment and medium based on data combination
CN110309038B (en) Performance test method and device, electronic equipment and computer readable storage medium
CN117573199B (en) Model difference comparison analysis method, device, equipment and medium
CN116594960B (en) Descriptive file format conversion method, descriptive file format conversion device, computer equipment and storage medium
CN111309331B (en) Business processing method and device, electronic equipment and storage medium
CN112214981B (en) Presentation file generation method and device, electronic equipment and storage medium
CN112860629B (en) Method and system for attributing performance, computer equipment and readable storage medium thereof

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