Simulation of capacitance changes in whole-cell mode. The component values of the model (Rs: 10 MΩ, Rm: 1 GΩ, and Cm: 6.5 pF) in Fig. 1 A were modulated out of phase with each other, with a Cm jump of 0.05 pF accompanied by either a 600-MΩ drop in Rm, or a 10-MΩ increase in Rs or all changes occurring simultaneously (see panels G–I). The stimulating frequency f0 was the same for single-sine and eCm methods, with f0 at 390.6 Hz and f1 at twice that. In panels A–C, calculations are based on setting the PSD angle to an estimate (denoted by the prime) of βω, the angle of ∂Y/∂Gs − 90°, to mimic Rs dithering. (A) A true piecewise linear approach was employed using this angle in place of βω in Eq. 52. Whole-cell capacitance compensation was modeled by connecting and supplying the circuit components Rd and Cd (Fig. 1) with corresponding values of Rs and Cm, but with an overall negative admittance. PSD angle and gain corrections (1/abs(∂Y/∂Cm) were determined from whole-cell conditions at the zero time point and remained fixed throughout. It can be seen that when cell components are changed (G–I) the phase angle changes causing errors in Cm estimation (A). Even though the PSD angle is set to guard against Rs changes, a change from 10 to 20 MΩ (I) is too large to counter; such overpowering effects of parameter changes are well known (Lindau, 1991). However, if capacitance compensation is not employed and point-by-point resetting of new angle and gain factors are made and applied, absolute Cm is obtained without any errors (B). To make point-by-point corrections experimentally, the raw admittance (Y) at each point was taken and the angle of was calculated according to Zierler (1992), namely, The true gain factor, Hc, at each data point was calculated as 1/abs(∂Y/∂Cm). With each new gain and angle, circuit parameters were calculated as in Eq. 52, by extracting the component of Y at that phase angle and multiplying by that gain factor. Each admittance point was so treated to obtain circuit parameters. The reason this procedure works so well is that the value returned by this modified PSD analysis is the imaginary component of Y; thus, this method produces the same results as the eCm method as shown in panel G. This useful single-sine approach, employing the estimate of Hc provided by Gillis (1995), is implemented in jClamp. However, because this is an estimate of the true gain, 1/abs(∂Y/∂Cm), relying on circuit approximations, Cm estimates are not fully immune from circuit parameter changes. In panels D–F, calculations are based on setting the PSD angle to the angle of ∂Y/∂Cm, namely βω, to mimic capacitance compensation dithering. (D) The true piecewise linear approach was employed as above in panel A. In this case, using βω, the large change in Rm does not affect the phase angle substantially (F), so Cm estimates are accurate and robust. However, Rs changes do interfere with angle and estimate, as expected (Joshi and Fernandez, 1988). Unlike the treatment above (B), panel E shows that applying a point-by-point correction as detailed above to the uncompensated admittance fails to provide error free Cm estimation, because the imaginary component of Y is not returned in this case. Panels G–I show the results of the eCm method, where the calculated absolute values are depicted by the circles. Note an exact correspondence between actual parameter values (solid lines) and calculated estimates (○), with no parameter interactions. Simulation in MatLab.