CN116861869A - Automatic generation method for laser inertial measurement unit data report - Google Patents

Automatic generation method for laser inertial measurement unit data report Download PDF

Info

Publication number
CN116861869A
CN116861869A CN202310442588.5A CN202310442588A CN116861869A CN 116861869 A CN116861869 A CN 116861869A CN 202310442588 A CN202310442588 A CN 202310442588A CN 116861869 A CN116861869 A CN 116861869A
Authority
CN
China
Prior art keywords
document
measurement unit
inertial measurement
report
automatic generation
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
CN202310442588.5A
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 Aerospace Era Laser Navigation Technology Co ltd
Original Assignee
Beijing Aerospace Era Laser Navigation 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 Aerospace Era Laser Navigation Technology Co ltd filed Critical Beijing Aerospace Era Laser Navigation Technology Co ltd
Priority to CN202310442588.5A priority Critical patent/CN116861869A/en
Publication of CN116861869A publication Critical patent/CN116861869A/en
Pending legal-status Critical Current

Links

Classifications

    • 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/186Templates
    • 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/174Form filling; Merging
    • 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)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Machine Translation (AREA)

Abstract

The automatic generation method of the laser inertial measurement unit data report is particularly aimed at generating a data report Word document, and has universality in the field of Qt programming development. The application provides an automatic generation method of a laser inertial measurement unit data report, which comprises the steps of manufacturing a Word document template in advance, embedding the Word document template into a Qt application program, selecting test data to read into Qt software for automatic analysis and interpretation, and generating a report document according to an interpretation result.

Description

