MEASUREMENT SYSTEM AND METHOD

Abstract: A measurement system comprises at least one sensor unit (s1-sn) which is connected to a processing unit (cp) via a channel unit (ch1-chn). The sensor unit (s1-sn) obtains measurement values and determines a time indication representing the time at which each measurement value was obtained. Each measurement value and the corresponding time indication are transmitted to the corresponding channel unit, which performs those calculations which require only measurement values from its own sensor unit. The processing unit (cp) performs the final calculations requiring measurement data from more than one stream of data. It uses the time indications to synchronise the measurement values which have been obtained at the same time, but which may have been received at different times due to processing of varying duration. A method for processing measurement values is also disclosed.

Description: MEASUREMENT SYSTEM AND METHOD The present invention relates to a measurement system comprising at least one first unit for obtaining measure- ment values, and a second unit to which each first unit is connected. Furthermore, the invention concerns a method for processing measurement values. Most prior-art measurement systems comprise one or more sensors, which measure the parameters that are of interest, and a processing unit, which processes the measured values before these are displayed. For instance, US 5 126 937 relates to a biological information measure¬ ment system comprising a plurality of measuring sections connected to a processing unit, which converts the values obtained by the measuring sections into output values that are compensated for temperatures measured by the measuring sections, and which outputs the compensated values to a display unit and a recorder. In many applications, the parameter that is of inte- rest cannot be measured directly, but one or more other parameters have to be measured to enable the parameter that is of interest to be calculated on the basis of the measured values and according to a mathematical model. For instance, if it is desirable to monitor the elasticity of the pulmonary wall in order to study a patient's response to a new drug, the elasticity cannot be measured directly, but the inhalation flow and the pulmonary pressure have to be measured to enable the elasticity to be calculated on the basis thereof. The mathematical models are sometimes complex, lead¬ ing to time-consuming calculations which have to be per¬ formed in several steps using measurement values from dif¬ ferent sensors. To be able to present the results in real time, some steps may have to be carried out in parallel. In a synchronous system, it must then be taken into account that the time for performing the parallel calcu¬ lation steps may differ. If the system is incorrectly de- signed and a later calculation step is started before the calculations of the previous steps, whose results are to be used, have been terminated, the time information inhe¬ rent in the measurement values will be lost and the system will work out of step, yielding incorrect results. A first object of the present invention is to provide a measurement method and a measurement system eliminating the risk of incorrect results due to calculations per¬ formed out of step. Since the measurement system must take into account the specific time periods required for the different cal¬ culations involved, it must be tailored for each specific application, which makes it time-consuming and expensive to use. Incidentally, most measurement systems are used for one application only. Accordingly, a second object of the present invention is to provide a flexible measurement system, which is easily adapted to different applications. A further problem related to measurement systems, in particular measurement systems used for research and deve¬ lopment, is the documentation of the experiments performed by means of the measurement system. According to good la¬ boratory practice, all pharmacological experiments must be documented in such a way that they can be repeated. How- ever, the primary measurement data and the results of any calculations based thereon are today often stored on a diskette or the like, it being the responsability of the researcher to document how the experiment was performed, which sensors were used with which calibration factors, and so forth. If this information is recorded at all, it is often done manually which may result in errors. Accordingly, a third object of the present invention is to provide a measurement system facilitating documenta¬ tion of measurements performed. The above-mentioned objects are achieved by a mea¬ surement system and a method for processing measurement values having the features recited in the appended claims. Thus, by allocating a time indication to each mea¬ surement value and using this time indication to resyn- chronise values which have been measured at the same time but which may have been subjected to processing of varying duration, there is no longer any risk that time informa¬ tion be lost or that the system works out of step. In other words, the measurement values which are initially synchronised because they are obtained at the same time can be asynchronously processed and then re- synchronised by means of their time indications in order to perform calculations on corresponding measurement values which represent the state of a test object at a specific point of time, to display corresponding measure¬ ment values or to perform any other operation which re- quires synchronised measurement values. The processing of the measurement values may result in processed measurement values having different time indications from those of the corresponding unprocessed measurement values. However, they are always based on the time indications of the correponding unprocessed measure¬ ment values in order to reflect a "time origine" of the processed measurement value. Synchronisation may also involve arranging values in chronological order. The measurement system according to the invention may comprise one or more first units, e.g. sensor units, for obtaining measurement values. When there is only one first unit, the need for synchronisation of measurement values may arise when the stream of measurement values obtained by the first unit is divided into two identical streams of measurement values which are asynchronously processed. When there are two or more first units by which measure¬ ment values are obtained, time indications assigned to measurement values obtained at the same time must be sub¬ stantially the same to allow later resynchronisation. The designing of a measurement system according to the present invention is considerably facilitated in comparison of that of a traditional system, since the duration of the different processing steps need not be taken into account. The system according to the invention is also flexib¬ le and easily adapted to different measurements, since all units are intelligent units which include a processor and whose operation is determined by the programs loaded into the different units. Embodiments of the invention will now be described by way of example with reference to the accompanying draw- ings, in which Fig. 1 is a schematic block diagram of the hardware configuration of a measurement system according to the present invention; and Fig. 2 is a schematic block diagram illustrating the measuring method according to the present invention applied to the measurement of power. As shown in Fig. 1, a measurement system according to the invention essentially comprises a measurement computer 1, a workstation 2, and a database 3, which all are con- nected to a data network 4. The measurement computer 1 comprises a plurality of sensor units sl,s2...,sn, each of which is connected to a processing unit cp via respective channel units chl,ch2... ,chn. When using the measurement system, the sensor units sl-sn are coupled to a test object, e.g. a laboratory ani¬ mal, for measuring different parameters. To this end, the sensor units may comprise different kinds of gauges, e.g. a pressure gauge, a temperature gauge or a flow gauge. Furthermore, each sensor unit sl-sn comprises an analog-to-digital converter connected to the gauge, for digitizing the values measured by the gauge, and a pro¬ cessor for processing the measurement values, e.g. scaling them to SI units, and transmitting information to and receiving information from the associated channel unit. Each channel unit chl-chn comprises a processor which performs calculations in accordance with the programs loaded into the channel unit. More particularly, each channel unit performs the calculations which use only mea¬ surement data from the associated sensor unit. As examples of such calculations, filtering and averaging may be men¬ tioned. Also more complex calculations may be performed in the channel units. The purpose of the processing in the channel units is to unload the processing unit by reducing the amount of primary data that it has to process and store. However, if there is no need for unloading the processing unit, the above-mentioned processing by the channel units may be performed by the processing unit. The channel units chl-chn are connected to the pro¬ cessing unit cp, e.g. via a common bus. The processing unit comprises a processor which performs calculations requiring measurement data from different sensor units and/or channel units. Furthermore, each sensor unit sl-sn comprises means for obtaining a time indication for each sampled measure¬ ment value. The means may comprise a clock unit, e.g. a register, by means of which time indications can be ob- tained for the measurement values. More particularly, the processing unit cp comprises a clock, the clock signal of which is used to increment all the clock units which thus are synchronized. When an experiment is started, all the clock units are reset to ensure that they all begin at the same count. Thus, the time indication associated with each measurement value is relative. However, the absolute time of each event in the measurement system may be established if the time of reset of the clock units is stored. The measurement system operates as follows. The gauge of each sensor unit sl-sn samples a para¬ meter. The sampled measurement values are analog-to-digi¬ tal converted and input to the processor. The processor scales the measurement values to SI units and associates with each measurement value a time indication, obtained from the clock unit and representing the time at which the measurement value was sampled, as well as a data stream identity, defining the parameter sampled by the gauge. The thus-created stream of measurement values with associated time indications and data stream identities is transmitted to the channel unit. The clock units may be arranged in the channel units instead of the sensor units. In this case, the measurement values are forwarded directly to the respective channel units, where the time indication is added. Each channel unit chl-chn performs the calculations which require only measurement values from the associated sensor unit, e.g. filtering, by means of calculation routines. The measurement values output from each of the calculation routines constitute a stream of processed measurement values. The processor of the channel unit adds a time indication to each of the processed measurement values in the output stream. The purpose of this time indication is to indicate a "time origin" of the processed measurement value so that processed measurement values originating from one and the same sampled measurement value, or from several measurement values sampled at the same time by different sensor units, can be synchronised later on, also when having been subjected to processing of varying duration so that they have lost their initial inherent synchronisation. The time indication which is associated with a certain output processed measurement value usually is the time indication associated with the corresponding measurement value input to the calculation routine. However, it may also be a time indication, which represents a time between two actual sampling times, e.g. when the calculation is an interpolation, or which is selected among the time indications of a plurality of input measurement values. In any case, the time indication of a processed measurement value is based on the time indication(s) of the corresponding one or more unprocessed measurement values. The means for determining the time indication of the processed measurement value may be a part of the calculation routines. The processor also adds a data stream identity, which defines the parameter obtained by the calculations, to each of these processed measurement values. The stream of processed measurement values resulting from the processing in the channel unit is transmitted to the processing unit. Also the stream of measurement values input to the channel unit and/or any stream of measurement values resulting from an intermediary calculation step may be transmitted to the processing unit, if needed for the calculation steps performed therein or if to be used as an output from the measurement computer. Usually, the time needed for the processing in the different channel units chl-chn is not the same. Accord¬ ingly, the measurement values received at one time by the processing unit from the different channel units are often unconnected, having different "time origins". The same goes for the measurement values which are received at one time from a single channel unit or sensor unit and are based on the same original measurement values, but which may be the result of asynchronous processing of these values. To enable calculations based on connected or corre¬ sponding measurement values, the processing unit buffers the data streams until all measurement values correspond- ing to each other and required for a specific calculation have been received. It uses the time information to syn¬ chronise corresponding measurement values from different data streams. The final data streams resulting from the calcula- tions in the processing unit are transmitted along with other selected data streams to the workstation 2 for dis¬ play in real time, the time indications permitting mea¬ surement values measured by different sensor units at the same time to be displayed at the same time, and to the database 3 for storage. The stored data include measure¬ ment values, either processed or as sampled, together with their associated time indications and their data stream identities. As appears from the foregoing description, the sensor units, the channel units and the processing unit are all intelligent units, which may be adapted to perform diffe¬ rent operations in accordance with the program downloaded into the unit. To this end, each unit in the measurement computer is given a unique identity code, which is stored in a non-volatile memory. When the measurement computer is turned on, the processor of the unit reads the identity code in the non-volatile memory. It then requests its pro¬ gram by transmitting its identity code to the processing unit, which requests the programs from the database, which stores all programs applicable in the measurement compu- ter. When the processing unit receives the programs from the database, it downloads them into the channel units and the sensor units. In addition to all the programs, the database 3 also stores a description of each unit in the measurement com- puter, for instance including its identity code, the kind of gauge a sensor unit comprises, its mesurement range, its scaling factors, etc. Furthermore, the data-base may contain a description of all the measurements that may be carried out by the measurement system. Such a description may define which programs are used in the different units of the measurement computer, which data streams are input to and output from the programs, and which data streams are to be displayed at the work-station. When a measurement is to be carried out, the operator selects the measurement at the workstation 2 by indicating the name of the measurement. The appropriate programs, in¬ dicated in the description of the measurement, are then downloaded into the measurement computer 1. The operator also specifies the disposition of the experiment for which the measurement is to be performed, e.g. the doses of a drug to be given to the test object. Furthermore, the ope¬ rator may calibrate the gauges of the sensor units from the workstation, the calibration factors being automati¬ cally stored in the database. Furthermore, all the infor¬ mation entered from the workstation is stored in the data base. This method has many advantages. First, the operator must carry out the experiment the way he intended. Second, the experiment is adequately documented, since the above- mentioned description of the experiment is stored in the database, so that it can be repeated later on. Further- more, the measurement system can only be operated from th workstation, which ensures that all steps taken are auto¬ matically documented and provided with a time indication. Third, if the wrong sensor unit is connected to a certain channel unit, so that the hardware configuration of the measurement computer does not correspond to the descrip¬ tion in the database, the system will discover the erro¬ neous coupling when the sensor unit transmits its identity code to the processing unit when requesting its program. The operator may also configure the system for new measurements by entering a description of the new confi¬ guration at the workstation. The description of the new configuration is stored in the database so that it can be selected for use at a later stage. Fig 2 shows an example of how the invention may be applied when measuring power. The measurement system has a first and a second sensor unit 10,11, which each comprises a sample-and-hold circuit 12,13 and a FIR-filter 14,15, as well as a processing unit 16 for calculating the momentary power value. The first sample-and-hold circuit 12 samples a voltage. The voltage value sampled at time t is desig¬ nated Ut. The sample-and-hold circuit associates the time indication t, obtained from a clock register 17, and a data stream identity "sampled voltage" with the voltage sample Ut. Similairly, the second sample-and-hold circuit 13 samples, at time t, a current I. A time indication t and a data stream identity "sampled current" is associated with the current sample It. The first FIR filter 14 has a length of 2m. Thus, the output of the FIR filter 14 depends of the values of 2m voltage samples. The filtered voltage value output at time t from the first FIR filter is designated U't-m and a time indication t-m is associated therewith to indicate that it substantially represents the voltage at time t-m. Further¬ more, a data stream identity "filtered voltage" is asso¬ ciated with the filtered voltage value. The second FIR filter 15 has a length of 2n and its output depend of the values of 2n current samples. The filtered current value output at time t by the second FIR filter is designated I't-n. A time indication t-n and a data stream identity "filtered current" are associated with the output. If m is shorter than n, the delay created by the first FIR filter 14 is shorter than that created by the second FIR filter 15. Thus, the filtered voltage value U't-m is available earlier than the corresponding filtered current value I't-m. Therfore, the filtered voltage values are queued in a queue 18 in the processing unit. At time t, a calculation routine 19 in the processing unit detects that both a filtered voltage value U't-n and a filtered current value I't-n having the same time indi¬ cation t-n are available and calculates the power Pt-n, and associates the time indication t-n and a data stream identity "power" therewith to indicate that the value is a power value representing the power measured at time t-n. It goes without saying that the embodiments described above are but examples, which may be modified in many ways within the scope of the appended claims. In the first embodiment described above, the measurement computer com¬ prises n sensor units. However, the invention is appli¬ cable to measurement systems which comprise only a single sensor unit, if this sensor unit creates at least two streams of measurement values which need to be synchro- nised at a later stage in the measurement system. In addi¬ tion to the processing unit, the synchronisation by means of time indications may be utilised in the sensor units and/or in the channel units as well. Also, the sensor units need not be connected to the processing unit via respective channel units, but may be connected directly to the processing unit, which may perform all the necessary processing.

