
Changing the sampling frequency here will cause the sampling frequency to be updated in LabView. I'm not sure if this is appropriate for your AFM but it is probably a good start. Please note that I have defined a sampling frequency of 25khz. csv file name using the variable InputFileName near the top of the script. csv file in the z-axis-swept-sines\data folder. The script will save all of this data into a. The script will allow you to define a sampling period, a list of frequencies and amplitutedes, and will calculate some other meta data. This script should be executed INSIDE the z-axis-swept-sines\matlab folder.

See (Non-parametric system identification theory)for a discussion of some theory behind these things. It is a collection of Matlab and Labview programs to facilitate doing non-parametric system identification, with an emphasis on the steped-sines technique. This readme file describes how to use this swept sines non-parametric system ID toolkit, which can be obtained via git:

Matlab/LabView code for non-parametric system identification