Automatic generation method for laser inertial measurement unit data report
Technical Field
The application relates to an automatic generation method of a laser inertial measurement unit data report, which is particularly used for generating a Word document of the data report and has universality in the field of Qt program design and development.
Background
With the rapid popularity of electronic documents, electronic document reporting is increasingly taking on an increasingly important role in various aspects of work. Meanwhile, in the production test at present, record analysis is needed to be carried out on test data to generate a report document with complete test data.
Qt is a graphic user development framework based on C++ language, and has the characteristics of strong cross-platform portability, open source tailorability and the like. The application programs can be deployed across different desktops and embedded operating systems by using Qt only through one-time development without re-writing source codes, and the Qt becomes one of the application software development tools currently mainstream. In the process of developing software by using Qt, complex computation and complicated logic processing are required, and the test data is often required to be stored in a report form. Word has advantages in the aspects of data information display, storage, compatibility, report making, readability and the like, so that Word becomes a main stream tool in many software development processes.
In the prior art, the laser inertial measurement unit test generally adopts a mode of test and manual recording to record and store test data. And finally, manually forming a report document by carrying out data recording and manual interpretation on each step in the test flow. Because the test data volume is complicated, manual calculation and summarization are needed when data analysis is carried out on the data generated by the test. Therefore, in the actual data report, the method has the characteristics of poor accuracy, low efficiency and the like of test data recording.
Disclosure of Invention
The application solves the technical problems that: the method comprises the steps of firstly, embedding Word document templates into Qt application programs, selecting test data to read into Qt software for automatic analysis and interpretation, and generating report documents by interpretation results.
The technical scheme of the application is as follows: an automatic generation method of a laser inertial measurement unit data report comprises the following steps:
making a report document according to an actual test flow to finish format setting;
taking the manufactured document as a template, and adding the manufactured document into a preset resource file to form a template file;
releasing the template file to a specified working directory to generate a specified empty document;
reading test data to be analyzed and processed, and carrying out data analysis;
filling the data analysis result into a specified empty document;
and (5) saving the document and completing automatic generation of the laser inertial measurement unit data report.
Further, the format settings comprise report document format, font format settings, settings of fixed format and dynamic format tags; the report document is a Word report document; the Qt Creator is used to add the completed Word document to the resource file of the Qt.
Further, the data analysis includes the steps of:
using text flow to read file data of data to be analyzed, and analyzing and classifying the read data;
respectively carrying out operation treatment on the classified data of different types; the operation processing comprises accumulation sum, mean value and variance.
Further, the filling of the data analysis result into the specified empty document comprises filling the data analysis result into a fixed format label in the specified empty document, and performing plain text filling operation.
Further, the filling operation of the plain text comprises the following steps:
setting a resource file as a writable attribute;
creating a document application;
acquiring a working document, and creating a document by taking a report and dot as a template;
acquiring a label to be written in a text position in a template;
plain text is written at the tag.
Further, filling the data analysis result into the specified empty document comprises filling the data analysis result into a dynamic format label in the specified empty document, and performing dynamic form drawing and filling operations.
Further, the dynamic form drawing and filling operation includes the steps of:
acquiring a label position of a form needing to be dynamically drawn in a template;
setting the attribute of the form to be filled in at the label position;
defining the added table and then inserting the number of rows and columns of the table;
the required text content is written in the corresponding line position in the insertion table.
Further, the data writing process is interrupted at any time to carry out the operation of saving the laser inertial measurement unit data report.
A computer readable storage medium storing a computer program which when executed by a processor performs the steps of the method for automatically generating a laser inertial measurement data report.
The automatic generation device of the laser inertial measurement unit data report comprises a memory, a processor and a computer program stored in the memory and capable of running on the processor, wherein the processor realizes the steps of the automatic generation method of the laser inertial measurement unit data report when executing the computer program.
Compared with the prior art, the application has the advantages that:
(1) According to the application, the test data is automatically written into the report, so that the manual data processing and interpretation are reduced;
(2) The application draws and fills in the dynamic test data, and reduces the insertion and drawing of artificial data forms.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the application. Also, like reference numerals are used to designate like parts throughout the figures. In the drawings:
fig. 1 is a flow chart of the technical scheme of the application.
Detailed Description
In order to better understand the above technical solutions, the following detailed description of the technical solutions of the present application is made by using the accompanying drawings and specific embodiments, and it should be understood that the specific features of the embodiments and the embodiments of the present application are detailed descriptions of the technical solutions of the present application, and not limiting the technical solutions of the present application, and the technical features of the embodiments and the embodiments of the present application may be combined with each other without conflict.
The following describes in further detail a method for automatically generating a laser inertial measurement unit data report according to an embodiment of the present application with reference to the accompanying drawings, and a specific implementation manner may include (as shown in fig. 1):
(1) Firstly, a Word report document is manufactured according to an actual test flow, and the work of setting the format of the report document and the font format, setting fixed format and dynamic format labels and the like is completed;
(2) Taking the Word document manufactured in the step (1) as a template, and adding the document into a resource file of Qt by using a Qt Creator;
(3) Releasing the template file to a specified working directory to generate a specified empty document;
(4) Reading test data to be analyzed and processed, and carrying out data analysis;
(5) Filling the processing result in the step (4) into the fixed format label of the Word blank template released in the step (3), and performing the filling operation of the plain text;
(6) Filling the processing result in the step (4) into the dynamic format label of the Word blank template released in the step (3), and carrying out dynamic form drawing and filling operation;
(7) And storing the Word document.
In the scheme provided by the embodiment of the application, in the process of testing the laser inertial measurement unit test data, data analysis and interpretation are carried out on the data generated in the test flow, and a data report is automatically generated. The present application automatically generates an expanded implementation based on the data report described above, but is not limited thereto.
(1) According to the format required by the work task, a Word template is manufactured, and the report in the method is shown in the following table, and the file name is XX.
TABLE 1-2On inertial measurement unitElectric parameter meter
Tables 1 to 3Inertial measurement unit instrumentData sheet
Tables 1 to 4Inertial measurement unit heatingGood temperature information table
(Code) Analog quantity Demand value Unit (B) Measured value of A path Measured value of B path Results
IFWD IF board circuit temperature [.](after 20 min)
JEWD Gauge stand temperature [.](after 20 min)
- X accelerometer temperature [.](after 20 min)
- Y accelerometer temperature [.](after 20 min)
- Z-accelerometer temperature [.](after 20 min)
- S accelerometer temperature [.](after 20 min)
- T accelerometer overflow [.](after 20 min)
- X gyroscope temperature 1 [.](after 20 min)
- Y gyroscope temperature 1 [.](after 20 min)
- Z gyroscope temperature 1 [.](after 20 min)
(2) Copying XX.dot files to the root directory of the Qt project, opening the project by using a Qt Creator, and selecting files to New File or Project to Qt Resource files
- > Browse, input resource file name: rc.qrc;
opening rc.qrc, clicking an Add function, selecting Add Prefix to Add Prefix, modifying generated "/new/Prefix" to "/", clicking Add Files, and importing XX.dot Files into a resource file of the project;
(3) The process starts, the resource file is released, and the implementation function is as follows:
description: wherein, resProfix is a resource file prefix, resFileName is an imported resource file, and DestFileName is a released target template file.
(4) Reading laser inertial measurement unit test data to be analyzed and processed, and carrying out data analysis:
(5) Filling the data in the step (4) into the fixed format label of the Word blank template released in the step (3), and performing the filling operation of the plain text:
adding QAxObject support in Qt engineering by adding "QT+=axcon tainer" in pro file;
the engineering header file includes the following header files:
qaxoject.h and qaxwidget.h;
because the Qt resource file is a read-only file, when in use, the Qt resource file is first changed into a writable file through attribute operation:
after the above work is completed, the operations on the released Word resources using the qaxoject are started:
(6) Filling the processing result in the step (4) into the dynamic format label of the Word blank template released in the step (3) to perform dynamic form drawing and filling operation;
description: the table_book is a label to be dynamically inserted into the position of a table in a report document, and row and column are the number of rows and columns of the inserted table respectively;
description: writing text content in a row column in the inserted datatable table;
(7) Storing Word documents, and releasing resources:
the present application provides a computer readable storage medium storing computer instructions that, when run on a computer, cause the computer to perform the method described in fig. 1.
It will be appreciated by those skilled in the art that embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, magnetic disk storage, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations 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.
It will be apparent to those skilled in the art that various modifications and variations can be made to the present application without departing from the spirit or scope of the application. Thus, it is intended that the present application also include such modifications and alterations insofar as they come within the scope of the appended claims or the equivalents thereof.
What is not described in detail in the present specification is a well known technology to those skilled in the art.

