Login| Sign Up| Help| Contact|

Patent Searching and Data


Title:
AUTOMATIC CALIBRATION AND TUNING OF FEEDBACK SYSTEMS
Document Type and Number:
WIPO Patent Application WO/2017/033187
Kind Code:
A1
Abstract:
A method for automatically calibrating a feedback system, comprising: receiving one or more input parameters associated with a feedback system; applying the one or more input parameters to a model of the feedback system; deriving one or more feedback parameters for the feedback system from the model by: optimizing the model for the feedback parameters, and applying a noise characteristic of the feedback system to the model; and automatically tuning the feedback system using the one or more derived feedback parameters.

Inventors:
SIVAN URI (IL)
KUCHUK KFIR (IL)
SCHLESINGER ITAI (IL)
Application Number:
PCT/IL2016/050920
Publication Date:
March 02, 2017
Filing Date:
August 24, 2016
Export Citation:
Click for automatic bibliography generation   Help
Assignee:
TECHNION RES & DEV FOUNDATION (IL)
International Classes:
G01Q60/24
Foreign References:
US20150020245A12015-01-15
US7066014B22006-06-27
Download PDF:
Claims:
CLAIMS

What is claimed is:

1. A method for automatically calibrating a frequency modulated atomic force microscopy (FM-AFM) system which comprises a cantilever tip configured to oscillate over a sample supported on a piezo stage, wherein the cantilever tip is controlled by a frequency feedback loop that is coupled to a z-piezo feedback loop that controls the piezo stage, the method comprising:

receiving one or more input parameters associated with the FM-AFM system;

applying the one or more input parameters to a model of the FM-AFM system;

deriving one or more feedback parameters for the FM-AFM system from the model by:

a) optimizing the model for the feedback parameters, and b) applying a noise characteristic of the FM-AFM system to the model; and

automatically tuning the FM-AFM system using the one or more derived feedback parameters.

2. The method of claim 1, wherein applying the noise characteristic comprises leveraging a correlation between the noise characteristic to a characteristic of the model.

3. The method of claim 2, wherein leveraging the correlation comprises adjusting the noise characteristic to fit the characteristic of the model.

4. The method of claim 3, wherein the noise characteristic is adjusted by varying one of the feedback parameters, and wherein the characteristic of the model comprises a frequency response of the FM-AFM system.

5. The method of claim 4, wherein the model of the FM-AFM system includes two coupled feedback parameters, and wherein deriving the feedback parameters comprises decoupling the coupled feedback parameters by adjusting the noise characteristic to fit the characteristic of the model.

6. A computer program product comprising a non-transitory computer-readable storage medium having program code embodied thereon, the program code executable by at least one hardware processor to:

receive one or more input parameters associated with a frequency modulated atomic force microscopy (FM-AFM) system, wherein the FM-AFM system comprises a cantilever tip configured to oscillate over a sample supported on a piezo stage, wherein the cantilever tip is controlled by a frequency feedback loop that is coupled to a z-piezo feedback loop that controls the piezo stage;

apply the one or more input parameters to a model of the FM-AFM system;

derive one or more feedback parameters for the FM-AFM system from the model by:

a) optimize the model for the feedback parameters, and

b) apply a noise characteristic of the feedback system to the model; and automatically tune the FM-AFM system using the one or more derived feedback parameters.

7. The computer program product of claim 6, wherein applying the noise characteristic comprises leveraging a correlation between the noise characteristic to a characteristic of the model.

8. The computer program product of claim 7, wherein leveraging the correlation comprises adjusting the noise characteristic to fit the characteristic of the model.

9. The computer program product of claim 8, wherein the noise characteristic is adjusted by varying one of the feedback parameters, and wherein the characteristic of the model comprises a frequency response of the FM-AFM system.

10. The computer program product of claim 9, wherein the model of the FM-AFM system includes two coupled feedback parameters, and wherein deriving the feedback parameters comprises decoupling the coupled feedback parameters by adjusting the noise characteristic to fit the characteristic of the model.

11. A system comprising: a frequency modulated atomic force microscopy (FM-AFM) system, wherein the FM-AFM system comprises a cantilever tip configured to oscillate over a sample supported on a piezo stage, wherein the cantilever tip is controlled by a frequency feedback loop that is coupled to a z-piezo feedback loop that controls the piezo stage; and a tuner, wherein the tuner is configured to:

receive one or more input parameters associated with said FM- AFM system;

apply the one or more input parameters to a model of said FM- AFM system;

derive one or more feedback parameters for said FM-AFM system from the model by:

a) optimize the model for the feedback parameters, and b) apply a noise characteristic of said FM-AFM system to the model; and

automatically tune said FM-AFM system using the one or more derived feedback parameters.

12. The system of claim 11, wherein applying the noise characteristic comprises leveraging a correlation between the noise characteristic to a characteristic of the model.

13. The system of claim 12, wherein leveraging the correlation comprises adjusting the noise characteristic to fit the characteristic of the model.

14. The system of claim 13, wherein the noise characteristic is adjusted by varying one of the feedback parameters, and wherein the characteristic of the model comprises a frequency response of said FM-AFM system.

15. The system of claim 14, wherein the model of said FM-AFM system includes two coupled feedback parameters, and wherein deriving the feedback parameters comprises decoupling the coupled feedback parameters by adjusting the noise characteristic to fit the characteristic of the model.

