Utility model content
Based on this, it is necessary to for above-mentioned efficiency it is low the problem of, there is provided a kind of efficient switch tool analogue means.
A kind of switch tool analogue means, including host computer interface, processor, the first switch amount output electricity being sequentially connected
Road and second switch amount output circuit, the switch tool analogue means are connected by the host computer interface with host computer, institute
Second switch amount output circuit is stated with equipment to be tested to be connected;The second switch amount output circuit is defeated to the first switch amount
Go out circuit output voltage be amplified after export to equipment to be tested.
Above-mentioned switch tool analogue means, host computer, processor, first switch amount output circuit and the output of second switch amount
Circuit can realize that switch tool analogue means passes through host computer interface and host computer using existing equipment in the prior art
Be connected, processor, first switch amount output circuit in switch tool analogue means and be connected with equipment to be tested second
Switching value output circuit cooperates, and the automatic imitation of each switch tool state can be carried out, so as to realize to be surveyed
The automatic test of equipment is tried, the poor efficiency manually tested is efficiently solved, improves testing efficiency, reduce tester
Elapsed time.
In one embodiment, the equipment to be tested is actual control protective unit.It is to be tested to set in conventional art
Standby is the virtual unit realized by software, by carrying out corresponding manual set to different switch tools, is realized to virtual
The test of equipment, had any different due to virtual unit or with actual physical unit, therefore the scheme in conventional art can not be accurate
Whole switch tool process is really simulated, and the switch tool analogue means of the application and actual physics device are directly connected to be surveyed
Examination, thus it is more true, being capable of the whole switch tool process of accurate simulation.
In one embodiment, switch tool analogue means also includes being connected to the second switch amount output circuit and institute
State the toggle switch between equipment to be tested.Second switch amount output circuit is connected by toggle switch with equipment to be tested, can
Related voltage is exported with the needs according to equipment to be tested, to be matched with equipment to be tested.
In one embodiment, switch tool analogue means also includes being connected to the first switch amount output circuit and institute
State the isolation circuit between second switch amount output circuit.Interference can be effectively isolated by isolation circuit, and ensure tester
The personal safety of member.
In one embodiment, the host computer interface is network interface or serial ports, and the switch tool analogue means passes through
Netting twine or Serial Port Line are connected with the host computer.
In one embodiment, the processor is digital signal processor or field programmable gate array.
Embodiment
Further to illustrate the technological means taken of the utility model and the effect of acquirement, below in conjunction with the accompanying drawings and compared with
Good embodiment, to the technical solution of the utility model, carry out clear and complete description.
A kind of switch tool analogue means 200, including be sequentially connected host computer interface 201, processor 202, first open
Output circuit 203 is measured in pass and second switch amount output circuit 204, the switch tool analogue means 200 pass through the host computer
Interface 201 is connected with host computer 100, and the second switch amount output circuit 204 is connected with equipment 300 to be tested;Described second
The voltage that switching value output circuit 204 exports to the first switch amount output circuit 203 is exported to be tested after being amplified
Equipment 300.
Host computer interface 201 is to be arranged on the interface for being used to be connected with host computer 100 on switch tool analogue means 200,
It can be realized using existing mode in the prior art.Optionally, the host computer interface 201 is network interface or serial ports, described
Switch tool analogue means 200 is connected by netting twine or Serial Port Line with the host computer 100.
Processor 202 can use existing equipment realization in the prior art, in one embodiment, the processor
202 can be DSP (Digital Signal Processing, digital signal processor) or FPGA (Field-
Programmable Gate Array, field programmable gate array) etc..Processor 202 needs to obtain each switch to be simulated
With the folding condition (switch tool state i.e. described below or the folding condition of switch tool) of disconnecting link.The folding shape of switch
State includes switch and is off in closure state and switch, the folding condition of disconnecting link include disconnecting link be in closure state with
Disconnecting link is off.Folding condition is typically represented with numeral 1 or numeral 0, such as represents that switch is in closed form with 1
State, represent that switch is off, it is necessary to illustrate with 0, the utility model makes restriction not to this, and folding condition is also
It can be represented with other forms, such as metric form represents.
The mode that processor 202 obtains the folding condition of each switch tool to be simulated has many kinds.For example, at one
In embodiment, the processor 202 obtains the folding condition of each switch tool to be simulated from the host computer 100, to obtaining
The folding condition of each switch tool taken is decoded, and the folding condition of decoded each switch tool is sent into institute
State first switch amount output circuit 203.Host computer 100 stores the whole switch tool states to have been tested, for example, to be surveyed
The switch of examination has two, then the folding condition all switched has 00,01,10 and 11, and these switch tool states can be with form
It is stored in etc. form in host computer 100, when needing to be tested, host computer 100 is by whole switch tool states one of storage
One interval sends or is all sent to processor 202, and processor 202 enters to the switch tool state in the form that receives
Row decoding, is then sent to first switch amount output circuit 203 by decoded information.The whole switch tool shapes to be tested
State can use human-edited's form to realize, can also use existing switching value combinatorial logic state realization side in the prior art
Formula automatically generates, and the utility model makes restriction not to this.
In another embodiment, processor 202 itself storage needs the folding condition for each switch tool simulated, respectively
The folding condition of individual switch tool can be stored in processor 202 in the form of form etc..The processor 202 obtains from itself
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 decoded each switch tool is sent to the first switch amount output circuit 203.Likewise, to be tested
Whole switch tool states human-edited's form can be used to realize, existing switching value group in the prior art can also be used
Logical state implementation automatically generates, and the utility model makes restriction not to this.
In addition, the operational order of correlation is also sent to the processor by the host computer 100 by host computer interface 201
202, after the processor 202 carries out relevant treatment according to the operational order, response results are returned into the host computer
100, wherein the operational order include enabled instruction and/or pair when instruction etc., result can be start whether it is successful with
And pair when whether successfully etc..Pass through host computer 100 and carry out dependent instruction and assign, you can automatically testing each needs that tests to open
Close the folding condition of disconnecting link.
Processor 202 sends the division state of related switch disconnecting link to first switch amount output circuit 203, for simulating reality
The folding condition of border related switch disconnecting link.After first switch amount output circuit 203 receives 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 or disconnecting link
In closure state (such as processor 101 export numeral 1), the first switch amount output circuit 203 is to the second switch
Measure output circuit 204 export high level, the second switch amount output circuit 204 by the high level be amplified to it is described to be measured
Try the voltage that equipment 300 matches and output;If switch or disconnecting link are off (such as processor 101 exports numeral 0),
The first switch amount output circuit 203 exports low level 0V, the second switch to the second switch amount output circuit 204
It is low level 0V to measure the voltage that output circuit 204 exports.It should be noted that the utility model does not export to first switch amount
The concrete numerical value for the low pressure that circuit 203 exports is limited.
In one embodiment, as shown in Fig. 2 switch tool analogue means can also include being connected to the first switch
Measure the isolation circuit 205 between output circuit 203 and the second switch amount output circuit 204.Can by isolation circuit 205
Interference is effectively isolated, and ensures the personal safety of tester.
After second switch amount output circuit 204 receives the voltage of the output of first switch amount output circuit 203, to receiving
To voltage be amplified, to meet the needs of equipment 300 to be tested.In one embodiment, the first switch amount output
The high level that circuit 203 exports is 3.3V (volt) or 5V;The second switch amount output circuit 204 exports first switch amount
The high level that circuit 203 exports is enlarged into 24V, 48V, 110V or 220V.The height that i.e. second switch amount output circuit 204 exports
Level can be 24V/48V/110V/220V, low level 0V.It should be noted that the utility model is not to second switch
The concrete numerical value for the voltage that amount output circuit 204 amplifies makes restriction.
In conventional art, equipment 300 to be tested is the virtual unit realized by software, by different switch tools
Corresponding manual set is carried out, 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 300 to be tested is actual control protective unit;The second switch amount output circuit 204 with it is described
Control protective unit is connected, the voltage matches of its voltage exported and the control protective unit.Switch tool analogue means 200
It is directly connected to what is tested with actual physics device, thus it is more true, being capable of the whole switch tool process of accurate simulation.Need
It is noted that equipment to be tested 300 of the present utility model is not intended to limit then control protective unit, if desired for other devices
Tested, the utility model can also be other actual devices.
Second switch amount output circuit 204 is connected with the equipment to be tested of reality, due to electric needed for equipment 300 to be tested
Pressure is certain, and second switch amount output circuit 204 can export the voltage of a variety of numerical value, therefore is specifically being tested
When, related voltage can be exported, according to the needs of actual equipment to be tested for being matched with equipment 300 to be tested.Such as Fig. 2
Shown, in one embodiment, switch tool analogue means also includes being connected to the second switch amount output circuit 204 and institute
The toggle switch 206 between equipment 300 to be tested is stated, the second switch amount output circuit 204 passes through the toggle switch 206
Adjust the voltage swing of its output.
For example, if actual control protective unit input voltage is 24V, second switch is adjusted by toggle switch 206
It is 24V to measure the high level that output circuit 204 exports;If actual control protective unit input voltage is 48V, opened by dial-up
The high level for closing the output of 206 regulation second switch amount output circuit 204 is 48V;If actual control protective unit input voltage
Then it is 110V by the high level of the output of the regulation second switch amount of toggle switch 206 output circuit 204 for 110V;If actual
Control protective unit input voltage is 220V, then the height of the output of second switch amount output circuit 204 is adjusted by toggle switch 206
Level is 220V.
Automatically the whole switch tool states to be tested can be enumerated on host computer, are implemented by the utility model
The example switch tool analogue means that is provided carries out the automatic imitation of each switch tool state, so as to realize to be tested
The automatic test of equipment, avoids the poor efficiency manually tested, improves operating efficiency.Further, since the utility model
The switch tool analogue means that embodiment 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 automatically it is each need the state tested, it is and more true, can accurate simulation entirely open
Close disconnecting link process.
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 that this specification is recorded all is considered to be.
Embodiment described above only expresses several embodiments of the present utility model, and its description is more specific and detailed,
But therefore it can not be interpreted as the limitation to utility model patent scope.It should be pointed out that the common skill for this area
For art personnel, without departing from the concept of the premise utility, various modifications and improvements can be made, these are belonged to
The scope of protection of the utility model.Therefore, the protection domain of the utility model patent should be determined by the appended claims.