Method for monitoring power supply in a kind of transmitting-receiving subassembly test
Technical field
The present invention relates to method for monitoring power supply in the test of technical field of measurement and test, more particularly to transmitting-receiving subassembly.
Background technology
Transmitting-receiving subassembly is the Typical Representative of microwave multifunctional module, is typically made up of one or more transceiver channel.It
To be located at a class microwave multipurpose multifunctional operating system of the equipment final stage such as radar, electronic countermeasure, and be quantity at most, while being also the most
Important component;From from the point of view of test, it is the class microwave component that test parameter is most, test realization is most complicated.
In test process, primary problem is ensuring that the safety of measured piece, and this is the premise bar that test can be carried out
Part.For transmitting-receiving subassembly, due to reasons such as its transmission channel power amplifier normal works, its power-up must be according to first bearing
Positive order afterwards, and power-off then need to be possible to damage in a short period of time according to first just negative afterwards order, otherwise transmitting-receiving subassembly
It is bad.
At present power control unit concrete operating principle is:When upper electric, negative supply enters Jing first after power supply extension set
Cross inverting amplifier, the negative supply after inverted amplification becomes the input signal of control circuit, then produce Jing after control circuit after
The switch controlling signal of electrical equipment, being now input into the positive supply of relay input to export.Once as shown in figure 1,
Negative supply power down, then the control signal of relay will disappear automatically, and relay will be off, natural positive supply cannot be exported,
So it is achieved that the orderly control of power supply.If only two-way power supply, the realization of power supply is relative or relatively simple,
But if three tunnel above power supplys, sequence power-on enables realization, but any power supply all the way occurs event in test process
Barrier, is then extremely difficult to carry out power-off according to backward, and hardware circuit will be more complicated.With the spaceborne transmitting-receiving subassembly of certain model
As a example by, its altogether needs ± 3.3V ,+5V three-way power, powering order is -3.3V ,+3.3V ,+5V, power down sequence be+5V ,+
3.3V, -3.3V, this sequentially must be followed strictly.In view of the importance of power supply electrifying/power-off and once occur exception after
The seriousness of fruit, must carry out monitor in real time in transmitting-receiving subassembly test process to power supply, and strengthen the protection of abnormal conditions.
It is becoming for future development that Power Supply Monitoring protects the multithreading interaction method of operation of thread and transmitting-receiving subassembly test thread
Gesture, there is presently no more ripe and general implementation, and its order and reasonability are in urgent need to be improved.
The content of the invention
The present invention proposes method for monitoring power supply in a kind of transmitting-receiving subassembly test, solves in transmitting-receiving subassembly test process sequentially
Power-up/down and a difficult problem for live electrical power monitoring, while realizing Power Supply Monitoring protection thread and receipts with the method for operation of multithreading
Send out the interaction of module testing thread.
The technical scheme is that what is be achieved in that:
Method for monitoring power supply in a kind of transmitting-receiving subassembly test, after main thread starts, controls first the upper electricity of power module
Sequentially, test thread and Power Supply Monitoring thread are opened after upper electric success;
Then, the various functions test that thread completes transmitting-receiving subassembly, Power Supply Monitoring thread monitoring electric power output voltage are tested
And electric current, thread lock and overall identification variable are set between test thread and monitoring thread;
In main thread terminal procedure, under normal circumstances FEFO is tested into thread, complete test data and preserve right after operation
Transmitting-receiving subassembly order power-off;Conversely, then first closing power supply in order, then carry out test data preservation operation.
Alternatively, main thread controls in order electricity on multiple power modules after opening, and multiple power modules are controlled respectively
Power supply is sequentially output to transmitting-receiving subassembly;Control to carry out delay operation after electricity on each power module, then control next power supply
Module is exported, if power up control failure or output error are immediately exited from.
Alternatively, electricity success arranges thread lock and overall identification variable in main thread on all power modules, uses
Timing routine monitors in turn the output of each power module at interval of time power-on monitoring thread.
Alternatively, in Power Supply Monitoring thread, first determine whether whether overall identification variable is reset, if overall identification becomes
Amount is set, then directly return, and the Power Supply Monitoring thread terminates;If overall identification variable is reset, thread lock is obtained, set is complete
Office's marking variable, gathers power supply output data;Thread lock is discharged after the monitoring normal termination of one round, terminate monitoring thread, most
After reset global variable.
Alternatively, if Power Supply Monitoring thread finds power supply output abnormality, the control sentence of power supply 3 in power module is obtained first
Handle, closes the power supply output, then closes power supply 2, power supply 1 successively with same step, and the abnormity of power supply information for collecting is write
Enter text, deposit in specified location.
Alternatively, the normal output area of power supply is set as (V*Pv1, V*Pv2), the normal output area of electric current is set as
(I*PI1, I*n*PI2), wherein n for transmitting-receiving subassembly quantity, Pv1、Pv2、PI1、PI2The respectively normal floating model of voltage x current
Enclose.
The invention has the beneficial effects as follows:
(1) multiple power modules are monitored, reaches the purpose that tested transmitting-receiving subassembly is protected in test process;
(2) while realizing that Power Supply Monitoring protection thread and transmitting-receiving subassembly test the friendship of thread with the method for operation of multithreading
Mutually, so as to realize test order and reasonability.
Description of the drawings
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing
The accompanying drawing to be used needed for having technology description is briefly described, it should be apparent that, drawings in the following description are only this
Some embodiments of invention, for those of ordinary skill in the art, on the premise of not paying creative work, can be with
Other accompanying drawings are obtained according to these accompanying drawings.
Fig. 1 is existing power supply extension set schematic diagram;
Fig. 2 is the flow chart of method for monitoring power supply in transmitting-receiving subassembly test of the present invention.
Specific embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Site preparation is described, it is clear that described embodiment is only a part of embodiment of the invention, rather than the embodiment of whole.It is based on
Embodiment in the present invention, it is every other that those of ordinary skill in the art are obtained under the premise of creative work is not made
Embodiment, belongs to the scope of protection of the invention.
Although managing multiple power modules in prior art using the method for special power supply control apparatus can reach guarantor
The purpose of shield, but have its limitation, it is in particular in that the design cycle is long, implementation method is complicated, relatively costly, and can increase survey
Test system scale, makes system tend to too fat to move.
The present invention provides a kind of method that multiple power modules are monitored in transmitting-receiving subassembly test, reaches in test process and protects
The purpose of tested transmitting-receiving subassembly, while realizing Power Supply Monitoring protection thread and transmitting-receiving subassembly p-wire with the method for operation of multithreading
The interaction of journey, so as to realize order and the reasonability tested.
As shown in Fig. 2 method for monitoring power supply in a kind of transmitting-receiving subassembly test of the present invention, after main thread starts, first
Test thread and Power Supply Monitoring thread are just opened in the electric sequence of control power module, upper electricity success;Then, test thread to complete
The various functions test of transmitting-receiving subassembly, Power Supply Monitoring thread monitoring electric power output voltage and electric current, test thread and monitoring thread
Between thread lock and overall identification variable are set, so as to ensure that controller unit handle will not simultaneously be taken by two threads.Mastery routine
Terminal procedure, tests thread by FEFO under normal circumstances, completes disconnected to transmitting-receiving subassembly order after the operations such as test data preservation
Electricity.Conversely, then first closing power supply in order, then carry out the operation such as test data preservation.
Main thread controls in order electricity on multiple power modules after opening, the present embodiment divides by taking 3 power modules as an example
Not Kong Zhi three power modules be sequentially output on power supply 1, power supply 2, power supply 3 to transmitting-receiving subassembly.Control to be carried out after each module
Delay operation, such as time delay 5 seconds, it is ensured that control next power module output after the success of upper electricity again, if power up control failure
Or output error is immediately exited from.
Method for monitoring power supply in the transmitting-receiving subassembly test of the present invention, electricity successfully sets in main thread on all power modules
Thread lock and overall identification variable are put, using timing routine every 1-1.5 second power-on monitoring threads, each electricity is monitored in turn
The output in source.First determine whether whether overall identification variable is reset in Power Supply Monitoring thread, if overall identification variable is set to
Position, then directly return, and the monitoring thread terminates;If overall identification variable is reset, illustrate that current block is not controlled, can be with
Collection power supply output data, now obtains thread lock, and set overall identification variable will not be by other to ensure current monitor power supply
Thread (referring mainly to test thread) obtains control, it is to avoid contention for resources.One round monitoring normal termination after discharge thread lock,
Terminate monitoring thread, finally reset global variable.
If Power Supply Monitoring thread finds power supply output abnormality, the control handle of power supply 3 is obtained first, close the power supply defeated
Go out, then power supply 2, power supply 1 closed successively with same step, the abnormity of power supply information for collecting will be written into text,
Deposit in specified location to check for user.
In addition, the normal output area of power supply can be done according to the scale of tested transmitting-receiving subassembly and type matching somebody with somebody accordingly
Put.For example, be up to n transmitting-receiving subassembly is simultaneously to be measured in test process, and each component rated voltage is V, running current
For I, the normal output area of power supply is set as (V*Pv1, V*Pv2), the normal output area of electric current is set as (I*PI1, I*n*
PI2), wherein n for transmitting-receiving subassembly quantity, Pv1、Pv2、PI1、PI2The respectively normal domain of walker of voltage x current.
Once monitoring the monitoring thread of main thread and time opening after normal termination may all obtain thread lock control power supply,
Due to the presence of overall identification variable, they will not simultaneously control same power supply, it is ensured that test data it is correct.
Method for monitoring power supply in the transmitting-receiving subassembly test of the present invention, reaches the mesh that tested transmitting-receiving subassembly is protected in test process
, while realize that Power Supply Monitoring protection thread and transmitting-receiving subassembly test the interaction of thread with the method for operation of multithreading, so as to reality
The order now tested and reasonability.
Presently preferred embodiments of the present invention is the foregoing is only, not to limit the present invention, all essences in the present invention
Within god and principle, any modification, equivalent substitution and improvements made etc. should be included within the scope of the present invention.