16. A method for automatically calibrating a feedback system, the method comprising:

receiving one or more input parameters associated with a feedback system;

applying the one or more input parameters to a model of the feedback system;

deriving one or more feedback parameters for the feedback system from the model by:

c) optimizing the model for the feedback parameters, and d) applying a noise characteristic of the feedback system to the model; and

automatically tuning the feedback system using the one or more derived feedback parameters.

17. The method of claim 16, wherein the feedback system is a frequency modulated atomic force microscopy (FM-AFM) system comprising a cantilever tip configured to oscillate over a sample supported on a piezo stage, wherein the cantilever tip is controlled by a frequency feedback loop that is coupled to a z- piezo feedback loop that controls the piezo stage.

18. The method of claim 17, wherein applying the noise characteristic comprises leveraging a correlation between the noise characteristic to a characteristic of the model.

19. The method of claim 18, wherein leveraging the correlation comprises adjusting the noise characteristic to fit the characteristic of the model.

20. The method of claim 19, wherein the noise characteristic is adjusted by varying one of the feedback parameters, and wherein the characteristic of the model comprises a frequency response of the feedback system.

21. The method of claim 20, wherein the model of the feedback system includes two coupled feedback parameters, and wherein deriving the feedback parameters comprises decoupling the coupled feedback parameters by adjusting the noise characteristic to fit the characteristic of the model.

22. A computer program product comprising a non-transitory computer-readable storage medium having program code embodied thereon, the program code executable by at least one hardware processor to:

receive one or more input parameters associated with a feedback system; apply the one or more input parameters to a model of the feedback system;

derive one or more feedback parameters for the feedback system from the model by:

c) optimize the model for the feedback parameters, and

d) apply a noise characteristic of the feedback system to the model; and automatically tune the feedback system using the one or more derived feedback parameters.

23. The computer program product of claim 22, wherein the feedback system is a frequency modulated atomic force microscopy (FM-AFM) system comprising a cantilever tip configured to oscillate over a sample supported on a piezo stage, wherein the cantilever tip is controlled by a frequency feedback loop that is coupled to a z-piezo feedback loop that controls the piezo stage.

24. The computer program product of claim 23, wherein applying the noise characteristic comprises leveraging a correlation between the noise characteristic to a characteristic of the model.

25. The computer program product of claim 24, wherein leveraging the correlation comprises adjusting the noise characteristic to fit the characteristic of the model.

26. The computer program product of claim 25, wherein the noise characteristic is adjusted by varying one of the feedback parameters, and wherein the characteristic of the model comprises a frequency response of the feedback system.

27. The computer program product of claim 26, wherein the model of the feedback system includes two coupled feedback parameters, and wherein deriving the feedback parameters comprises decoupling the coupled feedback parameters by adjusting the noise characteristic to fit the characteristic of the model.

28. A system for tuning a feedback system, comprising:

a feedback system; and

a tuner, wherein the tuner is configured to:

receive one or more input parameters associated with a feedback system;

apply the one or more input parameters to a model of the feedback system;

derive one or more feedback parameters for the feedback system from the model by:

a) optimize the model for the feedback parameters, and b) apply a noise characteristic of the feedback system to the model; and

automatically tune the feedback system using the one or more derived feedback parameters.

29. The system of claim 28, wherein the feedback system is a frequency modulated atomic force microscopy system (FM-AFM) comprising a cantilever tip configured to oscillate over a sample supported on a piezo stage, wherein the cantilever tip is controlled by a frequency feedback loop that is coupled to a z- piezo feedback loop that controls the piezo stage.

30. The system of claim 29, wherein applying the noise characteristic comprises leveraging a correlation between the noise characteristic to a characteristic of the model.

31. The system of claim 30, wherein leveraging the correlation comprises adjusting the noise characteristic to fit the characteristic of the model.

32. The system of claim 31, wherein the noise characteristic is adjusted by varying one of the feedback parameters, and wherein the characteristic of the model comprises a frequency response of the feedback system.

33. The system of claim 32, wherein the model of the feedback system includes two coupled feedback parameters, and wherein deriving the feedback parameters comprises decoupling the coupled feedback parameters by adjusting the noise characteristic to fit the characteristic of the model.

Description:
AUTOMATIC CALIBRATION AND TUNING OF FEEDBACK SYSTEMS

CROSS-REFERENCE TO RELATED APPLICATIONS

This application claims priority to U.S. Provisional Patent Application No. 62/209,982 filed August 26, 2015, entitled "Automatic Calibration and Tuning of Feedback Systems", which is incorporated herein by reference in its entirety.

BACKGROUND

The invention relates to the field of feedback systems.

Feedback systems commonly use controllers to minimize the error signal resulting from the difference between a measured output of the system and a desired set point.

The controllers process the error and adjust and/or manipulate one or more of the control signals that affect the output to reduce the error. This process is usually regulated by a set of feedback/control parameters. Proportional-integral-derivative (ΡΠ3) controllers are regulated by three such parameters: P corresponds to the currently measured error, / corresponds to accumulated past error, and D corresponds to the rate of change of current error.

Proportional-integral (PI) controllers operate similarly to ΡΠ3 controllers, with the notable difference that the derivative, or predictive parameter is set to zero.

