-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAFMProbeCharacterisationSuite.m
More file actions
40 lines (32 loc) · 1.98 KB
/
AFMProbeCharacterisationSuite.m
File metadata and controls
40 lines (32 loc) · 1.98 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
clear
clc
%% This suite allows AFM probe characterisation data to be imported and processed.
% Sets of data files pertaining to probe resonant frequency, deflection
% sensitivity, thermal tune spectra... ADD MORE IN TIME... may be
% systematically imported and processed to output values for spring
% constant and effective mass, along with ranges and error values. In each
% case, one or more .txt data files may be input. Measurement scale should
% be in the first column and intensity data in the second. More than 2
% columns of data is ok, additional columns will (currently...) be ignored.
% Tapping-mode cantilver tuning data. The first column should be
% frequency data, the second column should be intensitiy.
[ TuneArray , TuneLocation ] = CantileverTuneProcessorFunction ( ) ;
ResonantFrequency = TuneArray { 7 } ;
% Contact-mode force-distance spectra. The first column
% should be z movement, the second column should be deflection intensity.
[ SensArray , SensLocation ] = CantileverDeflectionSensitivityProcessorFunction ( ) ;
DeflectionSensitivity = SensArray { 11 } ;
SensitivityError = SensArray { 14 } ;
% Contact-mode thermal tune data. The first column should be frequency
% data, the second column should be intensity. Requires value of deflection
% sensitivity used by software when aquiring data.
[ ThermalArray , ThermLocation ] = CantileverThermalProcessorFunction ( DeflectionSensitivity , SensitivityError ) ;
% Uses gathered data to estimate additional probe parameters.
[ EstimateArray ] = CantileverForceEstimatesFunction ( ResonantFrequency , DeflectionSensitivity ) ;
% Puts all information into a single array and show file locations to check
% all correspond to the same probe and measurement session.
FullArray = vertcat ( TuneArray , SensArray , EstimateArray , ThermalArray ) ;
openvar ( 'FullArray' ) ;
disp ( [ 'Resonant frequency data: ' , TuneLocation ] ) ;
disp ( [ 'Deflection sensitivity data: ' , SensLocation ] ) ;
disp ( [ 'Thermal tuning data: ' , ThermLocation ] ) ;