CN104317584A - Method for improving control efficiency of microwave apparatus - Google Patents

Method for improving control efficiency of microwave apparatus Download PDF

Info

Publication number
CN104317584A
CN104317584A CN201410563654.5A CN201410563654A CN104317584A CN 104317584 A CN104317584 A CN 104317584A CN 201410563654 A CN201410563654 A CN 201410563654A CN 104317584 A CN104317584 A CN 104317584A
Authority
CN
China
Prior art keywords
wait
thread
moment
function
waitover
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.)
Granted
Application number
CN201410563654.5A
Other languages
Chinese (zh)
Other versions
CN104317584B (en
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.)
CLP Kesiyi Technology Co Ltd
Original Assignee
CETC 41 Institute
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 CETC 41 Institute filed Critical CETC 41 Institute
Priority to CN201410563654.5A priority Critical patent/CN104317584B/en
Publication of CN104317584A publication Critical patent/CN104317584A/en
Application granted granted Critical
Publication of CN104317584B publication Critical patent/CN104317584B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Tests Of Electronic Circuits (AREA)
  • Testing Of Individual Semiconductor Devices (AREA)

Abstract

The invention provides a method for improving control efficiency of a microwave apparatus. The method includes: creating a wait time management thread, and creating two setting wait functions, namely an insertion wait time Wait function and an execution wait time WaitOver function respectively; in each control thread of the apparatus, after setting microwave circuit units of the apparatus, invoking the Wait function for places needing insertion wait, after all the microwave circuit units are set or only the last microwave circuit unit is left, invoking the WaitOver function for inserting wait time, and returning and exiting after all the wait time of the control thread is executed. By the method, wait time multiplexing is designed, wait time in the process that microwave apparatus measuring software sets the microwave circuit units can be reduced greatly particularly under the condition that many microwave components exist, and accordingly test efficiency of the microwave apparatus is improved greatly; test efficiency and effect are remarkable, low cost is realized, and popularization is facilitated.

Description