The foregoing examples of the related art and limitations related therewith are intended to be illustrative and not exclusive. Other limitations of the related art will become apparent to those of skill in the art upon a reading of the specification and a study of the figures. SUMMARY

The following embodiments and aspects thereof are described and illustrated in conjunction with systems, tools and methods which are meant to be exemplary and illustrative, not limiting in scope.

There is provided, in accordance with an embodiment, a method for automatically calibrating a feedback system, the method comprising: receiving one or more input parameters associated with a feedback system; applying the one or more input parameters to a model of the feedback system; deriving one or more feedback parameters for the feedback system from the model by: optimizing the model for the feedback parameters, and applying a noise characteristic of the feedback system to the model; and automatically tuning the feedback system using the one or more derived feedback parameters.

In some embodiments, the feedback system is a frequency modulated atomic force microscopy (FM-AFM) system comprising a cantilever tip configured to oscillate over a sample supported on a piezo stage, wherein the cantilever tip is controlled by a frequency feedback loop that is coupled to a z-piezo feedback loop that controls the piezo stage.

In some embodiments, applying the noise characteristic comprises leveraging a correlation between the noise characteristic to a characteristic of the model.

In some embodiments, leveraging the correlation comprises adjusting the noise characteristic to fit the characteristic of the model.

In some embodiments, the noise characteristic is adjusted by varying one of the feedback parameters, and wherein the characteristic of the model comprises a frequency response of the feedback system.

In some embodiments, the model of the feedback system includes two coupled feedback parameters, and wherein deriving the feedback parameters comprises decoupling the coupled feedback parameters by adjusting the noise characteristic to fit the characteristic of the model.

There is provided, in accordance with an embodiment, a computer program product comprising a non-transitory computer-readable storage medium having program code embodied thereon, the program code executable by at least one hardware processor to: receive one or more input parameters associated with a feedback system; apply the one or more input parameters to a model of the feedback system; derive one or more feedback parameters for the feedback system from the model by: optimize the model for the feedback parameters, and apply a noise characteristic of the feedback system to the model; and automatically tune the feedback system using the one or more derived feedback parameters.

In some embodiments, the feedback system is a frequency modulated atomic force microscopy (FM-AFM) system comprising a cantilever tip configured to oscillate over a sample supported on a piezo stage, wherein the cantilever tip is controlled by a frequency feedback loop that is coupled to a z-piezo feedback loop that controls the piezo stage.

In some embodiments, applying the noise characteristic comprises leveraging a correlation between the noise characteristic to a characteristic of the model.

In some embodiments, leveraging the correlation comprises adjusting the noise characteristic to fit the characteristic of the model.

In some embodiments, the noise characteristic is adjusted by varying one of the feedback parameters, and wherein the characteristic of the model comprises a frequency response of the feedback system.

In some embodiments, the model of the feedback system includes two coupled feedback parameters, and wherein deriving the feedback parameters comprises decoupling the coupled feedback parameters by adjusting the noise characteristic to fit the characteristic of the model.

There is provided, in accordance with an embodiment, a system for tuning a feedback system, comprising: a feedback system; and a tuner, wherein the tuner is configured to: receive one or more input parameters associated with a feedback system; apply the one or more input parameters to a model of the feedback system; derive one or more feedback parameters for the feedback system from the model by: optimize the model for the feedback parameters, and apply a noise characteristic of the feedback system to the model; and automatically tune the feedback system using the one or more derived feedback parameters.

In some embodiments, the feedback system is a frequency modulated atomic force microscopy (FM-AFM) system comprising a cantilever tip configured to oscillate over a sample supported on a piezo stage, wherein the cantilever tip is controlled by a frequency feedback loop that is coupled to a z-piezo feedback loop that controls the piezo stage.

In some embodiments, applying the noise characteristic comprises leveraging a correlation between the noise characteristic to a characteristic of the model.

In some embodiments, leveraging the correlation comprises adjusting the noise characteristic to fit the characteristic of the model.

In some embodiments, the noise characteristic is adjusted by varying one of the feedback parameters, and wherein the characteristic of the model comprises a frequency response of the feedback system.

In some embodiments, the model of the feedback system includes two coupled feedback parameters, and wherein deriving the feedback parameters comprises decoupling the coupled feedback parameters by adjusting the noise characteristic to fit the characteristic of the model.

In addition to the exemplary aspects and embodiments described above, further aspects and embodiments will become apparent by reference to the figures and by study of the following detailed description. BRIEF DESCRIPTION OF THE FIGURES

Exemplary embodiments are illustrated in referenced figures. Dimensions of components and features shown in the figures are generally chosen for convenience and clarity of presentation and are not necessarily shown to scale. The figures are listed below.

Fig. 1 illustrates a simplified conceptual illustration of a feedback system, in accordance with an embodiment;

Fig. 2 shows an exemplary linearized model of a feedback system of Fig. 1, in accordance with an embodiment;

Figs. 3A-D show experimental results validating the model of Fig. 2, in accordance with an embodiment;

Fig. 4 shows a flowchart of a method for calibrating and tuning an FM-AFM system of Figs. 1 and 2, in accordance with an embodiment;

Fig. 5 shows a flowchart of a method for automatic tuning and calibration of a feedback system, in accordance with an embodiment; and

