These Codes have been developed to calibrate the Friction Force Measurements with Dimension Icon AFM (Bruker) and FlexFM (Nanosurf) based on the calibration method by Andersen et al.. The basic codes can also be used to readout data by these machines and analyze in Python.