The present invention relates to process variable transmitters of the type used in industrial process control and monitoring systems. More specifically, the present invention relates to compensation of a sensor output in a process variable transmitter using a Hysteron basis function.
Industrial process control and monitoring systems typically use devices known as process variable transmitters to sense various process variables. For example, processes can be used in the manufacture, processing, transportation and storage of various process fluids. Example process variables which are monitored include temperature, pressure, flow rate, level within a container, and pH, among others. These process variables are sensed using a process variable sensor of the process variable transmitter. In a typical configuration, the process variable transmitter transmits information related to the sensed process variable to another location, such as a central control room.
In order to monitor operation of the process with certainty, it is important that a particular process variable be accurately sensed. One type of error which can arise in sensing a process variable is related to an effect known as hysteresis. This hysteresis effect can cause the output from a process variable sensor to have more than one possible state for a particular value of a process variable being sensed. Thus, the hysteresis effect can lead to inaccurate measurement of a process variable. One technique to address this hysteresis effect is to design process variable sensors which exhibit reduced hysteresis. However, it may not be possible to completely eliminate the hysteresis effect or such a design may compromise other aspects of the process variable sensor.
A process variable transmitter for sensing a process variable of an industrial process includes a process variable sensor configured to sense a current process variable of the industrial process. Measurement circuitry is configured to compensate the sensed current process variable as a function of at least one previously sensed process variable characterized using a Hysteron basis function model. Output circuitry provides a transmitter output related to the compensated sensed process variable.
In various aspects, a method and apparatus are provided for compensating or correcting errors in process variable measurements due to hysteresis. In one specific example embodiment, the method and apparatus are implemented in a process variable transmitter of the type used to measure a process variable in an industrial process. The technique can also be used more generally to compensate process variables.
In the following discussion, a process variable transmitter configured to measure flow based upon a differential pressure is described. However, this is but one example embodiment and the invention is not limited to such a configuration.
Transmitter 36 is an example of a process measurement device that receives process pressures through the impulse piping 34. The transmitter 36 senses a differential process pressure and converts it to a standardized transmission signal that is a function of the process pressure.
A process control loop 38 provides both a power signal to the transmitter 36 from control room 40 and bidirectional communication, and operate in accordance with a number of process communication protocols. In the illustrated example, the process control loop 38 is a two-wire loop. The two-wire loop is used to transmit all power to and all communications to and from the transmitter 36 with a 4-20 mA signal during normal operations. A computer 42 or other information handling system through modem 44, or other network interface, is used for communication with the transmitter 36. A remote voltage power supply 46 powers the transmitter 36. Process control loop 38 can be in accordance with any communication standard including the HART® communication protocol in which digital information is modulated on to a 4-20 mA current, the Foundation Fieldbus or Profibus communication protocols, etc. Process control loop 18 may also be implemented using wireless communication techniques. One example of wireless communication technique is the WirelessHART® communication protocol in accordance with IEC 62591
Pressure sensor 56 is formed from two pressure sensor halves 114 and 116 and filled with a preferably brittle, substantially incompressible material 105. A diaphragm 106 is suspended within a cavity 132,134 formed within the sensor 56. An outer wall of the cavity 132, 134 carries electrodes 146,144,148 and 150. These can, generally, be referred to as primary electrodes 144 and 148, and secondary or secondary electrodes 146 and 150. These electrodes form capacitors with respect to the moveable diaphragm 106. The capacitors, again, can be referred to as primary and secondary capacitors.
As illustrated in
As explained in the Background section, errors can arise in process variable measurements due to a hysteresis effect. The hysteresis effect can arise from a number of sources. In general, it leads to a condition in which an output from a process variable sensor may be at two or more different states for a given applied process variable. For example, in the case of a pressure sensor, the output of the pressure sensor as a function of the applied pressure may follow one curve as the pressure is increasing and follow a different curve as the pressure is decreasing. In a specific example, metal diaphragm based pressure sensors may have a limitation in that they do not tend to act as perfect elastic materials. One manifestation of this non-ideal property is hysteresis. It is not always possible to completely eliminate hysteresis effects, for example, with a free edge diaphragm configuration. Hysteresis is history-dependent by its nature and may remain uncorrectable using traditional polynomial curve fitting techniques.
As discussed below, a method and apparatus are provided to correct for hysteresis in sensed process variables. Although metal diaphragm based sensors are discussed herein, the invention is not necessarily limited to metal diaphragm sensors and is applicable to a broad class of sensors or systems which exhibit hysteresis.
Before introducing the hysteresis basis function, which is often referred to as a Hysteron, it is useful to review other classes of basis functions. Consider the Fourier decomposition of a “time stationary” waveform, such as the square wave shown in
where, the basis functions are Sine functions. For generic Fourier decomposition, both Sines and Cosines are typically used.
Polynomials can also be considered to be another type of basis function and are commonly used to characterize the outputs of process variable sensors such as pressure sensors. A typical formulation is in the form of:
In Equation 2, the ai coefficients are selected to characterize the output f(t) based on powers of the input variable x. In this case, the powers of x represent the set of basis functions.
Hysterons are another example of a basis function. Consider a non-ideal hysteretic relay with threshold values α and β shown in
In
Next consider a parallel connection of N such relays Rαβ, each with thresholds α and β and weight μi as illustrated in
Functions having hysteresis can be modeled very accurately using Hysteron basis functions with a fidelity controlled by the number (N) of relays (Hysterons) as well as by the degree of interpolation to be discussed later.
In order to represent any function, the thresholds α and β and weights μi belonging to each Rαβ need to be identified. For a given hysteretic function, the identification of thresholds and weights is accomplished through a characterization procedure, which involves: taking input and output data sufficient to describe the function's hysteresis behavior; and using an inversion procedure to identify the thresholds and weights for each of the Hysterons.
To properly characterize a given hysteretic function, a sufficient number of “up” and “down” cycles must be implemented to create a set of function outputs at each grid point in a pre-determined triangular grid pattern of “up” (α) and “down” (β) thresholds. An example grid using 11 Hysterons is shown in
The outputs of the function f(t) are labeled by fa,b at each grid point and stored for use in subsequent calculations. If we let ak (bk) be the up (down) index value at time sample k, then the modeled output f(t) at time t, where k=n, is calculated using the following equation:
which is valid when the input x(t) is increasing. Note when x(t) is increasing, x(t) is actually an, that is, it's the current index at time k=n.
Similarly, when the input is decreasing:
For the case when x(t) is decreasing, x(t) is now bn, that is, it's the current index at time k=n. It's important to note that the sum term within the square bracket is updated at each new sampled step and consequently uses only one memory location. Hence, the entire sum does not have to be recalculated at each time step. In the above formulation, the values of the weights μi are integrated into the magnitude of fa,b and the thresholds are now the index values of the fa,b functions. It can be demonstrated mathematically that the computation of f(t) is identical to the summation of the N Hysteron outputs as in the discrete Preisach model. The above formulation requires roughly (N2)/2 memory locations to store the fa,b values at each (a, b) grid point. When the input does not lie on a grid point, the value of fa,b can be estimated by interpolation.
By way of an example, the hysteresis behavior of a pressure transmitter can be modeled.
If a 10 Hysteron model is used to correct the above output, the errors are significantly reduced as can be seen in
In addition to correcting errors in sensor measurements due to hysteresis, the Hysteron basis function model can also be used as an alternative to polynomial based compensation techniques. It is useful to compare the fitting errors when a Hysteron model is used to those when a polynomial basis function is used.
The above discussion is directed to correction or compensation of the output from pressure sensors due to characteristics of the sensor itself. However, there may be other sources of hysteresis in a measurement system which can lead to such errors. For example as illustrated in
In the above discussion, a Hysteron basis function formulation is used for curve-fitting, or to correct for the hysteresis of a sensor (e.g., pressure sensor, temperature sensor, etc.). However, a loss of fidelity may temporarily occur whenever power is lost and the system is subsequently physically exercised. Physical changes which occur while the system is powered down can potentially create hysteresis that will not be correctly accounted for by the Hysterons once power is restored. This is because the Hysterons do not “know” the system was perturbed while powered down. The same problem occurs at initial power-up and therefore a procedure needs to be identified to deal with an uninitialized state.
The technique described below can re-establish the states of the Hysterons, either at initial power-up, or following a power-loss.
Mathematically, the initialized output value y(tstart). at a given input value x(tstart) is set according to:
where, the functions fa,b are known from the characterization step (discussed above) and fx(tstart),x(tstart) and faMax,x(tstart) are specifically the lower (up-going) and upper (down-going) loop extremums respectively at x(tstart), and aM, is the maximum value for the ak index.
Because the output error is initially centered, the fidelity error at initialization is at a maximum. Subsequent errors will be reduced as the system input continues to change. The rate of error reduction will be tied to the “wiping-out” property of the Hysteron memory states. This property can be explained mathematically as follows: In practice, the wiping-out process happens whenever the up and down input changes exceed the current value. The size of the error reduction will scale with the magnitude of the input change. An analogy is the “de-Gaussing” process carried out on Ferromagnetic materials. In this procedure, the input de-Gaussing field starts out very large and is gradually reduced. The large field “wipes-out” any magnetic memory in the Ferromagnet. The same mechanism operates in the Hysteron model. Hence, by starting the system at the middle of the error band, the error and bias of the system are minimized to reduce all subsequent errors as quickly as possible. The characterization information used to initialize the hysteresis correction process following a power up may be stored in a permanent or semi-permanent memory, for example, memory 64 or 76 shown in
Although the present invention has been described with reference to preferred embodiments, workers skilled in the art will recognize that changes may be made in form and detail without departing from the spirit and scope of the invention. Although the specific examples discussed above relate to a pressure sensor, the invention is applicable to any type of process variable sensor including, but not limited to, those which sense temperature, level, flow, pH, turbidity, among others. Further, the techniques are applicable to other types of sensing technologies and are not limited to those specifically discussed herein. As used herein, the term “compensate”, includes both error correction as well as curve fitting, or characterization of a sensor output. The hysteresis that can be corrected includes hysteresis generated within the process variable sensor, as well as hysteresis which arises from components external to the process variable sensor. As discussed above, an isolation diaphragm may introduce such hysteresis. Another source of hysteresis which may arise externally to a process variable sensor includes an isolation bellows.
Number | Name | Date | Kind |
---|---|---|---|
5563587 | Harjani | Oct 1996 | A |
5642301 | Warrior et al. | Jun 1997 | A |
5754452 | Pupalaikis | May 1998 | A |
6295875 | Frick et al. | Oct 2001 | B1 |
6508129 | Sittler | Jan 2003 | B1 |
7334484 | Harasyn et al. | Feb 2008 | B2 |
8234927 | Schulte et al. | Aug 2012 | B2 |
8327713 | Willcox | Dec 2012 | B2 |
20010027677 | Sgourakes | Oct 2001 | A1 |
20020178827 | Wang | Dec 2002 | A1 |
20050258959 | Schnaare et al. | Nov 2005 | A1 |
20090210179 | Tang | Aug 2009 | A1 |
20120179403 | Griffith | Jul 2012 | A1 |
20140375237 | Wang | Dec 2014 | A1 |
Number | Date | Country |
---|---|---|
1139483 | Jan 1997 | CN |
101858811 | Oct 2010 | CN |
102239397 | Nov 2011 | CN |
Entry |
---|
“The Compensation of Hysteresis of Silicon Piezoresistive Pressure Sensor”, by Chuan et al., IEEE Sensors Journal, vol. 11, No. 9, Sep. 2011. |
Notification of Transmittal of the International Search Report and the Written Opinion of the International Searching Authority from PCT/US2015/025081, dated Jul. 1, 2015. |
Office Action from Chinese Patent Application No. CN201420642877.6, dated Dec. 10, 2014. |
Office Action from Chinese Patent Application No. 201410602426.4, dated Mar. 14, 2017. |
Communication from European Patent Application No. 15721384.4, dated Feb. 7, 2017. |
Office Action from Canadian Patent Application No. 2,953,800, dated Jul. 24, 2017. |
Office Action from Chinese Patent Application No. 201410602426.4, dated Nov. 1, 2017. |
Office Action from Japanese Patent Application No. 2017-520871, dated Feb. 20, 2018. |
Office Action from Canadian Patent Application No. 2,953,800, dated Mar. 26, 2018. |
Office Action from Canadian Patent Application No. 2,953,800, dated Oct. 30, 2018. |
Office Action from Japanese Patent Application No. 2017-520871, dated Nov. 13, 2018. |
Office Action from Canadian Patent Application No. 2,953,800, dated Jul. 24, 2019. |
“Mathematical Models of Hysteresis” by I.D. Mayergoyz, The American Physical Society, Vo. 56, No. 15, Apr. 14, 1986, pp. 1518-1521. |
“Hysteresis Compensation in Electromagnetic Actuators Through Preisach Model Inversion”, by S. Mittal et al., IEEE, vol. 5, No. 4, Dec. 2000, pp. 394-409. |
Examination Report from Indian Patent Application No. 201627041056, dated Apr. 24, 2019. |
Communication from European Patent Application No. 15721384.4, dated Feb. 27, 2020. |
Number | Date | Country | |
---|---|---|---|
20150378332 A1 | Dec 2015 | US |