Fig. 6 illustrates experimental results of scanning Mica in aqueous NaCl solution imaged by an FM-AFM using the system and methods described herein.

DETAILED DESCRIPTION

A system and method are disclosed herein to automatically calibrate a feedback system using a linearized model. Although a linearized model of a coupled feedback system is presented, the system and method may be equally applied to non-coupled feedback systems. The linearized model is optimized to derive parameters for tuning the system. Additionally, a noise characteristic of the system may be used to derive the optimal feedback parameters from the model. In one implementation, the noise characteristic is used to decouple any derived feedback parameters that remain coupled after the optimization. Thus derived, the parameters may be applied to tune and/or calibrate one or more controllers of the system.

Reference is now made to Fig. 1 which illustrates a simplified conceptual illustration of an Atomic Force Microscopy (AFM) system 100, in accordance with an embodiment. Although the system and method described below is applied to tuning and/or calibrating a frequency-modulated Atomic Force Microscopy (FM-AFM) feedback system, this is merely an exemplary implementation, and the method may be applied with respect to any feedback system. It may further be noted that system 100 illustrates a common configuration for an FM-AFM system, however this is not meant to be limiting, and the invention may apply to any configuration of a feedback system, and specifically any configuration of an AFM feedback system.

AFM has been established as one of the most powerful imaging techniques available due to its versatility and resolution. Among common modes of AFM, FM- AFM is emerging as the mode of choice for high resolution imaging in vacuum, air, and liquid. To achieve that, it utilizes three feedback loops to control the cantilever excitation amplitude, cantilever driving frequency, and z-piezo extension.

The feedback loops are commonly implemented with one PI controller per loop, each regulated by two parameters, a proportional gain and a time constant. Additionally, the lock- in amplifier is equipped with a low-pass filter (LPF) of selectable order and cutoff frequency. It is necessary to tune these parameters to obtain stability, high sensitivity, and low noise in the imaging process. The amplitude loop, being weakly coupled to the other loops, may be tuned independently of them by optimization of its two PI parameters. However, tuning of the remaining two feedback loops is generally difficult due to their non-linear coupling. It requires simultaneous optimization of two LPF parameters and four PI parameters, while taking into account the unknown tip- sample interaction. A few methods have been devised for obtaining frequency and piezo loop parameters. While these methods do provide first-guess working parameters, they seem to be insufficient for high performance applications such as atomic resolution imaging in liquid. Optimization of FM-AFM parameters is therefore still done manually by a tedious, time consuming process of trial and error, and by relying on the experience of expert users.

Exemplary system 100 includes three feedback loops: an amplitude feedback loop 102, and a frequency feedback loop 104 coupled to a z-piezo feedback loop 106. Amplitude feedback loop 102 maintains a set-point oscillation amplitude for a cantilever 108 that oscillates above a sample 110. Frequency feedback loop 104 maintains a π/2 phase difference between a cantilever excitation force applied to a cantilever 108 and the oscillation of cantilever 108. This phase difference causes cantilever 108 to oscillate at a resonance frequency that varies with the cantilever tip- sample interaction and separation. A frequency controller 112 sends the frequency shift to an oscillator 124 which produces the sinusoidal excitation subsequently applied to cantilever 108. Oscillator 124 additionally creates a reference signal for a lock-in amplifier 130, which is necessary to detect the cantilever displacement signal coming from a photodetector 122. Z-piezo feedback loop 106, coupled to frequency feedback loop 104, compares the frequency shift signal from frequency feedback loop 104 with a set-point frequency shift to generate a piezo extension signal from z-piezo controller 114. Z-piezo controller 114 provides the piezo extension signal to a piezo driver 116 that moves a stage 118 supporting sample 110, and thus modifies the distance between the tip of cantilever 108 and sample 110 to meet the set-point frequency shift. Cantilever 108 thus tracks planes of equal frequency shift as it scans the sample surface 110, and the surface topography of sample 110 is obtained by recording the piezo extension signal as a function of the position of piezo stage 118 in the x-y plane. A laser 120 illuminates cantilever tip 108 and the cantilever oscillation signal is obtained via a photodetector 122.

Feedback loops 102, 104, and 106 are generally regulated by eight user controlled parameters. Most commonly, these loops are implemented with one proportional- integral (PI) controller per loop, each regulated by two parameters, a proportional gain and a time constant. Additionally, lock-in amplifier 130 is provided with a low-pass filter (LPF) of selectable order and cutoff frequency. It is necessary to tune these parameters to obtain stability, high sensitivity and low noise in the imaging process. The amplitude loop 102, which is weakly coupled to the other loops, may be tuned independently of loops 104 and 106 by a relatively straightforward optimization of its two PI parameters. However, tuning of the remaining two feedback loops, 104 and 106, is generally difficult due to their non-linear coupling, and requires simultaneous optimization of two LPF parameters and four PI parameters, while taking into account the initially unknown tip-sample interaction. Thus, an algorithm for automated optimization of the two coupled feedback loop parameters is presented herein. The algorithm utilizes the z-piezo noise to determine the unknown tip- sample transfer function.