A kind of method improving microwave apparatus control efficiency
Technical field
The present invention relates to microwave apparatus field, particularly a kind of method improving microwave apparatus control efficiency.
Background technology
Present microwave measuring instrument mostly have employed intelligent control technology, the intelligent processors such as embedded industrial computer or single-chip microcomputer, and each functional unit being controlled microwave apparatus inside by the software program of complexity completes a series of test and measurement function.Software performs a series of steering order and operates each functional unit of microwave and parts in order, and waits for each functional unit and parts execution and reach steady state (SS), then returns apparatus measures result.Due to present microwave apparatus internal circuit and microwave unit a lot, software program needs the time very shortly even can to ignore by bus operation instrument internal unit, but reach steady state (SS) after waiting for these circuit unit execution often to need to spend the longer time, after the completeer functional parts of each operation, often need to add wait instruction, latency function parts reach steady state (SS), then carry out next step operation, and this just causes microwave apparatus to measure the low of efficiency.
A lot of microwaves, circuit unit parts are equipped with in microwave apparatus, when the control software design of instrument arranges that in instrument, the time of circuit unit is less than the stabilization time of circuit unit, usually need to add the time delay wait instruction such as Sleep () or Delay (), and the execution of each wait instruction can extend the Measuring Time of instrument, reduce and measure efficiency, at present special solution is not also had to this.
Along with the increase of microwave circuit parts, the stand-by period reaching in stable condition needs during testing software is arranged gets more and more, and thus greatly reduces the testing efficiency of microwave apparatus.Microwave circuit unit is more, and efficiency reduces more obvious.
Summary of the invention
The present invention proposes a kind of method improving microwave apparatus control efficiency, solve the increase along with microwave circuit parts in prior art, the stand-by period reaching in stable condition needs during testing software is arranged gets more and more, and greatly reduces the problem of the testing efficiency of microwave apparatus.
Technical scheme of the present invention is achieved in that
Improve a method for microwave apparatus control efficiency, create a latency management thread, and build two and arrange wait function, one is insert stand-by period Wait function, and another performs stand-by period WaitOver function;
Each of instrument controls in thread, set up the microwave circuit unit of instrument, need to insert the place of waiting for and call Wait function, when all microwave circuit unit, all setting completed or only after last microwave circuit unit surplus, call WaitOver function and insert the stand-by period, and etc. stand-by period of all this control thread execute to return again and exit.
Alternatively, described latency management thread comprises the following steps:
After receiving the moment parameter and thread handle that Wait function imports into, read from the stand-by period buffer memory that this thread handle associates according to thread handle and complete the moment the earliest, the moment parameter of preserving with oneself compares, and more late or larger moment parameter is preserved;
When the moment parameter receiving WaitOver function and import into, and complete moment parameter relatively after, this process stops performing, and till the stand-by period reaches the wait moment value the latest in the time queue of thread handle association always, then sends event notice WaitOver function and returns and exit.
Alternatively, the execution of described Wait function comprises the following steps:
First, current precise time point is obtained;
Then, after current precise time point being added the time needing to wait for, then obtain the thread handle of current thread, pass to latency management thread;
Next, latency management thread is multiple wait time delay queues of mark from thread handle, completing the earliest of reading and saving waits for that moment and this time point contrast, wait for that the moment is early than this time point if completed the earliest, substitute to complete the earliest with this time point and wait for the moment, stored in this thread handle for mark queue in, otherwise with this time point that function imports into substitute this thread handle mark complete the earliest wait for the moment;
Wait function executes, and returns immediately, do not wait for after having transmitted parameter.
Alternatively, the execution of described WaitOver function comprises the following steps:
First, current precise time point is obtained;
Then, obtain the moment value needing to be deferred to after current precise time point being added the time needing to wait for, then obtain the thread handle of current thread, these two parameters are passed to latency management thread;
Next, latency management thread is multiple wait time delay queues of mark from thread handle, completing the earliest of reading and saving waits for that moment value and this time point contrast, wait for that the moment is early than this time point if completed the earliest, then wait until after WaitOver wait moment of importing into, exited by WaitOver by event notice.
The invention has the beneficial effects as follows:
(1) design the stand-by period multiplexing, microwave apparatus Survey Software can greatly be reduced stand-by period in microwave circuit unit process is set, especially when microwave component is many, thus greatly improve the testing efficiency of microwave apparatus;
(2) testing efficiency improves significantly, realizes with low cost, is convenient to promote.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the process flow diagram of the latency management thread of method of the present invention;
Fig. 2 is the process flow diagram of a specific embodiment of method of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
The present invention carries out queue combination the stabilization time that each microwave circuit parts set up rear needs, and all stand-by period are carried out multiplexing, and optimization of ranking, thus finally realize the minimizing of Measuring Time and measure the raising of efficiency.
Below in conjunction with accompanying drawing, the method that the present invention improves microwave apparatus control efficiency is described in detail:
Method of the present invention is managed and computing the stand-by period of inserting by latency management thread, and completes the process of the stand-by period that all microwave circuit unit need.Each of instrument controls in thread, set up the microwave circuit unit of instrument, need to insert the place of waiting for and call Wait function, when all microwave circuit unit, all setting completed or only after last microwave circuit unit surplus, call WaitOver function and insert the stand-by period, and etc. stand-by period of all this control thread execute to return again and exit.
As shown in Figure 1, latency management thread realizes principle and comprises the following steps:
After receiving the moment parameter and thread handle that Wait imports into, read from the stand-by period buffer memory that this thread handle associates according to thread handle and complete the moment the earliest, the moment parameter of preserving with oneself compares, and more late or larger moment parameter is preserved;
When the moment parameter receiving WaitOver function and import into, and complete moment parameter relatively after, just need this process to stop performing, till the stand-by period reaches the wait moment value the latest in the time queue of thread handle association always, then send event notice WaitOver function and return and exit.
Receive the stand-by period length not needed wait time management thread wait that Wait function sends, only have the time value sended over as WaiOver just finally to complete and perform wait.
Method of the present invention comprises two and arranges wait function, one is insert stand-by period Wait (double eDelayLength) function, another performs stand-by period WaitOver (double eDelayLength) function, wherein Wait function is used for the insertion wait of all microwave circuit parts except last, WaitOver function be used for last microwave circuit parts set up the rear insertion stand-by period, and until all stand-by period to returning again.
The principle that realizes of Wait function performance comprises the following steps:
First, current precise time point is obtained;
Then, after current precise time point being added the time needing to wait for, then obtain the thread handle of current thread, pass to latency management thread;
Next, latency management thread is multiple wait time delay queues of mark from thread handle, completing the earliest of reading and saving waits for that moment and this time point contrast, wait for that the moment is early than this time point if completed the earliest, substitute to complete the earliest with this time point and wait for the moment, stored in this thread handle for mark queue in, otherwise with this time point that function imports into substitute this thread handle mark complete the earliest wait for the moment;
Wait function executes, and returns immediately, do not wait for after having transmitted parameter.
The principle that realizes of WaitOver function performance comprises the following steps:
First, current precise time point is obtained;
Then, obtain the moment value needing to be deferred to after current precise time point being added the time needing to wait for, then obtain the thread handle of current thread, these two parameters are passed to latency management thread;
Next, latency management thread is multiple wait time delay queues of mark from thread handle, completing the earliest of reading and saving waits for that moment value and this time point contrast, wait for that the moment is early than this time point if completed the earliest, after then waiting for the stand-by period that WaitOver imports into, namely exited by WaitOver by event notice.
WaitOver function needs actual wait time enough to complete moment value the earliest to arrive.
In order to illustrate in greater detail technical scheme of the present invention, provide a specific embodiment below:
As shown in Figure 2, in certain model microwave signal analyser, total total input switch selection, YTF tuned filter, the many loops of synthesis local oscillator, multiple-pole switch wave filter, other microwave circuit unit etc., in the conventional mode, after setting up a microwave circuit unit, all to call Sleep function to wait for, after adopting the present invention, all places of originally calling Sleep wait all change Wait function call into, after executing all hardware setting, or last hardware cell needs the place of call waiting to change WaitOver into after setting completed.
Before the test starting instrument, a series of microwave circuit hardware cells of instrument internal are set, first input switch are set and select, wait for 500 milliseconds, then input YTF tuned filter is set, wait for 800 milliseconds, local oscillator synthesis loop is set again, wait for 900 milliseconds, then multiple-pole switch wave filter is set, wait for 500 milliseconds, other circuit unit is finally set, call after WaitOver waits for 500 milliseconds, complete the setting of instrument, instrument starts return measurement result data.
The time management thread moment started when performing is 10432ms (from starting shooting time of counting), and the execution time that arranges of each microwave component is 1ms, parameters in series and execution result as shown in table 1:
The classic method execution time adds the order stand-by period needs 3205ms altogether, and adopting after the present invention that the execution time adds the stand-by period is 11233-10432=801ms, and the time only needs original 25%, and efficiency rises to original nearly four times.
The present invention is multiplexing by the design stand-by period, can greatly reduce microwave apparatus Survey Software and arrange stand-by period in microwave circuit unit process, especially when microwave component is many, thus greatly improve the testing efficiency of microwave apparatus; Testing efficiency improves significantly, realizes with low cost, is convenient to promote.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (4)

