<< Click to Display Table of Contents >> Navigation: Explain™ Control Language > Library Routines > Instrument classes > class PSTAT > Pstat.SetIruptMode() |
Control current-interrupt iR-compensation.
Use this function to control:
•Current-interrupt timing
•Voltage-error calculation mode
The current-interrupt feature of the potentiostat uses a three-sample algorithm to estimate the iR-free voltage. It first samples V at the given current level, then it interrupts the current path and waits a time period, τ. At that point it samples V again. It waits τ seconds again, and samples V for the third time. It then turns on the current.
The sample time, τ, is increased as the current decreases. The Time parameter used in the call to SetIruptMode is used directly as τ on the least-sensitive current ranges. On the more-sensitive current ranges, τ is longer, but remains proportional to the Time parameter. τ is constrained to be between 10 µs and 32 768 µs. Values outside this range are clipped to the nearest point within the range.
There are two different ways of calculating the iR-voltage error.
1.In calculation Mode 1, the three voltages, Vi, Voc1, and Voc2 are used to calculate an iR-error voltage VIR via an extrapolation.
2.In Mode 2, an average is used.
A third "calculation mode", Mode 0, is used to turn off the interrupt. In Mode 0, all of the other function parameters are ignored.
After the iR-error is calculated, it can be used in several different ways, most of which involve feedback of the error signal:
•In Galvanostat mode, there is never any iR-compensation feedback. The feedback mode setting is therefore ignored in the Galvanostat mode. The measured error is used to correct potential measurements stored in the data curve.
•In Potentiostat mode, there are three different feedback modes.
oNo feedback.
oNormal feedback. The measured error voltage is added to the voltage applied for the next point.
oControl-loop with fixed gain.
Pstat.SetIruptMode(FbMode, CalcMode, Timer, Eoc, Gain)
FbMode |
INDEX |
Feedback mode. Can use a predefined constant: •IruptOff = 0 (no feedback) •IruptNorm = 1 (normal feedback) •IruptClfg = 2 (control-loop fixed gain) |
CalcMode |
INDEX |
iR-error calculation mode. Use predefined constants: •EuNone = 0 (no interrupt measurement) •EuExtrap = 1 (extrapolation) •EuAverage = 2 (average) |
Timer |
REAL |
Nominal τ value (units are seconds). This is the shortest time. Can be longer at low currents. Predefined constant:
IruptTime = 50 × 10–6 |
Eoc |
REAL |
|
Gain |
REAL |
Cell gain. Used only in fixed-gain control-loop. |