A tuner 126 may be provided to receive one or more values corresponding to system 100, such as a quality-factor for cantilever 108, Q, and a cantilever reference resonance frequency f Q ' . For example, Q and f Q ' may be measured in an initialization step, such as by performing a frequency sweep prior to scanning sample 108.

Tuner 126 is configured to apply the values to calculate one or more control parameters that optimize the overall bandwidth and step response of system 100, and provide the calculated control parameters to system 100 to allow reliable imaging of the surface of sample 110. For example, tuner 126 may calculate gain and time constant parameters for one or more proportional-integral (PI) controllers provided with system 100, such as an amplitude PI controller 128, frequency controller 112, and z-piezo controller 114, and provide these calculated parameters to any of controllers 112, 114, and 128 to tune system 100, accordingly.

Optionally, tuner 126 may compute one or more control parameters to tune lock- in amplifier 130, and provide the control parameters to lock-in amplifier 130, accordingly.

Amplitude feedback loop 102 may be loosely coupled to frequency feedback loop 104 and z-piezo feedback loop 106, and thus, tuner 126 may determine any feedback parameters required by amplitude PI controller 128 independently of feedback loops 104 and 106.

Feedback loops 104 and 106 may be strongly coupled, and thus, the feedback parameters required to tune frequency PI controller 112 and/or z-piezo PI controller 114 may be determined using a linearized model for system 100 as follows.

Reference is now made to Fig. 2 which illustrates an exemplary linearized model 200 of the FM-AFM system of Fig. 1, in accordance with an embodiment. As discussed above with respect to Fig. 1, the model of Fig. 2 is but one exemplary implementation for solving but one exemplary feedback system, and other suitable models may equally apply for the system of Fig. 1, or for other feedback systems. For example, fewer or additional blocks and/or feedback loops may be used, the mathematical formulation of which may be modified accordingly.

An output frequency shift Af°"' = f— f^ oi controller 112 of Fig. 1 is fed into an adder 202, where / is the cantilever driving frequency and f^ is the reference resonance frequency. Adder 202 subtracts the output frequency shift from a desired, or set point frequency shift, A ^, resulting in an error signal e Af that is fed into z-piezo PI controller block 214, corresponding to z-piezo controller 114, the transfer function of which may be modelled as:

1

G P z I (s)= p z 1+- (1)

sT z where p z is the proportional gain and T 1 is the time constant corresponding to PI controller 114, and s represents the frequency in the complex plane. PI controller 114 drives piezo stage 118 via piezo driver 116 to a relative displacement of Az = z - z ref , where f 0 (z ref ) = and f 0 (z) is the resonance frequency of cantilever 108 at a given tip-sample separation. This is modeled in Fig. 2 as PI controller 214 sending a control signal to piezo stage 218, corresponding to piezo stage 118, via the piezo driver. Thus, the resulting relative piezo extension may be expressed as:

Az piezo = G piezo (s)Az (2) where G piezo is the transfer function of piezo stage 118, and may be measured by touching the sample surface with cantilever 108, modulating Az and measuring the response in the deflection signal. Typically, G piezo is approximately a LPF.

The change in f Q resulting from a small change in tip-sample separation may be approximated by:

The tip-sample transfer function may thus be formulated as:

The signal f 0 —f 0 r< ^ is subsequently compared with the output frequency shift, Af out , resulting in the frequency shift from the true cantilever resonance, fo- - (f -fo * ) = fo - f (5).

This signal determines the cantilever phase shift. Within the damped harmonic oscillator model the cantilever phase is given by

Assuming a small shift from resonance:

» f 0 (z ref ) Az enables the phase error, e, = φ ε —π 12, to be expressed as

' (/„- /)

Jo

Thus, the phase shift transfer function may be expressed by a constant:

The phase error β φ , is then detected by lock- in amplifier 130, represented by block 230, which may comprise an n't order LPF described by

1

(8),

G " <l) = (i +

where T is the lock-in time constant.

The detected phase enters the second PI controller block 212, corresponding to frequency PI controller 112, the transfer function of which is

where is the proportional gain and T Af is the time constant of the controller. The controller output, Af out , drives an oscillator 124, shown in Fig. 1, to generate the cantilever excitation signal. The control loop is closed by feeding the same signal to adder 228, corresponding to adder 128 of Fig. 1.

The total feedback loop transfer function may be calculated according to the model illustrated in Fig. 2. Blocks G^ 208, G u 224 and Gpj 212 make up a nested loop, the total transfer function of which is

Using this result, z pKZO may be given by

Az^°( s ) = -SzG Sz +Af sp G sp (11), where

G Sz (s) = . G,sGA i G G ° (12),

l + G tS G Af G PI G pi eZ o

and

c z c

G (s) = (13)

s p l + G ts G o A f f G P p I,G piezo ' 1 } In the FM-AFM system of Fig. 1, the surface topography of sample 108 is imaged by scanning its surface in the x-y plane via stage 118 and recording the detected displacement signal Δζ, where Δζ is the output signal of the z-piezo PI controller 114. As sample 110 moves in the x-y plane relatively to tip 108, features on the surface of sample 110 modulate the distance between the surface and tip 108. This signal enters the feedback loop as a disturbance signal Sz, and represented in Fig. 2 by being added to Zk at adder 234.