1. improve a method for microwave apparatus control efficiency, it is characterized in that, create a latency management thread, and build two and arrange wait function, one is insert stand-by period Wait function, and another performs stand-by period WaitOver function;
Each of instrument controls in thread, set up the microwave circuit unit of instrument, need to insert the place of waiting for and call Wait function, when all microwave circuit unit, all setting completed or only after last microwave circuit unit surplus, call WaitOver function and insert the stand-by period, and etc. stand-by period of all this control thread execute to return again and exit.
2. a kind of method improving microwave apparatus control efficiency as claimed in claim 1, is characterized in that, described latency management thread comprises the following steps:
After receiving the moment parameter and thread handle that Wait function imports into, read from the stand-by period buffer memory that this thread handle associates according to thread handle and complete the moment the earliest, the moment parameter of preserving with oneself compares, and more late or larger moment parameter is preserved;
When the moment parameter receiving WaitOver function and import into, and complete moment parameter relatively after, this process stops performing, and till the stand-by period reaches the wait moment value the latest in the time queue of thread handle association always, then sends event notice WaitOver function and returns and exit.
3. a kind of method improving microwave apparatus control efficiency as claimed in claim 1 or 2, is characterized in that, the execution of described Wait function comprises the following steps:
First, current precise time point is obtained;
Then, after current precise time point being added the time needing to wait for, then obtain the thread handle of current thread, pass to latency management thread;
Next, latency management thread is multiple wait time delay queues of mark from thread handle, completing the earliest of reading and saving waits for that moment and this time point contrast, wait for that the moment is early than this time point if completed the earliest, substitute to complete the earliest with this time point and wait for the moment, stored in this thread handle for mark queue in, otherwise with this time point that function imports into substitute this thread handle mark complete the earliest wait for the moment;
Wait function executes, and returns immediately, do not wait for after having transmitted parameter.
4. a kind of method improving microwave apparatus control efficiency as claimed in claim 1 or 2, is characterized in that, the execution of described WaitOver function comprises the following steps:
First, current precise time point is obtained;
Then, obtain the moment value needing to be deferred to after current precise time point being added the time needing to wait for, then obtain the thread handle of current thread, these two parameters are passed to latency management thread;
Next, latency management thread is multiple wait time delay queues of mark from thread handle, completing the earliest of reading and saving waits for that moment value and this time point contrast, wait for that the moment is early than this time point if completed the earliest, then wait until after WaitOver wait moment of importing into, exited by WaitOver by event notice, otherwise wait until after the wait moment value that reads in queue, then allow WaitOver exit by event.
CN201410563654.5A 2014-10-13 2014-10-13 A kind of method for improving microwave apparatus control efficiency Active CN104317584B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410563654.5A CN104317584B (en) 2014-10-13 2014-10-13 A kind of method for improving microwave apparatus control efficiency

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410563654.5A CN104317584B (en) 2014-10-13 2014-10-13 A kind of method for improving microwave apparatus control efficiency

