Summary of the invention
The object of the present invention is to provide a kind of test devices of ac analog channel hardware, hold for solving manual testing
Problem error-prone, testing reliability is poor.
In order to solve the above technical problems, the present invention provides a kind of test devices of ac analog channel hardware, including
Processor module and alternating voltage export adjustment module;The processor module is provided with for communicating to connect with host computer
One communication port, the second communication port for being communicated to connect with module on the spot;The alternating voltage output adjustment module setting
Have for the voltage analog output port for connecting the voltage analog input port of module on the spot of powering;The processor module
Control connects the alternating voltage and exports adjustment module, for exporting target value, control alternating voltage output according to alternating voltage
Partial pressure adjustable resistance inside adjustment module, with adjust alternating voltage output adjustment module voltage analog output port it is defeated
Voltage out.
The beneficial effects of the present invention are: when needing to test the alternating voltage analog quantity channel of module on the spot, root
Target value is exported according to alternating voltage, processor module is big by the divider resistance that control alternating voltage exports inside adjustment module
Small, the output voltage for adjusting alternating voltage output adjustment module reaches test target value, and the alternating voltage for obtaining module on the spot is adopted
Sample value, and may determine that according to the alternating voltage sampled value performance shape of the alternating voltage analog quantity channel hardware of module on the spot
State realizes the test of the alternating voltage analog quantity channel hardware of module on the spot, does not need additional test equipment and applies excitation,
Testing cost has been saved, artificial test errors are reduced, has greatly shortened the production and debugging cycle of product.
It further, further include sequentially connected in order to control the output AC voltage that alternating voltage exports adjustment module
Voltage acquisition module, the first low-pass filtering module and the first analog-to-digital conversion module, the voltage acquisition module sample described in connection
Alternating voltage export adjustment module voltage analog output port, the processor module voltage self-test port connection described in
First analog-to-digital conversion module, for being exported according to voltage analog of the alternating voltage sampled value to alternating voltage output adjustment module
The output voltage of port is adjusted.
It further, further include alternating current in order to which the alternating current analog quantity channel hardware to module on the spot is tested
Stream output adjustment module, the alternating current output adjustment module are provided with for the current-mode analog quantity for being electrically connected module on the spot
The current-mode analog quantity output port of input port;The processor module control connects the alternating current and exports adjustment module,
For exporting target value according to alternating current, the shunt resistance inside control alternating current output adjustment module, to adjust exchange
Electric current exports the output electric current of the current-mode analog quantity output port of adjustment module.
It further, further include sequentially connected in order to control the output alternating current that alternating current exports adjustment module
Current acquisition module, the second low-pass filtering module and the second analog-to-digital conversion module, the current acquisition module sample described in connection
Alternating current export adjustment module current-mode analog quantity output port, the processor module electric current self-test port connection described in
Second analog-to-digital conversion module, for being exported according to current-mode analog quantity of the alternating current sampled value to alternating current output adjustment module
The output electric current of port is adjusted.
Further, the alternating voltage output adjustment module includes the first AC power source being connected in series, limiting resistance
With partial pressure adjustable resistance, the processor module control connection partial pressure adjustable resistance is used to adjust the resistance of partial pressure adjustable resistance
Value;The both ends of the partial pressure adjustable resistance connect the voltage analog output port.
Further, the partial pressure adjustable resistance includes n resistance unit being connected in series, and the resistance unit includes simultaneously
Join the resistance branch and bypass of connection, string is equipped with partial pressure control switch, the resistance branch in the bypass and resistance branch
Also string is equipped with divider resistance, and the processor module control connects the partial pressure control switch.
Further, the alternating current output adjustment module includes the second AC power source being connected in series and diverter branch
Unit, the diverter branch unit include m diverter branch being connected in parallel;In the diverter branch string be equipped with shunt resistance and
Flow-dividing control switch, the processor module control connect the flow-dividing control switch;The current-mode analog quantity output port with
The diverter branch unit is connected in series.
Further, the voltage acquisition module is voltage transformer.
Further, the current acquisition module is current transformer.
Further, the first communication port and the second communication port are ethernet port.
Specific embodiment
In order to make the objectives, technical solutions, and advantages of the present invention clearer, below in conjunction with attached drawing and specific implementation
The present invention will be described in further detail for example.
The present invention provides a kind of test devices of ac analog channel hardware, hard to ac analog channel when needing
When part is tested, by the port of the test device with host computer, the corresponding port of module is attached on the spot, specific connection is shown
It is intended to as shown in Figure 1.The communication port N1 of first communication port E1 of test device and host computer is communicated to connect, realizes test
The transmission of order and the feedback of test result;By the voltage-mode of the voltage analog output port S1 of test device and module on the spot
The T1 connection of analog quantity input port is used for module output AC voltage analog quantity on the spot;The current-mode analog quantity of test device is defeated
Exit port S2 is connect with the current-mode analog quantity input port T2 of module on the spot, for simulating to the output alternating current of module on the spot
Amount;Second communication port E2 of test device is connect with the communication port F1 of module on the spot, is adopted for inquiring ac analog
Sample result.
The lane testing order that the test device of above-mentioned ac analog channel hardware is sent by receiving host computer, is adjusted
Section, which exports and corrects alternating voltage, reaches test target value, and adjusting, which exports and corrects alternating current, reaches test target value, passes through
Communication port E2 reads the alternating voltage of module and alternating current sampled value on the spot, judges to exchange according to the sampled value of module on the spot
The performance state of voltage, alternating current analog quantity channel hardware, test result is sent on host computer.The test device realizes just
The automatic test of the automatic test and alternating current analog quantity channel hardware of the alternating voltage analog quantity channel hardware of ground module, keeps away
The phenomenon that manual testing is easy error is exempted from, test accuracy has been enhanced, below with regard to the test of the ac analog channel hardware
Specific structure inside device describes in detail.
Wherein, as shown in Fig. 2, the test device of ac analog channel hardware of the invention includes processor module
(CPU) and ac analog output module, the ac analog output module include alternating voltage output adjustment module AVC and friendship
Galvanic electricity stream exports adjustment module ACC.Wherein, which is provided with the first communication ends for communicating to connect with host computer
Mouth E1 and the second communication port E2 for being communicated to connect with module on the spot;It is useful that the alternating voltage exports adjustment module setting
In the voltage analog output port S1 for being electrically connected the voltage analog input port of module on the spot;Alternating current output is adjusted
Module is provided with for the current-mode analog quantity output port S2 for being electrically connected the current-mode analog quantity input port of module on the spot.Processing
Device module control connection alternating voltage exports adjustment module, exports target value according to alternating voltage, control alternating voltage output is adjusted
Save inside modules partial pressure adjustable resistance, with adjust alternating voltage output adjustment module voltage analog output port S1 it is defeated
Voltage Vout out.Processor module control connection alternating current exports adjustment module, exports target value, control according to alternating current
Alternating current exports the shunt resistance inside adjustment module, to adjust the current-mode analog quantity output of alternating current output adjustment module
The output electric current Iout of port S2.Wherein, the first communication port E1 and the second communication port E2 is ethernet port, certainly may be used
To be other kinds of wired or wireless port.
In order to realize the accurate control of alternating voltage output adjustment module AVC output AC voltage, which is also wrapped
Include sequentially connected voltage acquisition module, the first low-pass filtering module and the first analog-to-digital conversion module.Wherein, voltage acquisition module
The voltage analog output port of sampling connection alternating voltage output adjustment module, for collection voltages analog output port
Output voltage, the voltage self-test port of processor module connect first analog-to-digital conversion module (AD1), for according to alternating voltage
The output voltage of the voltage analog output port of alternating voltage output adjustment module is adjusted in sampled value.It is handed over to realize
Galvanic electricity stream exports the accurate control of adjustment module ACC output alternating current, which further includes that sequentially connected electric current is adopted
Collect module, the second low-pass filtering module and the second analog-to-digital conversion module (AD2), current acquisition module sampling connection alternating current is defeated
The current-mode analog quantity output port of adjustment module out, for acquiring the output electric current of current-mode analog quantity output port, processor die
The electric current self-test port of block connects the second analog-to-digital conversion module, adjusts for being exported according to alternating current sampled value to alternating current
The output electric current of the current-mode analog quantity output port of module is adjusted.
Specifically, above-mentioned alternating voltage output adjustment module includes the first AC power source being connected in series, limiting resistance
With partial pressure adjustable resistance, which includes n resistance unit being connected in series, and each resistance unit includes in parallel connects
The resistance branch and bypass connect.Wherein, string is equipped with control switch is divided in bypass and resistance branch, and also string is set in resistance branch
There is divider resistance, processor module control connects the on-off that all partial pressure control switches are used to control partial pressure control switch, point
The both ends of adjustable resistance are pressed to connect voltage analog output port S1.Wherein, partial pressure control switch is thyristor (silicon-controlled), when
So it is also possible to other controllable switches.
In the present embodiment, as shown in figure 3, alternating voltage output adjustment module uses alternating current 220V input power, i.e. Vin
=220V.CPU adjusts divider resistance by the on-off of P mouthfuls of control partial pressure control switches, that is, silicon-controlled, and then adjusts alternating current
The ac voltage Vout of pressure output adjustment module output.Limiting resistance R0 limits the adjustable range of output voltage, divider resistance
R1~Rn different resistance value distribution, determines that alternating voltage adjusts output valve.In the present embodiment, n value is 11.Silicon-controlled P2 conducting
And silicon-controlled P1 is disconnected, then the both ends divider resistance R1 resistance value is zero;Silicon-controlled P1 is connected and silicon-controlled P2 is disconnected, then divider resistance
The both ends R1 resistance value is the resistance value of resistance R1;Silicon-controlled P4 conducting and silicon-controlled P3 disconnection, then the both ends divider resistance R2 resistance value is zero;
Silicon-controlled P3 conducting and silicon-controlled P4 disconnection, then the both ends divider resistance R2 resistance value is the resistance value of resistance R2;And so on.Partial pressure can
Adjusting resistance R is the sum of the divider resistance of all conductings, and maximum partial pressure adjustable resistance Rmax is the sum of all divider resistances, i.e. Rmax
=Σ Ri=R1+R2+ ...+Rn.The alternating voltage Vout of output can be according to partial pressure adjustable resistance R, pressure limiting resistance R0 and input
Supply voltage calculates: Vout=R/ (R+R0) * Vin.
As shown in figure 3, in the present embodiment, voltage acquisition module is voltage transformer, which is produced
Raw AC signal AV1 samples self-test for CPU.In the present embodiment, pressure limiting resistance R0 resistance value is 27k Ω, resistance R1~R11 resistance
It is worth (unit k Ω) successively are as follows: 3.0,3.0,2.0,1.0,0.56,0.3,0.2,0.1,0.047,0.024,0.012.Maximum partial pressure
Adjustable resistance Rmax=10.24k Ω, minimum partial pressure adjustable resistance Rmin=R11=12 Ω;Adjustable output AC voltage is maximum
Value is Voutmax=Rmax/ (Rmax+R0) * Vin=60.5V, and output voltage step-length is calculated according to minimum partial pressure resistance R11,
Vstep=R11/ (R11+R0) * Vin=0.012/ (27+0.012) * 220=0.1V.
Specifically, above-mentioned alternating current output adjustment module includes the second AC power source being connected in series and diverter branch
Unit, the diverter branch unit include m diverter branch being connected in parallel;String is equipped with shunt resistance and divides in each diverter branch
Flow control switch, processor module control connect all flow-dividing control switches and switch on-off for controlling flow-dividing control;Electricity
Flow field simulation amount output port S2 and diverter branch unit are connected in series.Wherein, flow-dividing control switch is thyristor (silicon-controlled), when
So it is also possible to other controllable switches.
In the present embodiment, as shown in figure 4, alternating current output adjustment module uses alternating current 220V input power, i.e. Vin
=220V.CPU is silicon-controlled each diverter branch of on, off, each diverter branch of conducting by W mouthfuls of control flow-dividing control switches
The sum of electric current is the AC current values Iout exported.The distribution of shunt resistance R1~Rm difference resistance value, determines alternating current tune
Save output valve.In the present embodiment, m value is 17.Silicon-controlled W1 is connected, then diverter branch where resistance R1 exports electric current;It is silicon-controlled
W1 is disconnected, then diverter branch where resistance R1 does not export electric current;Silicon-controlled W2 is connected, then diverter branch output electricity where resistance R2
Stream;Silicon-controlled W2 is disconnected, then diverter branch where resistance R2 does not export electric current;And so on.Each diverter branch total current Ii root
It is calculated according to branch resistance Ri and input supply voltage Vin: Ii=Vin/Ri.
As shown in figure 4, in the present embodiment, current acquisition module is current transformer, which is produced
Raw AC signal AC1 samples self-test for CPU.In the present embodiment, the resistance value of shunt resistance R1~R9 is 440 Ω, resistance R10~
The resistance value (unit k Ω) of R17 is successively are as follows: 1.1,1.1,2.2,4.4,11,11,22,44.The electric current of resistance R1~R9 branch is distinguished
Are as follows: Ii=Vin/Ri=220/440=0.5A, the electric current of resistance R10~R17 branch be respectively as follows: 0.2A, 0.2A, 0.1A,
0.05A,0.02A,0.02A,0.01A,0.005A.Adjusting output alternating current maximum value is Ioutmax=Σ Ii=I1+I2
+ ...+I17=5.105A exports current steps Istep=Vin/R17=220/44000=0.005A.
Alternating voltage output adjustment module and alternating current output in the test device of above-mentioned ac analog channel hardware
The working principle of adjustment module is as follows:
Processor module exports target value according to alternating voltage, automatically adjusts alternating voltage output by the port P and adjusts mould
The resistance value of partial pressure adjustable resistance in block AVC, output AC voltage Vout.The detection exchange output electricity of self-test voltage transformer pt 1
Pressure value Vout, and pass through the first low-pass filtering module (AV1/LPF low-pass filter), access analog-to-digital conversion module AD1 for CPU from
Inspection sampling.CPU is determined according to alternating voltage self-test sampled value and is automatically controlled silicon-controlled amendment partial pressure adjustable resistance by P mouthfuls
Resistance value, and then correct output ac voltage be alternating voltage target value, pass through alternating voltage terminal S1 export.
Processor module exports target value according to alternating current, automatically adjusts alternating current output by the port W and adjusts mould
The diverter branch of block ACC exports alternating current Iout.Self-test Current Transmit 1 detects ac output current value Iout, and passes through
It crosses the second low-pass filtering module (AC1/LPF low-pass filter), access analog-to-digital conversion module AD2 is sampled for CPU self-test.CPU root
According to alternating current self-test sampled value, determines and automatically control silicon-controlled amendment diverter branch by W mouthfuls, and then correct the friendship of output
Galvanic electricity flow valuve is alternating current target value, is exported by alternating current terminal S2.
Alternating voltage output adjustment module and alternating current are defeated in the test device of ac analog channel hardware of the present invention
The design of adjustment module uses out, provides convenience for the test of ac analog channel hardware, it can be achieved that alternating voltage, exchange
The automatic test of current-mode analog quantity channel hardware does not need additional test equipment and applies excitation, saved testing cost, effectively
It avoids hidden danger of quality caused by artificial leakage test item, error connection etc. and greatly shortens product to improve testing efficiency
Production and debugging cycle.