To maintain a constant frequency shift, the feedback loop compensates for the disturbance Sz by modulating Δζ accordingly, to generate the resulting topographic image of sample 108. Perfect tracking between tip 108 and sample 110 implies that G 5z = 1, in which case z em contains the term -Sz, cancelling out the disturbance signal Sz■ The transfer function G 5z is therefore of particular importance, and may be used to optimize system 100. The poles and zeros of equation (12) may be determined, such as by applying numerical methods, to derive the parameter values that optimize the overall bandwidth and step response of system 100.

Since the frequency set point A ^ is a constant DC signal, the term Af v G sp contributes only a DC component to Az, and it may be neglected in the analysis of AC contributions.

Reference is now made to Figs. 3A-D, which illustrate exemplary experimental result for testing the validity of the formulation for the transfer function G 5z of equation (12).

The validity of the transfer function G 5z may be verified by adding a small modulation to the driving signal to piezo driver 116, and measuring the subsequent Az responsive to this modulation. Alternatively, the magnitude of G 5z may be determined by measuring the power spectral density (PSD) of Δζ. When the feedback loop is locked to a certain frequency set-point without scanning, Sz quantifies the system noise. The dominant contributions to the noise, within a typical feedback loop bandwidth, originates from mechanical vibrations, shot-noise of the photodiode in photo detector 122, and thermal noise of cantilever 108. The relation between S Az and S Sz , the PSD of Δζ and Sz noise, respectively, may be given by

Excluding occasional peaks which may occur at mechanical resonances of the system, S Sz on average changes slowly as a function of frequency. The average rate of change of S Sz is much smaller than that of G ¾ (ifii)/G . (i ' o) which is constant at low frequencies and decreases rapidly past its cutoff frequency. Consequentially, S Az is practically proportional to G Sz (i o) / G pjezo (i o) .

Referring to Figs. 3A-D, equation (12) is validated experimentally for two sets of feedback parameters, defined in each of Figs. 3C-D. Figs. 3A-B illustrate magnitude plots and Figs. 3C-D illustrate their corresponding phase plots, with Fig. 3C corresponding to Fig. 3 A, and Fig. 3D corresponding to Fig. 3B. The theoretical curves of G Sz in 300 and 302 and of G Sz I G piez0 in 308 and 310 (dashed lines) were plotted using expression (12) for G<%, modified by a 354 microseconds (μ ) time delay added to £¾ and a first order LPF with a 145 μ time constant added to the forward path of the feedback loop of Fig. 2. These modifications account for the transfer function and time delay of the digital PLL and controller (Specs Zurich, BP 4.5 + OC4). Both measurements were performed on mica in a lOOmM NaCl solution. The Az noise PSD, shown as curves 304 and 306 (solid lines), was measured with the feedback loop locked on some set point frequency shift without scanning. G<% was measured by adding a small modulation to the piezo driving signal and measuring the response in Az. The cantilever parameters in all plots were = 131 kiloHertz (kHz), <2=8, and 0 ' (z re -) in the range of 100-200Hz/nm. The feedback parameters used in each magnitude and phase plot pair are shown in the insets of Figs. 3C-D.

As can clearly be seen in Figs. 3A-D, the theoretical curves of G Sz determined by the above model correspond in both magnitude (Figs. 3A-B) and phase (Figs. 3C- D) to the measured values of ^ (dots), indicated in Figs. 3A-B as 312 and 314, respectively, thereby validating the theoretical model. Furthermore, the theoretical magnitude plots of G Sz I G ≠ez0 computed using the model above exhibit a strong correlation to the measured noise Az. This property can be leveraged to determine the optimal parameters for tuning the feedback system, an implementation of which is described in greater detail below.

The transfer function G Sz , as formulated by equation (12), depends on six feedback parameters, which may be set by a user, such as one or more PI controller parameters and lock-in time constants, and three cantilever parameters, such as the quality factor Q and the cantilever reference resonance frequency and the resonance frequency derivative^ (z^) , that may be measured, as summarized in Table 1 as follows: Feedback Cantilever

Description Description parameters parameters

low-pass filter time r ref cantilever reference

τ Jo

constant resonance frequency

n low-pass filter order Q cantilever quality factor resonance frequency

P Z , P ¥ proportional gains fo (¾f ) derivative

time constants

Table 1 : parameters of G c

Given a set of cantilever parameters, the feedback parameters may be tuned to optimize the bandwidth and step response of G 5z , enabling the feedback loop, represented by loop 232 of Fig. 2, to track surface 110 with optimal accuracy and minimal noise.

The bandwidth 0 ) bw of feedback loop 232 may be defined by the 3dB point of

| yz ( iy)| and its optimal choice depends on the bandwidth of the signal Sz. <¾ w may be bound within a range that is sufficiently large to allow imaging any features of interest on sample 110, but small enough to yield an acceptable noise level. Factors determining the bandwidth of Sz include sample topography and scanning speed.

In the context of FM-AFM system 100, the step response of G 5z may take on the intuitive meaning of the image of a physical step. Thus, the closer the response of G 5z is to the step input, the more accurate the image of sample 110 produced by the feedback loop represented by loop 232 in Fig 2. An optimal step response has minimal rise time, minimal settling time, and minimal overshoot and ringing within the bandwidth constraint O^ .

