CN106066829A - A kind of missile-borne time-consuming real-time computing technique of embedded Control software cycle - Google Patents
A kind of missile-borne time-consuming real-time computing technique of embedded Control software cycle Download PDFInfo
- Publication number
- CN106066829A CN106066829A CN201610411052.7A CN201610411052A CN106066829A CN 106066829 A CN106066829 A CN 106066829A CN 201610411052 A CN201610411052 A CN 201610411052A CN 106066829 A CN106066829 A CN 106066829A
- Authority
- CN
- China
- Prior art keywords
- time
- consuming
- cycle
- timer
- software cycle
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3604—Software analysis for verifying properties of programs
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Aiming, Guidance, Guns With A Light Source, Armor, Camouflage, And Targets (AREA)
Abstract
A kind of missile-borne time-consuming real-time computing technique of embedded Control software cycle, running software cycle Interruption step-length variable timer, software cycle time-consuming precision Interruption step-length variable timer_1 and software cycle time-consuming assigned variable time_run is controlled by creating, set gradually control running software cycle Interruption function and it is enabled, and timer is resetted by the function that breaks wherein;Software cycle time-consuming precision Interruption function is set simultaneously and it is enabled, and the function that breaks wherein carries out cumulative number to timer_1;Then time-consumingly initiate timer_1 value and the logging software cycle time-consumingly terminates timer_1 value in the main body program logging software cycle, both differences are multiplied by time-consuming coefficient again and are the program short time consumption in this cycle, effectively realize the most accurately calculating that to control software cycle time-consuming, the most easy-to-use, versatility is high, favorable expandability, reliability high.
Description
Technical field
The present invention relates to software time-consuming computing technique field, particularly relate to a kind of missile-borne embedded Control software cycle time-consuming
Real-time computing technique.
Background technology
Controlling in software development process, software development to controlling the precision of software, real-time, the cycle is time-consuming, take and deposit
The performance indications such as the expense in storage space and surplus propose to be distinctly claimed;Software precision, real-time can be divided by data processing software
Analysis test data checking index accordance, software memory margin can be analyzed by the file destination storage size controlling Software Create
Draw, but during conventional control software development, lack effective means software for calculation cycle time-consuming expense and real-time.
Traditional time-consuming computational methods of control software cycle mainly have two kinds, method one, are controlling software cycle start bit
Install A channel discrete magnitude signal high level output, channel B discrete magnitude signal height electricity is set controlling software cycle end position
Flat output;Monitored A, channel B discrete magnitude signal respectively by oscillograph, to calculate A, channel B discrete magnitude signal high level triggers
Time difference, thus draw this cycle short time consumption;Method two, arranges A channel discrete magnitude controlling software cycle original position
Signal high level output, arranges A channel discrete magnitude signal low level output controlling software cycle end position;Pass through oscillograph
Monitoring A channel discrete magnitude signal, holds time calculating A channel discrete magnitude signal high level, thus draws when this cycle is time-consuming
Between.
The mode that above two method all uses amendment to control the output of software design patterns discrete magnitude signal low and high level calculates control
Software cycle processed is time-consuming, and it is inconsistent with time of day, only that both computational methods necessarily cause controlling the time-consuming state of computed in software
It is suitable for using at ground test;Discrete magnitude low and high level is set simultaneously and need to consume comprehensive control machine hardware relay action time, and then lead
Cause to control software cycle and time-consumingly calculate inaccuracy, thus affect and control the real-time that software cycle time-consumingly calculates.
Summary of the invention
Technical problem solved by the invention is to provide a kind of missile-borne embedded Control software cycle to calculate the most in real time
Method, to solve the shortcoming in above-mentioned background technology.
Technical problem solved by the invention realizes by the following technical solutions:
A kind of missile-borne time-consuming real-time computing technique of embedded Control software cycle, specifically comprises the following steps that
1) start main body program, system is initialized, and create control running software cycle Interruption step-length variable
Timer, software cycle time-consuming precision Interruption step-length variable timer_1 and software cycle time-consuming assigned variable time_run;
2) control running software cycle Interruption function is set and it is enabled, and to timer in the function that breaks wherein
Reset;Software cycle time-consuming precision Interruption function it is set simultaneously and it is enabled, and breaking wherein in function
Timer_1 is carried out cumulative number;
3) run original position in main body program and time-consumingly initiate timer_1 value by the time_run logging software cycle;
4) timer_1 value is time-consumingly terminated in the main body program position that runs abort by the time_run logging software cycle;
5) calculation procedure 3) and the time_run difference of step 4), time_run difference is this cycle short time consumption cumulative time
Number;
6) the time_run difference calculated in step 5) is multiplied by time-consuming coefficient and is the program short time consumption in this cycle;
7) the most respectively timer value is zeroed out with timer_1 value, to enter next cycle calculating short time consumption.
In the present invention, in step 1), the time-consuming precision setting of software cycle is the linear multiple of 0.1ms.
In the present invention, in step 6), time-consuming coefficient is set to the linear multiple of 0.1ms.
In the present invention, in step 6), the program short time consumption obtaining this cycle is sent to data recording equipment, is used for
Monitoring.
Beneficial effect: the present invention is not changing comprehensive control machine hardware environment and controlling under software logic structure, the most accurately meter
Calculate that to control software cycle time-consuming, the cycle can be monitored in real time by data recording equipment time-consuming simultaneously, the most easy-to-use, versatility is high,
Favorable expandability, reliability are high.
Accompanying drawing explanation
Fig. 1 is the flow chart of presently preferred embodiments of the present invention.
Detailed description of the invention
For the technological means making the present invention realize, creation characteristic, reach purpose and be easy to understand with effect, below knot
Close specific embodiment, the present invention is expanded on further.
A kind of missile-borne time-consuming real-time computing technique of embedded Control software cycle, it is desirable to the hardware of coupling is: combine control machine certainly
Body CPU hardware crystal oscillator provides accuracy of timekeeping to reach nanosecond, controls software development and requires that the precision needed is Millisecond, to control
The running software cycle is 5ms, as a example by cycle time-consuming precision is 0.1ms, is described in further details this method:
1) start main body program, system is initialized, and it is fixed to create 5ms Interruption step-length variable timer5ms, 0.1ms
Time interrupt step-length variable timer_1ms and software cycle time-consuming assigned variable time_run;
2) 5ms Interruption is set and it is enabled, the function that breaks wherein carries out set to timer5ms;Set simultaneously
Set to 0 .1ms Interruption and it is enabled, timer_1ms is added " 1 " by the function that breaks wherein;
3) run original position in main body program and time-consumingly initiate timer_1ms value by the time_run logging software cycle;
4) timer_1ms value is time-consumingly terminated, simultaneously in the main body program position that runs abort by the time_run logging software cycle
Calculate software cycle time-consumingly to terminate timer_1ms value and software cycle and time-consumingly initiate the difference of time_run value;
5) the time_run difference calculated in step 4) is multiplied by the time-consuming coefficient of 0.1 be the program in this cycle time-consuming time
Between;
6) the program short time consumption obtaining this cycle in step 5) is sent to data recording equipment, be used for monitoring;
7) the most respectively timer5ms value and timer_1ms value are carried out clearly " 0 ", with enter next cycle calculating time-consuming time
Between.
In the present embodiment, do not change comprehensive control machine hardware environment and control software logic structure, can the most accurately calculate
Controlling software cycle time-consuming, the cycle of simultaneously can monitoring in real time is time-consuming, and versatility height, favorable expandability, reliability are high.
The ultimate principle of the present invention and principal character and advantages of the present invention have more than been shown and described.The technology of the industry
Personnel, it should be appreciated that the present invention is not restricted to the described embodiments, simply illustrating this described in above-described embodiment and description
The principle of invention, without departing from the spirit and scope of the present invention, the present invention also has various changes and modifications, and these become
Change and improvement both falls within scope of the claimed invention.Claimed scope by appending claims and
Equivalent defines.
Claims (4)
1. the missile-borne time-consuming real-time computing technique of embedded Control software cycle, it is characterised in that specifically comprise the following steps that
1) start main body program, system is initialized, and create control running software cycle Interruption step-length variable
Timer, software cycle time-consuming precision Interruption step-length variable timer_1 and software cycle time-consuming assigned variable time_run;
2) control running software cycle Interruption function is set and it is enabled, and to timer in the function that breaks wherein
Reset;Software cycle time-consuming precision Interruption function it is set simultaneously and it is enabled, and breaking wherein in function
Timer_1 is carried out cumulative number;
3) run original position in main body program and time-consumingly initiate timer_1 value by the time_run logging software cycle;
4) timer_1 value is time-consumingly terminated in the main body program position that runs abort by the time_run logging software cycle;
5) calculation procedure 3) and the time_run difference of step 4), time_run difference is this cycle short time consumption cumulative time
Number;
6) the time_run difference calculated in step 5) is multiplied by time-consuming coefficient and is the program short time consumption in this cycle;
7) the most respectively timer value is zeroed out with timer_1 value, to enter next cycle calculating short time consumption.
A kind of missile-borne time-consuming real-time computing technique of embedded Control software cycle the most according to claim 1, its feature exists
In, in step 1), the time-consuming precision setting of software cycle is the linear multiple of 0.1ms.
A kind of missile-borne time-consuming real-time computing technique of embedded Control software cycle the most according to claim 1, its feature exists
In, in step 6), time-consuming coefficient is set to the linear multiple of 0.1ms.
A kind of missile-borne time-consuming real-time computing technique of embedded Control software cycle the most according to claim 1, its feature exists
In, in step 6), the program short time consumption obtaining this cycle is sent to data recording equipment.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610411052.7A CN106066829A (en) | 2016-06-13 | 2016-06-13 | A kind of missile-borne time-consuming real-time computing technique of embedded Control software cycle |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610411052.7A CN106066829A (en) | 2016-06-13 | 2016-06-13 | A kind of missile-borne time-consuming real-time computing technique of embedded Control software cycle |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106066829A true CN106066829A (en) | 2016-11-02 |
Family
ID=57420587
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610411052.7A Pending CN106066829A (en) | 2016-06-13 | 2016-06-13 | A kind of missile-borne time-consuming real-time computing technique of embedded Control software cycle |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106066829A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108241308A (en) * | 2017-12-08 | 2018-07-03 | 中国航空工业集团公司成都飞机设计研究所 | A kind of run time control method based on timesharing subregion embedded software |
CN108647163A (en) * | 2018-03-22 | 2018-10-12 | 上海机电工程研究所 | A kind of missile-borne clocking method interrupted based on external cycles |
CN109491877A (en) * | 2017-09-12 | 2019-03-19 | 江西洪都航空工业集团有限责任公司 | A kind of flight control computer software time-consuming calculation method |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1553336A (en) * | 2003-05-30 | 2004-12-08 | 中兴通讯股份有限公司 | Testing software timing method |
CN1952901A (en) * | 2005-10-22 | 2007-04-25 | 康佳集团股份有限公司 | A software timing method |
US8448140B2 (en) * | 2008-07-02 | 2013-05-21 | Tokyo Institute Of Technology | Execution time estimation method and device |
CN103488916A (en) * | 2013-08-12 | 2014-01-01 | 中国航天科工集团第三研究院第八三五七研究所 | On-missile software encipherment protection method |
-
2016
- 2016-06-13 CN CN201610411052.7A patent/CN106066829A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1553336A (en) * | 2003-05-30 | 2004-12-08 | 中兴通讯股份有限公司 | Testing software timing method |
CN1952901A (en) * | 2005-10-22 | 2007-04-25 | 康佳集团股份有限公司 | A software timing method |
US8448140B2 (en) * | 2008-07-02 | 2013-05-21 | Tokyo Institute Of Technology | Execution time estimation method and device |
CN103488916A (en) * | 2013-08-12 | 2014-01-01 | 中国航天科工集团第三研究院第八三五七研究所 | On-missile software encipherment protection method |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109491877A (en) * | 2017-09-12 | 2019-03-19 | 江西洪都航空工业集团有限责任公司 | A kind of flight control computer software time-consuming calculation method |
CN108241308A (en) * | 2017-12-08 | 2018-07-03 | 中国航空工业集团公司成都飞机设计研究所 | A kind of run time control method based on timesharing subregion embedded software |
CN108647163A (en) * | 2018-03-22 | 2018-10-12 | 上海机电工程研究所 | A kind of missile-borne clocking method interrupted based on external cycles |
CN108647163B (en) * | 2018-03-22 | 2020-10-09 | 上海机电工程研究所 | Missile-borne timing method based on external periodic interruption |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104808587B (en) | A kind of mobility statistical method based on machining apparatus running status | |
CN106066829A (en) | A kind of missile-borne time-consuming real-time computing technique of embedded Control software cycle | |
CN108830385A (en) | deep learning model training method and device and computer readable storage medium | |
CN109634247A (en) | A kind of lime stone slurry density hard measurement system and method | |
US20180150575A1 (en) | Calculation method for compressed air-flow rate, calculation device thereof, and storage medium | |
US20220307944A1 (en) | Apparatus, method, and computer-readable medium | |
CN101701935B (en) | Refractory brick inside quality online detection device | |
CN104318030A (en) | Deformation-equivalence based automatic comprehensive deformation modulus calculating method for arch-dam foundations | |
CN111241660A (en) | Civil engineering experiment detection system and method based on cloud computing technology | |
WO2024098950A1 (en) | Hydrodynamic model parameter optimization method and apparatus, and water level and flow change process simulation method and apparatus | |
CN103473414A (en) | Engineering construction simulation method | |
CN103310056A (en) | Parametric modeling method for longitudinal axis heading machine cutting head | |
CN104251913B (en) | Rotating machinery monitors system start and stop intelligent determination method | |
CN103454976B (en) | A kind of method applying rearmounted program reverse modeling | |
CN108958029A (en) | For parameter tuning method and system | |
CN110384250A (en) | A kind of measurement method of cigarette machine hard waste amount, device and cigarette machine system | |
CN105158557B (en) | A kind of frequency test method and corresponding frequency testing system | |
CN103605323A (en) | Discrete control method and device for chemical industry production | |
CN112049625B (en) | Shale gas horizontal well gas production coefficient determination method, device, equipment and medium | |
CN104597927A (en) | PID based rotation speed control method | |
CN104793539B (en) | Multinode gating monitoring system based on pulse | |
CN104461852A (en) | Fan power consumption calculation method | |
CN206892323U (en) | Sonar array signal processing platform | |
CN104503396A (en) | Multi-metal balance yield algorithm | |
Hnidka et al. | Measurement automation for small jet engine testing |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20161102 |