This is an old revision of the document!
Scan by lines
This simple client connects to the server and sets the operation regime to proportional feedback (typically used in contact mode, difference between value of signal on input and some setpoint value makes piezo to extend or shrink, depending on settings). Then it sets some basic parameters of feedback loop and sets feedback on. It sets the scanning velocity and then it scans 1×1 micrometer in 50×50 pixels using built-in line scan functions and prints the result (or shows them if you use Python version). Finally, it stops the feedback, shrinks the z-piezo and exits.
Used commands and their parameters:
state: mode: proportional to set the
set: pid_p: 0, pid_i: 0.1, pid_d: 0, pid_setpoint: 0.2
set_feedback: feedback: true
set_scan: speed: 1e-6
run_scan_line: n: 50, xfrom: 0, xto: 1e-6, yfrom: 0, yto: 1e-6
get_scan_ndata: n (repeated until all 50 values are measured)
get_scan_data: from: 0, to: 2500
set_feedback: feedback: false
To explore it further, see the simple client implementations in C and in Python.
