Background technology
Measurement module be the various signals that are used for the automatic control spot sensor output that will receive (as the impedance of the potential difference (PD) of thermopair, thermal resistance and normal voltage, current signal etc.) through sampled measurements, and calculate the circuit module of measured signal data result according to the characteristic basic parameter of module.
Measurement module all has the certain precision requirement to Signal Processing, thus when producing measurement module, need calibrate the basic parameter of inside modules, with the accuracy requirement that guarantees to measure.
At present in producing measurement module, what the calibration of measurement module was adopted is artificial method, and operating process is roughly as follows:
Adopt high-precision multimeter control measurement standard signal source device (as resistance box, electron potentiometer etc.), the signal of a certain standard is exported to the measurement module that is calibrated by manual shift.The measurement module that the is calibrated result that these signals and output are measured that samples, characteristic computing formula by module calculates the data that reach the required adjustment of standard value, artificial adjustment element or the parameter of adjusting in the measurement module that is calibrated, the measurement result of the feasible measurement module output that is calibrated reaches a certain standard value.By adopting conversion to measure the standard signal numerical value of multiple spot in the range ability, the precision of whole range is adjusted, make to be calibrated the accuracy requirement that measurement module reaches calibration.
Adopt this artificial method of adjustment that module is calibrated, generally speaking, a high-precision multimeter can only be monitored the calibration operation of a module, and manual shift control criterion signal is slower to the speed of a certain standard value, and the labour intensity height that causes calibration operation is the lower situation of efficient but.
Summary of the invention
The purpose of this utility model provides a kind of self-checking device of measurement module, to improve the efficient of calibration measurement module.
The self-checking device of measurement module of the present utility model, comprise computing machine and intelligent signal source, wherein intelligent signal source comprises the CPU processor, nonvolatile memory, the standard signal source that constitutes by standard voltage source, signal selecting switch, signal metric selector switch and be used for communication and patch the interface of measurement module, computing machine links to each other with the CPU processor by the PORT COM in the interface, the output control terminal of CPU processor links to each other with the control end of signal selecting switch and signal metric selector switch, the output terminal of standard signal source is connected with the input end of signal selecting switch, the output terminal of signal selecting switch links to each other with the input end of signal metric selector switch, the output terminal of signal metric selector switch links to each other with signal port in the interface, PORT COM in the interface links to each other with computing machine, and the read-write control line of nonvolatile memory is connected with the control end of CPU processor.
When this device is used for the automatic calibration of measurement module, the measurement module that is calibrated is patched on the port that patches measurement module of interface, the computing machine transmitting control commands is given the CPU processor, and the standard code corresponding in the nonvolatile memory in the reception intelligent signal source with output signal, by CPU processor control signal selector switch and signal metric selector switch the output signal of standard signal source is selected, standard signal source produces dissimilar signal input selector switches, select one type signal to be defeated by the signal metric selector switch by signal selecting switch, selection control through the signal metric selector switch, certain type and the signal measured are defeated by the measurement module that is calibrated, be calibrated certain type that measurement module will import and the metrical information of measuring and be defeated by computing machine, computing machine by program to the standard code of intelligent signal source and be calibrated the metrical information that measurement module returns, calculate according to certain computing formula, the result who obtains calibrating, this calibration result is passed to by the PORT COM in the interface and is calibrated in the measurement module, and be kept in the storer that is calibrated measurement module, reach the purpose that the measurement module of producing is calibrated automatically, with the high precision that guarantees to produce measurement module.
Advantage of the present utility model:
1. the utility model device adopts intelligent signal source to replace normal signal generator and digital multimeter, and the calibration operation of measurement module has been broken away to the adjusting of signal generator with to the dependence of digital multimeter survey measurements.
2. the method that has replaced manual calibration with automatic Calibration Method has improved the production efficiency of calibration measurement module.
Embodiment
With reference to Fig. 1, the self-checking device of measurement module of the present utility model comprises computing machine 1 and intelligent signal source 2, wherein intelligent signal source 2 comprises CPU processor U1, nonvolatile memory U2, the standard signal source U3 that constitutes by standard voltage source, signal selecting switch U4, signal metric selector switch U5 and be used for communication and patch the interface U6 of measurement module, the communication interface of computing machine 1 links to each other with the communication interface of CPU processor U1 by the PORT COM among the interface U6, the read-write control line of nonvolatile memory U2 is connected with the control end of CPU processor U1, is used to store the standard code corresponding with output signal.The output control terminal of CPU processor U1 links to each other the selection of controlling output signal and measuring with the control end of signal selecting switch U4 and signal metric selector switch U5; The output terminal of standard signal source U3 is connected with the input end of signal selecting switch U4, the output terminal of signal selecting switch links to each other with the input end of signal metric selector switch U5, the output terminal of signal metric selector switch U5 links to each other with signal port among the interface U6, signal is offered the measurement module that is calibrated, and the PORT COM among the interface U6 links to each other with computing machine.Like this, be calibrated the metrical information that measurement module returns and be input to computing machine by the PORT COM among the interface U6.And the calibration result that obtains of computer as calculated, the PORT COM by interface U6 can be passed in the storer that is calibrated measurement module again.
Above-mentioned intelligent signal source 2 is a kind ofly to have communication function, have multiple standards signal output function and have the circuit of the digitized standard code corresponding with the outputting standard signal.It can carry out communication by communication interface among the interface U6 and computing machine, obtains the order of the execution action of computing machine requirement, and promptly computing machine requires the order of the standard signal of intelligent signal source output certain specification.After intelligent signal source receives computer commands, to order according to the data that receive being handled with the agreement of computing machine communication, draw the information such as signal type, signal metric of the output signal of computer command requirement, and the standard code corresponding with output signal returned to computing machine, replaced the measured value of digital multimeter to output signal.
Standard code is the linear array of the standard signal value correspondence of a group and output, is used for substituting the measured value of measuring output signal through digitized digital multimeter.In the utility model, define the numerical value of the corresponding various signal full scales of 30000 sign indicating numbers, as the 4mV in the 4-20mV standard signal is defined as 0 yard, 20mV is defined as 30000 yards, so per 1 sign indicating number=(20-4)/30000=0.5333uV.In 4-20mV standard signal type, the signal value of 1000 sign indicating number=4+0.5333 uV * 1000=4.5333mV.The rest may be inferred for the code Calculation Method of other signals.
That Fig. 2 provides is a kind of physical circuit figure of intelligent signal source.CPU processor U1 is the core control section of intelligent signal source, adopt the AT89 series monolithic, in the illustrated example, CPU processor U1 adopts AT89LS8252, standard signal source U3 adopts accurate voltage reference device R EF102CM, signal selects multi-way switch U4 and measurement range selection multi-way switch U5 to adopt MC14051 respectively, and interface U6 adopts BUS64.
The control signal D0-D3 of CPU processor A T89LS8252 is by photoisolator U24, and here, photoisolator is isolated with TLP521-4, produces the control signal of CH1-CH4, is used for signal type and the control of measuring selection.Control signal CH3, CH4 are connected to passage control end A, B, the C that signal is selected multi-way switch MC14051.Control signal CH1, CH2 are connected to passage control end A, B, the C of measurement range selection multi-way switch MC14051.
The 5V voltage that voltage reference U3 output is stable obtains the magnitude of voltage of certain specification requirement by precision resistance RJ1, RJ5, RJ6 dividing potential drop, as the voltage of specifications such as 5V, 100mV, 20mV.The voltage signal of each specification is input to input end X0, X1, X2, the X3 that signal is selected multi-way switch MC14051, by different combinations, selects one of them signal of output.This output signal (the X end of MC14051) obtains the magnitude of voltage of certain percentage amounts again by precision resistance RJ7-RJ10 dividing potential drop, as 100%, 90%, 50%, 10% corresponding voltage value 20mV, 18.4mV, magnitudes of voltage such as 12mV, 5.6mV, these magnitudes of voltage are input to input end X0, X1, X2, the X3 of measurement range selection multi-way switch MC14051, and one of them signal of measuring of output is selected in control.After this output signal is carried out impedance matching through operational amplifier U15, output to the port AOUT1-AOUT8 of the grafting measurement module of interface BUS64, signal is offered the measurement module that is calibrated.
Usually, intelligent signal source 2 is assembled into the casing that the measurement module 3 being convenient to be calibrated patches, sees shown in Figure 3.
By the school measurement module output signal of intelligent signal source is sampled, and measured value is returned to computing machine by interface BUS64.By measurement to a plurality of signaling points in the signal range, characteristic formula according to output signal, calculate the characteristic parameter of measurement module, parameter is existed in the storer of measurement module, as the family curve of the measurement module standard when the calculating sampling signal, finish the calibration operation of measurement module.
The utility model device is before being used for the calibration measurement module, need be for the intelligent signal source in the device through calibration, be consistent with the corresponding family curve of digitized standard code in the signal range ability with the numerical value of the standard signal that guarantees intelligent signal source output, make standard code can reflect output signal value really, guarantee that the standard code that computing machine obtains can replace the measurement of high accuracy number multimeter to output signal.
The calibration steps of intelligent signal source is as follows: the RS232 serial ports of computing machine is connected with the RS232 serial ports of digital multimeter, computing machine is exported the signal of certain standard by the communication interface order intelligent signal source of interface U6, the input end of digital multimeter is received the signal port of interface U6, signal to intelligent signal source output is measured, calculate the standard code of this standard output signals correspondence by certain computing formula, this result is written to U2 in the nonvolatile memory of intelligent signal source.By the method, make the various standard signals of intelligent signal source output respectively have an accurate standard code corresponding with it.
Below by 20mV voltage signal measurement module is calibrated to example, further describe the process of the calibration of the utility model device.
The family curve of the voltage signal of 20mV is the curve of a linearity, can represent with formula y=kx+b, as long as determined k, b value, just can determine this family curve.In order to make the precision of curve fitting the highest, adopted least square method to calculate, need sample to 3 signaling points, draw computational data.
Earlier the measurement module that is calibrated is inserted among the interface U6 of intelligent signal source.Computing machine is selected the voltage signal of 20mV by the signal selecting switch U4 of control intelligent signal source, the voltage signal of 20mV is selected through signal metric selector switch U5, upper change point S1=18.4mV, intermediate point S2=12mV on the range of difference outputting standard signal and the signal of lower-limit point S3=5.6mV, the moment that the signal at standard signal upper change point, intermediate point and zero point is required respectively at computing machine outputs to the interface U6 of intelligent signal source, the output signal of measurement module sampling each point obtains corresponding sampled value T1, T2, T3.
Computing machine reads digitizing standard code value S1, S2, the S3 of each normal voltage signal from the non-volatile storage U2 of intelligent signal source.
Obtain following set of equations:
T1=K×S1+B ---(1)
T2=K×S2+B ---(2)
T3=K×S3+B ---(3)
Definition:
D1=S1+S2+S3
D2=S1×S1+S2×S2+S3×S3
D3=T1+T2+T3
D4=S1×T1+S2×T2+S3×T3
Draw the computing formula of K, B value:
K=(3×D4-D1×D3)/(3×D2-D1×D1)
B=(D2×D3-D1×D4)/(3×D2-D1×D1)
Computing machine calculates a virtual measurement characteristics curve according to the minimum deflection principle according to above formula, makes according to this family curve, and the measured deviation of the maximum of each input signal point reaches minimum in gamut.The key coefficient of this curve is write in the storer of the measurement module that is calibrated, reach the purpose of calibration measurement module.