Abstract:
In a multiplexed and microprocessor-based data acquisition system involving temperature measurement with temperature resistor thermometer devices (RTD), automatic signal substitution for calibration is effected without physically interrupting the measurement signal path by taking three measurements between the three wires at the input and using with the microprocessor a cancellation algorithm.

Description:
BACKGROUND OF THE INVENTION 
     The invention relates to multiple channel analog data acquisition systems in general, and more particularly to automatic calibration of a computerized system for temperature measurements. 
     Modern analog data acquisition systems use digital treatment with a computer centrally located and remote from local measuring points which are scanned or sequentially selected for initial testing and calibration concurrently with analog measurement. 
     Remote control and monitoring in a hostile evnironment involving high electrical noise and wide temperature variations require calibration measurement to insure the accuracy and performance expected for digital computer treatment and control with the derived information. Improved computer-based systems are desirable to be able to place high performance complex systems in very small packages. Microcomputer treatment has been further extended to the design and operation of the analog portion of the system, thus, right across the analog interface of the system. This has been done, in particular, for automatic calibration in multiple channel analog-to-digital data acquisition systems. See for instance U.S. Pat. Nos. 3,961,325; 3,975,727 and 4,016,557. 
     Calibration involves an initial correction and setting of the instrumentation to account for gain and offset errors, for inaccuracies associated with filters, current sources, thermocouple effects, and lead-lines inserted with the instrumentation. 
     One approach in the prior art when confronted with a computerized data acquisition system has been to merely reapply to digital systems the techniques already known for totally analog systems. This approach, however, requires signal substitution at the terminal points, or signal injection at some intermediary location in the system. In the first instance there is a need for disconnecting wires with the additional drawback of possible error in making the connections on the terminal block. In the second instance, test and calibration are effective only partially on the system. Short of automatic calibration, adjustments are made manually on a number of trimpots until the operator observes a predetermined level reached by the signal under consideration. Considering the large number of inputs in a multiplexed analog I/O subsystem, with a manual approach only the common hardware is compensated by calibration and a residual error remains. In order to minimize such residual error, the errors associated with each input may be called for and the calibration made on the common hardware be corrected with the average of the two most extreme detected errors. These procedures are tedious, costly, time consuming, and still they allow a residual error on most inputs. 
     A better approach than disconnecting wires consists in controlled switching, for testing purposes, of a special signal generator. This approach, however, also disconnects, if not manually, the main measurement signal paths. For increased reliability, this approach requires additional hardware to determine whether the measuring path has been properly reconfigured after calibration. 
     In contrast to prior art approaches, the present invention proposes in a multiplex data acquisition system to combine hardware and software in such a way that automatic signal substitution for calibration is provided without physically interrupting the measurement signal path of any of the selected channels. 
     SUMMARY OF THE INVENTION 
     The invention resides in autocalibration method and apparatus for a computerized multiplexed analog data acquisition system in which provision is made, locally, in association with a group of selectable analog measuring points, for a microprocessor-controlled testing sequence of error-zeroing and calibration steps which leaves the input lines from the measuring point alive, during testing as well as during measurement, continuously. The invention also resides in a microprocessor-controlled procedure for eliminating lead-line errors in temperature resistor thermometer device (RTD) measurement by sequentially switching ON and OFF connections with a common measurement line. 
    
    
     BRIEF DESCRIPTION OF THE DRAWINGS 
     FIG. 1 is a schematic representation of a computerized multiplexed analog data acquisition system embodying the present invention; 
     FIG. 2 illustrates schematically method and apparatus according to the invention for the autocalibration of a group of thermocouple sensing channels in a computerized multiplexed analog data acquisition system; 
     FIG. 3 is a circuit diagram illustrating method and apparatus according to the present invention for automatic lead-line error elimination in a resistance thermometer device in one channel of a computerized multiplexed analog data acquisition system; and 
     FIG. 4 is a flow chart illustrating the operation of a microprocessor controlling the configuration of the circuit of FIG. 3. 
    
    
     DESCRIPTION OF THE PREFERRED EMBODIMENTS 
     Referring to FIG. 1 a multiplexed computerized data acquisition system includes a microprocessor 50 and n channels connected to remote locations T 1 , T 2 , . . . T n  where sensors are deriving analog data at respective measuring points. The present invention will be described in the context of temperature measurement and, typically, of sensing with either thermocouples, or resistance thermometer devices (RTD). An isolation and multiplexer circuit 110 provides isolation between the differential inputs on line 1,2 from each measuring point and the analog and digital treatment side of the computer for each channel CH 1 , CH 2  . . . CH n . Any such channel includes an analog-to-digital (A/D) converter 10 responsive to the differential input of lines 11,12 from multiplexer 110 when selection by line 15 from the microprocessor to the multiplexer has selected the particular channel and initiated the A/D conversion process by the associated A/D converter 10. Converter 10 outputs on line 17, digital information for treatment by the microprocessor. In accordance with the present invention, a microprocessor 50 is associated with a number of channels located in proximity, for instance channels 1,2 . . . n, for the sake of simplicity of description. The microprocessor 50 is used for calibration initially of any particular measurement at any given measuring point T 1 , T 2  . . . T n . The microprocessor is actuated via line 14 by a test command. A reference voltage source 40 is used in common by all the measuring points of the particular group CH 1 , CH 2 , . . . CH n  in the instance shown), and a switching interconnector 60 insures proper communication between reference voltage source 40, microprocessor 50 and any of the input lines 1,2 of the channels of the group. As will be explained, hereinafter, when an autocalibration and testing procedure is chosen microprocessor 50 establishes through the switching interconnector 60, a particular circuit by which reference voltage source 40 is substituted at the input of the channel for analog data at the chosen measuring point between lines 1 and 2. Microprocessor 50 also communicates back and forth with the A/D converter which is selected by lines 16,17 whereby data derived from the measuring point when the voltage source 40 is applied on lines 1,2 can be used by the microprocessor for offset error correction and gain adjustment during calibration of the particular channel. Once the testing procedure is terminated, the microprocessor transfers from th calibration mode into the measuring mode. 
     Referring to FIG. 2, a simplified diagram shows for one channel CH n  the switching interconnector 60 in the instance of a thermocouple TH as sensor at the measuring point. One cable line 1 from the thermocouple is connected via a resistor R to ground. The other cable line 2 goes through a grounded protection and filter circuit PFC to the non-inverting input of an operational amplifier OA 1 . A time and temperature stable reference voltage source 40 is connected by lead 5 via a switch S 3  to ground, and via a resistor R&#39; and a switch S 2  by lead 6 to the inverting input of operational amplifier OA 1 . Lead 2 which normally carry the thermocouple analog voltage to operational amplifier OA 1  is connected to ground through a switch S 1  by line 7. 
     The output of operational amplifier OA 1  is connected to another operational amplifier OA 2  by means of an isolation circuit ISC via lines 8 and 9. The output 11,12 of OA 2  is leading to the A/D converter of FIG. 1 (not shown here). 
     A relay combination circuit 60 is actuated by the microprocessor 50 according to a three-step logic defined on lines 51, 52. For calibration, the microprocessor first causes relay circuit 60 by line 64 to place switch S 2  into position II, whereby line 6 is connected to ground on line 5. At the same time by line 63 switch S 1  is closed, whereby line 2 is connected via line 7 also to ground on line 5. When this is done, the input on amplifier OA 1  are zero. Therefore, the output on line 8 should be zero. If, however, an offset b appears on line 8, the microprocessor, by line 17, stores the digital amount of the offset. 
     In a second step, microprocessor 50 causes relay circuit 60 to actuate switches S 1 , S 2 , S 3  in such a way that by line 63 switch S 1  remains closed, by line 65 switch S 3  is closed, and by line 64 switch S 2  is in position I. As a result, the known voltage between lines 5 and 6 becomes applied between the two inputs of operational amplifier OA 1 . Therefore, a definite voltage y 0  appears on line 8 representing the known input x 0  from reference source 40. Since the offset b is known from the first step and has been stored in the microprocessor, the equation: 
     
         Y.sub.0 =mx.sub.0 +b.sub.0 
    
     allows computation by the microprocessor of the gain 
     
         m=(Y.sub.0 -b)/x.sub.0 
    
     Due to the amplifier configuration during the second step, a value m+1 is stored for m. A third step involves normal measurement from lines 1,2 and the thermocouple TH. The measuring mode is achieved when switch S 1  is open, switch S 2  is in its second positions II and switch S 3  is open. The unknown voltage at the input provides an output Y 1  which is measured, and from the stored values m and b the microprocessor computes 
     
         x.sub.1 =(Y.sub.1 -b)/m 
    
     which is the measured value at location #1, . . . or #n. 
     Such measurements and calibrations are effected for all the channels of a group e.g. which are common to the same reference voltage source 40, and microprocessor 50. The relay circuit 60, however, which is associated with the microprocessor controls separate sets of switches such as S 1 , S 2 , S 3  in each channel. Lines 51, 52 are multiplexed between all the channels of a group. The elements of a group are part of a module which combines up to four channels, typically. The isolation circuit ISC is also associated with a group. Switch SW&#39; of FIG. 2 typifies channel selection by the central microcomputer between all channels. Switch SW chooses between lines 9 outputting from the isolation circuit ISC to an output amplifier OA 2  for the particular module, whereas switch SW&#39; selects from the microcomputer the particular module, or group of channels. The local microprocessor 50 is connected to the output from output amplifier OA 2  to receive data representing m, or b, during autocalibration via line 17. The microprocessor outputs on lines 51, 52, the logic of which determines the pattern to be assumed by relay circuit 60. Within relay circuit 60 are coil relays which control contacts S 1 , S 2 , S 3 . 
     The measurement method implemented by the embodiment of FIG. 2 allows for accurate absolute temperature measurements and for very accurate relative temperature measurements. The error in absolute temperature measurement depends upon the stability of the reference voltage source 40 and upon the non-linearity of the gain of the isolation amplifiers OA 1 , OA 2  and ISC. Relative temperature measurement is effected with vary good accuracy when the same reference voltage source 40 is used in the automatic calibration of each channel of the same group, since any change in the reference voltage will be common to all channels, leaving the relative measurement unaffected. With the proposed system, the thermocouple signal line of lines 1, 2 is always connected, e.g., never disconnected. The invention is also applicable to a resistance thermometer device (RTD) type of sensor at any location T 1  . . . T n . 
     Referring to FIG. 3, at the sensing point of the particular channel a resistance thermometer device (RTD) is used, rather than a thermocouple. These devices, as generally known, require a stable current source feeding into the internal resistance of the device. The problem here resides in lead resistance variations with temperature which would result in significant measurement error. FIG. 3 illustrates circuitry by which such an error is totally eliminated. As generally known, the RTD device is interfaced with the analog-to-digital converter symbolized by operational amplifier OA 1  and with the current source CS through a three-wire connection. Terminal TA goes through line 101 to the current source CS, while terminal TB goes through line 103 to ground G. The lead resistances are symbolized by a resistor R 1  for lead 101 and R 3  for lead 103. For the measurement, terminal T A  is connected via line 102 to the input of line 6 to operational amplifier OA 1  and terminal T B  is connected via line 103 to the grounded input of line 2. The lead resistance of line 102 is symbolized by a resistor R. 
     According to the prior art such three-wire arrangement is connected in a bridge so that the effects of lead wire resistance variations with distance and temperature are cancelled thereby to provide accurate measurement of temperatures. The bridge requires selection of resistors in circuit and initial adjustment whereby a null condition is established before each measurement by a differential amplifier. 
     In accordance with the present invention, there is no need to use a bridge. A switch SW allows to connect line 6 of the input of operational amplifier OA 1  to either line 101 in position A, line 102 in position B, or line 103 and ground in position C. Three successive measurements are made. First, with SW in position A, a voltage  V  AC 1  is measured on line 8 between points A and C which leads to the following voltage: 
     
         .sup.V AC.sub.1 =IR.sub.1 +IR.sub.3 +IR.sub.3, 
    
     where I is the current carried from the current source. The assumption is made that 101, 102 and 103 are leads having the same wire type, gauge and length and, therefore, have the same resistance. Therefore, IR 1  =IR 3 . 
     The method steps used with the assist of a microprocessor according to the present invention, for lead cancellation are illustrated by the flow chart of FIG. 4. 
     First at 111 the switch SW is set into position A. Accordingly,  V  AC 1  is measured and saved by the microprocessor. Then at 112 switch SW is set into position B,  V  B 1  is measured and saved by the microprocessor. The values so saved are used for the calculation at 114 of V RTD  =IR 2  =2V BC  - V  AC 1 . However, switch SW is immediately brought back to position A. The value  V  AC 2  derived in the third step should be the same, or at least within a limit ε, not much different from  V  AC 1 . The value of  V  AC 2  measured at 113 is saved and used at 115 in order to raise the question whether  V  AC 1  - V  AC 2  has exceeded the limit ε. IF it has exceeded the limit, the reason may be either that a short term variation in the current I or in the temperature affects the truth of the algorithm, or that switch SW is not properly returned to position A. In such case, at 116 an alarm is set to cancel the information derived and make another trial. If, however, the value detected as ( A  AC 1  - V  AC 2 ) does not cause an alarm, the system is in a proper condition, first, to use the value V RTD  at the interface with the computer monitored digital system, then, to proceed with another measurement step from the particular resistance thermometer device RTD. 
     Therefore, the method of FIGS. 3 and 4 requires three measurements to allow for the cancellation of the effect of lead resistance and variations affecting the current source. Accordingly, an accurate temperature measurement is made possible with an RTD without having to use a bridge circuit. This scheme requires no adjustment, or component selections. 
     It is also observed that, with the arrangment of FIG. 3, when the switch is in position C, the zeroing mode is obtained, thereby allowing elimination of an offset error.