Publications (2)

Publication Number Publication Date
CN104317584A true CN104317584A (en) 2015-01-28
CN104317584B CN104317584B (en) 2017-09-22

Family

ID=52372819

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410563654.5A Active CN104317584B (en) 2014-10-13 2014-10-13 A kind of method for improving microwave apparatus control efficiency

Country Status (1)

Country Link
CN (1) CN104317584B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030187612A1 (en) * 2002-03-27 2003-10-02 Hitachi, Ltd. Execution time measurement device in a control unit and an execution time measurement method
US20090024985A1 (en) * 2007-07-18 2009-01-22 Renesas Technology Corp. Task control method and semiconductor integrated circuit
CN102387206A (en) * 2011-10-20 2012-03-21 镇江睿泰信息科技有限公司 Synthesis method and system of concurrent request of Web service
CN103684581A (en) * 2013-12-20 2014-03-26 上海斐讯数据通信技术有限公司 Automatic testing tool and testing method for vlan function of ONU (Optical Network Unit)

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030187612A1 (en) * 2002-03-27 2003-10-02 Hitachi, Ltd. Execution time measurement device in a control unit and an execution time measurement method
US20090024985A1 (en) * 2007-07-18 2009-01-22 Renesas Technology Corp. Task control method and semiconductor integrated circuit
CN102387206A (en) * 2011-10-20 2012-03-21 镇江睿泰信息科技有限公司 Synthesis method and system of concurrent request of Web service
CN103684581A (en) * 2013-12-20 2014-03-26 上海斐讯数据通信技术有限公司 Automatic testing tool and testing method for vlan function of ONU (Optical Network Unit)

Also Published As

Publication number Publication date
CN104317584B (en) 2017-09-22

Similar Documents

Publication Publication Date Title
US7698590B2 (en) Method and apparatus for timing and event processing in wireless systems
CN109799870B (en) Clock control circuit and control method
US20240160474A1 (en) Multi-core processor task scheduling method, and device and storage medium
CN110516789A (en) The processing method of instruction set, device and relevant device in convolutional network accelerator
CN109885857A (en) Instruction issue control method, instruction execution verification method, system and storage medium
EP2551767A1 (en) Method and device for adjusting clock interrupt cycle
US10481957B2 (en) Processor and task processing method therefor, and storage medium
RU2015103934A (en) COMPUTER PROCESSOR AND SYSTEM WITHOUT AN ARITHMETIC AND LOGIC BLOCK
US11663011B2 (en) System and method of VLIW instruction processing using reduced-width VLIW processor
CN104298645A (en) Flexibly configured programmable system-on-chip chip and starting configuration method thereof
WO2024198748A1 (en) Data processing method and system, chip, and terminal
CN101228505A (en) System and method for power saving in pipelined microprocessors
CN104317584A (en) Method for improving control efficiency of microwave apparatus
CN103003769A (en) Clock circuit for providing an electronic device with a clock signal, electronic device with a clock circuit and method for providing an electronic device with a clock signal
CN105117370B (en) A kind of multi-protocols cryptographic algorithm processor and system on chip
US10776139B2 (en) Simulation apparatus, simulation method, and computer readable medium
JP2009075875A (en) Counter circuit, dynamic reconfigurable circuit, and loop processing control method
EP1372065A2 (en) System large scale integrated circuit (LSI), method of designing the same, and program therefor
JP6473023B2 (en) Performance evaluation module and semiconductor integrated circuit incorporating the same
US20230185574A1 (en) Instruction Scheduling Method, Device, And Storage Medium
CN116401990B (en) Method, device, system and storage medium for processing interrupt event
US11023241B2 (en) Systems and methods for selectively bypassing address-generation hardware in processor instruction pipelines
CN112989752B (en) Simulation method, simulation device, terminal equipment and medium for power supply scheme
JP3855069B2 (en) Logic circuit
CN116028180A (en) Central processing unit and task processing method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20190306

Address after: 266000 No. 98 Xiangjiang Road, Huangdao District, Qingdao City, Shandong Province

Patentee after: China Electronics Technology Instrument and Meter Co., Ltd.

Address before: 266555 No. 98 Xiangjiang Road, Qingdao economic and Technological Development Zone, Shandong

Patentee before: The 41st Institute of CETC

CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: Huangdao Xiangjiang Road 266555 Shandong city of Qingdao Province, No. 98

Patentee after: CLP kesiyi Technology Co.,Ltd.

Address before: 266000 No. 98 Xiangjiang Road, Huangdao District, Shandong, Qingdao

Patentee before: CHINA ELECTRONIC TECHNOLOGY INSTRUMENTS Co.,Ltd.