Claims (10)

1. An automatic generation method of a laser inertial measurement unit data report is characterized by comprising the following steps:
making a report document according to an actual test flow to finish format setting;
taking the manufactured document as a template, and adding the manufactured document into a preset resource file to form a template file;
releasing the template file to a specified working directory to generate a specified empty document;
reading test data to be analyzed and processed, and carrying out data analysis;
filling the data analysis result into a specified empty document;
and (5) saving the document and completing automatic generation of the laser inertial measurement unit data report.
2. The automatic generation method of laser inertial measurement unit data report according to claim 1, wherein the format setting includes setting of report document format, font format setting, setting of fixed format and dynamic format label; the report document is a Word report document; the Qt Creator is used to add the completed Word document to the resource file of the Qt.
3. The automatic generation method of laser inertial measurement unit data report according to claim 1, wherein the data analysis comprises the steps of:
using text flow to read file data of data to be analyzed, and analyzing and classifying the read data;
respectively carrying out operation treatment on the classified data of different types; the operation processing comprises accumulation sum, mean value and variance.
4. The automatic generation method of a laser inertial measurement unit data report according to claim 1, wherein the filling of the data analysis result into the specified empty document comprises filling the data analysis result into a fixed format label in the specified empty document, and performing a plain text filling operation.
5. The automatic generation method of laser inertial measurement unit data report according to claim 4, wherein the filling operation of the plain text comprises the following steps:
setting a resource file as a writable attribute;
creating a document application;
acquiring a working document, and creating a document by taking a report and dot as a template;
acquiring a label to be written in a text position in a template;
plain text is written at the tag.
6. The automatic generation method of a laser inertial measurement unit data report according to claim 1, wherein filling the data analysis result into the specified empty document comprises filling the data analysis result into a dynamic format label in the specified empty document, and performing dynamic form drawing and filling operations.
7. The automatic generation method of laser inertial measurement unit data report of claim 6, wherein the dynamic form drawing and filling operation includes the steps of:
acquiring a label position of a form needing to be dynamically drawn in a template;
setting the attribute of the form to be filled in at the label position;
defining the added table and then inserting the number of rows and columns of the table;
the required text content is written in the corresponding line position in the insertion table.
8. The automatic generation method of laser inertial measurement unit data report according to claim 1, wherein the data writing process is interrupted at any time to perform the operation of storing the laser inertial measurement unit data report.
9. A computer readable storage medium storing a computer program, which when executed by a processor performs the steps of the method according to any one of claims 1 to 8.
10. An automatic generation device for laser inertial measurement unit data report, comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that: the processor, when executing the computer program, performs the steps of the method according to any one of claims 1 to 8.
CN202310442588.5A 2023-04-23 2023-04-23 Automatic generation method for laser inertial measurement unit data report Pending CN116861869A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310442588.5A CN116861869A (en) 2023-04-23 2023-04-23 Automatic generation method for laser inertial measurement unit data report

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310442588.5A CN116861869A (en) 2023-04-23 2023-04-23 Automatic generation method for laser inertial measurement unit data report