Using the outlined criteria for evaluating the feedback response, G 5z may be analyzed numerically to find the optimal feedback parameters. The closed loop transfer function for G 5z given by equation (12) can be expressed as a ratio of two polynomials. As such, its properties are dictated by its poles and zeros. Since the denominator is a polynomial of degree n + 3 , there are no simple analytic relations between the feedback parameters and the optimization criteria, namely CO^ and the step response characteristics. Furthermore, the feedback parameters should be optimized with respect to the unknown tip-sample transfer function, G ts , which generally varies during imaging.

To simplify this analysis, several of the parameters included in equation (12) may be determined as intrinsic properties of the experimental setup and may be predefined by a user, and/or measured in advance of scanning the sample, leaving fewer parameters to optimize. For example, the possible low pass filter characteristics, namely values for the low pass filter time constant τ and low pass filter order n may be predefined by the user.

An additional simplification is made possible by noticing that the interaction term, f o ' ( z ) , appears in G Sz coupled with the proportional gain for the z-piezo loop p z as the combination f 0 ' (z ref ) · p z ■ This may be used to simplify the optimization problem significantly. Rather than optimizing G ¾ with respect to p z and a varying f 0 ' (z ref ) independently, G 5z may therefore be optimized with respect to the combination of the terms, as they appear in the model above:

P z = f 0 ' (z ref ) - P z (15). The poles and zeroes for G^ as expressed in equation (12) may be calculated numerically, and the corresponding bandwidth and step response values for feedback loop 232 may be analyzed to determine the optimal feedback parameters for frequency controller 112 and z-piezo controller 114. These calculated parameters may then be inputted into lock- in amplifier 130, frequency controller 112, and z-piezo controller 114 using an estimated training value for p z .

Given the optimal values of p z derived above, and of the remaining feedback parameters: the proportional gain and time constant values for each of frequency controller 112, and z-piezo controller 114, p Af , p z , T Af , and T z , respectively, the corresponding magnitude Bode plot of G Sz I G piezo may be computed and compared to the Δζ noise PSD. Since as shown above in Figs. 3A-B, the Bode plot and noise PSD plot are in strong agreement, and have the same form, by varying the parameter p z , the

Δζ noise spectrum may be fitted to the magnitude Bode plot. Once a good fit is found, such as shown in Fig. 3 A, equation (15) may be approximately satisfied, thereby optimizing feedback loop 232. This same fit may also yield the unknown tip-sample transfer function G ts , obviating the need to measure it independently. As the tip-sample transfer function varies during scanning, tuner 126 may apply the algorithm to adapt p z and optimize G 5z in real time by continuous fitting the Δζ noise PSD.

Other techniques may be used to determine the feedback control parameters from the equations above, and separate the feedback parameter from the tip-sample interaction. For example, the parameter p z may be determined from p z by direct measurement of f 0 '(z ref ) .

In one non-limiting embodiment, tuner 126 may additionally tune amplitude feedback loop 102 by computing one or more control signals, such as the proportional gain and time constant parameters, for amplitude controller 128. Since feedback loop 102 is weakly coupled to loops 104 and 106, loop 102 may be tuned independently of the calculations described above using conventional tuning methods. Tuner may provide the computed parameters to amplitude controller 128, accordingly.

Reference is now made to Fig. 4 which illustrates a flowchart of a method for tuning the FM-AFM system of Figs. 1-2, in accordance with an embodiment. One or more input parameters associated with an FM-AFM system are received, such as an input resonance frequency and quality factor Q associated with a cantilever tip (Step 400). Additionally, a time constant τ and an order n of the low pass filter may be received. The input parameters are applied to an FM-AFM control model to define the total loop transfer function of the model as a function of the feedback parameters and tip- sample interaction (Step 402) such as may be a linearized model corresponding to equation (12) above. In one non-limiting embodiment, the total loop transfer function of the model is defined as a function of only the feedback parameters and tip-sample interaction. The transfer function bandwidth and step response of the total feedback loop are optimized with respect to the feedback parameters for the FM-AFM system (Step 404). The optimal parameters for the FM-AFM system are applied, together with an initializing estimated value for the feedback parameter coupled to the tip-sample interaction (Step 406). The tip-sample interaction is decoupled from the feedback parameter by fitting the noise from the piezo driving signal to a theoretical curve calculated from the optimal transfer function, thereby optimizing the total feedback loop (Step 408). This fitting step may be performed continuously to optimize the feedback parameters automatically as the tip-sample interaction varies during sampling. The FM-AFM system may be automatically tuned using the optimized feedback parameters throughout the sampling procedure.

Optionally, an amplitude gain and amplitude time constant may be calculated for an amplitude PI controller of the FM-AFM system, and may be used to tune the amplitude PI controller, accordingly.