Claims: CLAIMS 1. A measurement system comprising at least one first unit (sl-sn; chl-chn) for obtaining measurement values, and a second unit (chl-chn; cp) to which each first unit is connected, c h a r a c t e r i s e d in that each first unit (sl-sn; chl-chn) has means for obtaining a time indication, which represents the time at which each mea- surement value is obtained, and associating said time indication with said measurement value, and that the second unit (chl-chn; cp) is adapted to use the time indi¬ cations associated with the measurement values for syn¬ chronising measurement values which have been asynchron- ously processed. 2. A measurement system according to claim 1, c h a r a c t e r i s e d in that each first unit compri¬ ses processing means for performing such processing of the measurement values obtained by the first unit as is inde- pendent of measurement values from the other first units. 3. A measurement system according to claim 2, c h a r a c t e r i s e d in that each first unit compri¬ ses a sensor unit (sl-sn) for obtaining the measurement values and a channel unit (chl-chn) for performing the processing that is independent of the measurement values from the other first units. 4. A measurement system according to claim 2 or 3, c h a r a c t e r i s e d in that each first unit (sl-sn; chl-chn) has means for determining a time indication for each measurement value resulting from the processing per¬ formed by the first unit and associating the time indica¬ tion with the resulting measurement value. 5. A measurement system according to any one of the preceding claims, c h a r a c t e r i s e d in that said units (sl-sn, chl-chn, cp) of the system are intelligent units, each including a processor, and that the operation of each unit is determined by a program which is loaded into the unit. 6. A measurement system according to claim 5, c h a r a c t e r i s e d by a first storage means (3), in which all the programs useable by the different units are stored, said first storage means being connected to the second unit. 7. A measurement system according to any one of the preceding claims, c h a r a c t e r i s e d in that each of said units (sl-sn, chl-chn, cp) has a non-volatile me¬ mory means storing a unique identity code. 8. A measurement system according to claim 7, c h a r a c t e r i s e d by a second storage means (3) for storing the unique identity codes together with a de- scription of the properties of the unit identified by said unique identity code, said second storage means being con¬ nected to the second unit. 9. A measurement system according to any one of the preceding claims, c h a r a c t e r i s e d by third storage means (3) for storing the result of the calcula¬ tions of the processing unit together with a corresponding time indication. 10. A measurement system according to any one of the preceding claims, c h a r a c t e r i s e d by a syn- chronising means, which is connected to all the means for obtaining a time indication for the synchronisation there¬ of. 11. A method for processing measurement values, com¬ prising the step of obtaining at least a first and a second stream of measurement values, c h a r a c t e ¬ r i s e d by the further steps of obtaining, for each measurement value, a time indication, which represents the time at which the measurement value was obtained, and associating it with the measurement value; processing the streams of measurement values asyncrhonously; and re- synchronising measurement values from the first and the second stream by means of the associated time indications. 12. A method for processing measuring values, com¬ prising the step of obtaining a first stream of measure¬ ment values, c h a r a c t e r i s e d by the further steps of obtaining, for each measurement value, a time indication, which represents the time at which the mea¬ surement value was obtained, and associating it with the measurement value; creating a second stream of measurement values identical with the first stream of measurement values and having the same time indications; processing the streams of measurement values asynchronously; and resynchronising the measurement values by means of the time indications. 13. A method according to claim 11 or 12, c h a ¬ r a c t e r i s e d in that the step of processing the streams of measurement values asynchronously comprises the steps of processing at least one of the streams of mea¬ surement values, determining a time indication for each processed measurement value and associating it with the measurement value. 14. A method according to any one of claims 11-13, c h a r a c t e r i s e d in that the time indication for each processed measurement value is determined on the basis of the time indications) of the corresponding one or more unprocessed measurement values. 15. A method according to any one of claims 11-14, c h a r a c t e r i s e d in that at least the first stream of measurement values is obtained by sampling a measurement parameter of a test object. 16. A method according to any one of claims 11-15, c h a r a c t e r i s e d by the further step of asso¬ ciating, with each measurement value, a stream identity, which indicates the parameter represented by the measure¬ ment value.

Inventors: ALDESTAM STEN, MARNFELDT GOERAN, WALDECK JOHAN, ALDESTAM, STEN, MARNFELDT, GOERAN, WALDECK, JOHAN
Applicants: ALDESTAM STEN, ASTRA AB, MARNFELDT GOERAN, WALDECK JOHAN, ALDESTAM, STEN, ASTRA AKTIEBOLAG, MARNFELDT, GOERAN, WALDECK, JOHAN
Application year: 1995
Main classification: G01D3
IPC codes: A61B5, G01R21