There are several ways to calculate an integral in LabChart—two of the simplest use the integral channel or cyclic measurements channel calculation.
Using the Integral Channel Calculation
The Integral channel calculation provides a method of computing time integrals with various reset methods. Integral works in real-time during sampling and on pre-recorded data. The Integral dialog allows you to set up the Integral channel calculation.
1. Open the Integral dialog by selecting "Integral..." from any Channel Calculation pop-up menu.
2. In the dialog that appears, select the source channel for the calculation from the Source pop-up menu.
3. Select the Integral Type you would like to calculate:
- Standard Integral: Use all data points.
- Absolute Value: Integrate absolute values of data points.
- Positive Only: Use only data points whose values are greater than 0.
- Negative Only: Use only data points whose values are less than 0.
4. Set up the Reset type and any additional parameters this may require:
- No Reset: The integral is not reset, and the integrated signal is summed indefinitely.
- Timed Reset: The integral is reset periodically, at intervals specified in the text box to the right of the reset type menu.
- Reset Each Cycle: The integral is reset each time the source signal passes through zero to a positive value.
- Time Constant Decay: In this mode, input samples are summed to generate the output, as for the standard integral mode. However, each time a new sample is added, the sum is multiplied by a positive constant that is slightly less than 1. For a constant input voltage Vmax, the resulting sum – the integral output – approaches a maximum (Vmax.?) with the time constant (tau, ?) that the user enters. In electronic terms, this mode approximates the behavior of a 'leaky' analog integrator or 'RC' low pass filter. Unlike a filter, the integral multiplies the output values by the sample period in seconds and changes the units to V.s.
- Reset By Event: Use a specific event to trigger the reset (this uses the options set in the Event Options Dialogue).
5. Set up the Integral limits (optional) for the time the integral is calculated.
6. Set up the scaling for the displayed data.
-
Set Scale top and Scale bottom for the calculated data regarding the source channel units or select Auto scale to automatically generate a suitable scale for the displayed data (Recommended if performing subsequent channel calculations on the display channel). Choose the number of Decimal places to show in the Range/Amplitude display.
7. Upon clicking "Okay", the continuous integral will appear in your selected channel.
Using Cyclic Measurements
Cyclic Measurements will calculate the integral for the region between each detected cycle of a cyclic waveform. This can be run in real-time during sampling or on pre-recorded data.
1. Open the Cyclic Measurements dialog by selecting "Cyclic Measurements..." from any Channel Function pop-up menu on a blank channel you intend to use for calculation.
2. Select a source channel and set the Measurement to "Integral". You can use event markers to ensure each event is being detected, adjust the decimal places, and adjust the type of waveform all in this window.
3. Adjust the detection settings, if necessary, by adjusting the Minimum Peak Height S.D. value. To further fine-tune this detection, select "Customize".
4. Upon clicking "Okay", the integral for each identified cycle will appear in your selected channel.
For further technical assistance with this or any other issue, please contact ADInstruments Technical Support by clicking HERE.