Publications (1)

Publication Number Publication Date
CN116861869A true CN116861869A (en) 2023-10-10

Family

ID=88225583

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310442588.5A Pending CN116861869A (en) 2023-04-23 2023-04-23 Automatic generation method for laser inertial measurement unit data report

Country Status (1)

Country Link
CN (1) CN116861869A (en)

Similar Documents

Publication Publication Date Title
CN109948134B (en) Report automatic generation method, system, electronic equipment and storage medium
CN109254992B (en) Project generation method and system, computer system and computer-readable storage medium
CN106815184B (en) System and method for automatically generating document based on FOG data
US20080086718A1 (en) Method and Apparatus for Identifying Authors of Changes Between Multiple Versions of a File
CN111046645A (en) Method and device for generating article, computer equipment and storage medium
CN113609820B (en) Method, device and equipment for generating word file based on extensible markup language file
CN104503955B (en) A method of generating personalization excel list evidences
CN107679056B (en) Method for generating SQL (structured query language) statement, electronic device and readable storage medium
US20080250052A1 (en) Repopulating a database with document content
CN103559184A (en) Form page display method and device
CN110806866A (en) Generation method and device of front-end management system
CN112328544A (en) Multidisciplinary simulation data classification method, device and storage medium
CN113010169A (en) Method and apparatus for converting UI diagram into code file
CN106776779B (en) Method for generating entity file by JSON data based on Mac platform
CN115293124A (en) Automatic generation method and device for software engineering document
CN115599437A (en) Software version processing method and device, electronic equipment and storage medium
US9619445B1 (en) Conversion of content to formats suitable for digital distributions thereof
CN111753536A (en) Automatic patent application text writing method and device
CN107239264B (en) Method and device for generating code prompt information
CN116861869A (en) Automatic generation method for laser inertial measurement unit data report
US20170249287A1 (en) Hierarchical identifiers for html elements
CN108766513B (en) Intelligent health medical data structured processing system
CN107015955B (en) Document editing method and device
CN105843661B (en) A kind of code method for relocating and its system towards host system
US20140267380A1 (en) System and method for efficiently viewing a style

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