Reference is made to Fig. 5 which illustrates a flowchart of a method for tuning a feedback system, in accordance with an embodiment. One or more input parameters associated with a feedback system are received (Step 500). The received parameters are applied to a model of the feedback system that defines the total loop transfer function of the feedback system as a function of multiple feedback parameters (Step 502). In some embodiment, the model is a linearized feedback model. The model is optimized with respect to the feedback parameters (Step 504). For example, the transfer function bandwidth and step response of the feedback system may be optimized. Additionally, an intrinsic property of the feedback system, such as a noise characteristic of the feedback system, is applied to the model to derive the optimal feedback parameters (Step 506). For example, a correlation between the noise characteristic to a characteristic of the model may be leveraged, and the noise of the feedback system may be adjusted by varying one of the feedback parameters, such as the proportional gain of a PI controller in the feedback system, until the noise fits a frequency response derived from the model of the feedback system. Thus derived, the parameters are used to automatically tune the feedback system (Step 508). In some embodiments, the feedback system comprises a frequency feedback loop coupled to a z-piezo feedback loop of a frequency modulated atomic force microscopy system, and the model includes two coupled feedback parameters comprising the proportional gain of the z-piezo PI controller coupled to the resonance frequency derivative, where the noise characteristic is applied to decouple the proportional gain of the z-piezo PI controller from the resonance frequency derivative.

The above described method may be performed repeatedly in real-time, to provide continual tuning of the feedback system throughout its operation.

Although the above system and method refers to applying the correlation between the feedback system noise and characteristics of the model to derive the control parameters, other characteristics of the feedback system, in addition to the noise, may be similarly applied.

The present invention may be a system, a method, and/or a computer program product. The computer program product may include a computer readable storage medium (or media) having computer readable program instructions thereon for causing a processor to carry out aspects of the present invention.

The computer readable storage medium can be a non-transitory, tangible device that can retain and store instructions for use by an instruction execution device. The computer readable storage medium may be, for example, but is not limited to, an electronic storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing. A non-exhaustive list of more specific examples of the computer readable storage medium includes the following: a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or Flash memory), a static random access memory (SRAM), a portable compact disc read-only memory (CD- ROM), a digital versatile disk (DVD), a memory stick, a floppy disk, a mechanically encoded device such as punch-cards or raised structures in a groove having instructions recorded thereon, and any suitable combination of the foregoing. A computer readable storage medium, as used herein, is not to be construed as being transitory signals per se, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through a waveguide or other transmission media (e.g., light pulses passing through a fiber-optic cable), or electrical signals transmitted through a wire. Computer readable program instructions described herein can be downloaded to respective computing/processing devices from a computer readable storage medium or to an external computer or external storage device via a network, for example, the Internet, a local area network, a wide area network and/or a wireless network. The network may comprise copper transmission cables, optical transmission fibers, wireless transmission, routers, firewalls, switches, gateway computers and/or edge servers. A network adapter card or network interface in each computing/processing device receives computer readable program instructions from the network and forwards the computer readable program instructions for storage in a computer readable storage medium within the respective computing/processing device.

Computer readable program instructions for carrying out operations of the present invention may be assembler instructions, instruction-set-architecture (ISA) instructions, machine instructions, machine dependent instructions, microcode, firmware instructions, state-setting data, or either source code or object code written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C++ or the like, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The computer readable program instructions may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the latter scenario, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet Service Provider). In some embodiments, electronic circuitry including, for example, programmable logic circuitry, field-programmable gate arrays (FPGA), or programmable logic arrays (PLA) may execute the computer readable program instructions by utilizing state information of the computer readable program instructions to personalize the electronic circuitry, in order to perform aspects of the present invention.

Aspects of the present invention may be described herein with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and/or block diagrams, and combinations of blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer readable program instructions.

These computer readable program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions/acts specified in the flowchart and/or block diagram block or blocks. These computer readable program instructions may also be stored in a computer readable storage medium that can direct a computer, a programmable data processing apparatus, and/or other devices to function in a particular manner, such that the computer readable storage medium having instructions stored therein comprises an article of manufacture including instructions which implement aspects of the function/act specified in the flowchart and/or block diagram block or blocks.

The computer readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device to cause a series of operational steps to be performed on the computer, other programmable apparatus or other device to produce a computer implemented process, such that the instructions which execute on the computer, other programmable apparatus, or other device implement the functions/acts specified in the flowchart and/or block diagram block or blocks.

The flowchart and block diagrams in the Figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of instructions, which comprises one or more executable instructions for implementing the specified logical function(s). In some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems that perform the specified functions or acts or carry out combinations of special purpose hardware and computer instructions.

The descriptions of the various embodiments of the present invention have been presented for purposes of illustration, but are not intended to be exhaustive or limited to the embodiments disclosed. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The terminology used herein was chosen to best explain the principles of the embodiments, the practical application or technical improvement over technologies found in the marketplace, or to enable others of ordinary skill in the art to understand the embodiments disclosed herein.

Experimental Results

The algorithm was implemented for optimization of the feedback loop parameters in Matlab, Fortran 90, and Labview. The feedback loop was customized for a homemade AFM and its Specs Zurich controller. The effectiveness of the above disclosed algorithm is demonstrated by an atomic resolution FM-AFM scan of mica in 100 millimolar (mM) aqueous NaCl solution, shown in Fig. 6. The scan was taken with the optimal feedback parameters derived by the algorithm, which were not tweaked in any way. Fig. 6 shows the plane-fitted raw data (scale bar shown corresponds to 2 nanometers).

Feedback parameters generated by this algorithm consistently delivered reliable feedback performance, even in applications that require a high degree of feedback optimization such as atomic resolution imaging in liquid. By using these parameters, stability was significantly increased and noise was reduced in the feedback loop. Additionally, there was a substantial improvement in the quality and reproducibility of images generated by this AFM.