The content of the invention
Based on this, it is necessary to which for above-mentioned efficiency, there is provided a kind of switch cutter of efficient programmable realization the problem of low
Lock analogue means and its implementation.
A kind of switch tool analogue means of programmable realization, including be sequentially connected processor, first switch amount output
Circuit and second switch amount output circuit, wherein the second switch amount output circuit is connected with equipment to be tested;
The processor obtains the folding condition of each switch tool to be simulated, by the folding condition of each switch tool
It is sent to the first switch amount output circuit;First switch amount output circuit the opening according to each switch tool of reception
Conjunction state exports the one-to-one voltage of folding condition with each switch tool to the second switch amount output circuit;It is described
Second switch amount output circuit amplifies respectively to the voltage received, and the voltage output after amplification to be tested is set to described
It is standby.
The switch tool analogue means of above-mentioned programmable realization, processor, first switch amount output circuit and second switch
Measure output circuit can realize that processor obtains the whole switch tools to be tested using existing equipment in the prior art
State, the automatic mold of each switch tool state is carried out with reference to first switch amount output circuit and second switch amount output circuit
Intend, so as to realize the automatic test to wanted test equipment, efficiently solve the poor efficiency manually tested, improve survey
Efficiency is tried, the elapsed time of tester is reduced.
In one embodiment, the equipment to be tested is actual control protective unit;The second switch amount output
Circuit is connected with the control protective unit, the voltage matches of its voltage exported and the control protective unit.Conventional art
In, equipment to be tested is the virtual unit realized by software, by carrying out corresponding manual set to different switch tools,
The test to virtual unit is realized, is had any different due to virtual unit or with actual physical unit, therefore in conventional art
Scheme can not the whole switch tool process of accurate simulation, and the switch tool analogue means and actual physics device of the application
It is directly connected to what is tested, thus it is more true, being capable of the whole switch tool process of accurate simulation.
In one embodiment, may be programmed the switch tool analogue means realized also includes being connected to the second switch amount
Toggle switch between output circuit and the equipment to be tested, the second switch amount output circuit passes through the toggle switch
Adjust the voltage swing of its output.Second switch amount output circuit is connected by toggle switch with equipment to be tested, can basis
Corresponding voltage is exported the need for equipment to be tested, to be matched with equipment to be tested.
In one embodiment, may be programmed the switch tool analogue means realized also includes being connected to the first switch amount
Isolation circuit between output circuit and the second switch amount output circuit.Interference can be effectively isolated by isolation circuit,
And ensure the personal safety of tester.
In one embodiment, the folding condition of switch tool, which includes switching being in closure state, switch, disconnects shape
State, disconnecting link are in closure state and disconnecting link is off;If switch is in closure state in closure state or disconnecting link,
The first switch amount output circuit exports high level, the second switch amount output electricity to the second switch amount output circuit
The high level is amplified to the voltage matched with the equipment to be tested and output by road;If switch is off or knife
Lock is off, and the first switch amount output circuit exports low level 0V, institute to the second switch amount output circuit
The voltage for stating the output of second switch amount output circuit is low level 0V.
In one embodiment, the processor is connected with host computer;The host computer sends related operational order
To the processor, the processor carries out after relevant treatment according to the operational order, response results is returned on described
Position machine, wherein the operational order include enabled instruction and/or pair when instruct.Assigning for dependent instruction is carried out by host computer,
The switch tool folding condition that i.e. each needs of automatically testing are tested.
In one embodiment, the processor obtains the folding shape of each switch tool to be simulated from the host computer
State, is decoded to the folding condition of each switch tool of acquisition, and by the folding condition of each decoded switch tool
It is sent to the first switch amount output circuit.Host computer stores the whole on off states to have been tested, the switch tool
Analogue means carries out the automatic imitation of each switch tool state according to the switch tool state obtained from host computer, so that
The automatic test to wanted test equipment can be realized, testing efficiency is improved.
In one embodiment, the processor is connected by netting twine or Serial Port Line with the host computer.
In one embodiment, the processor is digital signal processor or field programmable gate array.
A kind of implementation method of the switch tool analogue means of programmable realization, including step:
Processor obtains the folding condition of each switch tool to be simulated, and the folding condition of each switch tool is sent
Give first switch amount output circuit;
The first switch amount output circuit is defeated to second switch amount according to the folding condition of each switch tool of reception
Go out the one-to-one voltage of folding condition of circuit output and each switch tool;
The second switch amount output circuit amplifies respectively to the voltage received, and the voltage output after amplification is treated
Test equipment.
The implementation method of the switch tool analogue means of above-mentioned programmable realization, processor obtains the whole to be tested and opened
Disconnecting link state is closed, each switch tool state is carried out with reference to first switch amount output circuit and second switch amount output circuit
Automatic imitation, so as to realize the automatic test to wanted test equipment, efficiently solves the poor efficiency manually tested, carries
High testing efficiency, reduces the elapsed time of tester.
Embodiment
It is below in conjunction with the accompanying drawings and preferably real further to illustrate the effect of the technological means of the invention taken and acquirement
Example is applied, to technical scheme, clear and complete description is carried out.
A kind of switch tool analogue means 100 of programmable realization, including be sequentially connected processor 101, first switch
Output circuit 102 and second switch amount output circuit 103 are measured, wherein the second switch amount output circuit 103 is set with to be tested
Standby 200 are connected;
The processor 101 obtains the folding condition of each switch tool to be simulated, by the folding of each switch tool
State is sent to the first switch amount output circuit 102;The first switch amount output circuit 102 is opened according to each of reception
The folding condition for closing disconnecting link exports a pair of folding condition 1 with each switch tool to the second switch amount output circuit 103
The voltage answered;Described 103 pairs of voltages received of second switch amount output circuit amplify respectively, and by the voltage output after amplification
To the equipment 200 to be tested.
Processor 101 can be using existing equipment realization in the prior art, in one embodiment, the processor
101 can be DSP (Digital Signal Processing, digital signal processor) or FPGA (Field-
Programmable Gate Array, field programmable gate array) etc..Switch tool to be simulated includes disconnecting link and/or switch
Deng.In one embodiment, the folding condition (that is to say switch tool state described below) of switch tool is included at switch
In closure state, switch are off, disconnecting link is in closure state and disconnecting link is off.Folding condition is typically used
Numeral 1 or numeral 0 are represented, for example, represent that switch is in closure state with 1, represent that switch is off, it is necessary to say with 0
Bright, the present invention makes restriction not to this, and folding condition can also be represented with other forms, such as metric form table
Show.
The mode that processor 101 obtains the folding condition of each switch tool to be simulated has many kinds.For example, such as Fig. 2
Shown, in one embodiment, the processor 101 is connected with host computer 300, can be on switch tool analogue means 100
Host computer interface is set, and processor 101 is connected by the host computer interface with host computer 300.Optionally, the host computer interface
For network interface or serial ports etc., the switch tool analogue means 100 is connected by netting twine or Serial Port Line with the host computer 300
Connect.The processor 101 obtains the folding condition of each switch tool to be simulated from the host computer 300, to each of acquisition
The folding condition of individual switch tool is decoded, and the folding condition of each decoded switch tool is sent into described first
Switching value output circuit 102.Host computer 300 stores the whole switch tool states to have been tested, for example, that to be tested opens
Pass has two, then whole on off states have 00,01,10 and 11, and these switch tool states can be stored in forms such as forms
In host computer 300, when needing to be tested, host computer 300 by whole switch tool states of storage be spaced one by one transmission or
The switch tool state that person is all sent in processor 101, the form that 101 pairs of processor is received is decoded, then
Decoded information is sent to first switch amount output circuit 102.The whole switch tool states to be tested can be used
Human-edited's form is realized, it would however also be possible to employ existing switching value combinatorial logic state implementation is given birth to automatically in the prior art
Into the present invention makes restriction not to this.
In another embodiment, processor 101 itself storage needs the folding condition for each switch tool simulated, respectively
The folding condition of individual switch tool can be with the storage of the forms such as form in the processor 101.The processor 101 is obtained from itself
Wait after the folding condition for each switch tool simulated, the folding condition of each switch tool of acquisition is decoded, and will
The folding condition of each decoded switch tool is sent to the first switch amount output circuit 102.Likewise, to be tested
Whole switch tool states can be realized using human-edited's form, it would however also be possible to employ existing switching value group in the prior art
Logical state implementation is automatically generated, and the present invention makes restriction not to this.
In addition, related operational order is also sent to the processor 101, the processor 101 by the host computer 300
Carried out according to the operational order after relevant treatment, response results are returned into the host computer 300, wherein the operational order
Including enabled instruction and/or pair when instruction etc., result can for start whether it is successful and pair when whether successfully etc..Pass through
Host computer 300 carries out assigning for dependent instruction, you can test each switch tool folding condition for needing to test automatically.
Processor 101 sends the division state of related switch disconnecting link to first switch amount output circuit 102, for simulating reality
The folding condition of border related switch disconnecting link.First switch amount output circuit 102 is received after the folding condition of each switch tool,
Output and the one-to-one voltage of folding condition of each switch tool.For example, in one embodiment, if switch is in closure
State or disconnecting link are in closure state (such as processor 101 exports numeral 1), the first switch amount output circuit 102 to
The second switch amount output circuit 103 exports high level, and the second switch amount output circuit 103 amplifies the high level
To the voltage and output matched with the equipment 200 to be tested;If switch is off or disconnecting link is off
(such as processor 101 export numeral 0), the first switch amount output circuit 102 is to the second switch amount output circuit 103
Low level 0V is exported, the voltage of the second switch amount output circuit output is low level 0V.It should be noted that the present invention is simultaneously
The concrete numerical value for the low pressure not exported to first switch amount output circuit 102 is limited.
In one embodiment, as shown in figure 3, the programmable switch tool analogue means realized can also include being connected to
Isolation circuit 104 between the first switch amount output circuit 102 and the second switch amount output circuit 103.By every
Interference can be effectively isolated from circuit 104, and ensures the personal safety of tester.
Second switch amount output circuit 103 is received after the voltage of the output of first switch amount output circuit 102, to receiving
To voltage be amplified, to meet the demand of equipment 200 to be tested.In one embodiment, the first switch amount output
The high level of circuit output is 3.3V (volt) or 5V;First switch amount is exported electricity by the second switch amount output circuit 103
The high level that road 102 is exported is enlarged into 24V, 48V, 110V or 220V.The height electricity that i.e. second switch amount output circuit 103 is exported
Flat can be 24V/48V/110V/220V, and low level is 0V.It should be noted that the present invention is not exported to second switch amount
The concrete numerical value for the voltage that circuit 103 amplifies makes restriction.
In conventional art, equipment 200 to be tested is the virtual unit realized by software, by different switch tools
The corresponding manual set of progress, realizes the test to virtual unit, has area due to virtual unit or with actual physical unit
Not, therefore the scheme in conventional art can not the whole switch tool process of accurate simulation.Therefore, for the defect, in a reality
Apply in example, the equipment 200 to be tested is actual control protective unit;The second switch amount output circuit 103 with it is described
Control protective unit is connected, the voltage matches of its voltage exported and the control protective unit.The programmable switch cutter realized
Lock analogue means 100 and actual physics device are directly connected to what is tested, therefore more true, can accurate simulation entirely open
Close disconnecting link process.It should be noted that the equipment to be tested 200 of the present invention is not intended to limit then control protective unit, if desired for
Other devices are tested, the present invention can also be other actual devices.
Second switch amount output circuit 103 is connected with actual equipment to be tested, due to electric needed for equipment 200 to be tested
Pressure is certain, and second switch amount output circuit 103 can export the voltage of a variety of numerical value, therefore is specifically being tested
When, can be according to actual equipment to be tested the need for, related voltage is exported, for being matched with equipment 200 to be tested.Such as Fig. 3
Shown, in one embodiment, the programmable switch tool analogue means realized is also defeated including being connected to the second switch amount
The toggle switch 105 gone out between circuit 103 and the equipment to be tested 200, the second switch amount output circuit 103 passes through institute
State the voltage swing of its output of the regulation of toggle switch 105.
If for example, actual control protective unit input voltage is 24V, second switch is adjusted by toggle switch 105
The high level for measuring the output of output circuit 103 is 24V;If actual control protective unit input voltage is 48V, opened by dial-up
It is 48V to close 105 high level for adjusting the output of second switch amount output circuit 103;If actual control protective unit input voltage
For 110V, then the high level for adjusting the output of second switch amount output circuit 103 by toggle switch 105 is 110V;If actual
Control protective unit input voltage is 220V, then the height of the output of second switch amount output circuit 103 is adjusted by toggle switch 105
Level is 220V.
Automatically the whole switch tool states to be tested can be enumerated on host computer, pass through institute of the embodiment of the present invention
The switch tool analogue means provided carries out the automatic imitation of each switch tool state, so as to realize to be tested
The automatic test of equipment, it is to avoid the poor efficiency manually tested, improves operating efficiency.Further, since the present invention is implemented
The switch tool analogue means that example is provided is to be directly connected to test with actual physics device, and phase is carried out by host computer
Close assigning for instruction, you can test each state for needing to test automatically, and more true, can accurate simulation entirely open
Close disconnecting link process.
Based on same inventive concept, the present invention also provides a kind of realization side of the switch tool analogue means of programmable realization
Method.As shown in figure 4, in one embodiment, a kind of implementation method of the switch tool analogue means of programmable realization, including step
Suddenly:
S110, processor obtain the folding condition of each switch tool to be simulated, by the folding shape of each switch tool
State is sent to first switch amount output circuit;
S120, the first switch amount output circuit are according to the folding condition of each switch tool of reception to second switch
Measure output circuit output and the one-to-one voltage of folding condition of each switch tool;
S130, the second switch amount output circuit amplify respectively to the voltage received, and the voltage after amplification is defeated
Go out to equipment to be tested.
Other technical characteristics of the implementation method of the switch tool analogue means of above-mentioned programmable realization may be programmed with above-mentioned
The technical characteristic of the switch tool analogue means of realization is identical, will not be described here.
One of ordinary skill in the art will appreciate that realize all or part of flow in above-described embodiment method, being can be with
The hardware of correlation is instructed to complete by computer program, described program can be stored in a computer read/write memory medium
In, the program is upon execution, it may include such as the flow of the embodiment of above-mentioned each method.Wherein, described storage medium can be magnetic
Dish, CD, read-only memory (Read-Only Memory, ROM) or random access memory (Random Access
Memory, RAM) etc..
Each technical characteristic of embodiment described above can be combined arbitrarily, to make description succinct, not to above-mentioned reality
Apply all possible combination of each technical characteristic in example to be all described, as long as however, the combination of these technical characteristics is not deposited
In contradiction, the scope of this specification record is all considered to be.
Embodiment described above only expresses the several embodiments of the present invention, and it describes more specific and detailed, but simultaneously
Can not therefore it be construed as limiting the scope of the patent.It should be pointed out that coming for one of ordinary skill in the art
Say, without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to the protection of the present invention
Scope.Therefore, the protection domain of patent of the present invention should be determined by the appended claims.