<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://spm-wiki.createc.de/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://spm-wiki.createc.de/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Ltspm</id>
		<title>SPM-Wiki - User contributions [en]</title>
		<link rel="self" type="application/atom+xml" href="http://spm-wiki.createc.de/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Ltspm"/>
		<link rel="alternate" type="text/html" href="http://spm-wiki.createc.de/index.php?title=Special:Contributions/Ltspm"/>
		<updated>2026-06-17T08:21:47Z</updated>
		<subtitle>User contributions</subtitle>
		<generator>MediaWiki 1.22.5</generator>

	<entry>
		<id>http://spm-wiki.createc.de/index.php?title=Contacts</id>
		<title>Contacts</title>
		<link rel="alternate" type="text/html" href="http://spm-wiki.createc.de/index.php?title=Contacts"/>
				<updated>2018-08-10T09:09:08Z</updated>
		
		<summary type="html">&lt;p&gt;Ltspm: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Support for STM/Software/UHV-Systems:&lt;br /&gt;
 Createc Fischer &amp;amp; Co. GmbH&lt;br /&gt;
 Magnusstr. 11&lt;br /&gt;
 D-12489 Berlin&lt;br /&gt;
 Germany&lt;br /&gt;
 Email: ltspm@createc.de&lt;br /&gt;
 Tel.:	+49 (0)30 6392 3650&lt;br /&gt;
 Fax:     +49 (0)30 6392 3659&lt;br /&gt;
 [http://www.createc.de: www.createc.de]&lt;br /&gt;
&lt;br /&gt;
Sales of LT-SPM/MBE/UHV-Systems and Parts:&lt;br /&gt;
 Createc Fischer &amp;amp; Co GmbH&lt;br /&gt;
 Industriestr. 9&lt;br /&gt;
 74391 Erligheim&lt;br /&gt;
 Germany&lt;br /&gt;
 Email: sales@createc.de&lt;br /&gt;
 Tel.:	+49 (0)7143 9670-0&lt;br /&gt;
 Fax:	+49 (0)7143 9670-27&lt;br /&gt;
 [http://www.createc.de: www.createc.de]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:stmafm_manual]]&lt;/div&gt;</summary>
		<author><name>Ltspm</name></author>	</entry>

	<entry>
		<id>http://spm-wiki.createc.de/index.php?title=Contacts</id>
		<title>Contacts</title>
		<link rel="alternate" type="text/html" href="http://spm-wiki.createc.de/index.php?title=Contacts"/>
				<updated>2018-08-10T09:06:57Z</updated>
		
		<summary type="html">&lt;p&gt;Ltspm: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;STM/Software/UHV-System:&lt;br /&gt;
 Createc Fischer &amp;amp; Co. GmbH&lt;br /&gt;
 Magnusstr. 11&lt;br /&gt;
 D-12489 Berlin&lt;br /&gt;
 Germany&lt;br /&gt;
 Email: ltspm@createc.de&lt;br /&gt;
 Tel.:	+49 (0)30 6392 3650&lt;br /&gt;
 Fax:     +49 (0)30 6392 3659&lt;br /&gt;
 [http://www.createc.de: www.createc.de]&lt;br /&gt;
&lt;br /&gt;
UHV-System/Sales:&lt;br /&gt;
  Createc Fischer &amp;amp; Co GmbH&lt;br /&gt;
 Industriestr. 9&lt;br /&gt;
 74391 Erligheim&lt;br /&gt;
 Germany&lt;br /&gt;
 Email: sales@createc.de&lt;br /&gt;
 Tel.:	+49 (0)7143 9670-0&lt;br /&gt;
 Fax:	+49 (0)7143 9670-27&lt;br /&gt;
 [http://www.createc.de: www.createc.de]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:stmafm_manual]]&lt;/div&gt;</summary>
		<author><name>Ltspm</name></author>	</entry>

	<entry>
		<id>http://spm-wiki.createc.de/index.php?title=Forms</id>
		<title>Forms</title>
		<link rel="alternate" type="text/html" href="http://spm-wiki.createc.de/index.php?title=Forms"/>
				<updated>2017-01-01T07:22:45Z</updated>
		
		<summary type="html">&lt;p&gt;Ltspm: /* 3d-view */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== LineScan ==&lt;br /&gt;
&lt;br /&gt;
Press the ''Lin'' Button to take a line scan of the image. First select two points of the image by pressing the left mouse button. The linescan&lt;br /&gt;
is displayed in the upper linegraph of the linescanform-window. To perform measurements on the linescan press the ''Measure'' button. &lt;br /&gt;
&lt;br /&gt;
Use the left mouse button to select a new point. With the right mouse button you can switch between points. Pressing the Shift button allows to move a whole line. Pressing the right mouse button together with the Shift button will switch to the prependicular averaging mode.&lt;br /&gt;
&lt;br /&gt;
Important: If the linescan form is opened through the menue selection first, all linescan data will be displayed always in the this particular window. Otherwise pressing the LIN button will always open a new window.&lt;br /&gt;
&lt;br /&gt;
Autosize&lt;br /&gt;
Selects automatic scaling of the linegraph&lt;br /&gt;
&lt;br /&gt;
Autolinebacksub&lt;br /&gt;
Selects automatic subtraction of linear background&lt;br /&gt;
&lt;br /&gt;
Line Display Trackbar&lt;br /&gt;
Move to show a line scan of a particular image line. A FFT of the selected line is shown in the lower line graph.(The number of points/line has to be a power of 2)&lt;br /&gt;
&lt;br /&gt;
Popup menu of upper linegraph&lt;br /&gt;
xydesign: Select to adjust the appearance of the line graph&lt;br /&gt;
CopyClipboardData: The line scan data are copied to the ClipBoard&lt;br /&gt;
CopyClipboardXYGraph: The line scan graph is copied to the ClipBoard&lt;br /&gt;
Printxygraph: The line scan graph is send to the printer&lt;br /&gt;
Measure: Do measurements of the plot data.&lt;br /&gt;
Redrawline: The line in the image is redrawn&lt;br /&gt;
&lt;br /&gt;
Popup menu of lower linegraph&lt;br /&gt;
has the same items as the upper popup menu and one additional entry:&lt;br /&gt;
Show Frequency: Gives the FFT in frequency [Hz] instead of inverse distance [1/Å] (updated when the Line Display Trackbar is moved)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Channels&lt;br /&gt;
Select the channels which are displayed&lt;br /&gt;
&lt;br /&gt;
[[file:cliplinescan.png]]&lt;br /&gt;
&lt;br /&gt;
[[file:cliplinescanpopupmenu.png]]&lt;br /&gt;
&lt;br /&gt;
== Rampcontroller ==&lt;br /&gt;
&lt;br /&gt;
Click on the ''Ramp'' button. This opens the 'Rampcontroller'-window with control elements necessary to perform the coarse approach. The 6 buttons with arrows in the top of the form correspond to moving the tip in respect to the sample surface. Moving in x/y direction can also be done using the x/y cursor keys on the keyboard. The page up and page down keys are used correspondingly for rotation up and down. Selecting the burst mode in x/y or rotation will result in a series of steps corresponding to the number of burst steps displayed in the ramp parameter list. When the Crash Protection is switched on, the program checks before each step, whether it can detect a tunneling current. If this is the case it will cancel the step. Usually the crash protection should be switched on, but in cases where the tip is already crashed, the protection has to be switched off. The program issues some warnings when the ramp windows opens to inform the user to do necessary changes for a successful ramping. These are: First retract the tip, reset the x- and y-offset in the STM-program, select the appropriate gain (1-10, depending on the temperature) in the x- and y- channel of the HV-amplifier and set the external offset voltages to zero.&lt;br /&gt;
The usual coarse approach is done by controlling the approach with an optical microscope. When the tip is  close enough, the automatic tip approach can be switched on, by pressing the ''Approach'' button. It will start a combination of single coarse approach rotation steps combined with tip approach testing until the tip can reach the sample. ''Approach'' stops when a tunneling current is detected. The value of this threshold current is set by the current slider. Important: When the approach stops, the tip is automatically retracted, by setting the current to zero. Before leaving the coarse approach by pressing the ''Quit'' button, you have to select the mode for scanning. When the ''Main/Coarse'' button displays 'Coarse' mode, then the outer 3 piezos are used for scanning, otherwise the center piezo is used. In the normal operation of the microscope the 'Coarse' mode should be selected. Select the required set point current to see if the approach was successful. Now the tip should be retracted manually by using the external HV-amplifier z-offset voltage to go out of tunneling. Select the required gains and re-approach the tip again.&lt;br /&gt;
&lt;br /&gt;
See also: Approach Tips&lt;br /&gt;
&lt;br /&gt;
The Coarse Approach operation is controlled by the following parameters:&lt;br /&gt;
&lt;br /&gt;
Puls Height[V]&lt;br /&gt;
Input the peak to peak height (in V) of the sawtooth pulse used for moving the inertial slider. Two different values are used for the lateral XY motion and the rotational motion.&lt;br /&gt;
&lt;br /&gt;
Puls-Duration[sec]&lt;br /&gt;
Input the duration of a single sawtooth pulse in seconds. &lt;br /&gt;
&lt;br /&gt;
Burst-Count&lt;br /&gt;
Determines the number of sawtooth pulses applied when operating the coarse control in burst mode.&lt;br /&gt;
&lt;br /&gt;
Approach Period[sec]&lt;br /&gt;
Determines the time for a single approach cycle including approach and retraction of the tip to find the sample surface.&lt;br /&gt;
&lt;br /&gt;
Approach Burst Count&lt;br /&gt;
This is the number of coarse pulses applied between two approach cycles.&lt;br /&gt;
&lt;br /&gt;
Approach Retry Count&lt;br /&gt;
This is the number of retry operations done before the approach is stopped.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[file:cliprampcontrollerCreatec.png]]&lt;br /&gt;
&lt;br /&gt;
== Grid ==&lt;br /&gt;
&lt;br /&gt;
The form 'Grid-Image- Transformation' contains several functions for different kinds of image transformations. A suitable combination of the procedures below will allow transformations useful for drift correction, superstructure analysis, extraction of registry information. To open the form press on the grid button in the STMAFM form. With the 6 slider controls a grid can be overlayed on the image. The lateral position, the angles of the grid and the distance between the grid lines can be adjusted. An alternative way to input the grid is pressing the ''Mouse'' button and to mark 3 points (the first one is the center, the other two determine the direction of the two lines). Pressing the ''Rotation'' button will rotate the image in such a way that one set of the grid lines (X-Axis) is parallel to the horizontal direction. Pressing the ''Zoom'' button will zoom the image by the value set in the edit control positioned next to the right of the button. The image is zoomed around the center point of the grid. By pressing on the ''X..,Y..'' button the actual center position of the grid is stored and displayed on the button. Selecting a new center position with the mouse, as described above, and pressing the ''Move grid to Center'' button will move the new defined center to the stored center position. The ''Transform'' button will transform the image according to the 2 Parameters in the edit controls below. The first is the new angle between the lines in the image and the second is the new ratio the grid line distances. Selecting the ''HexGrid'' check box will draw a grid suitable for hexagonal unit cells. If draw inverted is selected the grid is drawn by a inversion process. Otherwise you can select with &amp;lt;Grid Color&amp;gt; the line color of the grid.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;&amp;quot; widths=&amp;quot;450px&amp;quot; heights=&amp;quot;300px&amp;quot;&amp;gt;&lt;br /&gt;
File:clipgrid.png&lt;br /&gt;
File:clipgridimage.png&lt;br /&gt;
[[File:clipgrid.png]]&lt;br /&gt;
[[File:clipgridimage.png]]&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== TimeSpectrum ==&lt;br /&gt;
&lt;br /&gt;
It is very often useful to take a time record of the A/D input channels, without scanning or changing the biasvoltage. This is for example a convenient way to characterize the noise performance of the STM. To take a time record just press the ''Start'' Button on the Time-Spectrum window or press the ''TS'' button on the main window. Five channels are recorded simultaneously. The A/D channels 0 and 3 (ADC0 is called current I) and the topography signal output from the feedback loop, called Z. The displayed channel is selected by the corresponding channel button. Three parameters control the data acquisition:&lt;br /&gt;
&lt;br /&gt;
Spec_Points&lt;br /&gt;
The number of data points taken for a single spectrum. This must be a power of 2, to allow FFT of the data.&lt;br /&gt;
(Maximum is 4096)&lt;br /&gt;
&lt;br /&gt;
Spec_Freq[Hz]&lt;br /&gt;
The sampling frequency. (Limited by the DSP_Clock value)&lt;br /&gt;
&lt;br /&gt;
Spec_Avrg_Count&lt;br /&gt;
The number of spectra averaged. Averaging is done only for the spectrum, i.e. the FFT data.&lt;br /&gt;
&lt;br /&gt;
Channels&lt;br /&gt;
First select the check boxes to determine the channels which are acquired during data acquisition&lt;br /&gt;
Part of these channels can be further selected to be displayed.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The results are displayed in two line graphs.&lt;br /&gt;
The upper one shows the time behaviour. (The vertical scale is always in V)&lt;br /&gt;
The lower one shows the frequency spectrum. (The vertical scale on the left shows the peak to peak value of a pure sine component,&lt;br /&gt;
the right scale the rms amplitude for non correlated signals) &lt;br /&gt;
&lt;br /&gt;
The frequency resolution depends on the number of points and the sampling frequency.&lt;br /&gt;
Important: The current signal and the ADC1 signal are filtered by a first order digital filter, which is controlled by the same CurrentRC Parameter.   &lt;br /&gt;
The contents of the memo field is saved together with the file.&lt;br /&gt;
&lt;br /&gt;
In the lower right the AVRG Value and the Standard Deviation of the timespectra data are shown.&lt;br /&gt;
&lt;br /&gt;
Save&lt;br /&gt;
The data is saved in ASCII Format&lt;br /&gt;
&lt;br /&gt;
FFT logscale: Displays the Spectrum in LogScale&lt;br /&gt;
&lt;br /&gt;
Waterfall: Displays the time dependence of the Spectra in a Waterfall like mode at the bottom of the window&lt;br /&gt;
&lt;br /&gt;
[[file:cliptimespectrum.png]]&lt;br /&gt;
&lt;br /&gt;
== 3d-view ==&lt;br /&gt;
&lt;br /&gt;
This part of the program allows the display of 3d views of selected parts of the images. To start, open the window by clicking the ''3d View'' button. Then click on  &amp;lt;New Data&amp;gt; in the main menue and select a rectangular region on the image displayed in the STMAFM program.  A new form will be opened, where the rendered image is displayed. The sliders in the 3d-view form allow to change the orientation, size, offset and lighting of the 3d object. The 3d image can be displayed in different ways, depending on which check boxes are checked. So the lights can be switched on or off, the 3d image can be shown using lines, hidden lines, or in the normal surface view. Checking the save box will start saving of each images displayed. With this feature a series of BMP images for movies can be created. Checking the ''Box'' box will draw a 3d box with x,y,z axes in the 3dimage.In the light sources field the angle of the light source can be changed. Apart from a directed diffuse light source ambient lighting can be added.&lt;br /&gt;
&lt;br /&gt;
Under the menue item Color the color of the background and of the lines can be changed.&lt;br /&gt;
Morover the image can be copied to the clipboard (in BMP format), to a new window or the data can be exported in PoVRay format. &lt;br /&gt;
(New List means that a new imagedisplaylist is created for the underlying OPENGL rendering program. This usually done automatically)&lt;br /&gt;
&lt;br /&gt;
Selected views can be saved and are saved with the program.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;&amp;quot; widths=&amp;quot;450px&amp;quot; heights=&amp;quot;300px&amp;quot;&amp;gt;&lt;br /&gt;
File:clip3dcontrol.png&lt;br /&gt;
File:clip3dform.png&lt;br /&gt;
&lt;br /&gt;
[[File:clip3dcontrol.png]]&lt;br /&gt;
[[File:clip3dform.png]]&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Lateral Manipulation ==&lt;br /&gt;
&lt;br /&gt;
To perform a lateral manipulation with the tip one has first to press the Button ''LM'' and then to select the starting and the final position of the manipulation path by selecting these points in the image with the left mouse button. A thin line is drawn on the screen between these points. After the manipulation is completed a separate window opens up where the tip height and current during the manipulation is displayed. By pressing the save button this data set can be saved in a *.LAT File.&lt;br /&gt;
&lt;br /&gt;
Different kinds of manipulation procedures can be performed. They are selected by choosing a certain manipulation mode number in the manipulation parameter field. These different modes are described in the following. The speed of the tip is controlled by the parameters latmandelay and latmanddx, which are used throughout the whole process and not only when the tip is manipulating.&lt;br /&gt;
&lt;br /&gt;
Mode 1: This is the simplest constant current mode manipulation. Starting from the top of the image the tip moves in a straight line to the starting point of the manipulation using the standard feedback parameters used for imaging. Then the feedback parameters are switched to the ones selected in the lateral manipulation parameter set . These are current, voltage and gain of the preamplifier. Then the tip moves using these manipulation parameters to the final position. There the parameters are set back to their original imaging values and the tip moves back to top of the image.&lt;br /&gt;
&lt;br /&gt;
Mode 2: Similar to mode 1, but the tip moves first to the final position, then starts the manipulation to the starting position and goes back to final position. It switches back to imaging parameters and moves to the top of the image.&lt;br /&gt;
&lt;br /&gt;
Mode3: Similar to mode 1: The tip first moves to the starting point. Then it moves to final position and back to the starting position using the normal imaging parameters, but the tip height and current are recorded during these two scans. Then the parameters are switched to the manipulation parameters and the tip moves to the final position. Then the parameters are changed back to the imaging parameters and the tip moves back to the starting position while again recording the tip height and current. Finally the tip moves to the top of the image.&lt;br /&gt;
&lt;br /&gt;
Mode 4: This is a constant height manipulation mode. The tip moves first to the starting position. Then it moves from the starting to the final position and back taking data in normal imaging mode. Then the feedback is switched off and the tip moves from the starting to the final position in constant height mode. The height used is given by the height of the tip when the feedbackloop is switched off plus the additional offset given by latmanccdz. This means that the height depends on the imaging parameters. Then the tip moves back from the final position to the starting position in imaging mode, but taking data again. Finally the tip moves to the top of the image. With the extension factor the manipulation path can be extended at the final position by the factor given by latmanextlextension. The starting point is not affected by the extension factor.&lt;br /&gt;
&lt;br /&gt;
Mode 5: Similar to mode 4. In this mode the extension affects also the starting position. The extension positions are first calculated. The tip moves in imaging mode to extended starting position. Then moves to the final extended position and backward and takes data in imaging mode. Then the tip moves to the starting position, while taking data in imaging mode. Then the tip moves from the starting position to the final position in constant height manipulation mode. Then it moves back to the starting position in imaging mode and takes data. Finally it moves back to the top of the image.&lt;br /&gt;
&lt;br /&gt;
Mode 6: Similar to mode 5. The only difference is that the tip moves from the starting to the final position and backward in constant height mode and not only in the forward direction, as done in mode 5.&lt;br /&gt;
&lt;br /&gt;
Mode 0: This mode is different from the other modes. In mode 0 the tip follows always the mouse position immediately. The height of the tip is displayed on rate meter appearing on the left. By pressing the upper case L key the imaging parameters are switched to the manipulation parameters and back again. (By pressing the upper case S a small 64 pixel * 64 pixel scan is performed.) Clicking with the mouse button will stop the continuous following of the tip. After additional clicking the tip moves to the new mouse position in a straight line and tracks the mouse position again.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
These parameters control the lateral manipulation processes.&lt;br /&gt;
&lt;br /&gt;
Mode&lt;br /&gt;
Select one of several different manipulation modes. There are constant current and constant height modes. For example P0 is the origin of the image. Then the tip moves to P1, the first point selected with the mouse. The tunneling parameters are changed to manipulation parameters and the tip moves from P1 to P2. There the normal tunneling parameters, used for imaging, are selected again and the tip moves to the origin P0.&lt;br /&gt;
&lt;br /&gt;
Voltage[V]&lt;br /&gt;
The tunneling voltage applied during the manipulation phase.&lt;br /&gt;
&lt;br /&gt;
Current[nA]&lt;br /&gt;
The current used during manipulation&lt;br /&gt;
&lt;br /&gt;
Gain preamplifier&lt;br /&gt;
The gain used during manipulation&lt;br /&gt;
&lt;br /&gt;
Manip. Speed[Å/sec]&lt;br /&gt;
The speed of the tip for lateral movements. Used for all movements. Step Size determines the number points measured during a lat. manip. scan.&lt;br /&gt;
&lt;br /&gt;
Extension&lt;br /&gt;
Extension value for manipulation modes 4-6&lt;br /&gt;
&lt;br /&gt;
Const. Height Z-Offset&lt;br /&gt;
In constant height mode the tip sample distance can be varied by this parameters. Positive values [Å} correspond to a closer approach to the surface.&lt;br /&gt;
&lt;br /&gt;
Channels&lt;br /&gt;
Select the channels acquired during data acquisition&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
LatChannelForm&lt;br /&gt;
Press to open a new Form to display the manipulation data.&lt;br /&gt;
&lt;br /&gt;
Lateral Speed [Å/sec]&lt;br /&gt;
Speed at which the tip is moving from the origin to first starting point&lt;br /&gt;
&lt;br /&gt;
LM in old place&lt;br /&gt;
Repeat the LM using the previous coordinates&lt;br /&gt;
&lt;br /&gt;
Load Ext Lat Par&lt;br /&gt;
Load the lateral manipulation cooordinates from an external file.&lt;br /&gt;
&lt;br /&gt;
[[file:cliplatmanip.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The measured data is displayed in separate windows. X and Y scaling can be adjusted by the user. Two independent axis can be displayed. (Press ''2.Axis'')&lt;br /&gt;
''LP'' Low Pass Filter&lt;br /&gt;
''TP'' Makes the Windows transparent to put it on top of another window.&lt;br /&gt;
&lt;br /&gt;
[[file:cliplmanip.png]]&lt;br /&gt;
&lt;br /&gt;
Right click to open the Popupmenu.&lt;br /&gt;
XYDesign, XY Series Edit allows to change the appearance of the Data&lt;br /&gt;
Copyclipboard.. copies the Plot or the Data into the clipboard&lt;br /&gt;
PrintXYGraph prints the XY Plot&lt;br /&gt;
Measure allows measuring the distance between points in the plot&lt;br /&gt;
AutoUpdate: The Plot is updated every second during Data Acquisition. &lt;br /&gt;
Lowpass filters the data (very simple just nearest neighbor average)&lt;br /&gt;
 &lt;br /&gt;
[[file:clipvertmanip_popupmenu1.png]]&lt;br /&gt;
&lt;br /&gt;
== Vertical Manipulation / I/V Spectroscopy ==&lt;br /&gt;
&lt;br /&gt;
Vertical manipulation (spectroscopy) is started by pressing on the ''VM'' button and selecting a point in the image by clicking with the left mouse button. The tip uses the lateral speed value to move to the vertical manipulation position. When the manipulation is finished the measured data appears in a separate window and can be saved with the Save button. Different channels can be selected to be recorded. Usually an external Lockin will be connected to ADC1. The internal Lockin supplies the signals dI/dV, d2I/dV2, di_q,d2_q. The form of the voltage and the z-height ramp is controlled by 8 points in time. In the case of the voltage one can define 8 time points and their corresponding voltage value. For example (0,1000), (256,0), (512,2000),(1024,-1000) define a ramp starting with 1000mV at time 0. Then it will be linear interpolated to time 256 with 0 Volt. Then it goes up again to 2000mV at time 512 and finally reaches -1000mV at time 1024. The time values correspond to the number of points taken. In this case these are 1024 points. A maximum of 100000 points is possible. The z-height values already include the gain of the z-amplifier. This means, that changing the HV gain will not change the z-height ramp, because this will be automatically corrected. Vertspecback = 1 will apply the ramp in forward and backward direction. Vertspecback=n will apply the ramp in forward and backward direction n-times (n&amp;gt;=1). The shape of the ramps is shown in the lower graph in the vertical manipulation window. &lt;br /&gt;
&lt;br /&gt;
Vertical spectroscopy can be done during scanning. Press the VM Button and select a point in the unscanned image area.  &lt;br /&gt;
&lt;br /&gt;
These parameters control the vertical manipulation and spectroscopy&lt;br /&gt;
&lt;br /&gt;
Gain preamplifier&lt;br /&gt;
Gain of the preamplifier during data acquisition&lt;br /&gt;
&lt;br /&gt;
Speclenght[sec]&lt;br /&gt;
Select the recording total time of the spectrum.&lt;br /&gt;
&lt;br /&gt;
Spectrum backward&lt;br /&gt;
0: The Spectrum defined in the V,Z table is taken only once.&lt;br /&gt;
1: The spectrum defined in the V,Z table is taken once in forward and once in backward direction&lt;br /&gt;
&amp;gt;1: Defines how often a forward and backward spectrum is taken&lt;br /&gt;
&lt;br /&gt;
Lateral Speed[Å/sec]&lt;br /&gt;
Speed at which the tip moves to the place where the spectrum will be taken.&lt;br /&gt;
&lt;br /&gt;
Z- Offset&lt;br /&gt;
Defines an additonal offset which is added to the z values in the table&lt;br /&gt;
&lt;br /&gt;
Z-Drift&lt;br /&gt;
Defines an increment which is added to the values in the table to compensate drift effects&lt;br /&gt;
&lt;br /&gt;
Repeat Count&lt;br /&gt;
Defines how many separate spectra are taken and stored.&lt;br /&gt;
&lt;br /&gt;
Spectra/Line&lt;br /&gt;
Defines the number of spectra equally spaced along a line between a start and endpoint,selected by mouse input.&lt;br /&gt;
The first spectrum is taken at the startpoint of the line the last one at the endpoint of the line.  &lt;br /&gt;
&lt;br /&gt;
V,Z table&lt;br /&gt;
4 points can be defined to create a voltage and z table used for vertical manipulation and spectroscopy. The data values are plotted in the graph below. The first Time Value should be set to 1 (not 0, still allowed for compatibility), otherwise the first value might not be displayed.&lt;br /&gt;
(Voltage(green), Z-Position(blue))&lt;br /&gt;
&lt;br /&gt;
Spec_X_Grid&lt;br /&gt;
Spec_Y_Grid&lt;br /&gt;
Determine the spacing of the spectroscopy grid. First spectrum position is (spec_x_grid,spec_y_grid) in pixel coordinates.&lt;br /&gt;
&lt;br /&gt;
SGrid_Channel&lt;br /&gt;
Number of channels recorded during the grid spectroscopy mode&lt;br /&gt;
&lt;br /&gt;
SpecGrid_Delay&lt;br /&gt;
Delay in DSP cycle units added before/after a vertical spectrum is started/finished.&lt;br /&gt;
&lt;br /&gt;
SpecAvrgCount&lt;br /&gt;
Number of Spectra acquired and averaged directly on the DSP board. For Count&amp;gt;1 be aware that the current preamplifier gain for vertical spectroscopy will be set the same to the normal preamplifer gain. Between the spectra the feedback loop will be switched on to readjust the sample tip distance.   &lt;br /&gt;
&lt;br /&gt;
SpecAvrgFBDelay  &lt;br /&gt;
On Time of the Feedback loop in DSP cycle units between spectra in Averaging mode.&lt;br /&gt;
&lt;br /&gt;
Save File&lt;br /&gt;
Save the present Vert. Spektrum&lt;br /&gt;
&lt;br /&gt;
Single_Spectrum&lt;br /&gt;
Take one single spectrum. Select the position with a left mouse button click on the image.&lt;br /&gt;
Same like pressing &amp;lt;VM&amp;gt; button&lt;br /&gt;
&lt;br /&gt;
Spectra along Line&lt;br /&gt;
Take a series of spectra equally spaced a long a line defined by two mouse clicks. &lt;br /&gt;
&lt;br /&gt;
Spec in old Place&lt;br /&gt;
Take a spectrum at the X,Y position of the previous scan.&lt;br /&gt;
&lt;br /&gt;
Multiple Spectra&lt;br /&gt;
Select several spectra taken one after the other. Left Mouse button select another spectrum, right mosue button stop selection and start data acquisition.&lt;br /&gt;
&lt;br /&gt;
MultSpec from File&lt;br /&gt;
Use an external file (Ascii) to define a series of spectra.&lt;br /&gt;
Only 256*256 pixel images allowed. No zoom.  First line contains number of spectra. Each following line contains the x y image coordinates(integer) of each spectrum. &lt;br /&gt;
&lt;br /&gt;
Spectra on Grid&lt;br /&gt;
Spectra taken at each grid position. (Analysis of the Grid data is done in another program)&lt;br /&gt;
&lt;br /&gt;
SaveSpecgrid&lt;br /&gt;
Save the Grid File. Two files are saved. One *.specgrid.dat File with all the parameters and the *.specgrid File with the grid data&lt;br /&gt;
&lt;br /&gt;
VFB_Mode&lt;br /&gt;
Select the VoltageFeedbackMode&lt;br /&gt;
I(V,z): Normal Operation feedback loop is OFF&lt;br /&gt;
z(V): Constant current operation&lt;br /&gt;
&lt;br /&gt;
VFB_Current[nA]&lt;br /&gt;
Current setpoint used in z(V) Mode. FB_Channel has to be current.&lt;br /&gt;
&lt;br /&gt;
Load Vert_Params&lt;br /&gt;
Load only the parameter of a spectrum and not the data&lt;br /&gt;
&lt;br /&gt;
External VZ Data&lt;br /&gt;
If not checked the VZ Data for a spectrum are taken from the VZ-Table parameter.&lt;br /&gt;
If checked the VZData is taken from a different source table, which can be loaded from an external file.&lt;br /&gt;
This allows the user defined design of arbitrary VZ arrays of up to 100000 points. File format see below.  &lt;br /&gt;
&lt;br /&gt;
Filenames:&lt;br /&gt;
First Letter is the machinename, in case you have more than one LTSTM or you want to assign different users.&lt;br /&gt;
Followed by DATE.TIME.VERT. VERT is the standard fileextension.&lt;br /&gt;
In case you take repeated spectra in a point or take spectra along a line an additional &amp;quot;L#Number.R#Number.&amp;quot; indicator is added before&lt;br /&gt;
the VERT file extension. L indicates line position and R indicates the numbering in repeat mode.&lt;br /&gt;
&lt;br /&gt;
[[file:clipvertmanp.png]]&lt;br /&gt;
&lt;br /&gt;
The measured data is displayed in separate windows. X and Y scaling can be adjusted by the user. Two independent axis can be displayed. (Press ''2.Axis'')&lt;br /&gt;
''LP'' Low Pass Filter&lt;br /&gt;
''TP'' Makes the Windows transparent to put it on top of another window.&lt;br /&gt;
&lt;br /&gt;
[[file:clipvmanip.png]]&lt;br /&gt;
&lt;br /&gt;
Right click to open the Popupmenu.&lt;br /&gt;
XYDesign, XY Series Edit allows to change the appearance of the Data&lt;br /&gt;
Copyclipboard.. copies the Plot or the Data into the clipboard&lt;br /&gt;
PrintXYGraph prints the XY Plot&lt;br /&gt;
Measure allows measuring the distance between points in the plot&lt;br /&gt;
AutoUpdate: The Plot is updated every second during Data Acquisition. &lt;br /&gt;
Lowpass filters the data (very simple just nearest neighbor average)&lt;br /&gt;
 &lt;br /&gt;
[[file:clipvertmanip_popupmenu1.png]]&lt;br /&gt;
&lt;br /&gt;
== Slider ==&lt;br /&gt;
&lt;br /&gt;
Brightness and Contrast&lt;br /&gt;
Use the slider window to control the brightness and contrast of the image. The slider marked B adjusts the brightness of the image. The slider marked Z controls the contrast. Above both sliders the corresponding height range in (+/-)Å is displayed.So total height difference between black and white for example is two times the displayed value. On the right for multichannel images the channel, which is displayed can be selected. &lt;br /&gt;
&lt;br /&gt;
Biasvoltage&lt;br /&gt;
The polarity of the biasvoltage can be changed by pressing with the mouse on 'V' label, or by pressing the ''+''/ ''-'' keys. &lt;br /&gt;
&lt;br /&gt;
Press the right mouse button on the 'V' label to open a Popupmenu for the biasvoltage. &lt;br /&gt;
Three options exist:&lt;br /&gt;
SetBiasMinvolt:  If selected sets the current biasvoltage as the minimum biasvoltage.&lt;br /&gt;
SetBiasMaxvolt: If selected sets the current biasvoltage as the maximum biasvoltage.&lt;br /&gt;
This feature can be used to avoid tunneling outside a specific bias voltange range. i.e for example to limit the maximum biasvoltage to protect the tip, when using the silder.&lt;br /&gt;
&lt;br /&gt;
ResetBiasMinMax: If selected deletes the Min/Max values again.&lt;br /&gt;
 &lt;br /&gt;
Current&lt;br /&gt;
Press the right mouse button on the 'A' label to open a Popupmenu for the current. &lt;br /&gt;
&lt;br /&gt;
Log: logarithmic scaling of the current slider&lt;br /&gt;
Lin: linear scaling of the current slider&lt;br /&gt;
&lt;br /&gt;
Channels &lt;br /&gt;
Select the displayed channel. For Channel Nr.=  0 all channels are displayed.&lt;br /&gt;
&lt;br /&gt;
Zoom&lt;br /&gt;
Allowed zoom factors are x1, x2, x3, x4.&lt;br /&gt;
&lt;br /&gt;
Tip up/down&lt;br /&gt;
Press this button to fully retract or to approach the tip.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[file:clipslider.png]]&lt;br /&gt;
&lt;br /&gt;
The height of the slider window can be adjusted. This changes the height of the sliders simultaneously.&lt;br /&gt;
&lt;br /&gt;
== FFT Evaluation ==&lt;br /&gt;
&lt;br /&gt;
This part of the software allows use to analyse FFT transforms of the images. (Always crosscheck the results)&lt;br /&gt;
&lt;br /&gt;
[[file:clipfftevaluation.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Load Files ==&lt;br /&gt;
&lt;br /&gt;
Loading Files is done using the ''Open *.Dat'' menu item.&lt;br /&gt;
&lt;br /&gt;
You can define your own favorite directories in the Windows Places Bar region. (Use for example the TweakUI utility.)&lt;br /&gt;
&lt;br /&gt;
Options:&lt;br /&gt;
&lt;br /&gt;
Full Parameter Load:  Check to load all parameters, not only those relevant for the loaded file type. &lt;br /&gt;
 &lt;br /&gt;
Disable Warning: If checked no warning will be given when files are loaded in data acquisition.                               &lt;br /&gt;
             &lt;br /&gt;
&lt;br /&gt;
[[file:cliploadfile.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Open allows to select in running program or alternatively in a newly opened analysis program.&lt;br /&gt;
&lt;br /&gt;
[[file:cliploadfile2.png]]&lt;br /&gt;
&lt;br /&gt;
== AFM ==&lt;br /&gt;
&lt;br /&gt;
In the following we discuss the operation of the internal PLL system.&lt;br /&gt;
The internal PLL can operate up to 32kHz ( based on 16 samples per period at 512kHz max sample rate).&lt;br /&gt;
This usualy covers operation of standard quartz tuning fork sensors as the qPlus sensor.&lt;br /&gt;
(For higher frequencies optionally the Zurich Instruments PLL can be used externally.)&lt;br /&gt;
The input signal from the Preamplifier is connected to the ADC3 input of ADDA Board 2, while DAC5 of the same ADDA Board supplies the excitation signal. &lt;br /&gt;
&lt;br /&gt;
PLL Centerfreq: determines the center frequency of the PLL. (Change either by typing the number directly or increase/decrease by using the up/down/ page up/page down and both in combination with Shift key)&lt;br /&gt;
PLL-Ampl[nm]: Input the Set value of the Amplitude in nm when the Amplitude controller is on&lt;br /&gt;
PLL-Exc[V]: Input the Excitation value in Volt&lt;br /&gt;
PLL-Phase: Phase Shift of Exciation Signal. Has to be optimized const stable PLL operation&lt;br /&gt;
PLL F Range[+/-Hz]: PLL frequency tracking range. max. allowed deviation from center frequency&lt;br /&gt;
&lt;br /&gt;
PLL On: If selected operation of the PLL is switched on&lt;br /&gt;
Ampl Control: If selected Amplitude Control is switched on&lt;br /&gt;
Active Damping: If selected the Amplitude control can electronically damp the cantilever vibration&lt;br /&gt;
Ref Signal f: If selected DAC2 of the PLL board outputs a reference of the PLL frequency&lt;br /&gt;
Ref Signal 2f: If selected DAC2 of the PLL board outputs a reference of the 2nd harmonic of the PLL frequency&lt;br /&gt;
&lt;br /&gt;
P[Hz/Deg]: Proportional value of the PLL frequency controller&lt;br /&gt;
Int[Hz/deg/s]: Integrator value of the PLL frequency controller&lt;br /&gt;
LP Filter[Hz]: Value of the 4th order loop filter&lt;br /&gt;
P Ampl[V/nm]: Proportional part of the Ampl controller&lt;br /&gt;
LP Amp filter[Hz]: Loop filter of the Amp controller&lt;br /&gt;
df Post Filter[Hz]: Filters the PLL freq data finally before it is output to the STM feedback controller&lt;br /&gt;
&lt;br /&gt;
Sensor Cal[V/nm]: Calibrate the Preamp output in nm units&lt;br /&gt;
SRS Gain: Optionally include the SRS Preamp gain&lt;br /&gt;
&lt;br /&gt;
PLL FreqScan, PLL Phase Scan: Start a frequency or Phase Scan&lt;br /&gt;
Filter PLL_Scan: Filter the Scan Data. (simple 1.order lowpass). can be repeated to allow a beeter calculation of the Q factor etc.&lt;br /&gt;
Show Phase: Displays the phase. Has to be selected to calculate the Q Factor.&lt;br /&gt;
&lt;br /&gt;
Results: Automatic determination of CenterFreq and Q Factor&lt;br /&gt;
&lt;br /&gt;
ScancenterFreq, FreqSpan, ScanTime, ScanPoints: determines the properties of the Frequency Scan or PLL Phase Scan&lt;br /&gt;
&lt;br /&gt;
[[file:Resonance.png]]&lt;br /&gt;
&lt;br /&gt;
[[Category:stmafm_manual]]&lt;br /&gt;
&lt;br /&gt;
== 20 steps to successful AFM operation ==&lt;br /&gt;
&lt;br /&gt;
For a first setup of a functioning PLL useful for scanning in CC, CH or CF mode please refer to the following graphical guide.&lt;br /&gt;
&lt;br /&gt;
[[File:Folie2.PNG|800px]]&lt;br /&gt;
&lt;br /&gt;
[[File:Folie3.PNG|800px]]&lt;br /&gt;
&lt;br /&gt;
[[File:Folie4.PNG|800px]]&lt;br /&gt;
&lt;br /&gt;
[[File:Folie5.PNG|800px]]&lt;br /&gt;
&lt;br /&gt;
In order to start scanning please perform the following steps:&lt;br /&gt;
a) For constant current mode (CC, dynamic STM)&lt;br /&gt;
14. Approach the tip and observe the frequency shift changing from Δf=0 Hz to a finite negative value.&lt;br /&gt;
15. Select the channels ''dF'', ''Amplitude'' and ''Damping'' in the Parameter window in order to measure these signals.&lt;br /&gt;
16. Set the current setpoint to a finite value, i.e. e.g., 10 or 100 pA.&lt;br /&gt;
17. Start scanning in CC mode as you would do in STM mode.&lt;br /&gt;
&lt;br /&gt;
b) For constant force mode (CF, nc-AFM)&lt;br /&gt;
14. Change the feedback mode to ''LinAbs'' and the feedback channel to ''dF''.&lt;br /&gt;
15. Change the integrator value to e.g. -0.0003 or something in the same order of magnitude.&lt;br /&gt;
16. Select the channels ''dF'', ''Amplitude'' and ''Damping'' in the Parameter window.&lt;br /&gt;
17. Set the constant frequency setpoint to a value close to but a little bit smaller than the finite Δf value from above.&lt;br /&gt;
18. Start scanning in CF mode as you would do in STM mode.&lt;br /&gt;
19. Adjust the scanning speed and the integrator together with the amplitude and phase control of the tuning fork.&lt;br /&gt;
20. Observe the current signal and increase the setpoint in order to go closer to the surface.&lt;/div&gt;</summary>
		<author><name>Ltspm</name></author>	</entry>

	<entry>
		<id>http://spm-wiki.createc.de/index.php?title=Forms</id>
		<title>Forms</title>
		<link rel="alternate" type="text/html" href="http://spm-wiki.createc.de/index.php?title=Forms"/>
				<updated>2017-01-01T07:21:37Z</updated>
		
		<summary type="html">&lt;p&gt;Ltspm: /* Grid */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== LineScan ==&lt;br /&gt;
&lt;br /&gt;
Press the ''Lin'' Button to take a line scan of the image. First select two points of the image by pressing the left mouse button. The linescan&lt;br /&gt;
is displayed in the upper linegraph of the linescanform-window. To perform measurements on the linescan press the ''Measure'' button. &lt;br /&gt;
&lt;br /&gt;
Use the left mouse button to select a new point. With the right mouse button you can switch between points. Pressing the Shift button allows to move a whole line. Pressing the right mouse button together with the Shift button will switch to the prependicular averaging mode.&lt;br /&gt;
&lt;br /&gt;
Important: If the linescan form is opened through the menue selection first, all linescan data will be displayed always in the this particular window. Otherwise pressing the LIN button will always open a new window.&lt;br /&gt;
&lt;br /&gt;
Autosize&lt;br /&gt;
Selects automatic scaling of the linegraph&lt;br /&gt;
&lt;br /&gt;
Autolinebacksub&lt;br /&gt;
Selects automatic subtraction of linear background&lt;br /&gt;
&lt;br /&gt;
Line Display Trackbar&lt;br /&gt;
Move to show a line scan of a particular image line. A FFT of the selected line is shown in the lower line graph.(The number of points/line has to be a power of 2)&lt;br /&gt;
&lt;br /&gt;
Popup menu of upper linegraph&lt;br /&gt;
xydesign: Select to adjust the appearance of the line graph&lt;br /&gt;
CopyClipboardData: The line scan data are copied to the ClipBoard&lt;br /&gt;
CopyClipboardXYGraph: The line scan graph is copied to the ClipBoard&lt;br /&gt;
Printxygraph: The line scan graph is send to the printer&lt;br /&gt;
Measure: Do measurements of the plot data.&lt;br /&gt;
Redrawline: The line in the image is redrawn&lt;br /&gt;
&lt;br /&gt;
Popup menu of lower linegraph&lt;br /&gt;
has the same items as the upper popup menu and one additional entry:&lt;br /&gt;
Show Frequency: Gives the FFT in frequency [Hz] instead of inverse distance [1/Å] (updated when the Line Display Trackbar is moved)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Channels&lt;br /&gt;
Select the channels which are displayed&lt;br /&gt;
&lt;br /&gt;
[[file:cliplinescan.png]]&lt;br /&gt;
&lt;br /&gt;
[[file:cliplinescanpopupmenu.png]]&lt;br /&gt;
&lt;br /&gt;
== Rampcontroller ==&lt;br /&gt;
&lt;br /&gt;
Click on the ''Ramp'' button. This opens the 'Rampcontroller'-window with control elements necessary to perform the coarse approach. The 6 buttons with arrows in the top of the form correspond to moving the tip in respect to the sample surface. Moving in x/y direction can also be done using the x/y cursor keys on the keyboard. The page up and page down keys are used correspondingly for rotation up and down. Selecting the burst mode in x/y or rotation will result in a series of steps corresponding to the number of burst steps displayed in the ramp parameter list. When the Crash Protection is switched on, the program checks before each step, whether it can detect a tunneling current. If this is the case it will cancel the step. Usually the crash protection should be switched on, but in cases where the tip is already crashed, the protection has to be switched off. The program issues some warnings when the ramp windows opens to inform the user to do necessary changes for a successful ramping. These are: First retract the tip, reset the x- and y-offset in the STM-program, select the appropriate gain (1-10, depending on the temperature) in the x- and y- channel of the HV-amplifier and set the external offset voltages to zero.&lt;br /&gt;
The usual coarse approach is done by controlling the approach with an optical microscope. When the tip is  close enough, the automatic tip approach can be switched on, by pressing the ''Approach'' button. It will start a combination of single coarse approach rotation steps combined with tip approach testing until the tip can reach the sample. ''Approach'' stops when a tunneling current is detected. The value of this threshold current is set by the current slider. Important: When the approach stops, the tip is automatically retracted, by setting the current to zero. Before leaving the coarse approach by pressing the ''Quit'' button, you have to select the mode for scanning. When the ''Main/Coarse'' button displays 'Coarse' mode, then the outer 3 piezos are used for scanning, otherwise the center piezo is used. In the normal operation of the microscope the 'Coarse' mode should be selected. Select the required set point current to see if the approach was successful. Now the tip should be retracted manually by using the external HV-amplifier z-offset voltage to go out of tunneling. Select the required gains and re-approach the tip again.&lt;br /&gt;
&lt;br /&gt;
See also: Approach Tips&lt;br /&gt;
&lt;br /&gt;
The Coarse Approach operation is controlled by the following parameters:&lt;br /&gt;
&lt;br /&gt;
Puls Height[V]&lt;br /&gt;
Input the peak to peak height (in V) of the sawtooth pulse used for moving the inertial slider. Two different values are used for the lateral XY motion and the rotational motion.&lt;br /&gt;
&lt;br /&gt;
Puls-Duration[sec]&lt;br /&gt;
Input the duration of a single sawtooth pulse in seconds. &lt;br /&gt;
&lt;br /&gt;
Burst-Count&lt;br /&gt;
Determines the number of sawtooth pulses applied when operating the coarse control in burst mode.&lt;br /&gt;
&lt;br /&gt;
Approach Period[sec]&lt;br /&gt;
Determines the time for a single approach cycle including approach and retraction of the tip to find the sample surface.&lt;br /&gt;
&lt;br /&gt;
Approach Burst Count&lt;br /&gt;
This is the number of coarse pulses applied between two approach cycles.&lt;br /&gt;
&lt;br /&gt;
Approach Retry Count&lt;br /&gt;
This is the number of retry operations done before the approach is stopped.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[file:cliprampcontrollerCreatec.png]]&lt;br /&gt;
&lt;br /&gt;
== Grid ==&lt;br /&gt;
&lt;br /&gt;
The form 'Grid-Image- Transformation' contains several functions for different kinds of image transformations. A suitable combination of the procedures below will allow transformations useful for drift correction, superstructure analysis, extraction of registry information. To open the form press on the grid button in the STMAFM form. With the 6 slider controls a grid can be overlayed on the image. The lateral position, the angles of the grid and the distance between the grid lines can be adjusted. An alternative way to input the grid is pressing the ''Mouse'' button and to mark 3 points (the first one is the center, the other two determine the direction of the two lines). Pressing the ''Rotation'' button will rotate the image in such a way that one set of the grid lines (X-Axis) is parallel to the horizontal direction. Pressing the ''Zoom'' button will zoom the image by the value set in the edit control positioned next to the right of the button. The image is zoomed around the center point of the grid. By pressing on the ''X..,Y..'' button the actual center position of the grid is stored and displayed on the button. Selecting a new center position with the mouse, as described above, and pressing the ''Move grid to Center'' button will move the new defined center to the stored center position. The ''Transform'' button will transform the image according to the 2 Parameters in the edit controls below. The first is the new angle between the lines in the image and the second is the new ratio the grid line distances. Selecting the ''HexGrid'' check box will draw a grid suitable for hexagonal unit cells. If draw inverted is selected the grid is drawn by a inversion process. Otherwise you can select with &amp;lt;Grid Color&amp;gt; the line color of the grid.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;&amp;quot; widths=&amp;quot;450px&amp;quot; heights=&amp;quot;300px&amp;quot;&amp;gt;&lt;br /&gt;
File:clipgrid.png&lt;br /&gt;
File:clipgridimage.png&lt;br /&gt;
[[File:clipgrid.png]]&lt;br /&gt;
[[File:clipgridimage.png]]&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== TimeSpectrum ==&lt;br /&gt;
&lt;br /&gt;
It is very often useful to take a time record of the A/D input channels, without scanning or changing the biasvoltage. This is for example a convenient way to characterize the noise performance of the STM. To take a time record just press the ''Start'' Button on the Time-Spectrum window or press the ''TS'' button on the main window. Five channels are recorded simultaneously. The A/D channels 0 and 3 (ADC0 is called current I) and the topography signal output from the feedback loop, called Z. The displayed channel is selected by the corresponding channel button. Three parameters control the data acquisition:&lt;br /&gt;
&lt;br /&gt;
Spec_Points&lt;br /&gt;
The number of data points taken for a single spectrum. This must be a power of 2, to allow FFT of the data.&lt;br /&gt;
(Maximum is 4096)&lt;br /&gt;
&lt;br /&gt;
Spec_Freq[Hz]&lt;br /&gt;
The sampling frequency. (Limited by the DSP_Clock value)&lt;br /&gt;
&lt;br /&gt;
Spec_Avrg_Count&lt;br /&gt;
The number of spectra averaged. Averaging is done only for the spectrum, i.e. the FFT data.&lt;br /&gt;
&lt;br /&gt;
Channels&lt;br /&gt;
First select the check boxes to determine the channels which are acquired during data acquisition&lt;br /&gt;
Part of these channels can be further selected to be displayed.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The results are displayed in two line graphs.&lt;br /&gt;
The upper one shows the time behaviour. (The vertical scale is always in V)&lt;br /&gt;
The lower one shows the frequency spectrum. (The vertical scale on the left shows the peak to peak value of a pure sine component,&lt;br /&gt;
the right scale the rms amplitude for non correlated signals) &lt;br /&gt;
&lt;br /&gt;
The frequency resolution depends on the number of points and the sampling frequency.&lt;br /&gt;
Important: The current signal and the ADC1 signal are filtered by a first order digital filter, which is controlled by the same CurrentRC Parameter.   &lt;br /&gt;
The contents of the memo field is saved together with the file.&lt;br /&gt;
&lt;br /&gt;
In the lower right the AVRG Value and the Standard Deviation of the timespectra data are shown.&lt;br /&gt;
&lt;br /&gt;
Save&lt;br /&gt;
The data is saved in ASCII Format&lt;br /&gt;
&lt;br /&gt;
FFT logscale: Displays the Spectrum in LogScale&lt;br /&gt;
&lt;br /&gt;
Waterfall: Displays the time dependence of the Spectra in a Waterfall like mode at the bottom of the window&lt;br /&gt;
&lt;br /&gt;
[[file:cliptimespectrum.png]]&lt;br /&gt;
&lt;br /&gt;
== 3d-view ==&lt;br /&gt;
&lt;br /&gt;
This part of the program allows the display of 3d views of selected parts of the images. To start, open the window by clicking the ''3d View'' button. Then click on  &amp;lt;New Data&amp;gt; in the main menue and select a rectangular region on the image displayed in the STMAFM program.  A new form will be opened, where the rendered image is displayed. The sliders in the 3d-view form allow to change the orientation, size, offset and lighting of the 3d object. The 3d image can be displayed in different ways, depending on which check boxes are checked. So the lights can be switched on or off, the 3d image can be shown using lines, hidden lines, or in the normal surface view. Checking the save box will start saving of each images displayed. With this feature a series of BMP images for movies can be created. Checking the ''Box'' box will draw a 3d box with x,y,z axes in the 3dimage.In the light sources field the angle of the light source can be changed. Apart from a directed diffuse light source ambient lighting can be added.&lt;br /&gt;
&lt;br /&gt;
Under the menue item Color the color of the background and of the lines can be changed.&lt;br /&gt;
Morover the image can be copied to the clipboard (in BMP format), to a new window or the data can be exported in PoVRay format. &lt;br /&gt;
(New List means that a new imagedisplaylist is created for the underlying OPENGL rendering program. This usually done automatically)&lt;br /&gt;
&lt;br /&gt;
Selected views can be saved and are saved with the program.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;&amp;quot; widths=&amp;quot;450px&amp;quot; heights=&amp;quot;300px&amp;quot;&amp;gt;&lt;br /&gt;
file:clip3dcontrol.png&lt;br /&gt;
file:clip3dform.png&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Lateral Manipulation ==&lt;br /&gt;
&lt;br /&gt;
To perform a lateral manipulation with the tip one has first to press the Button ''LM'' and then to select the starting and the final position of the manipulation path by selecting these points in the image with the left mouse button. A thin line is drawn on the screen between these points. After the manipulation is completed a separate window opens up where the tip height and current during the manipulation is displayed. By pressing the save button this data set can be saved in a *.LAT File.&lt;br /&gt;
&lt;br /&gt;
Different kinds of manipulation procedures can be performed. They are selected by choosing a certain manipulation mode number in the manipulation parameter field. These different modes are described in the following. The speed of the tip is controlled by the parameters latmandelay and latmanddx, which are used throughout the whole process and not only when the tip is manipulating.&lt;br /&gt;
&lt;br /&gt;
Mode 1: This is the simplest constant current mode manipulation. Starting from the top of the image the tip moves in a straight line to the starting point of the manipulation using the standard feedback parameters used for imaging. Then the feedback parameters are switched to the ones selected in the lateral manipulation parameter set . These are current, voltage and gain of the preamplifier. Then the tip moves using these manipulation parameters to the final position. There the parameters are set back to their original imaging values and the tip moves back to top of the image.&lt;br /&gt;
&lt;br /&gt;
Mode 2: Similar to mode 1, but the tip moves first to the final position, then starts the manipulation to the starting position and goes back to final position. It switches back to imaging parameters and moves to the top of the image.&lt;br /&gt;
&lt;br /&gt;
Mode3: Similar to mode 1: The tip first moves to the starting point. Then it moves to final position and back to the starting position using the normal imaging parameters, but the tip height and current are recorded during these two scans. Then the parameters are switched to the manipulation parameters and the tip moves to the final position. Then the parameters are changed back to the imaging parameters and the tip moves back to the starting position while again recording the tip height and current. Finally the tip moves to the top of the image.&lt;br /&gt;
&lt;br /&gt;
Mode 4: This is a constant height manipulation mode. The tip moves first to the starting position. Then it moves from the starting to the final position and back taking data in normal imaging mode. Then the feedback is switched off and the tip moves from the starting to the final position in constant height mode. The height used is given by the height of the tip when the feedbackloop is switched off plus the additional offset given by latmanccdz. This means that the height depends on the imaging parameters. Then the tip moves back from the final position to the starting position in imaging mode, but taking data again. Finally the tip moves to the top of the image. With the extension factor the manipulation path can be extended at the final position by the factor given by latmanextlextension. The starting point is not affected by the extension factor.&lt;br /&gt;
&lt;br /&gt;
Mode 5: Similar to mode 4. In this mode the extension affects also the starting position. The extension positions are first calculated. The tip moves in imaging mode to extended starting position. Then moves to the final extended position and backward and takes data in imaging mode. Then the tip moves to the starting position, while taking data in imaging mode. Then the tip moves from the starting position to the final position in constant height manipulation mode. Then it moves back to the starting position in imaging mode and takes data. Finally it moves back to the top of the image.&lt;br /&gt;
&lt;br /&gt;
Mode 6: Similar to mode 5. The only difference is that the tip moves from the starting to the final position and backward in constant height mode and not only in the forward direction, as done in mode 5.&lt;br /&gt;
&lt;br /&gt;
Mode 0: This mode is different from the other modes. In mode 0 the tip follows always the mouse position immediately. The height of the tip is displayed on rate meter appearing on the left. By pressing the upper case L key the imaging parameters are switched to the manipulation parameters and back again. (By pressing the upper case S a small 64 pixel * 64 pixel scan is performed.) Clicking with the mouse button will stop the continuous following of the tip. After additional clicking the tip moves to the new mouse position in a straight line and tracks the mouse position again.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
These parameters control the lateral manipulation processes.&lt;br /&gt;
&lt;br /&gt;
Mode&lt;br /&gt;
Select one of several different manipulation modes. There are constant current and constant height modes. For example P0 is the origin of the image. Then the tip moves to P1, the first point selected with the mouse. The tunneling parameters are changed to manipulation parameters and the tip moves from P1 to P2. There the normal tunneling parameters, used for imaging, are selected again and the tip moves to the origin P0.&lt;br /&gt;
&lt;br /&gt;
Voltage[V]&lt;br /&gt;
The tunneling voltage applied during the manipulation phase.&lt;br /&gt;
&lt;br /&gt;
Current[nA]&lt;br /&gt;
The current used during manipulation&lt;br /&gt;
&lt;br /&gt;
Gain preamplifier&lt;br /&gt;
The gain used during manipulation&lt;br /&gt;
&lt;br /&gt;
Manip. Speed[Å/sec]&lt;br /&gt;
The speed of the tip for lateral movements. Used for all movements. Step Size determines the number points measured during a lat. manip. scan.&lt;br /&gt;
&lt;br /&gt;
Extension&lt;br /&gt;
Extension value for manipulation modes 4-6&lt;br /&gt;
&lt;br /&gt;
Const. Height Z-Offset&lt;br /&gt;
In constant height mode the tip sample distance can be varied by this parameters. Positive values [Å} correspond to a closer approach to the surface.&lt;br /&gt;
&lt;br /&gt;
Channels&lt;br /&gt;
Select the channels acquired during data acquisition&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
LatChannelForm&lt;br /&gt;
Press to open a new Form to display the manipulation data.&lt;br /&gt;
&lt;br /&gt;
Lateral Speed [Å/sec]&lt;br /&gt;
Speed at which the tip is moving from the origin to first starting point&lt;br /&gt;
&lt;br /&gt;
LM in old place&lt;br /&gt;
Repeat the LM using the previous coordinates&lt;br /&gt;
&lt;br /&gt;
Load Ext Lat Par&lt;br /&gt;
Load the lateral manipulation cooordinates from an external file.&lt;br /&gt;
&lt;br /&gt;
[[file:cliplatmanip.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The measured data is displayed in separate windows. X and Y scaling can be adjusted by the user. Two independent axis can be displayed. (Press ''2.Axis'')&lt;br /&gt;
''LP'' Low Pass Filter&lt;br /&gt;
''TP'' Makes the Windows transparent to put it on top of another window.&lt;br /&gt;
&lt;br /&gt;
[[file:cliplmanip.png]]&lt;br /&gt;
&lt;br /&gt;
Right click to open the Popupmenu.&lt;br /&gt;
XYDesign, XY Series Edit allows to change the appearance of the Data&lt;br /&gt;
Copyclipboard.. copies the Plot or the Data into the clipboard&lt;br /&gt;
PrintXYGraph prints the XY Plot&lt;br /&gt;
Measure allows measuring the distance between points in the plot&lt;br /&gt;
AutoUpdate: The Plot is updated every second during Data Acquisition. &lt;br /&gt;
Lowpass filters the data (very simple just nearest neighbor average)&lt;br /&gt;
 &lt;br /&gt;
[[file:clipvertmanip_popupmenu1.png]]&lt;br /&gt;
&lt;br /&gt;
== Vertical Manipulation / I/V Spectroscopy ==&lt;br /&gt;
&lt;br /&gt;
Vertical manipulation (spectroscopy) is started by pressing on the ''VM'' button and selecting a point in the image by clicking with the left mouse button. The tip uses the lateral speed value to move to the vertical manipulation position. When the manipulation is finished the measured data appears in a separate window and can be saved with the Save button. Different channels can be selected to be recorded. Usually an external Lockin will be connected to ADC1. The internal Lockin supplies the signals dI/dV, d2I/dV2, di_q,d2_q. The form of the voltage and the z-height ramp is controlled by 8 points in time. In the case of the voltage one can define 8 time points and their corresponding voltage value. For example (0,1000), (256,0), (512,2000),(1024,-1000) define a ramp starting with 1000mV at time 0. Then it will be linear interpolated to time 256 with 0 Volt. Then it goes up again to 2000mV at time 512 and finally reaches -1000mV at time 1024. The time values correspond to the number of points taken. In this case these are 1024 points. A maximum of 100000 points is possible. The z-height values already include the gain of the z-amplifier. This means, that changing the HV gain will not change the z-height ramp, because this will be automatically corrected. Vertspecback = 1 will apply the ramp in forward and backward direction. Vertspecback=n will apply the ramp in forward and backward direction n-times (n&amp;gt;=1). The shape of the ramps is shown in the lower graph in the vertical manipulation window. &lt;br /&gt;
&lt;br /&gt;
Vertical spectroscopy can be done during scanning. Press the VM Button and select a point in the unscanned image area.  &lt;br /&gt;
&lt;br /&gt;
These parameters control the vertical manipulation and spectroscopy&lt;br /&gt;
&lt;br /&gt;
Gain preamplifier&lt;br /&gt;
Gain of the preamplifier during data acquisition&lt;br /&gt;
&lt;br /&gt;
Speclenght[sec]&lt;br /&gt;
Select the recording total time of the spectrum.&lt;br /&gt;
&lt;br /&gt;
Spectrum backward&lt;br /&gt;
0: The Spectrum defined in the V,Z table is taken only once.&lt;br /&gt;
1: The spectrum defined in the V,Z table is taken once in forward and once in backward direction&lt;br /&gt;
&amp;gt;1: Defines how often a forward and backward spectrum is taken&lt;br /&gt;
&lt;br /&gt;
Lateral Speed[Å/sec]&lt;br /&gt;
Speed at which the tip moves to the place where the spectrum will be taken.&lt;br /&gt;
&lt;br /&gt;
Z- Offset&lt;br /&gt;
Defines an additonal offset which is added to the z values in the table&lt;br /&gt;
&lt;br /&gt;
Z-Drift&lt;br /&gt;
Defines an increment which is added to the values in the table to compensate drift effects&lt;br /&gt;
&lt;br /&gt;
Repeat Count&lt;br /&gt;
Defines how many separate spectra are taken and stored.&lt;br /&gt;
&lt;br /&gt;
Spectra/Line&lt;br /&gt;
Defines the number of spectra equally spaced along a line between a start and endpoint,selected by mouse input.&lt;br /&gt;
The first spectrum is taken at the startpoint of the line the last one at the endpoint of the line.  &lt;br /&gt;
&lt;br /&gt;
V,Z table&lt;br /&gt;
4 points can be defined to create a voltage and z table used for vertical manipulation and spectroscopy. The data values are plotted in the graph below. The first Time Value should be set to 1 (not 0, still allowed for compatibility), otherwise the first value might not be displayed.&lt;br /&gt;
(Voltage(green), Z-Position(blue))&lt;br /&gt;
&lt;br /&gt;
Spec_X_Grid&lt;br /&gt;
Spec_Y_Grid&lt;br /&gt;
Determine the spacing of the spectroscopy grid. First spectrum position is (spec_x_grid,spec_y_grid) in pixel coordinates.&lt;br /&gt;
&lt;br /&gt;
SGrid_Channel&lt;br /&gt;
Number of channels recorded during the grid spectroscopy mode&lt;br /&gt;
&lt;br /&gt;
SpecGrid_Delay&lt;br /&gt;
Delay in DSP cycle units added before/after a vertical spectrum is started/finished.&lt;br /&gt;
&lt;br /&gt;
SpecAvrgCount&lt;br /&gt;
Number of Spectra acquired and averaged directly on the DSP board. For Count&amp;gt;1 be aware that the current preamplifier gain for vertical spectroscopy will be set the same to the normal preamplifer gain. Between the spectra the feedback loop will be switched on to readjust the sample tip distance.   &lt;br /&gt;
&lt;br /&gt;
SpecAvrgFBDelay  &lt;br /&gt;
On Time of the Feedback loop in DSP cycle units between spectra in Averaging mode.&lt;br /&gt;
&lt;br /&gt;
Save File&lt;br /&gt;
Save the present Vert. Spektrum&lt;br /&gt;
&lt;br /&gt;
Single_Spectrum&lt;br /&gt;
Take one single spectrum. Select the position with a left mouse button click on the image.&lt;br /&gt;
Same like pressing &amp;lt;VM&amp;gt; button&lt;br /&gt;
&lt;br /&gt;
Spectra along Line&lt;br /&gt;
Take a series of spectra equally spaced a long a line defined by two mouse clicks. &lt;br /&gt;
&lt;br /&gt;
Spec in old Place&lt;br /&gt;
Take a spectrum at the X,Y position of the previous scan.&lt;br /&gt;
&lt;br /&gt;
Multiple Spectra&lt;br /&gt;
Select several spectra taken one after the other. Left Mouse button select another spectrum, right mosue button stop selection and start data acquisition.&lt;br /&gt;
&lt;br /&gt;
MultSpec from File&lt;br /&gt;
Use an external file (Ascii) to define a series of spectra.&lt;br /&gt;
Only 256*256 pixel images allowed. No zoom.  First line contains number of spectra. Each following line contains the x y image coordinates(integer) of each spectrum. &lt;br /&gt;
&lt;br /&gt;
Spectra on Grid&lt;br /&gt;
Spectra taken at each grid position. (Analysis of the Grid data is done in another program)&lt;br /&gt;
&lt;br /&gt;
SaveSpecgrid&lt;br /&gt;
Save the Grid File. Two files are saved. One *.specgrid.dat File with all the parameters and the *.specgrid File with the grid data&lt;br /&gt;
&lt;br /&gt;
VFB_Mode&lt;br /&gt;
Select the VoltageFeedbackMode&lt;br /&gt;
I(V,z): Normal Operation feedback loop is OFF&lt;br /&gt;
z(V): Constant current operation&lt;br /&gt;
&lt;br /&gt;
VFB_Current[nA]&lt;br /&gt;
Current setpoint used in z(V) Mode. FB_Channel has to be current.&lt;br /&gt;
&lt;br /&gt;
Load Vert_Params&lt;br /&gt;
Load only the parameter of a spectrum and not the data&lt;br /&gt;
&lt;br /&gt;
External VZ Data&lt;br /&gt;
If not checked the VZ Data for a spectrum are taken from the VZ-Table parameter.&lt;br /&gt;
If checked the VZData is taken from a different source table, which can be loaded from an external file.&lt;br /&gt;
This allows the user defined design of arbitrary VZ arrays of up to 100000 points. File format see below.  &lt;br /&gt;
&lt;br /&gt;
Filenames:&lt;br /&gt;
First Letter is the machinename, in case you have more than one LTSTM or you want to assign different users.&lt;br /&gt;
Followed by DATE.TIME.VERT. VERT is the standard fileextension.&lt;br /&gt;
In case you take repeated spectra in a point or take spectra along a line an additional &amp;quot;L#Number.R#Number.&amp;quot; indicator is added before&lt;br /&gt;
the VERT file extension. L indicates line position and R indicates the numbering in repeat mode.&lt;br /&gt;
&lt;br /&gt;
[[file:clipvertmanp.png]]&lt;br /&gt;
&lt;br /&gt;
The measured data is displayed in separate windows. X and Y scaling can be adjusted by the user. Two independent axis can be displayed. (Press ''2.Axis'')&lt;br /&gt;
''LP'' Low Pass Filter&lt;br /&gt;
''TP'' Makes the Windows transparent to put it on top of another window.&lt;br /&gt;
&lt;br /&gt;
[[file:clipvmanip.png]]&lt;br /&gt;
&lt;br /&gt;
Right click to open the Popupmenu.&lt;br /&gt;
XYDesign, XY Series Edit allows to change the appearance of the Data&lt;br /&gt;
Copyclipboard.. copies the Plot or the Data into the clipboard&lt;br /&gt;
PrintXYGraph prints the XY Plot&lt;br /&gt;
Measure allows measuring the distance between points in the plot&lt;br /&gt;
AutoUpdate: The Plot is updated every second during Data Acquisition. &lt;br /&gt;
Lowpass filters the data (very simple just nearest neighbor average)&lt;br /&gt;
 &lt;br /&gt;
[[file:clipvertmanip_popupmenu1.png]]&lt;br /&gt;
&lt;br /&gt;
== Slider ==&lt;br /&gt;
&lt;br /&gt;
Brightness and Contrast&lt;br /&gt;
Use the slider window to control the brightness and contrast of the image. The slider marked B adjusts the brightness of the image. The slider marked Z controls the contrast. Above both sliders the corresponding height range in (+/-)Å is displayed.So total height difference between black and white for example is two times the displayed value. On the right for multichannel images the channel, which is displayed can be selected. &lt;br /&gt;
&lt;br /&gt;
Biasvoltage&lt;br /&gt;
The polarity of the biasvoltage can be changed by pressing with the mouse on 'V' label, or by pressing the ''+''/ ''-'' keys. &lt;br /&gt;
&lt;br /&gt;
Press the right mouse button on the 'V' label to open a Popupmenu for the biasvoltage. &lt;br /&gt;
Three options exist:&lt;br /&gt;
SetBiasMinvolt:  If selected sets the current biasvoltage as the minimum biasvoltage.&lt;br /&gt;
SetBiasMaxvolt: If selected sets the current biasvoltage as the maximum biasvoltage.&lt;br /&gt;
This feature can be used to avoid tunneling outside a specific bias voltange range. i.e for example to limit the maximum biasvoltage to protect the tip, when using the silder.&lt;br /&gt;
&lt;br /&gt;
ResetBiasMinMax: If selected deletes the Min/Max values again.&lt;br /&gt;
 &lt;br /&gt;
Current&lt;br /&gt;
Press the right mouse button on the 'A' label to open a Popupmenu for the current. &lt;br /&gt;
&lt;br /&gt;
Log: logarithmic scaling of the current slider&lt;br /&gt;
Lin: linear scaling of the current slider&lt;br /&gt;
&lt;br /&gt;
Channels &lt;br /&gt;
Select the displayed channel. For Channel Nr.=  0 all channels are displayed.&lt;br /&gt;
&lt;br /&gt;
Zoom&lt;br /&gt;
Allowed zoom factors are x1, x2, x3, x4.&lt;br /&gt;
&lt;br /&gt;
Tip up/down&lt;br /&gt;
Press this button to fully retract or to approach the tip.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[file:clipslider.png]]&lt;br /&gt;
&lt;br /&gt;
The height of the slider window can be adjusted. This changes the height of the sliders simultaneously.&lt;br /&gt;
&lt;br /&gt;
== FFT Evaluation ==&lt;br /&gt;
&lt;br /&gt;
This part of the software allows use to analyse FFT transforms of the images. (Always crosscheck the results)&lt;br /&gt;
&lt;br /&gt;
[[file:clipfftevaluation.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Load Files ==&lt;br /&gt;
&lt;br /&gt;
Loading Files is done using the ''Open *.Dat'' menu item.&lt;br /&gt;
&lt;br /&gt;
You can define your own favorite directories in the Windows Places Bar region. (Use for example the TweakUI utility.)&lt;br /&gt;
&lt;br /&gt;
Options:&lt;br /&gt;
&lt;br /&gt;
Full Parameter Load:  Check to load all parameters, not only those relevant for the loaded file type. &lt;br /&gt;
 &lt;br /&gt;
Disable Warning: If checked no warning will be given when files are loaded in data acquisition.                               &lt;br /&gt;
             &lt;br /&gt;
&lt;br /&gt;
[[file:cliploadfile.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Open allows to select in running program or alternatively in a newly opened analysis program.&lt;br /&gt;
&lt;br /&gt;
[[file:cliploadfile2.png]]&lt;br /&gt;
&lt;br /&gt;
== AFM ==&lt;br /&gt;
&lt;br /&gt;
In the following we discuss the operation of the internal PLL system.&lt;br /&gt;
The internal PLL can operate up to 32kHz ( based on 16 samples per period at 512kHz max sample rate).&lt;br /&gt;
This usualy covers operation of standard quartz tuning fork sensors as the qPlus sensor.&lt;br /&gt;
(For higher frequencies optionally the Zurich Instruments PLL can be used externally.)&lt;br /&gt;
The input signal from the Preamplifier is connected to the ADC3 input of ADDA Board 2, while DAC5 of the same ADDA Board supplies the excitation signal. &lt;br /&gt;
&lt;br /&gt;
PLL Centerfreq: determines the center frequency of the PLL. (Change either by typing the number directly or increase/decrease by using the up/down/ page up/page down and both in combination with Shift key)&lt;br /&gt;
PLL-Ampl[nm]: Input the Set value of the Amplitude in nm when the Amplitude controller is on&lt;br /&gt;
PLL-Exc[V]: Input the Excitation value in Volt&lt;br /&gt;
PLL-Phase: Phase Shift of Exciation Signal. Has to be optimized const stable PLL operation&lt;br /&gt;
PLL F Range[+/-Hz]: PLL frequency tracking range. max. allowed deviation from center frequency&lt;br /&gt;
&lt;br /&gt;
PLL On: If selected operation of the PLL is switched on&lt;br /&gt;
Ampl Control: If selected Amplitude Control is switched on&lt;br /&gt;
Active Damping: If selected the Amplitude control can electronically damp the cantilever vibration&lt;br /&gt;
Ref Signal f: If selected DAC2 of the PLL board outputs a reference of the PLL frequency&lt;br /&gt;
Ref Signal 2f: If selected DAC2 of the PLL board outputs a reference of the 2nd harmonic of the PLL frequency&lt;br /&gt;
&lt;br /&gt;
P[Hz/Deg]: Proportional value of the PLL frequency controller&lt;br /&gt;
Int[Hz/deg/s]: Integrator value of the PLL frequency controller&lt;br /&gt;
LP Filter[Hz]: Value of the 4th order loop filter&lt;br /&gt;
P Ampl[V/nm]: Proportional part of the Ampl controller&lt;br /&gt;
LP Amp filter[Hz]: Loop filter of the Amp controller&lt;br /&gt;
df Post Filter[Hz]: Filters the PLL freq data finally before it is output to the STM feedback controller&lt;br /&gt;
&lt;br /&gt;
Sensor Cal[V/nm]: Calibrate the Preamp output in nm units&lt;br /&gt;
SRS Gain: Optionally include the SRS Preamp gain&lt;br /&gt;
&lt;br /&gt;
PLL FreqScan, PLL Phase Scan: Start a frequency or Phase Scan&lt;br /&gt;
Filter PLL_Scan: Filter the Scan Data. (simple 1.order lowpass). can be repeated to allow a beeter calculation of the Q factor etc.&lt;br /&gt;
Show Phase: Displays the phase. Has to be selected to calculate the Q Factor.&lt;br /&gt;
&lt;br /&gt;
Results: Automatic determination of CenterFreq and Q Factor&lt;br /&gt;
&lt;br /&gt;
ScancenterFreq, FreqSpan, ScanTime, ScanPoints: determines the properties of the Frequency Scan or PLL Phase Scan&lt;br /&gt;
&lt;br /&gt;
[[file:Resonance.png]]&lt;br /&gt;
&lt;br /&gt;
[[Category:stmafm_manual]]&lt;br /&gt;
&lt;br /&gt;
== 20 steps to successful AFM operation ==&lt;br /&gt;
&lt;br /&gt;
For a first setup of a functioning PLL useful for scanning in CC, CH or CF mode please refer to the following graphical guide.&lt;br /&gt;
&lt;br /&gt;
[[File:Folie2.PNG|800px]]&lt;br /&gt;
&lt;br /&gt;
[[File:Folie3.PNG|800px]]&lt;br /&gt;
&lt;br /&gt;
[[File:Folie4.PNG|800px]]&lt;br /&gt;
&lt;br /&gt;
[[File:Folie5.PNG|800px]]&lt;br /&gt;
&lt;br /&gt;
In order to start scanning please perform the following steps:&lt;br /&gt;
a) For constant current mode (CC, dynamic STM)&lt;br /&gt;
14. Approach the tip and observe the frequency shift changing from Δf=0 Hz to a finite negative value.&lt;br /&gt;
15. Select the channels ''dF'', ''Amplitude'' and ''Damping'' in the Parameter window in order to measure these signals.&lt;br /&gt;
16. Set the current setpoint to a finite value, i.e. e.g., 10 or 100 pA.&lt;br /&gt;
17. Start scanning in CC mode as you would do in STM mode.&lt;br /&gt;
&lt;br /&gt;
b) For constant force mode (CF, nc-AFM)&lt;br /&gt;
14. Change the feedback mode to ''LinAbs'' and the feedback channel to ''dF''.&lt;br /&gt;
15. Change the integrator value to e.g. -0.0003 or something in the same order of magnitude.&lt;br /&gt;
16. Select the channels ''dF'', ''Amplitude'' and ''Damping'' in the Parameter window.&lt;br /&gt;
17. Set the constant frequency setpoint to a value close to but a little bit smaller than the finite Δf value from above.&lt;br /&gt;
18. Start scanning in CF mode as you would do in STM mode.&lt;br /&gt;
19. Adjust the scanning speed and the integrator together with the amplitude and phase control of the tuning fork.&lt;br /&gt;
20. Observe the current signal and increase the setpoint in order to go closer to the surface.&lt;/div&gt;</summary>
		<author><name>Ltspm</name></author>	</entry>

	<entry>
		<id>http://spm-wiki.createc.de/index.php?title=Forms</id>
		<title>Forms</title>
		<link rel="alternate" type="text/html" href="http://spm-wiki.createc.de/index.php?title=Forms"/>
				<updated>2017-01-01T06:09:44Z</updated>
		
		<summary type="html">&lt;p&gt;Ltspm: /* Grid */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== LineScan ==&lt;br /&gt;
&lt;br /&gt;
Press the ''Lin'' Button to take a line scan of the image. First select two points of the image by pressing the left mouse button. The linescan&lt;br /&gt;
is displayed in the upper linegraph of the linescanform-window. To perform measurements on the linescan press the ''Measure'' button. &lt;br /&gt;
&lt;br /&gt;
Use the left mouse button to select a new point. With the right mouse button you can switch between points. Pressing the Shift button allows to move a whole line. Pressing the right mouse button together with the Shift button will switch to the prependicular averaging mode.&lt;br /&gt;
&lt;br /&gt;
Important: If the linescan form is opened through the menue selection first, all linescan data will be displayed always in the this particular window. Otherwise pressing the LIN button will always open a new window.&lt;br /&gt;
&lt;br /&gt;
Autosize&lt;br /&gt;
Selects automatic scaling of the linegraph&lt;br /&gt;
&lt;br /&gt;
Autolinebacksub&lt;br /&gt;
Selects automatic subtraction of linear background&lt;br /&gt;
&lt;br /&gt;
Line Display Trackbar&lt;br /&gt;
Move to show a line scan of a particular image line. A FFT of the selected line is shown in the lower line graph.(The number of points/line has to be a power of 2)&lt;br /&gt;
&lt;br /&gt;
Popup menu of upper linegraph&lt;br /&gt;
xydesign: Select to adjust the appearance of the line graph&lt;br /&gt;
CopyClipboardData: The line scan data are copied to the ClipBoard&lt;br /&gt;
CopyClipboardXYGraph: The line scan graph is copied to the ClipBoard&lt;br /&gt;
Printxygraph: The line scan graph is send to the printer&lt;br /&gt;
Measure: Do measurements of the plot data.&lt;br /&gt;
Redrawline: The line in the image is redrawn&lt;br /&gt;
&lt;br /&gt;
Popup menu of lower linegraph&lt;br /&gt;
has the same items as the upper popup menu and one additional entry:&lt;br /&gt;
Show Frequency: Gives the FFT in frequency [Hz] instead of inverse distance [1/Å] (updated when the Line Display Trackbar is moved)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Channels&lt;br /&gt;
Select the channels which are displayed&lt;br /&gt;
&lt;br /&gt;
[[file:cliplinescan.png]]&lt;br /&gt;
&lt;br /&gt;
[[file:cliplinescanpopupmenu.png]]&lt;br /&gt;
&lt;br /&gt;
== Rampcontroller ==&lt;br /&gt;
&lt;br /&gt;
Click on the ''Ramp'' button. This opens the 'Rampcontroller'-window with control elements necessary to perform the coarse approach. The 6 buttons with arrows in the top of the form correspond to moving the tip in respect to the sample surface. Moving in x/y direction can also be done using the x/y cursor keys on the keyboard. The page up and page down keys are used correspondingly for rotation up and down. Selecting the burst mode in x/y or rotation will result in a series of steps corresponding to the number of burst steps displayed in the ramp parameter list. When the Crash Protection is switched on, the program checks before each step, whether it can detect a tunneling current. If this is the case it will cancel the step. Usually the crash protection should be switched on, but in cases where the tip is already crashed, the protection has to be switched off. The program issues some warnings when the ramp windows opens to inform the user to do necessary changes for a successful ramping. These are: First retract the tip, reset the x- and y-offset in the STM-program, select the appropriate gain (1-10, depending on the temperature) in the x- and y- channel of the HV-amplifier and set the external offset voltages to zero.&lt;br /&gt;
The usual coarse approach is done by controlling the approach with an optical microscope. When the tip is  close enough, the automatic tip approach can be switched on, by pressing the ''Approach'' button. It will start a combination of single coarse approach rotation steps combined with tip approach testing until the tip can reach the sample. ''Approach'' stops when a tunneling current is detected. The value of this threshold current is set by the current slider. Important: When the approach stops, the tip is automatically retracted, by setting the current to zero. Before leaving the coarse approach by pressing the ''Quit'' button, you have to select the mode for scanning. When the ''Main/Coarse'' button displays 'Coarse' mode, then the outer 3 piezos are used for scanning, otherwise the center piezo is used. In the normal operation of the microscope the 'Coarse' mode should be selected. Select the required set point current to see if the approach was successful. Now the tip should be retracted manually by using the external HV-amplifier z-offset voltage to go out of tunneling. Select the required gains and re-approach the tip again.&lt;br /&gt;
&lt;br /&gt;
See also: Approach Tips&lt;br /&gt;
&lt;br /&gt;
The Coarse Approach operation is controlled by the following parameters:&lt;br /&gt;
&lt;br /&gt;
Puls Height[V]&lt;br /&gt;
Input the peak to peak height (in V) of the sawtooth pulse used for moving the inertial slider. Two different values are used for the lateral XY motion and the rotational motion.&lt;br /&gt;
&lt;br /&gt;
Puls-Duration[sec]&lt;br /&gt;
Input the duration of a single sawtooth pulse in seconds. &lt;br /&gt;
&lt;br /&gt;
Burst-Count&lt;br /&gt;
Determines the number of sawtooth pulses applied when operating the coarse control in burst mode.&lt;br /&gt;
&lt;br /&gt;
Approach Period[sec]&lt;br /&gt;
Determines the time for a single approach cycle including approach and retraction of the tip to find the sample surface.&lt;br /&gt;
&lt;br /&gt;
Approach Burst Count&lt;br /&gt;
This is the number of coarse pulses applied between two approach cycles.&lt;br /&gt;
&lt;br /&gt;
Approach Retry Count&lt;br /&gt;
This is the number of retry operations done before the approach is stopped.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[file:cliprampcontrollerCreatec.png]]&lt;br /&gt;
&lt;br /&gt;
== Grid ==&lt;br /&gt;
&lt;br /&gt;
The form 'Grid-Image- Transformation' contains several functions for different kinds of image transformations. A suitable combination of the procedures below will allow transformations useful for drift correction, superstructure analysis, extraction of registry information. To open the form press on the grid button in the STMAFM form. With the 6 slider controls a grid can be overlayed on the image. The lateral position, the angles of the grid and the distance between the grid lines can be adjusted. An alternative way to input the grid is pressing the ''Mouse'' button and to mark 3 points (the first one is the center, the other two determine the direction of the two lines). Pressing the ''Rotation'' button will rotate the image in such a way that one set of the grid lines (X-Axis) is parallel to the horizontal direction. Pressing the ''Zoom'' button will zoom the image by the value set in the edit control positioned next to the right of the button. The image is zoomed around the center point of the grid. By pressing on the ''X..,Y..'' button the actual center position of the grid is stored and displayed on the button. Selecting a new center position with the mouse, as described above, and pressing the ''Move grid to Center'' button will move the new defined center to the stored center position. The ''Transform'' button will transform the image according to the 2 Parameters in the edit controls below. The first is the new angle between the lines in the image and the second is the new ratio the grid line distances. Selecting the ''HexGrid'' check box will draw a grid suitable for hexagonal unit cells. If draw inverted is selected the grid is drawn by a inversion process. Otherwise you can select with &amp;lt;Grid Color&amp;gt; the line color of the grid.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;&amp;quot; widths=&amp;quot;450px&amp;quot; heights=&amp;quot;300px&amp;quot;&amp;gt;&lt;br /&gt;
File:clipgrid.png&lt;br /&gt;
File:clipgridimage.png&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== TimeSpectrum ==&lt;br /&gt;
&lt;br /&gt;
It is very often useful to take a time record of the A/D input channels, without scanning or changing the biasvoltage. This is for example a convenient way to characterize the noise performance of the STM. To take a time record just press the ''Start'' Button on the Time-Spectrum window or press the ''TS'' button on the main window. Five channels are recorded simultaneously. The A/D channels 0 and 3 (ADC0 is called current I) and the topography signal output from the feedback loop, called Z. The displayed channel is selected by the corresponding channel button. Three parameters control the data acquisition:&lt;br /&gt;
&lt;br /&gt;
Spec_Points&lt;br /&gt;
The number of data points taken for a single spectrum. This must be a power of 2, to allow FFT of the data.&lt;br /&gt;
(Maximum is 4096)&lt;br /&gt;
&lt;br /&gt;
Spec_Freq[Hz]&lt;br /&gt;
The sampling frequency. (Limited by the DSP_Clock value)&lt;br /&gt;
&lt;br /&gt;
Spec_Avrg_Count&lt;br /&gt;
The number of spectra averaged. Averaging is done only for the spectrum, i.e. the FFT data.&lt;br /&gt;
&lt;br /&gt;
Channels&lt;br /&gt;
First select the check boxes to determine the channels which are acquired during data acquisition&lt;br /&gt;
Part of these channels can be further selected to be displayed.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The results are displayed in two line graphs.&lt;br /&gt;
The upper one shows the time behaviour. (The vertical scale is always in V)&lt;br /&gt;
The lower one shows the frequency spectrum. (The vertical scale on the left shows the peak to peak value of a pure sine component,&lt;br /&gt;
the right scale the rms amplitude for non correlated signals) &lt;br /&gt;
&lt;br /&gt;
The frequency resolution depends on the number of points and the sampling frequency.&lt;br /&gt;
Important: The current signal and the ADC1 signal are filtered by a first order digital filter, which is controlled by the same CurrentRC Parameter.   &lt;br /&gt;
The contents of the memo field is saved together with the file.&lt;br /&gt;
&lt;br /&gt;
In the lower right the AVRG Value and the Standard Deviation of the timespectra data are shown.&lt;br /&gt;
&lt;br /&gt;
Save&lt;br /&gt;
The data is saved in ASCII Format&lt;br /&gt;
&lt;br /&gt;
FFT logscale: Displays the Spectrum in LogScale&lt;br /&gt;
&lt;br /&gt;
Waterfall: Displays the time dependence of the Spectra in a Waterfall like mode at the bottom of the window&lt;br /&gt;
&lt;br /&gt;
[[file:cliptimespectrum.png]]&lt;br /&gt;
&lt;br /&gt;
== 3d-view ==&lt;br /&gt;
&lt;br /&gt;
This part of the program allows the display of 3d views of selected parts of the images. To start, open the window by clicking the ''3d View'' button. Then click on  &amp;lt;New Data&amp;gt; in the main menue and select a rectangular region on the image displayed in the STMAFM program.  A new form will be opened, where the rendered image is displayed. The sliders in the 3d-view form allow to change the orientation, size, offset and lighting of the 3d object. The 3d image can be displayed in different ways, depending on which check boxes are checked. So the lights can be switched on or off, the 3d image can be shown using lines, hidden lines, or in the normal surface view. Checking the save box will start saving of each images displayed. With this feature a series of BMP images for movies can be created. Checking the ''Box'' box will draw a 3d box with x,y,z axes in the 3dimage.In the light sources field the angle of the light source can be changed. Apart from a directed diffuse light source ambient lighting can be added.&lt;br /&gt;
&lt;br /&gt;
Under the menue item Color the color of the background and of the lines can be changed.&lt;br /&gt;
Morover the image can be copied to the clipboard (in BMP format), to a new window or the data can be exported in PoVRay format. &lt;br /&gt;
(New List means that a new imagedisplaylist is created for the underlying OPENGL rendering program. This usually done automatically)&lt;br /&gt;
&lt;br /&gt;
Selected views can be saved and are saved with the program.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;&amp;quot; widths=&amp;quot;450px&amp;quot; heights=&amp;quot;300px&amp;quot;&amp;gt;&lt;br /&gt;
file:clip3dcontrol.png&lt;br /&gt;
file:clip3dform.png&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Lateral Manipulation ==&lt;br /&gt;
&lt;br /&gt;
To perform a lateral manipulation with the tip one has first to press the Button ''LM'' and then to select the starting and the final position of the manipulation path by selecting these points in the image with the left mouse button. A thin line is drawn on the screen between these points. After the manipulation is completed a separate window opens up where the tip height and current during the manipulation is displayed. By pressing the save button this data set can be saved in a *.LAT File.&lt;br /&gt;
&lt;br /&gt;
Different kinds of manipulation procedures can be performed. They are selected by choosing a certain manipulation mode number in the manipulation parameter field. These different modes are described in the following. The speed of the tip is controlled by the parameters latmandelay and latmanddx, which are used throughout the whole process and not only when the tip is manipulating.&lt;br /&gt;
&lt;br /&gt;
Mode 1: This is the simplest constant current mode manipulation. Starting from the top of the image the tip moves in a straight line to the starting point of the manipulation using the standard feedback parameters used for imaging. Then the feedback parameters are switched to the ones selected in the lateral manipulation parameter set . These are current, voltage and gain of the preamplifier. Then the tip moves using these manipulation parameters to the final position. There the parameters are set back to their original imaging values and the tip moves back to top of the image.&lt;br /&gt;
&lt;br /&gt;
Mode 2: Similar to mode 1, but the tip moves first to the final position, then starts the manipulation to the starting position and goes back to final position. It switches back to imaging parameters and moves to the top of the image.&lt;br /&gt;
&lt;br /&gt;
Mode3: Similar to mode 1: The tip first moves to the starting point. Then it moves to final position and back to the starting position using the normal imaging parameters, but the tip height and current are recorded during these two scans. Then the parameters are switched to the manipulation parameters and the tip moves to the final position. Then the parameters are changed back to the imaging parameters and the tip moves back to the starting position while again recording the tip height and current. Finally the tip moves to the top of the image.&lt;br /&gt;
&lt;br /&gt;
Mode 4: This is a constant height manipulation mode. The tip moves first to the starting position. Then it moves from the starting to the final position and back taking data in normal imaging mode. Then the feedback is switched off and the tip moves from the starting to the final position in constant height mode. The height used is given by the height of the tip when the feedbackloop is switched off plus the additional offset given by latmanccdz. This means that the height depends on the imaging parameters. Then the tip moves back from the final position to the starting position in imaging mode, but taking data again. Finally the tip moves to the top of the image. With the extension factor the manipulation path can be extended at the final position by the factor given by latmanextlextension. The starting point is not affected by the extension factor.&lt;br /&gt;
&lt;br /&gt;
Mode 5: Similar to mode 4. In this mode the extension affects also the starting position. The extension positions are first calculated. The tip moves in imaging mode to extended starting position. Then moves to the final extended position and backward and takes data in imaging mode. Then the tip moves to the starting position, while taking data in imaging mode. Then the tip moves from the starting position to the final position in constant height manipulation mode. Then it moves back to the starting position in imaging mode and takes data. Finally it moves back to the top of the image.&lt;br /&gt;
&lt;br /&gt;
Mode 6: Similar to mode 5. The only difference is that the tip moves from the starting to the final position and backward in constant height mode and not only in the forward direction, as done in mode 5.&lt;br /&gt;
&lt;br /&gt;
Mode 0: This mode is different from the other modes. In mode 0 the tip follows always the mouse position immediately. The height of the tip is displayed on rate meter appearing on the left. By pressing the upper case L key the imaging parameters are switched to the manipulation parameters and back again. (By pressing the upper case S a small 64 pixel * 64 pixel scan is performed.) Clicking with the mouse button will stop the continuous following of the tip. After additional clicking the tip moves to the new mouse position in a straight line and tracks the mouse position again.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
These parameters control the lateral manipulation processes.&lt;br /&gt;
&lt;br /&gt;
Mode&lt;br /&gt;
Select one of several different manipulation modes. There are constant current and constant height modes. For example P0 is the origin of the image. Then the tip moves to P1, the first point selected with the mouse. The tunneling parameters are changed to manipulation parameters and the tip moves from P1 to P2. There the normal tunneling parameters, used for imaging, are selected again and the tip moves to the origin P0.&lt;br /&gt;
&lt;br /&gt;
Voltage[V]&lt;br /&gt;
The tunneling voltage applied during the manipulation phase.&lt;br /&gt;
&lt;br /&gt;
Current[nA]&lt;br /&gt;
The current used during manipulation&lt;br /&gt;
&lt;br /&gt;
Gain preamplifier&lt;br /&gt;
The gain used during manipulation&lt;br /&gt;
&lt;br /&gt;
Manip. Speed[Å/sec]&lt;br /&gt;
The speed of the tip for lateral movements. Used for all movements. Step Size determines the number points measured during a lat. manip. scan.&lt;br /&gt;
&lt;br /&gt;
Extension&lt;br /&gt;
Extension value for manipulation modes 4-6&lt;br /&gt;
&lt;br /&gt;
Const. Height Z-Offset&lt;br /&gt;
In constant height mode the tip sample distance can be varied by this parameters. Positive values [Å} correspond to a closer approach to the surface.&lt;br /&gt;
&lt;br /&gt;
Channels&lt;br /&gt;
Select the channels acquired during data acquisition&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
LatChannelForm&lt;br /&gt;
Press to open a new Form to display the manipulation data.&lt;br /&gt;
&lt;br /&gt;
Lateral Speed [Å/sec]&lt;br /&gt;
Speed at which the tip is moving from the origin to first starting point&lt;br /&gt;
&lt;br /&gt;
LM in old place&lt;br /&gt;
Repeat the LM using the previous coordinates&lt;br /&gt;
&lt;br /&gt;
Load Ext Lat Par&lt;br /&gt;
Load the lateral manipulation cooordinates from an external file.&lt;br /&gt;
&lt;br /&gt;
[[file:cliplatmanip.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The measured data is displayed in separate windows. X and Y scaling can be adjusted by the user. Two independent axis can be displayed. (Press ''2.Axis'')&lt;br /&gt;
''LP'' Low Pass Filter&lt;br /&gt;
''TP'' Makes the Windows transparent to put it on top of another window.&lt;br /&gt;
&lt;br /&gt;
[[file:cliplmanip.png]]&lt;br /&gt;
&lt;br /&gt;
Right click to open the Popupmenu.&lt;br /&gt;
XYDesign, XY Series Edit allows to change the appearance of the Data&lt;br /&gt;
Copyclipboard.. copies the Plot or the Data into the clipboard&lt;br /&gt;
PrintXYGraph prints the XY Plot&lt;br /&gt;
Measure allows measuring the distance between points in the plot&lt;br /&gt;
AutoUpdate: The Plot is updated every second during Data Acquisition. &lt;br /&gt;
Lowpass filters the data (very simple just nearest neighbor average)&lt;br /&gt;
 &lt;br /&gt;
[[file:clipvertmanip_popupmenu1.png]]&lt;br /&gt;
&lt;br /&gt;
== Vertical Manipulation / I/V Spectroscopy ==&lt;br /&gt;
&lt;br /&gt;
Vertical manipulation (spectroscopy) is started by pressing on the ''VM'' button and selecting a point in the image by clicking with the left mouse button. The tip uses the lateral speed value to move to the vertical manipulation position. When the manipulation is finished the measured data appears in a separate window and can be saved with the Save button. Different channels can be selected to be recorded. Usually an external Lockin will be connected to ADC1. The internal Lockin supplies the signals dI/dV, d2I/dV2, di_q,d2_q. The form of the voltage and the z-height ramp is controlled by 8 points in time. In the case of the voltage one can define 8 time points and their corresponding voltage value. For example (0,1000), (256,0), (512,2000),(1024,-1000) define a ramp starting with 1000mV at time 0. Then it will be linear interpolated to time 256 with 0 Volt. Then it goes up again to 2000mV at time 512 and finally reaches -1000mV at time 1024. The time values correspond to the number of points taken. In this case these are 1024 points. A maximum of 100000 points is possible. The z-height values already include the gain of the z-amplifier. This means, that changing the HV gain will not change the z-height ramp, because this will be automatically corrected. Vertspecback = 1 will apply the ramp in forward and backward direction. Vertspecback=n will apply the ramp in forward and backward direction n-times (n&amp;gt;=1). The shape of the ramps is shown in the lower graph in the vertical manipulation window. &lt;br /&gt;
&lt;br /&gt;
Vertical spectroscopy can be done during scanning. Press the VM Button and select a point in the unscanned image area.  &lt;br /&gt;
&lt;br /&gt;
These parameters control the vertical manipulation and spectroscopy&lt;br /&gt;
&lt;br /&gt;
Gain preamplifier&lt;br /&gt;
Gain of the preamplifier during data acquisition&lt;br /&gt;
&lt;br /&gt;
Speclenght[sec]&lt;br /&gt;
Select the recording total time of the spectrum.&lt;br /&gt;
&lt;br /&gt;
Spectrum backward&lt;br /&gt;
0: The Spectrum defined in the V,Z table is taken only once.&lt;br /&gt;
1: The spectrum defined in the V,Z table is taken once in forward and once in backward direction&lt;br /&gt;
&amp;gt;1: Defines how often a forward and backward spectrum is taken&lt;br /&gt;
&lt;br /&gt;
Lateral Speed[Å/sec]&lt;br /&gt;
Speed at which the tip moves to the place where the spectrum will be taken.&lt;br /&gt;
&lt;br /&gt;
Z- Offset&lt;br /&gt;
Defines an additonal offset which is added to the z values in the table&lt;br /&gt;
&lt;br /&gt;
Z-Drift&lt;br /&gt;
Defines an increment which is added to the values in the table to compensate drift effects&lt;br /&gt;
&lt;br /&gt;
Repeat Count&lt;br /&gt;
Defines how many separate spectra are taken and stored.&lt;br /&gt;
&lt;br /&gt;
Spectra/Line&lt;br /&gt;
Defines the number of spectra equally spaced along a line between a start and endpoint,selected by mouse input.&lt;br /&gt;
The first spectrum is taken at the startpoint of the line the last one at the endpoint of the line.  &lt;br /&gt;
&lt;br /&gt;
V,Z table&lt;br /&gt;
4 points can be defined to create a voltage and z table used for vertical manipulation and spectroscopy. The data values are plotted in the graph below. The first Time Value should be set to 1 (not 0, still allowed for compatibility), otherwise the first value might not be displayed.&lt;br /&gt;
(Voltage(green), Z-Position(blue))&lt;br /&gt;
&lt;br /&gt;
Spec_X_Grid&lt;br /&gt;
Spec_Y_Grid&lt;br /&gt;
Determine the spacing of the spectroscopy grid. First spectrum position is (spec_x_grid,spec_y_grid) in pixel coordinates.&lt;br /&gt;
&lt;br /&gt;
SGrid_Channel&lt;br /&gt;
Number of channels recorded during the grid spectroscopy mode&lt;br /&gt;
&lt;br /&gt;
SpecGrid_Delay&lt;br /&gt;
Delay in DSP cycle units added before/after a vertical spectrum is started/finished.&lt;br /&gt;
&lt;br /&gt;
SpecAvrgCount&lt;br /&gt;
Number of Spectra acquired and averaged directly on the DSP board. For Count&amp;gt;1 be aware that the current preamplifier gain for vertical spectroscopy will be set the same to the normal preamplifer gain. Between the spectra the feedback loop will be switched on to readjust the sample tip distance.   &lt;br /&gt;
&lt;br /&gt;
SpecAvrgFBDelay  &lt;br /&gt;
On Time of the Feedback loop in DSP cycle units between spectra in Averaging mode.&lt;br /&gt;
&lt;br /&gt;
Save File&lt;br /&gt;
Save the present Vert. Spektrum&lt;br /&gt;
&lt;br /&gt;
Single_Spectrum&lt;br /&gt;
Take one single spectrum. Select the position with a left mouse button click on the image.&lt;br /&gt;
Same like pressing &amp;lt;VM&amp;gt; button&lt;br /&gt;
&lt;br /&gt;
Spectra along Line&lt;br /&gt;
Take a series of spectra equally spaced a long a line defined by two mouse clicks. &lt;br /&gt;
&lt;br /&gt;
Spec in old Place&lt;br /&gt;
Take a spectrum at the X,Y position of the previous scan.&lt;br /&gt;
&lt;br /&gt;
Multiple Spectra&lt;br /&gt;
Select several spectra taken one after the other. Left Mouse button select another spectrum, right mosue button stop selection and start data acquisition.&lt;br /&gt;
&lt;br /&gt;
MultSpec from File&lt;br /&gt;
Use an external file (Ascii) to define a series of spectra.&lt;br /&gt;
Only 256*256 pixel images allowed. No zoom.  First line contains number of spectra. Each following line contains the x y image coordinates(integer) of each spectrum. &lt;br /&gt;
&lt;br /&gt;
Spectra on Grid&lt;br /&gt;
Spectra taken at each grid position. (Analysis of the Grid data is done in another program)&lt;br /&gt;
&lt;br /&gt;
SaveSpecgrid&lt;br /&gt;
Save the Grid File. Two files are saved. One *.specgrid.dat File with all the parameters and the *.specgrid File with the grid data&lt;br /&gt;
&lt;br /&gt;
VFB_Mode&lt;br /&gt;
Select the VoltageFeedbackMode&lt;br /&gt;
I(V,z): Normal Operation feedback loop is OFF&lt;br /&gt;
z(V): Constant current operation&lt;br /&gt;
&lt;br /&gt;
VFB_Current[nA]&lt;br /&gt;
Current setpoint used in z(V) Mode. FB_Channel has to be current.&lt;br /&gt;
&lt;br /&gt;
Load Vert_Params&lt;br /&gt;
Load only the parameter of a spectrum and not the data&lt;br /&gt;
&lt;br /&gt;
External VZ Data&lt;br /&gt;
If not checked the VZ Data for a spectrum are taken from the VZ-Table parameter.&lt;br /&gt;
If checked the VZData is taken from a different source table, which can be loaded from an external file.&lt;br /&gt;
This allows the user defined design of arbitrary VZ arrays of up to 100000 points. File format see below.  &lt;br /&gt;
&lt;br /&gt;
Filenames:&lt;br /&gt;
First Letter is the machinename, in case you have more than one LTSTM or you want to assign different users.&lt;br /&gt;
Followed by DATE.TIME.VERT. VERT is the standard fileextension.&lt;br /&gt;
In case you take repeated spectra in a point or take spectra along a line an additional &amp;quot;L#Number.R#Number.&amp;quot; indicator is added before&lt;br /&gt;
the VERT file extension. L indicates line position and R indicates the numbering in repeat mode.&lt;br /&gt;
&lt;br /&gt;
[[file:clipvertmanp.png]]&lt;br /&gt;
&lt;br /&gt;
The measured data is displayed in separate windows. X and Y scaling can be adjusted by the user. Two independent axis can be displayed. (Press ''2.Axis'')&lt;br /&gt;
''LP'' Low Pass Filter&lt;br /&gt;
''TP'' Makes the Windows transparent to put it on top of another window.&lt;br /&gt;
&lt;br /&gt;
[[file:clipvmanip.png]]&lt;br /&gt;
&lt;br /&gt;
Right click to open the Popupmenu.&lt;br /&gt;
XYDesign, XY Series Edit allows to change the appearance of the Data&lt;br /&gt;
Copyclipboard.. copies the Plot or the Data into the clipboard&lt;br /&gt;
PrintXYGraph prints the XY Plot&lt;br /&gt;
Measure allows measuring the distance between points in the plot&lt;br /&gt;
AutoUpdate: The Plot is updated every second during Data Acquisition. &lt;br /&gt;
Lowpass filters the data (very simple just nearest neighbor average)&lt;br /&gt;
 &lt;br /&gt;
[[file:clipvertmanip_popupmenu1.png]]&lt;br /&gt;
&lt;br /&gt;
== Slider ==&lt;br /&gt;
&lt;br /&gt;
Brightness and Contrast&lt;br /&gt;
Use the slider window to control the brightness and contrast of the image. The slider marked B adjusts the brightness of the image. The slider marked Z controls the contrast. Above both sliders the corresponding height range in (+/-)Å is displayed.So total height difference between black and white for example is two times the displayed value. On the right for multichannel images the channel, which is displayed can be selected. &lt;br /&gt;
&lt;br /&gt;
Biasvoltage&lt;br /&gt;
The polarity of the biasvoltage can be changed by pressing with the mouse on 'V' label, or by pressing the ''+''/ ''-'' keys. &lt;br /&gt;
&lt;br /&gt;
Press the right mouse button on the 'V' label to open a Popupmenu for the biasvoltage. &lt;br /&gt;
Three options exist:&lt;br /&gt;
SetBiasMinvolt:  If selected sets the current biasvoltage as the minimum biasvoltage.&lt;br /&gt;
SetBiasMaxvolt: If selected sets the current biasvoltage as the maximum biasvoltage.&lt;br /&gt;
This feature can be used to avoid tunneling outside a specific bias voltange range. i.e for example to limit the maximum biasvoltage to protect the tip, when using the silder.&lt;br /&gt;
&lt;br /&gt;
ResetBiasMinMax: If selected deletes the Min/Max values again.&lt;br /&gt;
 &lt;br /&gt;
Current&lt;br /&gt;
Press the right mouse button on the 'A' label to open a Popupmenu for the current. &lt;br /&gt;
&lt;br /&gt;
Log: logarithmic scaling of the current slider&lt;br /&gt;
Lin: linear scaling of the current slider&lt;br /&gt;
&lt;br /&gt;
Channels &lt;br /&gt;
Select the displayed channel. For Channel Nr.=  0 all channels are displayed.&lt;br /&gt;
&lt;br /&gt;
Zoom&lt;br /&gt;
Allowed zoom factors are x1, x2, x3, x4.&lt;br /&gt;
&lt;br /&gt;
Tip up/down&lt;br /&gt;
Press this button to fully retract or to approach the tip.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[file:clipslider.png]]&lt;br /&gt;
&lt;br /&gt;
The height of the slider window can be adjusted. This changes the height of the sliders simultaneously.&lt;br /&gt;
&lt;br /&gt;
== FFT Evaluation ==&lt;br /&gt;
&lt;br /&gt;
This part of the software allows use to analyse FFT transforms of the images. (Always crosscheck the results)&lt;br /&gt;
&lt;br /&gt;
[[file:clipfftevaluation.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Load Files ==&lt;br /&gt;
&lt;br /&gt;
Loading Files is done using the ''Open *.Dat'' menu item.&lt;br /&gt;
&lt;br /&gt;
You can define your own favorite directories in the Windows Places Bar region. (Use for example the TweakUI utility.)&lt;br /&gt;
&lt;br /&gt;
Options:&lt;br /&gt;
&lt;br /&gt;
Full Parameter Load:  Check to load all parameters, not only those relevant for the loaded file type. &lt;br /&gt;
 &lt;br /&gt;
Disable Warning: If checked no warning will be given when files are loaded in data acquisition.                               &lt;br /&gt;
             &lt;br /&gt;
&lt;br /&gt;
[[file:cliploadfile.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Open allows to select in running program or alternatively in a newly opened analysis program.&lt;br /&gt;
&lt;br /&gt;
[[file:cliploadfile2.png]]&lt;br /&gt;
&lt;br /&gt;
== AFM ==&lt;br /&gt;
&lt;br /&gt;
In the following we discuss the operation of the internal PLL system.&lt;br /&gt;
The internal PLL can operate up to 32kHz ( based on 16 samples per period at 512kHz max sample rate).&lt;br /&gt;
This usualy covers operation of standard quartz tuning fork sensors as the qPlus sensor.&lt;br /&gt;
(For higher frequencies optionally the Zurich Instruments PLL can be used externally.)&lt;br /&gt;
The input signal from the Preamplifier is connected to the ADC3 input of ADDA Board 2, while DAC5 of the same ADDA Board supplies the excitation signal. &lt;br /&gt;
&lt;br /&gt;
PLL Centerfreq: determines the center frequency of the PLL. (Change either by typing the number directly or increase/decrease by using the up/down/ page up/page down and both in combination with Shift key)&lt;br /&gt;
PLL-Ampl[nm]: Input the Set value of the Amplitude in nm when the Amplitude controller is on&lt;br /&gt;
PLL-Exc[V]: Input the Excitation value in Volt&lt;br /&gt;
PLL-Phase: Phase Shift of Exciation Signal. Has to be optimized const stable PLL operation&lt;br /&gt;
PLL F Range[+/-Hz]: PLL frequency tracking range. max. allowed deviation from center frequency&lt;br /&gt;
&lt;br /&gt;
PLL On: If selected operation of the PLL is switched on&lt;br /&gt;
Ampl Control: If selected Amplitude Control is switched on&lt;br /&gt;
Active Damping: If selected the Amplitude control can electronically damp the cantilever vibration&lt;br /&gt;
Ref Signal f: If selected DAC2 of the PLL board outputs a reference of the PLL frequency&lt;br /&gt;
Ref Signal 2f: If selected DAC2 of the PLL board outputs a reference of the 2nd harmonic of the PLL frequency&lt;br /&gt;
&lt;br /&gt;
P[Hz/Deg]: Proportional value of the PLL frequency controller&lt;br /&gt;
Int[Hz/deg/s]: Integrator value of the PLL frequency controller&lt;br /&gt;
LP Filter[Hz]: Value of the 4th order loop filter&lt;br /&gt;
P Ampl[V/nm]: Proportional part of the Ampl controller&lt;br /&gt;
LP Amp filter[Hz]: Loop filter of the Amp controller&lt;br /&gt;
df Post Filter[Hz]: Filters the PLL freq data finally before it is output to the STM feedback controller&lt;br /&gt;
&lt;br /&gt;
Sensor Cal[V/nm]: Calibrate the Preamp output in nm units&lt;br /&gt;
SRS Gain: Optionally include the SRS Preamp gain&lt;br /&gt;
&lt;br /&gt;
PLL FreqScan, PLL Phase Scan: Start a frequency or Phase Scan&lt;br /&gt;
Filter PLL_Scan: Filter the Scan Data. (simple 1.order lowpass). can be repeated to allow a beeter calculation of the Q factor etc.&lt;br /&gt;
Show Phase: Displays the phase. Has to be selected to calculate the Q Factor.&lt;br /&gt;
&lt;br /&gt;
Results: Automatic determination of CenterFreq and Q Factor&lt;br /&gt;
&lt;br /&gt;
ScancenterFreq, FreqSpan, ScanTime, ScanPoints: determines the properties of the Frequency Scan or PLL Phase Scan&lt;br /&gt;
&lt;br /&gt;
[[file:Resonance.png]]&lt;br /&gt;
&lt;br /&gt;
[[Category:stmafm_manual]]&lt;br /&gt;
&lt;br /&gt;
== 20 steps to successful AFM operation ==&lt;br /&gt;
&lt;br /&gt;
For a first setup of a functioning PLL useful for scanning in CC, CH or CF mode please refer to the following graphical guide.&lt;br /&gt;
&lt;br /&gt;
[[File:Folie2.PNG|800px]]&lt;br /&gt;
&lt;br /&gt;
[[File:Folie3.PNG|800px]]&lt;br /&gt;
&lt;br /&gt;
[[File:Folie4.PNG|800px]]&lt;br /&gt;
&lt;br /&gt;
[[File:Folie5.PNG|800px]]&lt;br /&gt;
&lt;br /&gt;
In order to start scanning please perform the following steps:&lt;br /&gt;
a) For constant current mode (CC, dynamic STM)&lt;br /&gt;
14. Approach the tip and observe the frequency shift changing from Δf=0 Hz to a finite negative value.&lt;br /&gt;
15. Select the channels ''dF'', ''Amplitude'' and ''Damping'' in the Parameter window in order to measure these signals.&lt;br /&gt;
16. Set the current setpoint to a finite value, i.e. e.g., 10 or 100 pA.&lt;br /&gt;
17. Start scanning in CC mode as you would do in STM mode.&lt;br /&gt;
&lt;br /&gt;
b) For constant force mode (CF, nc-AFM)&lt;br /&gt;
14. Change the feedback mode to ''LinAbs'' and the feedback channel to ''dF''.&lt;br /&gt;
15. Change the integrator value to e.g. -0.0003 or something in the same order of magnitude.&lt;br /&gt;
16. Select the channels ''dF'', ''Amplitude'' and ''Damping'' in the Parameter window.&lt;br /&gt;
17. Set the constant frequency setpoint to a value close to but a little bit smaller than the finite Δf value from above.&lt;br /&gt;
18. Start scanning in CF mode as you would do in STM mode.&lt;br /&gt;
19. Adjust the scanning speed and the integrator together with the amplitude and phase control of the tuning fork.&lt;br /&gt;
20. Observe the current signal and increase the setpoint in order to go closer to the surface.&lt;/div&gt;</summary>
		<author><name>Ltspm</name></author>	</entry>

	<entry>
		<id>http://spm-wiki.createc.de/index.php?title=Forms</id>
		<title>Forms</title>
		<link rel="alternate" type="text/html" href="http://spm-wiki.createc.de/index.php?title=Forms"/>
				<updated>2017-01-01T06:06:01Z</updated>
		
		<summary type="html">&lt;p&gt;Ltspm: /* Grid */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== LineScan ==&lt;br /&gt;
&lt;br /&gt;
Press the ''Lin'' Button to take a line scan of the image. First select two points of the image by pressing the left mouse button. The linescan&lt;br /&gt;
is displayed in the upper linegraph of the linescanform-window. To perform measurements on the linescan press the ''Measure'' button. &lt;br /&gt;
&lt;br /&gt;
Use the left mouse button to select a new point. With the right mouse button you can switch between points. Pressing the Shift button allows to move a whole line. Pressing the right mouse button together with the Shift button will switch to the prependicular averaging mode.&lt;br /&gt;
&lt;br /&gt;
Important: If the linescan form is opened through the menue selection first, all linescan data will be displayed always in the this particular window. Otherwise pressing the LIN button will always open a new window.&lt;br /&gt;
&lt;br /&gt;
Autosize&lt;br /&gt;
Selects automatic scaling of the linegraph&lt;br /&gt;
&lt;br /&gt;
Autolinebacksub&lt;br /&gt;
Selects automatic subtraction of linear background&lt;br /&gt;
&lt;br /&gt;
Line Display Trackbar&lt;br /&gt;
Move to show a line scan of a particular image line. A FFT of the selected line is shown in the lower line graph.(The number of points/line has to be a power of 2)&lt;br /&gt;
&lt;br /&gt;
Popup menu of upper linegraph&lt;br /&gt;
xydesign: Select to adjust the appearance of the line graph&lt;br /&gt;
CopyClipboardData: The line scan data are copied to the ClipBoard&lt;br /&gt;
CopyClipboardXYGraph: The line scan graph is copied to the ClipBoard&lt;br /&gt;
Printxygraph: The line scan graph is send to the printer&lt;br /&gt;
Measure: Do measurements of the plot data.&lt;br /&gt;
Redrawline: The line in the image is redrawn&lt;br /&gt;
&lt;br /&gt;
Popup menu of lower linegraph&lt;br /&gt;
has the same items as the upper popup menu and one additional entry:&lt;br /&gt;
Show Frequency: Gives the FFT in frequency [Hz] instead of inverse distance [1/Å] (updated when the Line Display Trackbar is moved)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Channels&lt;br /&gt;
Select the channels which are displayed&lt;br /&gt;
&lt;br /&gt;
[[file:cliplinescan.png]]&lt;br /&gt;
&lt;br /&gt;
[[file:cliplinescanpopupmenu.png]]&lt;br /&gt;
&lt;br /&gt;
== Rampcontroller ==&lt;br /&gt;
&lt;br /&gt;
Click on the ''Ramp'' button. This opens the 'Rampcontroller'-window with control elements necessary to perform the coarse approach. The 6 buttons with arrows in the top of the form correspond to moving the tip in respect to the sample surface. Moving in x/y direction can also be done using the x/y cursor keys on the keyboard. The page up and page down keys are used correspondingly for rotation up and down. Selecting the burst mode in x/y or rotation will result in a series of steps corresponding to the number of burst steps displayed in the ramp parameter list. When the Crash Protection is switched on, the program checks before each step, whether it can detect a tunneling current. If this is the case it will cancel the step. Usually the crash protection should be switched on, but in cases where the tip is already crashed, the protection has to be switched off. The program issues some warnings when the ramp windows opens to inform the user to do necessary changes for a successful ramping. These are: First retract the tip, reset the x- and y-offset in the STM-program, select the appropriate gain (1-10, depending on the temperature) in the x- and y- channel of the HV-amplifier and set the external offset voltages to zero.&lt;br /&gt;
The usual coarse approach is done by controlling the approach with an optical microscope. When the tip is  close enough, the automatic tip approach can be switched on, by pressing the ''Approach'' button. It will start a combination of single coarse approach rotation steps combined with tip approach testing until the tip can reach the sample. ''Approach'' stops when a tunneling current is detected. The value of this threshold current is set by the current slider. Important: When the approach stops, the tip is automatically retracted, by setting the current to zero. Before leaving the coarse approach by pressing the ''Quit'' button, you have to select the mode for scanning. When the ''Main/Coarse'' button displays 'Coarse' mode, then the outer 3 piezos are used for scanning, otherwise the center piezo is used. In the normal operation of the microscope the 'Coarse' mode should be selected. Select the required set point current to see if the approach was successful. Now the tip should be retracted manually by using the external HV-amplifier z-offset voltage to go out of tunneling. Select the required gains and re-approach the tip again.&lt;br /&gt;
&lt;br /&gt;
See also: Approach Tips&lt;br /&gt;
&lt;br /&gt;
The Coarse Approach operation is controlled by the following parameters:&lt;br /&gt;
&lt;br /&gt;
Puls Height[V]&lt;br /&gt;
Input the peak to peak height (in V) of the sawtooth pulse used for moving the inertial slider. Two different values are used for the lateral XY motion and the rotational motion.&lt;br /&gt;
&lt;br /&gt;
Puls-Duration[sec]&lt;br /&gt;
Input the duration of a single sawtooth pulse in seconds. &lt;br /&gt;
&lt;br /&gt;
Burst-Count&lt;br /&gt;
Determines the number of sawtooth pulses applied when operating the coarse control in burst mode.&lt;br /&gt;
&lt;br /&gt;
Approach Period[sec]&lt;br /&gt;
Determines the time for a single approach cycle including approach and retraction of the tip to find the sample surface.&lt;br /&gt;
&lt;br /&gt;
Approach Burst Count&lt;br /&gt;
This is the number of coarse pulses applied between two approach cycles.&lt;br /&gt;
&lt;br /&gt;
Approach Retry Count&lt;br /&gt;
This is the number of retry operations done before the approach is stopped.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[file:cliprampcontrollerCreatec.png]]&lt;br /&gt;
&lt;br /&gt;
== Grid ==&lt;br /&gt;
&lt;br /&gt;
The form 'Grid-Image- Transformation' contains several functions for different kinds of image transformations. A suitable combination of the procedures below will allow transformations useful for drift correction, superstructure analysis, extraction of registry information. To open the form press on the grid button in the STMAFM form. With the 6 slider controls a grid can be overlayed on the image. The lateral position, the angles of the grid and the distance between the grid lines can be adjusted. An alternative way to input the grid is pressing the ''Mouse'' button and to mark 3 points (the first one is the center, the other two determine the direction of the two lines). Pressing the ''Rotation'' button will rotate the image in such a way that one set of the grid lines (X-Axis) is parallel to the horizontal direction. Pressing the ''Zoom'' button will zoom the image by the value set in the edit control positioned next to the right of the button. The image is zoomed around the center point of the grid. By pressing on the ''X..,Y..'' button the actual center position of the grid is stored and displayed on the button. Selecting a new center position with the mouse, as described above, and pressing the ''Move grid to Center'' button will move the new defined center to the stored center position. The ''Transform'' button will transform the image according to the 2 Parameters in the edit controls below. The first is the new angle between the lines in the image and the second is the new ratio the grid line distances. Selecting the ''HexGrid'' check box will draw a grid suitable for hexagonal unit cells. If draw inverted is selected the grid is drawn by a inversion process. Otherwise you can select with &amp;lt;Grid Color&amp;gt; the line color of the grid.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:clipgrid.png]]&lt;br /&gt;
[[File:clipgridimage.png]]&lt;br /&gt;
&lt;br /&gt;
== TimeSpectrum ==&lt;br /&gt;
&lt;br /&gt;
It is very often useful to take a time record of the A/D input channels, without scanning or changing the biasvoltage. This is for example a convenient way to characterize the noise performance of the STM. To take a time record just press the ''Start'' Button on the Time-Spectrum window or press the ''TS'' button on the main window. Five channels are recorded simultaneously. The A/D channels 0 and 3 (ADC0 is called current I) and the topography signal output from the feedback loop, called Z. The displayed channel is selected by the corresponding channel button. Three parameters control the data acquisition:&lt;br /&gt;
&lt;br /&gt;
Spec_Points&lt;br /&gt;
The number of data points taken for a single spectrum. This must be a power of 2, to allow FFT of the data.&lt;br /&gt;
(Maximum is 4096)&lt;br /&gt;
&lt;br /&gt;
Spec_Freq[Hz]&lt;br /&gt;
The sampling frequency. (Limited by the DSP_Clock value)&lt;br /&gt;
&lt;br /&gt;
Spec_Avrg_Count&lt;br /&gt;
The number of spectra averaged. Averaging is done only for the spectrum, i.e. the FFT data.&lt;br /&gt;
&lt;br /&gt;
Channels&lt;br /&gt;
First select the check boxes to determine the channels which are acquired during data acquisition&lt;br /&gt;
Part of these channels can be further selected to be displayed.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The results are displayed in two line graphs.&lt;br /&gt;
The upper one shows the time behaviour. (The vertical scale is always in V)&lt;br /&gt;
The lower one shows the frequency spectrum. (The vertical scale on the left shows the peak to peak value of a pure sine component,&lt;br /&gt;
the right scale the rms amplitude for non correlated signals) &lt;br /&gt;
&lt;br /&gt;
The frequency resolution depends on the number of points and the sampling frequency.&lt;br /&gt;
Important: The current signal and the ADC1 signal are filtered by a first order digital filter, which is controlled by the same CurrentRC Parameter.   &lt;br /&gt;
The contents of the memo field is saved together with the file.&lt;br /&gt;
&lt;br /&gt;
In the lower right the AVRG Value and the Standard Deviation of the timespectra data are shown.&lt;br /&gt;
&lt;br /&gt;
Save&lt;br /&gt;
The data is saved in ASCII Format&lt;br /&gt;
&lt;br /&gt;
FFT logscale: Displays the Spectrum in LogScale&lt;br /&gt;
&lt;br /&gt;
Waterfall: Displays the time dependence of the Spectra in a Waterfall like mode at the bottom of the window&lt;br /&gt;
&lt;br /&gt;
[[file:cliptimespectrum.png]]&lt;br /&gt;
&lt;br /&gt;
== 3d-view ==&lt;br /&gt;
&lt;br /&gt;
This part of the program allows the display of 3d views of selected parts of the images. To start, open the window by clicking the ''3d View'' button. Then click on  &amp;lt;New Data&amp;gt; in the main menue and select a rectangular region on the image displayed in the STMAFM program.  A new form will be opened, where the rendered image is displayed. The sliders in the 3d-view form allow to change the orientation, size, offset and lighting of the 3d object. The 3d image can be displayed in different ways, depending on which check boxes are checked. So the lights can be switched on or off, the 3d image can be shown using lines, hidden lines, or in the normal surface view. Checking the save box will start saving of each images displayed. With this feature a series of BMP images for movies can be created. Checking the ''Box'' box will draw a 3d box with x,y,z axes in the 3dimage.In the light sources field the angle of the light source can be changed. Apart from a directed diffuse light source ambient lighting can be added.&lt;br /&gt;
&lt;br /&gt;
Under the menue item Color the color of the background and of the lines can be changed.&lt;br /&gt;
Morover the image can be copied to the clipboard (in BMP format), to a new window or the data can be exported in PoVRay format. &lt;br /&gt;
(New List means that a new imagedisplaylist is created for the underlying OPENGL rendering program. This usually done automatically)&lt;br /&gt;
&lt;br /&gt;
Selected views can be saved and are saved with the program.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;&amp;quot; widths=&amp;quot;450px&amp;quot; heights=&amp;quot;300px&amp;quot;&amp;gt;&lt;br /&gt;
file:clip3dcontrol.png&lt;br /&gt;
file:clip3dform.png&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Lateral Manipulation ==&lt;br /&gt;
&lt;br /&gt;
To perform a lateral manipulation with the tip one has first to press the Button ''LM'' and then to select the starting and the final position of the manipulation path by selecting these points in the image with the left mouse button. A thin line is drawn on the screen between these points. After the manipulation is completed a separate window opens up where the tip height and current during the manipulation is displayed. By pressing the save button this data set can be saved in a *.LAT File.&lt;br /&gt;
&lt;br /&gt;
Different kinds of manipulation procedures can be performed. They are selected by choosing a certain manipulation mode number in the manipulation parameter field. These different modes are described in the following. The speed of the tip is controlled by the parameters latmandelay and latmanddx, which are used throughout the whole process and not only when the tip is manipulating.&lt;br /&gt;
&lt;br /&gt;
Mode 1: This is the simplest constant current mode manipulation. Starting from the top of the image the tip moves in a straight line to the starting point of the manipulation using the standard feedback parameters used for imaging. Then the feedback parameters are switched to the ones selected in the lateral manipulation parameter set . These are current, voltage and gain of the preamplifier. Then the tip moves using these manipulation parameters to the final position. There the parameters are set back to their original imaging values and the tip moves back to top of the image.&lt;br /&gt;
&lt;br /&gt;
Mode 2: Similar to mode 1, but the tip moves first to the final position, then starts the manipulation to the starting position and goes back to final position. It switches back to imaging parameters and moves to the top of the image.&lt;br /&gt;
&lt;br /&gt;
Mode3: Similar to mode 1: The tip first moves to the starting point. Then it moves to final position and back to the starting position using the normal imaging parameters, but the tip height and current are recorded during these two scans. Then the parameters are switched to the manipulation parameters and the tip moves to the final position. Then the parameters are changed back to the imaging parameters and the tip moves back to the starting position while again recording the tip height and current. Finally the tip moves to the top of the image.&lt;br /&gt;
&lt;br /&gt;
Mode 4: This is a constant height manipulation mode. The tip moves first to the starting position. Then it moves from the starting to the final position and back taking data in normal imaging mode. Then the feedback is switched off and the tip moves from the starting to the final position in constant height mode. The height used is given by the height of the tip when the feedbackloop is switched off plus the additional offset given by latmanccdz. This means that the height depends on the imaging parameters. Then the tip moves back from the final position to the starting position in imaging mode, but taking data again. Finally the tip moves to the top of the image. With the extension factor the manipulation path can be extended at the final position by the factor given by latmanextlextension. The starting point is not affected by the extension factor.&lt;br /&gt;
&lt;br /&gt;
Mode 5: Similar to mode 4. In this mode the extension affects also the starting position. The extension positions are first calculated. The tip moves in imaging mode to extended starting position. Then moves to the final extended position and backward and takes data in imaging mode. Then the tip moves to the starting position, while taking data in imaging mode. Then the tip moves from the starting position to the final position in constant height manipulation mode. Then it moves back to the starting position in imaging mode and takes data. Finally it moves back to the top of the image.&lt;br /&gt;
&lt;br /&gt;
Mode 6: Similar to mode 5. The only difference is that the tip moves from the starting to the final position and backward in constant height mode and not only in the forward direction, as done in mode 5.&lt;br /&gt;
&lt;br /&gt;
Mode 0: This mode is different from the other modes. In mode 0 the tip follows always the mouse position immediately. The height of the tip is displayed on rate meter appearing on the left. By pressing the upper case L key the imaging parameters are switched to the manipulation parameters and back again. (By pressing the upper case S a small 64 pixel * 64 pixel scan is performed.) Clicking with the mouse button will stop the continuous following of the tip. After additional clicking the tip moves to the new mouse position in a straight line and tracks the mouse position again.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
These parameters control the lateral manipulation processes.&lt;br /&gt;
&lt;br /&gt;
Mode&lt;br /&gt;
Select one of several different manipulation modes. There are constant current and constant height modes. For example P0 is the origin of the image. Then the tip moves to P1, the first point selected with the mouse. The tunneling parameters are changed to manipulation parameters and the tip moves from P1 to P2. There the normal tunneling parameters, used for imaging, are selected again and the tip moves to the origin P0.&lt;br /&gt;
&lt;br /&gt;
Voltage[V]&lt;br /&gt;
The tunneling voltage applied during the manipulation phase.&lt;br /&gt;
&lt;br /&gt;
Current[nA]&lt;br /&gt;
The current used during manipulation&lt;br /&gt;
&lt;br /&gt;
Gain preamplifier&lt;br /&gt;
The gain used during manipulation&lt;br /&gt;
&lt;br /&gt;
Manip. Speed[Å/sec]&lt;br /&gt;
The speed of the tip for lateral movements. Used for all movements. Step Size determines the number points measured during a lat. manip. scan.&lt;br /&gt;
&lt;br /&gt;
Extension&lt;br /&gt;
Extension value for manipulation modes 4-6&lt;br /&gt;
&lt;br /&gt;
Const. Height Z-Offset&lt;br /&gt;
In constant height mode the tip sample distance can be varied by this parameters. Positive values [Å} correspond to a closer approach to the surface.&lt;br /&gt;
&lt;br /&gt;
Channels&lt;br /&gt;
Select the channels acquired during data acquisition&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
LatChannelForm&lt;br /&gt;
Press to open a new Form to display the manipulation data.&lt;br /&gt;
&lt;br /&gt;
Lateral Speed [Å/sec]&lt;br /&gt;
Speed at which the tip is moving from the origin to first starting point&lt;br /&gt;
&lt;br /&gt;
LM in old place&lt;br /&gt;
Repeat the LM using the previous coordinates&lt;br /&gt;
&lt;br /&gt;
Load Ext Lat Par&lt;br /&gt;
Load the lateral manipulation cooordinates from an external file.&lt;br /&gt;
&lt;br /&gt;
[[file:cliplatmanip.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The measured data is displayed in separate windows. X and Y scaling can be adjusted by the user. Two independent axis can be displayed. (Press ''2.Axis'')&lt;br /&gt;
''LP'' Low Pass Filter&lt;br /&gt;
''TP'' Makes the Windows transparent to put it on top of another window.&lt;br /&gt;
&lt;br /&gt;
[[file:cliplmanip.png]]&lt;br /&gt;
&lt;br /&gt;
Right click to open the Popupmenu.&lt;br /&gt;
XYDesign, XY Series Edit allows to change the appearance of the Data&lt;br /&gt;
Copyclipboard.. copies the Plot or the Data into the clipboard&lt;br /&gt;
PrintXYGraph prints the XY Plot&lt;br /&gt;
Measure allows measuring the distance between points in the plot&lt;br /&gt;
AutoUpdate: The Plot is updated every second during Data Acquisition. &lt;br /&gt;
Lowpass filters the data (very simple just nearest neighbor average)&lt;br /&gt;
 &lt;br /&gt;
[[file:clipvertmanip_popupmenu1.png]]&lt;br /&gt;
&lt;br /&gt;
== Vertical Manipulation / I/V Spectroscopy ==&lt;br /&gt;
&lt;br /&gt;
Vertical manipulation (spectroscopy) is started by pressing on the ''VM'' button and selecting a point in the image by clicking with the left mouse button. The tip uses the lateral speed value to move to the vertical manipulation position. When the manipulation is finished the measured data appears in a separate window and can be saved with the Save button. Different channels can be selected to be recorded. Usually an external Lockin will be connected to ADC1. The internal Lockin supplies the signals dI/dV, d2I/dV2, di_q,d2_q. The form of the voltage and the z-height ramp is controlled by 8 points in time. In the case of the voltage one can define 8 time points and their corresponding voltage value. For example (0,1000), (256,0), (512,2000),(1024,-1000) define a ramp starting with 1000mV at time 0. Then it will be linear interpolated to time 256 with 0 Volt. Then it goes up again to 2000mV at time 512 and finally reaches -1000mV at time 1024. The time values correspond to the number of points taken. In this case these are 1024 points. A maximum of 100000 points is possible. The z-height values already include the gain of the z-amplifier. This means, that changing the HV gain will not change the z-height ramp, because this will be automatically corrected. Vertspecback = 1 will apply the ramp in forward and backward direction. Vertspecback=n will apply the ramp in forward and backward direction n-times (n&amp;gt;=1). The shape of the ramps is shown in the lower graph in the vertical manipulation window. &lt;br /&gt;
&lt;br /&gt;
Vertical spectroscopy can be done during scanning. Press the VM Button and select a point in the unscanned image area.  &lt;br /&gt;
&lt;br /&gt;
These parameters control the vertical manipulation and spectroscopy&lt;br /&gt;
&lt;br /&gt;
Gain preamplifier&lt;br /&gt;
Gain of the preamplifier during data acquisition&lt;br /&gt;
&lt;br /&gt;
Speclenght[sec]&lt;br /&gt;
Select the recording total time of the spectrum.&lt;br /&gt;
&lt;br /&gt;
Spectrum backward&lt;br /&gt;
0: The Spectrum defined in the V,Z table is taken only once.&lt;br /&gt;
1: The spectrum defined in the V,Z table is taken once in forward and once in backward direction&lt;br /&gt;
&amp;gt;1: Defines how often a forward and backward spectrum is taken&lt;br /&gt;
&lt;br /&gt;
Lateral Speed[Å/sec]&lt;br /&gt;
Speed at which the tip moves to the place where the spectrum will be taken.&lt;br /&gt;
&lt;br /&gt;
Z- Offset&lt;br /&gt;
Defines an additonal offset which is added to the z values in the table&lt;br /&gt;
&lt;br /&gt;
Z-Drift&lt;br /&gt;
Defines an increment which is added to the values in the table to compensate drift effects&lt;br /&gt;
&lt;br /&gt;
Repeat Count&lt;br /&gt;
Defines how many separate spectra are taken and stored.&lt;br /&gt;
&lt;br /&gt;
Spectra/Line&lt;br /&gt;
Defines the number of spectra equally spaced along a line between a start and endpoint,selected by mouse input.&lt;br /&gt;
The first spectrum is taken at the startpoint of the line the last one at the endpoint of the line.  &lt;br /&gt;
&lt;br /&gt;
V,Z table&lt;br /&gt;
4 points can be defined to create a voltage and z table used for vertical manipulation and spectroscopy. The data values are plotted in the graph below. The first Time Value should be set to 1 (not 0, still allowed for compatibility), otherwise the first value might not be displayed.&lt;br /&gt;
(Voltage(green), Z-Position(blue))&lt;br /&gt;
&lt;br /&gt;
Spec_X_Grid&lt;br /&gt;
Spec_Y_Grid&lt;br /&gt;
Determine the spacing of the spectroscopy grid. First spectrum position is (spec_x_grid,spec_y_grid) in pixel coordinates.&lt;br /&gt;
&lt;br /&gt;
SGrid_Channel&lt;br /&gt;
Number of channels recorded during the grid spectroscopy mode&lt;br /&gt;
&lt;br /&gt;
SpecGrid_Delay&lt;br /&gt;
Delay in DSP cycle units added before/after a vertical spectrum is started/finished.&lt;br /&gt;
&lt;br /&gt;
SpecAvrgCount&lt;br /&gt;
Number of Spectra acquired and averaged directly on the DSP board. For Count&amp;gt;1 be aware that the current preamplifier gain for vertical spectroscopy will be set the same to the normal preamplifer gain. Between the spectra the feedback loop will be switched on to readjust the sample tip distance.   &lt;br /&gt;
&lt;br /&gt;
SpecAvrgFBDelay  &lt;br /&gt;
On Time of the Feedback loop in DSP cycle units between spectra in Averaging mode.&lt;br /&gt;
&lt;br /&gt;
Save File&lt;br /&gt;
Save the present Vert. Spektrum&lt;br /&gt;
&lt;br /&gt;
Single_Spectrum&lt;br /&gt;
Take one single spectrum. Select the position with a left mouse button click on the image.&lt;br /&gt;
Same like pressing &amp;lt;VM&amp;gt; button&lt;br /&gt;
&lt;br /&gt;
Spectra along Line&lt;br /&gt;
Take a series of spectra equally spaced a long a line defined by two mouse clicks. &lt;br /&gt;
&lt;br /&gt;
Spec in old Place&lt;br /&gt;
Take a spectrum at the X,Y position of the previous scan.&lt;br /&gt;
&lt;br /&gt;
Multiple Spectra&lt;br /&gt;
Select several spectra taken one after the other. Left Mouse button select another spectrum, right mosue button stop selection and start data acquisition.&lt;br /&gt;
&lt;br /&gt;
MultSpec from File&lt;br /&gt;
Use an external file (Ascii) to define a series of spectra.&lt;br /&gt;
Only 256*256 pixel images allowed. No zoom.  First line contains number of spectra. Each following line contains the x y image coordinates(integer) of each spectrum. &lt;br /&gt;
&lt;br /&gt;
Spectra on Grid&lt;br /&gt;
Spectra taken at each grid position. (Analysis of the Grid data is done in another program)&lt;br /&gt;
&lt;br /&gt;
SaveSpecgrid&lt;br /&gt;
Save the Grid File. Two files are saved. One *.specgrid.dat File with all the parameters and the *.specgrid File with the grid data&lt;br /&gt;
&lt;br /&gt;
VFB_Mode&lt;br /&gt;
Select the VoltageFeedbackMode&lt;br /&gt;
I(V,z): Normal Operation feedback loop is OFF&lt;br /&gt;
z(V): Constant current operation&lt;br /&gt;
&lt;br /&gt;
VFB_Current[nA]&lt;br /&gt;
Current setpoint used in z(V) Mode. FB_Channel has to be current.&lt;br /&gt;
&lt;br /&gt;
Load Vert_Params&lt;br /&gt;
Load only the parameter of a spectrum and not the data&lt;br /&gt;
&lt;br /&gt;
External VZ Data&lt;br /&gt;
If not checked the VZ Data for a spectrum are taken from the VZ-Table parameter.&lt;br /&gt;
If checked the VZData is taken from a different source table, which can be loaded from an external file.&lt;br /&gt;
This allows the user defined design of arbitrary VZ arrays of up to 100000 points. File format see below.  &lt;br /&gt;
&lt;br /&gt;
Filenames:&lt;br /&gt;
First Letter is the machinename, in case you have more than one LTSTM or you want to assign different users.&lt;br /&gt;
Followed by DATE.TIME.VERT. VERT is the standard fileextension.&lt;br /&gt;
In case you take repeated spectra in a point or take spectra along a line an additional &amp;quot;L#Number.R#Number.&amp;quot; indicator is added before&lt;br /&gt;
the VERT file extension. L indicates line position and R indicates the numbering in repeat mode.&lt;br /&gt;
&lt;br /&gt;
[[file:clipvertmanp.png]]&lt;br /&gt;
&lt;br /&gt;
The measured data is displayed in separate windows. X and Y scaling can be adjusted by the user. Two independent axis can be displayed. (Press ''2.Axis'')&lt;br /&gt;
''LP'' Low Pass Filter&lt;br /&gt;
''TP'' Makes the Windows transparent to put it on top of another window.&lt;br /&gt;
&lt;br /&gt;
[[file:clipvmanip.png]]&lt;br /&gt;
&lt;br /&gt;
Right click to open the Popupmenu.&lt;br /&gt;
XYDesign, XY Series Edit allows to change the appearance of the Data&lt;br /&gt;
Copyclipboard.. copies the Plot or the Data into the clipboard&lt;br /&gt;
PrintXYGraph prints the XY Plot&lt;br /&gt;
Measure allows measuring the distance between points in the plot&lt;br /&gt;
AutoUpdate: The Plot is updated every second during Data Acquisition. &lt;br /&gt;
Lowpass filters the data (very simple just nearest neighbor average)&lt;br /&gt;
 &lt;br /&gt;
[[file:clipvertmanip_popupmenu1.png]]&lt;br /&gt;
&lt;br /&gt;
== Slider ==&lt;br /&gt;
&lt;br /&gt;
Brightness and Contrast&lt;br /&gt;
Use the slider window to control the brightness and contrast of the image. The slider marked B adjusts the brightness of the image. The slider marked Z controls the contrast. Above both sliders the corresponding height range in (+/-)Å is displayed.So total height difference between black and white for example is two times the displayed value. On the right for multichannel images the channel, which is displayed can be selected. &lt;br /&gt;
&lt;br /&gt;
Biasvoltage&lt;br /&gt;
The polarity of the biasvoltage can be changed by pressing with the mouse on 'V' label, or by pressing the ''+''/ ''-'' keys. &lt;br /&gt;
&lt;br /&gt;
Press the right mouse button on the 'V' label to open a Popupmenu for the biasvoltage. &lt;br /&gt;
Three options exist:&lt;br /&gt;
SetBiasMinvolt:  If selected sets the current biasvoltage as the minimum biasvoltage.&lt;br /&gt;
SetBiasMaxvolt: If selected sets the current biasvoltage as the maximum biasvoltage.&lt;br /&gt;
This feature can be used to avoid tunneling outside a specific bias voltange range. i.e for example to limit the maximum biasvoltage to protect the tip, when using the silder.&lt;br /&gt;
&lt;br /&gt;
ResetBiasMinMax: If selected deletes the Min/Max values again.&lt;br /&gt;
 &lt;br /&gt;
Current&lt;br /&gt;
Press the right mouse button on the 'A' label to open a Popupmenu for the current. &lt;br /&gt;
&lt;br /&gt;
Log: logarithmic scaling of the current slider&lt;br /&gt;
Lin: linear scaling of the current slider&lt;br /&gt;
&lt;br /&gt;
Channels &lt;br /&gt;
Select the displayed channel. For Channel Nr.=  0 all channels are displayed.&lt;br /&gt;
&lt;br /&gt;
Zoom&lt;br /&gt;
Allowed zoom factors are x1, x2, x3, x4.&lt;br /&gt;
&lt;br /&gt;
Tip up/down&lt;br /&gt;
Press this button to fully retract or to approach the tip.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[file:clipslider.png]]&lt;br /&gt;
&lt;br /&gt;
The height of the slider window can be adjusted. This changes the height of the sliders simultaneously.&lt;br /&gt;
&lt;br /&gt;
== FFT Evaluation ==&lt;br /&gt;
&lt;br /&gt;
This part of the software allows use to analyse FFT transforms of the images. (Always crosscheck the results)&lt;br /&gt;
&lt;br /&gt;
[[file:clipfftevaluation.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Load Files ==&lt;br /&gt;
&lt;br /&gt;
Loading Files is done using the ''Open *.Dat'' menu item.&lt;br /&gt;
&lt;br /&gt;
You can define your own favorite directories in the Windows Places Bar region. (Use for example the TweakUI utility.)&lt;br /&gt;
&lt;br /&gt;
Options:&lt;br /&gt;
&lt;br /&gt;
Full Parameter Load:  Check to load all parameters, not only those relevant for the loaded file type. &lt;br /&gt;
 &lt;br /&gt;
Disable Warning: If checked no warning will be given when files are loaded in data acquisition.                               &lt;br /&gt;
             &lt;br /&gt;
&lt;br /&gt;
[[file:cliploadfile.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Open allows to select in running program or alternatively in a newly opened analysis program.&lt;br /&gt;
&lt;br /&gt;
[[file:cliploadfile2.png]]&lt;br /&gt;
&lt;br /&gt;
== AFM ==&lt;br /&gt;
&lt;br /&gt;
In the following we discuss the operation of the internal PLL system.&lt;br /&gt;
The internal PLL can operate up to 32kHz ( based on 16 samples per period at 512kHz max sample rate).&lt;br /&gt;
This usualy covers operation of standard quartz tuning fork sensors as the qPlus sensor.&lt;br /&gt;
(For higher frequencies optionally the Zurich Instruments PLL can be used externally.)&lt;br /&gt;
The input signal from the Preamplifier is connected to the ADC3 input of ADDA Board 2, while DAC5 of the same ADDA Board supplies the excitation signal. &lt;br /&gt;
&lt;br /&gt;
PLL Centerfreq: determines the center frequency of the PLL. (Change either by typing the number directly or increase/decrease by using the up/down/ page up/page down and both in combination with Shift key)&lt;br /&gt;
PLL-Ampl[nm]: Input the Set value of the Amplitude in nm when the Amplitude controller is on&lt;br /&gt;
PLL-Exc[V]: Input the Excitation value in Volt&lt;br /&gt;
PLL-Phase: Phase Shift of Exciation Signal. Has to be optimized const stable PLL operation&lt;br /&gt;
PLL F Range[+/-Hz]: PLL frequency tracking range. max. allowed deviation from center frequency&lt;br /&gt;
&lt;br /&gt;
PLL On: If selected operation of the PLL is switched on&lt;br /&gt;
Ampl Control: If selected Amplitude Control is switched on&lt;br /&gt;
Active Damping: If selected the Amplitude control can electronically damp the cantilever vibration&lt;br /&gt;
Ref Signal f: If selected DAC2 of the PLL board outputs a reference of the PLL frequency&lt;br /&gt;
Ref Signal 2f: If selected DAC2 of the PLL board outputs a reference of the 2nd harmonic of the PLL frequency&lt;br /&gt;
&lt;br /&gt;
P[Hz/Deg]: Proportional value of the PLL frequency controller&lt;br /&gt;
Int[Hz/deg/s]: Integrator value of the PLL frequency controller&lt;br /&gt;
LP Filter[Hz]: Value of the 4th order loop filter&lt;br /&gt;
P Ampl[V/nm]: Proportional part of the Ampl controller&lt;br /&gt;
LP Amp filter[Hz]: Loop filter of the Amp controller&lt;br /&gt;
df Post Filter[Hz]: Filters the PLL freq data finally before it is output to the STM feedback controller&lt;br /&gt;
&lt;br /&gt;
Sensor Cal[V/nm]: Calibrate the Preamp output in nm units&lt;br /&gt;
SRS Gain: Optionally include the SRS Preamp gain&lt;br /&gt;
&lt;br /&gt;
PLL FreqScan, PLL Phase Scan: Start a frequency or Phase Scan&lt;br /&gt;
Filter PLL_Scan: Filter the Scan Data. (simple 1.order lowpass). can be repeated to allow a beeter calculation of the Q factor etc.&lt;br /&gt;
Show Phase: Displays the phase. Has to be selected to calculate the Q Factor.&lt;br /&gt;
&lt;br /&gt;
Results: Automatic determination of CenterFreq and Q Factor&lt;br /&gt;
&lt;br /&gt;
ScancenterFreq, FreqSpan, ScanTime, ScanPoints: determines the properties of the Frequency Scan or PLL Phase Scan&lt;br /&gt;
&lt;br /&gt;
[[file:Resonance.png]]&lt;br /&gt;
&lt;br /&gt;
[[Category:stmafm_manual]]&lt;br /&gt;
&lt;br /&gt;
== 20 steps to successful AFM operation ==&lt;br /&gt;
&lt;br /&gt;
For a first setup of a functioning PLL useful for scanning in CC, CH or CF mode please refer to the following graphical guide.&lt;br /&gt;
&lt;br /&gt;
[[File:Folie2.PNG|800px]]&lt;br /&gt;
&lt;br /&gt;
[[File:Folie3.PNG|800px]]&lt;br /&gt;
&lt;br /&gt;
[[File:Folie4.PNG|800px]]&lt;br /&gt;
&lt;br /&gt;
[[File:Folie5.PNG|800px]]&lt;br /&gt;
&lt;br /&gt;
In order to start scanning please perform the following steps:&lt;br /&gt;
a) For constant current mode (CC, dynamic STM)&lt;br /&gt;
14. Approach the tip and observe the frequency shift changing from Δf=0 Hz to a finite negative value.&lt;br /&gt;
15. Select the channels ''dF'', ''Amplitude'' and ''Damping'' in the Parameter window in order to measure these signals.&lt;br /&gt;
16. Set the current setpoint to a finite value, i.e. e.g., 10 or 100 pA.&lt;br /&gt;
17. Start scanning in CC mode as you would do in STM mode.&lt;br /&gt;
&lt;br /&gt;
b) For constant force mode (CF, nc-AFM)&lt;br /&gt;
14. Change the feedback mode to ''LinAbs'' and the feedback channel to ''dF''.&lt;br /&gt;
15. Change the integrator value to e.g. -0.0003 or something in the same order of magnitude.&lt;br /&gt;
16. Select the channels ''dF'', ''Amplitude'' and ''Damping'' in the Parameter window.&lt;br /&gt;
17. Set the constant frequency setpoint to a value close to but a little bit smaller than the finite Δf value from above.&lt;br /&gt;
18. Start scanning in CF mode as you would do in STM mode.&lt;br /&gt;
19. Adjust the scanning speed and the integrator together with the amplitude and phase control of the tuning fork.&lt;br /&gt;
20. Observe the current signal and increase the setpoint in order to go closer to the surface.&lt;/div&gt;</summary>
		<author><name>Ltspm</name></author>	</entry>

	<entry>
		<id>http://spm-wiki.createc.de/index.php?title=Forms</id>
		<title>Forms</title>
		<link rel="alternate" type="text/html" href="http://spm-wiki.createc.de/index.php?title=Forms"/>
				<updated>2017-01-01T06:05:23Z</updated>
		
		<summary type="html">&lt;p&gt;Ltspm: /* Grid */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== LineScan ==&lt;br /&gt;
&lt;br /&gt;
Press the ''Lin'' Button to take a line scan of the image. First select two points of the image by pressing the left mouse button. The linescan&lt;br /&gt;
is displayed in the upper linegraph of the linescanform-window. To perform measurements on the linescan press the ''Measure'' button. &lt;br /&gt;
&lt;br /&gt;
Use the left mouse button to select a new point. With the right mouse button you can switch between points. Pressing the Shift button allows to move a whole line. Pressing the right mouse button together with the Shift button will switch to the prependicular averaging mode.&lt;br /&gt;
&lt;br /&gt;
Important: If the linescan form is opened through the menue selection first, all linescan data will be displayed always in the this particular window. Otherwise pressing the LIN button will always open a new window.&lt;br /&gt;
&lt;br /&gt;
Autosize&lt;br /&gt;
Selects automatic scaling of the linegraph&lt;br /&gt;
&lt;br /&gt;
Autolinebacksub&lt;br /&gt;
Selects automatic subtraction of linear background&lt;br /&gt;
&lt;br /&gt;
Line Display Trackbar&lt;br /&gt;
Move to show a line scan of a particular image line. A FFT of the selected line is shown in the lower line graph.(The number of points/line has to be a power of 2)&lt;br /&gt;
&lt;br /&gt;
Popup menu of upper linegraph&lt;br /&gt;
xydesign: Select to adjust the appearance of the line graph&lt;br /&gt;
CopyClipboardData: The line scan data are copied to the ClipBoard&lt;br /&gt;
CopyClipboardXYGraph: The line scan graph is copied to the ClipBoard&lt;br /&gt;
Printxygraph: The line scan graph is send to the printer&lt;br /&gt;
Measure: Do measurements of the plot data.&lt;br /&gt;
Redrawline: The line in the image is redrawn&lt;br /&gt;
&lt;br /&gt;
Popup menu of lower linegraph&lt;br /&gt;
has the same items as the upper popup menu and one additional entry:&lt;br /&gt;
Show Frequency: Gives the FFT in frequency [Hz] instead of inverse distance [1/Å] (updated when the Line Display Trackbar is moved)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Channels&lt;br /&gt;
Select the channels which are displayed&lt;br /&gt;
&lt;br /&gt;
[[file:cliplinescan.png]]&lt;br /&gt;
&lt;br /&gt;
[[file:cliplinescanpopupmenu.png]]&lt;br /&gt;
&lt;br /&gt;
== Rampcontroller ==&lt;br /&gt;
&lt;br /&gt;
Click on the ''Ramp'' button. This opens the 'Rampcontroller'-window with control elements necessary to perform the coarse approach. The 6 buttons with arrows in the top of the form correspond to moving the tip in respect to the sample surface. Moving in x/y direction can also be done using the x/y cursor keys on the keyboard. The page up and page down keys are used correspondingly for rotation up and down. Selecting the burst mode in x/y or rotation will result in a series of steps corresponding to the number of burst steps displayed in the ramp parameter list. When the Crash Protection is switched on, the program checks before each step, whether it can detect a tunneling current. If this is the case it will cancel the step. Usually the crash protection should be switched on, but in cases where the tip is already crashed, the protection has to be switched off. The program issues some warnings when the ramp windows opens to inform the user to do necessary changes for a successful ramping. These are: First retract the tip, reset the x- and y-offset in the STM-program, select the appropriate gain (1-10, depending on the temperature) in the x- and y- channel of the HV-amplifier and set the external offset voltages to zero.&lt;br /&gt;
The usual coarse approach is done by controlling the approach with an optical microscope. When the tip is  close enough, the automatic tip approach can be switched on, by pressing the ''Approach'' button. It will start a combination of single coarse approach rotation steps combined with tip approach testing until the tip can reach the sample. ''Approach'' stops when a tunneling current is detected. The value of this threshold current is set by the current slider. Important: When the approach stops, the tip is automatically retracted, by setting the current to zero. Before leaving the coarse approach by pressing the ''Quit'' button, you have to select the mode for scanning. When the ''Main/Coarse'' button displays 'Coarse' mode, then the outer 3 piezos are used for scanning, otherwise the center piezo is used. In the normal operation of the microscope the 'Coarse' mode should be selected. Select the required set point current to see if the approach was successful. Now the tip should be retracted manually by using the external HV-amplifier z-offset voltage to go out of tunneling. Select the required gains and re-approach the tip again.&lt;br /&gt;
&lt;br /&gt;
See also: Approach Tips&lt;br /&gt;
&lt;br /&gt;
The Coarse Approach operation is controlled by the following parameters:&lt;br /&gt;
&lt;br /&gt;
Puls Height[V]&lt;br /&gt;
Input the peak to peak height (in V) of the sawtooth pulse used for moving the inertial slider. Two different values are used for the lateral XY motion and the rotational motion.&lt;br /&gt;
&lt;br /&gt;
Puls-Duration[sec]&lt;br /&gt;
Input the duration of a single sawtooth pulse in seconds. &lt;br /&gt;
&lt;br /&gt;
Burst-Count&lt;br /&gt;
Determines the number of sawtooth pulses applied when operating the coarse control in burst mode.&lt;br /&gt;
&lt;br /&gt;
Approach Period[sec]&lt;br /&gt;
Determines the time for a single approach cycle including approach and retraction of the tip to find the sample surface.&lt;br /&gt;
&lt;br /&gt;
Approach Burst Count&lt;br /&gt;
This is the number of coarse pulses applied between two approach cycles.&lt;br /&gt;
&lt;br /&gt;
Approach Retry Count&lt;br /&gt;
This is the number of retry operations done before the approach is stopped.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[file:cliprampcontrollerCreatec.png]]&lt;br /&gt;
&lt;br /&gt;
== Grid ==&lt;br /&gt;
&lt;br /&gt;
The form 'Grid-Image- Transformation' contains several functions for different kinds of image transformations. A suitable combination of the procedures below will allow transformations useful for drift correction, superstructure analysis, extraction of registry information. To open the form press on the grid button in the STMAFM form. With the 6 slider controls a grid can be overlayed on the image. The lateral position, the angles of the grid and the distance between the grid lines can be adjusted. An alternative way to input the grid is pressing the ''Mouse'' button and to mark 3 points (the first one is the center, the other two determine the direction of the two lines). Pressing the ''Rotation'' button will rotate the image in such a way that one set of the grid lines (X-Axis) is parallel to the horizontal direction. Pressing the ''Zoom'' button will zoom the image by the value set in the edit control positioned next to the right of the button. The image is zoomed around the center point of the grid. By pressing on the ''X..,Y..'' button the actual center position of the grid is stored and displayed on the button. Selecting a new center position with the mouse, as described above, and pressing the ''Move grid to Center'' button will move the new defined center to the stored center position. The ''Transform'' button will transform the image according to the 2 Parameters in the edit controls below. The first is the new angle between the lines in the image and the second is the new ratio the grid line distances. Selecting the ''HexGrid'' check box will draw a grid suitable for hexagonal unit cells. If draw inverted is selected the grid is drawn by a inversion process. Otherwise you can select with &amp;lt;Grid Color&amp;gt; the line color of the grid.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;&amp;quot; widths=&amp;quot;400px&amp;quot; heights=&amp;quot;400px&amp;quot;&amp;gt;&lt;br /&gt;
[[File:clipgrid.png]]&lt;br /&gt;
[[File:clipgridimage.png]]&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== TimeSpectrum ==&lt;br /&gt;
&lt;br /&gt;
It is very often useful to take a time record of the A/D input channels, without scanning or changing the biasvoltage. This is for example a convenient way to characterize the noise performance of the STM. To take a time record just press the ''Start'' Button on the Time-Spectrum window or press the ''TS'' button on the main window. Five channels are recorded simultaneously. The A/D channels 0 and 3 (ADC0 is called current I) and the topography signal output from the feedback loop, called Z. The displayed channel is selected by the corresponding channel button. Three parameters control the data acquisition:&lt;br /&gt;
&lt;br /&gt;
Spec_Points&lt;br /&gt;
The number of data points taken for a single spectrum. This must be a power of 2, to allow FFT of the data.&lt;br /&gt;
(Maximum is 4096)&lt;br /&gt;
&lt;br /&gt;
Spec_Freq[Hz]&lt;br /&gt;
The sampling frequency. (Limited by the DSP_Clock value)&lt;br /&gt;
&lt;br /&gt;
Spec_Avrg_Count&lt;br /&gt;
The number of spectra averaged. Averaging is done only for the spectrum, i.e. the FFT data.&lt;br /&gt;
&lt;br /&gt;
Channels&lt;br /&gt;
First select the check boxes to determine the channels which are acquired during data acquisition&lt;br /&gt;
Part of these channels can be further selected to be displayed.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The results are displayed in two line graphs.&lt;br /&gt;
The upper one shows the time behaviour. (The vertical scale is always in V)&lt;br /&gt;
The lower one shows the frequency spectrum. (The vertical scale on the left shows the peak to peak value of a pure sine component,&lt;br /&gt;
the right scale the rms amplitude for non correlated signals) &lt;br /&gt;
&lt;br /&gt;
The frequency resolution depends on the number of points and the sampling frequency.&lt;br /&gt;
Important: The current signal and the ADC1 signal are filtered by a first order digital filter, which is controlled by the same CurrentRC Parameter.   &lt;br /&gt;
The contents of the memo field is saved together with the file.&lt;br /&gt;
&lt;br /&gt;
In the lower right the AVRG Value and the Standard Deviation of the timespectra data are shown.&lt;br /&gt;
&lt;br /&gt;
Save&lt;br /&gt;
The data is saved in ASCII Format&lt;br /&gt;
&lt;br /&gt;
FFT logscale: Displays the Spectrum in LogScale&lt;br /&gt;
&lt;br /&gt;
Waterfall: Displays the time dependence of the Spectra in a Waterfall like mode at the bottom of the window&lt;br /&gt;
&lt;br /&gt;
[[file:cliptimespectrum.png]]&lt;br /&gt;
&lt;br /&gt;
== 3d-view ==&lt;br /&gt;
&lt;br /&gt;
This part of the program allows the display of 3d views of selected parts of the images. To start, open the window by clicking the ''3d View'' button. Then click on  &amp;lt;New Data&amp;gt; in the main menue and select a rectangular region on the image displayed in the STMAFM program.  A new form will be opened, where the rendered image is displayed. The sliders in the 3d-view form allow to change the orientation, size, offset and lighting of the 3d object. The 3d image can be displayed in different ways, depending on which check boxes are checked. So the lights can be switched on or off, the 3d image can be shown using lines, hidden lines, or in the normal surface view. Checking the save box will start saving of each images displayed. With this feature a series of BMP images for movies can be created. Checking the ''Box'' box will draw a 3d box with x,y,z axes in the 3dimage.In the light sources field the angle of the light source can be changed. Apart from a directed diffuse light source ambient lighting can be added.&lt;br /&gt;
&lt;br /&gt;
Under the menue item Color the color of the background and of the lines can be changed.&lt;br /&gt;
Morover the image can be copied to the clipboard (in BMP format), to a new window or the data can be exported in PoVRay format. &lt;br /&gt;
(New List means that a new imagedisplaylist is created for the underlying OPENGL rendering program. This usually done automatically)&lt;br /&gt;
&lt;br /&gt;
Selected views can be saved and are saved with the program.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;&amp;quot; widths=&amp;quot;450px&amp;quot; heights=&amp;quot;300px&amp;quot;&amp;gt;&lt;br /&gt;
file:clip3dcontrol.png&lt;br /&gt;
file:clip3dform.png&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Lateral Manipulation ==&lt;br /&gt;
&lt;br /&gt;
To perform a lateral manipulation with the tip one has first to press the Button ''LM'' and then to select the starting and the final position of the manipulation path by selecting these points in the image with the left mouse button. A thin line is drawn on the screen between these points. After the manipulation is completed a separate window opens up where the tip height and current during the manipulation is displayed. By pressing the save button this data set can be saved in a *.LAT File.&lt;br /&gt;
&lt;br /&gt;
Different kinds of manipulation procedures can be performed. They are selected by choosing a certain manipulation mode number in the manipulation parameter field. These different modes are described in the following. The speed of the tip is controlled by the parameters latmandelay and latmanddx, which are used throughout the whole process and not only when the tip is manipulating.&lt;br /&gt;
&lt;br /&gt;
Mode 1: This is the simplest constant current mode manipulation. Starting from the top of the image the tip moves in a straight line to the starting point of the manipulation using the standard feedback parameters used for imaging. Then the feedback parameters are switched to the ones selected in the lateral manipulation parameter set . These are current, voltage and gain of the preamplifier. Then the tip moves using these manipulation parameters to the final position. There the parameters are set back to their original imaging values and the tip moves back to top of the image.&lt;br /&gt;
&lt;br /&gt;
Mode 2: Similar to mode 1, but the tip moves first to the final position, then starts the manipulation to the starting position and goes back to final position. It switches back to imaging parameters and moves to the top of the image.&lt;br /&gt;
&lt;br /&gt;
Mode3: Similar to mode 1: The tip first moves to the starting point. Then it moves to final position and back to the starting position using the normal imaging parameters, but the tip height and current are recorded during these two scans. Then the parameters are switched to the manipulation parameters and the tip moves to the final position. Then the parameters are changed back to the imaging parameters and the tip moves back to the starting position while again recording the tip height and current. Finally the tip moves to the top of the image.&lt;br /&gt;
&lt;br /&gt;
Mode 4: This is a constant height manipulation mode. The tip moves first to the starting position. Then it moves from the starting to the final position and back taking data in normal imaging mode. Then the feedback is switched off and the tip moves from the starting to the final position in constant height mode. The height used is given by the height of the tip when the feedbackloop is switched off plus the additional offset given by latmanccdz. This means that the height depends on the imaging parameters. Then the tip moves back from the final position to the starting position in imaging mode, but taking data again. Finally the tip moves to the top of the image. With the extension factor the manipulation path can be extended at the final position by the factor given by latmanextlextension. The starting point is not affected by the extension factor.&lt;br /&gt;
&lt;br /&gt;
Mode 5: Similar to mode 4. In this mode the extension affects also the starting position. The extension positions are first calculated. The tip moves in imaging mode to extended starting position. Then moves to the final extended position and backward and takes data in imaging mode. Then the tip moves to the starting position, while taking data in imaging mode. Then the tip moves from the starting position to the final position in constant height manipulation mode. Then it moves back to the starting position in imaging mode and takes data. Finally it moves back to the top of the image.&lt;br /&gt;
&lt;br /&gt;
Mode 6: Similar to mode 5. The only difference is that the tip moves from the starting to the final position and backward in constant height mode and not only in the forward direction, as done in mode 5.&lt;br /&gt;
&lt;br /&gt;
Mode 0: This mode is different from the other modes. In mode 0 the tip follows always the mouse position immediately. The height of the tip is displayed on rate meter appearing on the left. By pressing the upper case L key the imaging parameters are switched to the manipulation parameters and back again. (By pressing the upper case S a small 64 pixel * 64 pixel scan is performed.) Clicking with the mouse button will stop the continuous following of the tip. After additional clicking the tip moves to the new mouse position in a straight line and tracks the mouse position again.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
These parameters control the lateral manipulation processes.&lt;br /&gt;
&lt;br /&gt;
Mode&lt;br /&gt;
Select one of several different manipulation modes. There are constant current and constant height modes. For example P0 is the origin of the image. Then the tip moves to P1, the first point selected with the mouse. The tunneling parameters are changed to manipulation parameters and the tip moves from P1 to P2. There the normal tunneling parameters, used for imaging, are selected again and the tip moves to the origin P0.&lt;br /&gt;
&lt;br /&gt;
Voltage[V]&lt;br /&gt;
The tunneling voltage applied during the manipulation phase.&lt;br /&gt;
&lt;br /&gt;
Current[nA]&lt;br /&gt;
The current used during manipulation&lt;br /&gt;
&lt;br /&gt;
Gain preamplifier&lt;br /&gt;
The gain used during manipulation&lt;br /&gt;
&lt;br /&gt;
Manip. Speed[Å/sec]&lt;br /&gt;
The speed of the tip for lateral movements. Used for all movements. Step Size determines the number points measured during a lat. manip. scan.&lt;br /&gt;
&lt;br /&gt;
Extension&lt;br /&gt;
Extension value for manipulation modes 4-6&lt;br /&gt;
&lt;br /&gt;
Const. Height Z-Offset&lt;br /&gt;
In constant height mode the tip sample distance can be varied by this parameters. Positive values [Å} correspond to a closer approach to the surface.&lt;br /&gt;
&lt;br /&gt;
Channels&lt;br /&gt;
Select the channels acquired during data acquisition&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
LatChannelForm&lt;br /&gt;
Press to open a new Form to display the manipulation data.&lt;br /&gt;
&lt;br /&gt;
Lateral Speed [Å/sec]&lt;br /&gt;
Speed at which the tip is moving from the origin to first starting point&lt;br /&gt;
&lt;br /&gt;
LM in old place&lt;br /&gt;
Repeat the LM using the previous coordinates&lt;br /&gt;
&lt;br /&gt;
Load Ext Lat Par&lt;br /&gt;
Load the lateral manipulation cooordinates from an external file.&lt;br /&gt;
&lt;br /&gt;
[[file:cliplatmanip.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The measured data is displayed in separate windows. X and Y scaling can be adjusted by the user. Two independent axis can be displayed. (Press ''2.Axis'')&lt;br /&gt;
''LP'' Low Pass Filter&lt;br /&gt;
''TP'' Makes the Windows transparent to put it on top of another window.&lt;br /&gt;
&lt;br /&gt;
[[file:cliplmanip.png]]&lt;br /&gt;
&lt;br /&gt;
Right click to open the Popupmenu.&lt;br /&gt;
XYDesign, XY Series Edit allows to change the appearance of the Data&lt;br /&gt;
Copyclipboard.. copies the Plot or the Data into the clipboard&lt;br /&gt;
PrintXYGraph prints the XY Plot&lt;br /&gt;
Measure allows measuring the distance between points in the plot&lt;br /&gt;
AutoUpdate: The Plot is updated every second during Data Acquisition. &lt;br /&gt;
Lowpass filters the data (very simple just nearest neighbor average)&lt;br /&gt;
 &lt;br /&gt;
[[file:clipvertmanip_popupmenu1.png]]&lt;br /&gt;
&lt;br /&gt;
== Vertical Manipulation / I/V Spectroscopy ==&lt;br /&gt;
&lt;br /&gt;
Vertical manipulation (spectroscopy) is started by pressing on the ''VM'' button and selecting a point in the image by clicking with the left mouse button. The tip uses the lateral speed value to move to the vertical manipulation position. When the manipulation is finished the measured data appears in a separate window and can be saved with the Save button. Different channels can be selected to be recorded. Usually an external Lockin will be connected to ADC1. The internal Lockin supplies the signals dI/dV, d2I/dV2, di_q,d2_q. The form of the voltage and the z-height ramp is controlled by 8 points in time. In the case of the voltage one can define 8 time points and their corresponding voltage value. For example (0,1000), (256,0), (512,2000),(1024,-1000) define a ramp starting with 1000mV at time 0. Then it will be linear interpolated to time 256 with 0 Volt. Then it goes up again to 2000mV at time 512 and finally reaches -1000mV at time 1024. The time values correspond to the number of points taken. In this case these are 1024 points. A maximum of 100000 points is possible. The z-height values already include the gain of the z-amplifier. This means, that changing the HV gain will not change the z-height ramp, because this will be automatically corrected. Vertspecback = 1 will apply the ramp in forward and backward direction. Vertspecback=n will apply the ramp in forward and backward direction n-times (n&amp;gt;=1). The shape of the ramps is shown in the lower graph in the vertical manipulation window. &lt;br /&gt;
&lt;br /&gt;
Vertical spectroscopy can be done during scanning. Press the VM Button and select a point in the unscanned image area.  &lt;br /&gt;
&lt;br /&gt;
These parameters control the vertical manipulation and spectroscopy&lt;br /&gt;
&lt;br /&gt;
Gain preamplifier&lt;br /&gt;
Gain of the preamplifier during data acquisition&lt;br /&gt;
&lt;br /&gt;
Speclenght[sec]&lt;br /&gt;
Select the recording total time of the spectrum.&lt;br /&gt;
&lt;br /&gt;
Spectrum backward&lt;br /&gt;
0: The Spectrum defined in the V,Z table is taken only once.&lt;br /&gt;
1: The spectrum defined in the V,Z table is taken once in forward and once in backward direction&lt;br /&gt;
&amp;gt;1: Defines how often a forward and backward spectrum is taken&lt;br /&gt;
&lt;br /&gt;
Lateral Speed[Å/sec]&lt;br /&gt;
Speed at which the tip moves to the place where the spectrum will be taken.&lt;br /&gt;
&lt;br /&gt;
Z- Offset&lt;br /&gt;
Defines an additonal offset which is added to the z values in the table&lt;br /&gt;
&lt;br /&gt;
Z-Drift&lt;br /&gt;
Defines an increment which is added to the values in the table to compensate drift effects&lt;br /&gt;
&lt;br /&gt;
Repeat Count&lt;br /&gt;
Defines how many separate spectra are taken and stored.&lt;br /&gt;
&lt;br /&gt;
Spectra/Line&lt;br /&gt;
Defines the number of spectra equally spaced along a line between a start and endpoint,selected by mouse input.&lt;br /&gt;
The first spectrum is taken at the startpoint of the line the last one at the endpoint of the line.  &lt;br /&gt;
&lt;br /&gt;
V,Z table&lt;br /&gt;
4 points can be defined to create a voltage and z table used for vertical manipulation and spectroscopy. The data values are plotted in the graph below. The first Time Value should be set to 1 (not 0, still allowed for compatibility), otherwise the first value might not be displayed.&lt;br /&gt;
(Voltage(green), Z-Position(blue))&lt;br /&gt;
&lt;br /&gt;
Spec_X_Grid&lt;br /&gt;
Spec_Y_Grid&lt;br /&gt;
Determine the spacing of the spectroscopy grid. First spectrum position is (spec_x_grid,spec_y_grid) in pixel coordinates.&lt;br /&gt;
&lt;br /&gt;
SGrid_Channel&lt;br /&gt;
Number of channels recorded during the grid spectroscopy mode&lt;br /&gt;
&lt;br /&gt;
SpecGrid_Delay&lt;br /&gt;
Delay in DSP cycle units added before/after a vertical spectrum is started/finished.&lt;br /&gt;
&lt;br /&gt;
SpecAvrgCount&lt;br /&gt;
Number of Spectra acquired and averaged directly on the DSP board. For Count&amp;gt;1 be aware that the current preamplifier gain for vertical spectroscopy will be set the same to the normal preamplifer gain. Between the spectra the feedback loop will be switched on to readjust the sample tip distance.   &lt;br /&gt;
&lt;br /&gt;
SpecAvrgFBDelay  &lt;br /&gt;
On Time of the Feedback loop in DSP cycle units between spectra in Averaging mode.&lt;br /&gt;
&lt;br /&gt;
Save File&lt;br /&gt;
Save the present Vert. Spektrum&lt;br /&gt;
&lt;br /&gt;
Single_Spectrum&lt;br /&gt;
Take one single spectrum. Select the position with a left mouse button click on the image.&lt;br /&gt;
Same like pressing &amp;lt;VM&amp;gt; button&lt;br /&gt;
&lt;br /&gt;
Spectra along Line&lt;br /&gt;
Take a series of spectra equally spaced a long a line defined by two mouse clicks. &lt;br /&gt;
&lt;br /&gt;
Spec in old Place&lt;br /&gt;
Take a spectrum at the X,Y position of the previous scan.&lt;br /&gt;
&lt;br /&gt;
Multiple Spectra&lt;br /&gt;
Select several spectra taken one after the other. Left Mouse button select another spectrum, right mosue button stop selection and start data acquisition.&lt;br /&gt;
&lt;br /&gt;
MultSpec from File&lt;br /&gt;
Use an external file (Ascii) to define a series of spectra.&lt;br /&gt;
Only 256*256 pixel images allowed. No zoom.  First line contains number of spectra. Each following line contains the x y image coordinates(integer) of each spectrum. &lt;br /&gt;
&lt;br /&gt;
Spectra on Grid&lt;br /&gt;
Spectra taken at each grid position. (Analysis of the Grid data is done in another program)&lt;br /&gt;
&lt;br /&gt;
SaveSpecgrid&lt;br /&gt;
Save the Grid File. Two files are saved. One *.specgrid.dat File with all the parameters and the *.specgrid File with the grid data&lt;br /&gt;
&lt;br /&gt;
VFB_Mode&lt;br /&gt;
Select the VoltageFeedbackMode&lt;br /&gt;
I(V,z): Normal Operation feedback loop is OFF&lt;br /&gt;
z(V): Constant current operation&lt;br /&gt;
&lt;br /&gt;
VFB_Current[nA]&lt;br /&gt;
Current setpoint used in z(V) Mode. FB_Channel has to be current.&lt;br /&gt;
&lt;br /&gt;
Load Vert_Params&lt;br /&gt;
Load only the parameter of a spectrum and not the data&lt;br /&gt;
&lt;br /&gt;
External VZ Data&lt;br /&gt;
If not checked the VZ Data for a spectrum are taken from the VZ-Table parameter.&lt;br /&gt;
If checked the VZData is taken from a different source table, which can be loaded from an external file.&lt;br /&gt;
This allows the user defined design of arbitrary VZ arrays of up to 100000 points. File format see below.  &lt;br /&gt;
&lt;br /&gt;
Filenames:&lt;br /&gt;
First Letter is the machinename, in case you have more than one LTSTM or you want to assign different users.&lt;br /&gt;
Followed by DATE.TIME.VERT. VERT is the standard fileextension.&lt;br /&gt;
In case you take repeated spectra in a point or take spectra along a line an additional &amp;quot;L#Number.R#Number.&amp;quot; indicator is added before&lt;br /&gt;
the VERT file extension. L indicates line position and R indicates the numbering in repeat mode.&lt;br /&gt;
&lt;br /&gt;
[[file:clipvertmanp.png]]&lt;br /&gt;
&lt;br /&gt;
The measured data is displayed in separate windows. X and Y scaling can be adjusted by the user. Two independent axis can be displayed. (Press ''2.Axis'')&lt;br /&gt;
''LP'' Low Pass Filter&lt;br /&gt;
''TP'' Makes the Windows transparent to put it on top of another window.&lt;br /&gt;
&lt;br /&gt;
[[file:clipvmanip.png]]&lt;br /&gt;
&lt;br /&gt;
Right click to open the Popupmenu.&lt;br /&gt;
XYDesign, XY Series Edit allows to change the appearance of the Data&lt;br /&gt;
Copyclipboard.. copies the Plot or the Data into the clipboard&lt;br /&gt;
PrintXYGraph prints the XY Plot&lt;br /&gt;
Measure allows measuring the distance between points in the plot&lt;br /&gt;
AutoUpdate: The Plot is updated every second during Data Acquisition. &lt;br /&gt;
Lowpass filters the data (very simple just nearest neighbor average)&lt;br /&gt;
 &lt;br /&gt;
[[file:clipvertmanip_popupmenu1.png]]&lt;br /&gt;
&lt;br /&gt;
== Slider ==&lt;br /&gt;
&lt;br /&gt;
Brightness and Contrast&lt;br /&gt;
Use the slider window to control the brightness and contrast of the image. The slider marked B adjusts the brightness of the image. The slider marked Z controls the contrast. Above both sliders the corresponding height range in (+/-)Å is displayed.So total height difference between black and white for example is two times the displayed value. On the right for multichannel images the channel, which is displayed can be selected. &lt;br /&gt;
&lt;br /&gt;
Biasvoltage&lt;br /&gt;
The polarity of the biasvoltage can be changed by pressing with the mouse on 'V' label, or by pressing the ''+''/ ''-'' keys. &lt;br /&gt;
&lt;br /&gt;
Press the right mouse button on the 'V' label to open a Popupmenu for the biasvoltage. &lt;br /&gt;
Three options exist:&lt;br /&gt;
SetBiasMinvolt:  If selected sets the current biasvoltage as the minimum biasvoltage.&lt;br /&gt;
SetBiasMaxvolt: If selected sets the current biasvoltage as the maximum biasvoltage.&lt;br /&gt;
This feature can be used to avoid tunneling outside a specific bias voltange range. i.e for example to limit the maximum biasvoltage to protect the tip, when using the silder.&lt;br /&gt;
&lt;br /&gt;
ResetBiasMinMax: If selected deletes the Min/Max values again.&lt;br /&gt;
 &lt;br /&gt;
Current&lt;br /&gt;
Press the right mouse button on the 'A' label to open a Popupmenu for the current. &lt;br /&gt;
&lt;br /&gt;
Log: logarithmic scaling of the current slider&lt;br /&gt;
Lin: linear scaling of the current slider&lt;br /&gt;
&lt;br /&gt;
Channels &lt;br /&gt;
Select the displayed channel. For Channel Nr.=  0 all channels are displayed.&lt;br /&gt;
&lt;br /&gt;
Zoom&lt;br /&gt;
Allowed zoom factors are x1, x2, x3, x4.&lt;br /&gt;
&lt;br /&gt;
Tip up/down&lt;br /&gt;
Press this button to fully retract or to approach the tip.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[file:clipslider.png]]&lt;br /&gt;
&lt;br /&gt;
The height of the slider window can be adjusted. This changes the height of the sliders simultaneously.&lt;br /&gt;
&lt;br /&gt;
== FFT Evaluation ==&lt;br /&gt;
&lt;br /&gt;
This part of the software allows use to analyse FFT transforms of the images. (Always crosscheck the results)&lt;br /&gt;
&lt;br /&gt;
[[file:clipfftevaluation.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Load Files ==&lt;br /&gt;
&lt;br /&gt;
Loading Files is done using the ''Open *.Dat'' menu item.&lt;br /&gt;
&lt;br /&gt;
You can define your own favorite directories in the Windows Places Bar region. (Use for example the TweakUI utility.)&lt;br /&gt;
&lt;br /&gt;
Options:&lt;br /&gt;
&lt;br /&gt;
Full Parameter Load:  Check to load all parameters, not only those relevant for the loaded file type. &lt;br /&gt;
 &lt;br /&gt;
Disable Warning: If checked no warning will be given when files are loaded in data acquisition.                               &lt;br /&gt;
             &lt;br /&gt;
&lt;br /&gt;
[[file:cliploadfile.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Open allows to select in running program or alternatively in a newly opened analysis program.&lt;br /&gt;
&lt;br /&gt;
[[file:cliploadfile2.png]]&lt;br /&gt;
&lt;br /&gt;
== AFM ==&lt;br /&gt;
&lt;br /&gt;
In the following we discuss the operation of the internal PLL system.&lt;br /&gt;
The internal PLL can operate up to 32kHz ( based on 16 samples per period at 512kHz max sample rate).&lt;br /&gt;
This usualy covers operation of standard quartz tuning fork sensors as the qPlus sensor.&lt;br /&gt;
(For higher frequencies optionally the Zurich Instruments PLL can be used externally.)&lt;br /&gt;
The input signal from the Preamplifier is connected to the ADC3 input of ADDA Board 2, while DAC5 of the same ADDA Board supplies the excitation signal. &lt;br /&gt;
&lt;br /&gt;
PLL Centerfreq: determines the center frequency of the PLL. (Change either by typing the number directly or increase/decrease by using the up/down/ page up/page down and both in combination with Shift key)&lt;br /&gt;
PLL-Ampl[nm]: Input the Set value of the Amplitude in nm when the Amplitude controller is on&lt;br /&gt;
PLL-Exc[V]: Input the Excitation value in Volt&lt;br /&gt;
PLL-Phase: Phase Shift of Exciation Signal. Has to be optimized const stable PLL operation&lt;br /&gt;
PLL F Range[+/-Hz]: PLL frequency tracking range. max. allowed deviation from center frequency&lt;br /&gt;
&lt;br /&gt;
PLL On: If selected operation of the PLL is switched on&lt;br /&gt;
Ampl Control: If selected Amplitude Control is switched on&lt;br /&gt;
Active Damping: If selected the Amplitude control can electronically damp the cantilever vibration&lt;br /&gt;
Ref Signal f: If selected DAC2 of the PLL board outputs a reference of the PLL frequency&lt;br /&gt;
Ref Signal 2f: If selected DAC2 of the PLL board outputs a reference of the 2nd harmonic of the PLL frequency&lt;br /&gt;
&lt;br /&gt;
P[Hz/Deg]: Proportional value of the PLL frequency controller&lt;br /&gt;
Int[Hz/deg/s]: Integrator value of the PLL frequency controller&lt;br /&gt;
LP Filter[Hz]: Value of the 4th order loop filter&lt;br /&gt;
P Ampl[V/nm]: Proportional part of the Ampl controller&lt;br /&gt;
LP Amp filter[Hz]: Loop filter of the Amp controller&lt;br /&gt;
df Post Filter[Hz]: Filters the PLL freq data finally before it is output to the STM feedback controller&lt;br /&gt;
&lt;br /&gt;
Sensor Cal[V/nm]: Calibrate the Preamp output in nm units&lt;br /&gt;
SRS Gain: Optionally include the SRS Preamp gain&lt;br /&gt;
&lt;br /&gt;
PLL FreqScan, PLL Phase Scan: Start a frequency or Phase Scan&lt;br /&gt;
Filter PLL_Scan: Filter the Scan Data. (simple 1.order lowpass). can be repeated to allow a beeter calculation of the Q factor etc.&lt;br /&gt;
Show Phase: Displays the phase. Has to be selected to calculate the Q Factor.&lt;br /&gt;
&lt;br /&gt;
Results: Automatic determination of CenterFreq and Q Factor&lt;br /&gt;
&lt;br /&gt;
ScancenterFreq, FreqSpan, ScanTime, ScanPoints: determines the properties of the Frequency Scan or PLL Phase Scan&lt;br /&gt;
&lt;br /&gt;
[[file:Resonance.png]]&lt;br /&gt;
&lt;br /&gt;
[[Category:stmafm_manual]]&lt;br /&gt;
&lt;br /&gt;
== 20 steps to successful AFM operation ==&lt;br /&gt;
&lt;br /&gt;
For a first setup of a functioning PLL useful for scanning in CC, CH or CF mode please refer to the following graphical guide.&lt;br /&gt;
&lt;br /&gt;
[[File:Folie2.PNG|800px]]&lt;br /&gt;
&lt;br /&gt;
[[File:Folie3.PNG|800px]]&lt;br /&gt;
&lt;br /&gt;
[[File:Folie4.PNG|800px]]&lt;br /&gt;
&lt;br /&gt;
[[File:Folie5.PNG|800px]]&lt;br /&gt;
&lt;br /&gt;
In order to start scanning please perform the following steps:&lt;br /&gt;
a) For constant current mode (CC, dynamic STM)&lt;br /&gt;
14. Approach the tip and observe the frequency shift changing from Δf=0 Hz to a finite negative value.&lt;br /&gt;
15. Select the channels ''dF'', ''Amplitude'' and ''Damping'' in the Parameter window in order to measure these signals.&lt;br /&gt;
16. Set the current setpoint to a finite value, i.e. e.g., 10 or 100 pA.&lt;br /&gt;
17. Start scanning in CC mode as you would do in STM mode.&lt;br /&gt;
&lt;br /&gt;
b) For constant force mode (CF, nc-AFM)&lt;br /&gt;
14. Change the feedback mode to ''LinAbs'' and the feedback channel to ''dF''.&lt;br /&gt;
15. Change the integrator value to e.g. -0.0003 or something in the same order of magnitude.&lt;br /&gt;
16. Select the channels ''dF'', ''Amplitude'' and ''Damping'' in the Parameter window.&lt;br /&gt;
17. Set the constant frequency setpoint to a value close to but a little bit smaller than the finite Δf value from above.&lt;br /&gt;
18. Start scanning in CF mode as you would do in STM mode.&lt;br /&gt;
19. Adjust the scanning speed and the integrator together with the amplitude and phase control of the tuning fork.&lt;br /&gt;
20. Observe the current signal and increase the setpoint in order to go closer to the surface.&lt;/div&gt;</summary>
		<author><name>Ltspm</name></author>	</entry>

	<entry>
		<id>http://spm-wiki.createc.de/index.php?title=Tools</id>
		<title>Tools</title>
		<link rel="alternate" type="text/html" href="http://spm-wiki.createc.de/index.php?title=Tools"/>
				<updated>2016-12-21T09:43:33Z</updated>
		
		<summary type="html">&lt;p&gt;Ltspm: /* Tip Etching */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Init ==&lt;br /&gt;
&lt;br /&gt;
While most of the configuration information is saved in the Windows registry, some important initialization data is saved now in the file stmafm.ini.&lt;br /&gt;
These data can be accessed and modified within the tool window Form_Init, or the ini file can be changed directly in a text editor.&lt;br /&gt;
Apart from the ADC/DAC calibration the STMAFM program usually should be restarted to put the changes in operation, at least as HW changes are involved.&lt;br /&gt;
&lt;br /&gt;
ADC0/DAC0 ... Offset + Gain: &lt;br /&gt;
Determines the calibration data of the ADCs and DACs of the Createc ADDA board.  &lt;br /&gt;
&lt;br /&gt;
DAC6-9 Offset: &lt;br /&gt;
Input Offsets of an optional 16bit DAC Board&lt;br /&gt;
&lt;br /&gt;
Machine Name: &lt;br /&gt;
This text is added in front of all the filenames. Used to identify the instrument or user.&lt;br /&gt;
Select from the picklist or write the text dirrectly.&lt;br /&gt;
&lt;br /&gt;
HW_Platform: &lt;br /&gt;
Select from a picklist the actual hardware configuration:&lt;br /&gt;
0: No Board&lt;br /&gt;
1: C6711 : SBC6711 Board only used&lt;br /&gt;
2: C6711/USB2 V2 : SBC6711 DSP Board + USB2.0 connection through OPAL Kelly Board with SW Version 2&lt;br /&gt;
3: C6711/USB2 V3 : SBC6711 DSP Board + USB2.0 connection through OPAL Kelly Board with SW Version 3&lt;br /&gt;
4: C6711/Flashboot: SBC6711 DSP Board + USB2.0 connection through OPAL Kelly Board with SW Version 3 wiht boot from Flash&lt;br /&gt;
Mode 3 is the only mode available under Windows 7 operation&lt;br /&gt;
5: C6657 with Ethernet Connection&lt;br /&gt;
&lt;br /&gt;
AD/DA_Board_2_Mode:&lt;br /&gt;
Select from a picklist the operating mode of the second AD/DA Board, if installed&lt;br /&gt;
0: None   : Not installed&lt;br /&gt;
1: PLL     : Used as PLL for NCAFM operation&lt;br /&gt;
2: AD/DA  : Used as second normal AD/DA board&lt;br /&gt;
&lt;br /&gt;
AFM_Mode: &lt;br /&gt;
Enables AFM Mode of Operation. &lt;br /&gt;
&lt;br /&gt;
PLL_ZIHF2LI: &lt;br /&gt;
Enables use of external PLL from Zurich Instruments instead of internal PLL.&lt;br /&gt;
&lt;br /&gt;
PLL_ZIHF2LI_ExtNodename:&lt;br /&gt;
Device name of the ZI PLL&lt;br /&gt;
&lt;br /&gt;
Invert_Biasvoltage: &lt;br /&gt;
Set to true to permanently invert the biasvoltage. &lt;br /&gt;
&lt;br /&gt;
Enable_mVInput: &lt;br /&gt;
For compatibilty with older versions. If enabled Voltages are input in mV.&lt;br /&gt;
&lt;br /&gt;
TakeInternalHVGainvalues: &lt;br /&gt;
If false program reads the gain values directly from HV amplifier.&lt;br /&gt;
If true HV Gain values can be input from user.&lt;br /&gt;
&lt;br /&gt;
Ramp_Slider: &lt;br /&gt;
Enables the use of the new slider hardware for coarse movement&lt;br /&gt;
&lt;br /&gt;
Load_Preampvalues:&lt;br /&gt;
If true: When loading a datafile into the STM program, the Preamp gain as well the type of the preamplifier are taken from the file.&lt;br /&gt;
If false: Preamp gain and type are not changed. Protects against uncontrolled switching of the preamp.&lt;br /&gt;
In analysis mode this parameter has no effect, the preamp values are always loaded&lt;br /&gt;
&lt;br /&gt;
SRSLockin_Enable:&lt;br /&gt;
Enables the use of an external lockin SRSxxx&lt;br /&gt;
&lt;br /&gt;
CHMode_Icon Channel: &lt;br /&gt;
In case of  Const height mode imaging, this value determines the channel used for the icon stored in the dat file.&lt;br /&gt;
&lt;br /&gt;
Save Scan Forms: &lt;br /&gt;
Allows to remember the postion and number of channelforms for LAT and Vert Manipulation&lt;br /&gt;
&lt;br /&gt;
Compress_Files:&lt;br /&gt;
Enables the compression of dat files. Uses ZIP. The parameter info is not compressed.&lt;br /&gt;
&lt;br /&gt;
Enable ExtInt: &lt;br /&gt;
Allows to reset the DSP board by an external signal if the custom HW is installed.&lt;br /&gt;
&lt;br /&gt;
Show_Hints:&lt;br /&gt;
If true short hints are shown the mouse cursor is above particular buttons.&lt;br /&gt;
&lt;br /&gt;
Stmoutfile:&lt;br /&gt;
Path to a specific file loaded into the DSP during boot.(Used for test purposes,usually empty)&lt;br /&gt;
&lt;br /&gt;
STM_Manual:&lt;br /&gt;
Path to the STM Manual file.&lt;br /&gt;
&lt;br /&gt;
STM_Helpfile&lt;br /&gt;
Path to the STM Help file.&lt;br /&gt;
&lt;br /&gt;
STM_Website:&lt;br /&gt;
URL to the STM website.&lt;br /&gt;
&lt;br /&gt;
Press the ''Calibrate_ADCs'' Button to transfer the calibration data on the ADDA board.    &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[file:clipinit.png]]&lt;br /&gt;
&lt;br /&gt;
== Data Recorder ==&lt;br /&gt;
&lt;br /&gt;
[[file: clipdatarecorder.png]]&lt;br /&gt;
&lt;br /&gt;
== Tip Etching ==&lt;br /&gt;
&lt;br /&gt;
Under the tools menu you can select this part of the program to etch STM tips. Press the ''Start Tipetch'' Button to start the tip etching. A voltage is applied to the tip and simultaneously the current is recorded. Etching will be stopped when the measured current is below a given treshold current. Pressing the ''Stop Tipetch'' button will immediately stop etching. During etching the current is recorded and displayed in the I(t) plot.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
DAC Voltage    &lt;br /&gt;
Voltage applied to the tipetching setup. A positive voltage of about 5-6V has to be applied to the tip wire.&lt;br /&gt;
&lt;br /&gt;
Etch On/OFF Time&lt;br /&gt;
For DC etching set Etch Off Time to 0 msec. In case of pulsed etching the parameters determine the period and on/off ratio of the applied square wave signal.&lt;br /&gt;
&lt;br /&gt;
Current Filter&lt;br /&gt;
Filters the measured current signal to avoid stopping of the etching due to noise.&lt;br /&gt;
&lt;br /&gt;
Etch Level&lt;br /&gt;
If the measured current is below this treshold current level, the voltage will be switched off. &lt;br /&gt;
&lt;br /&gt;
ADC, DAC Channels&lt;br /&gt;
Selection of the ADC, DAC channel used for tip etching. ADC [1-3], DAC [1-5]&lt;br /&gt;
&lt;br /&gt;
Resistor&lt;br /&gt;
Value of the series resistor to measure the current&lt;br /&gt;
&lt;br /&gt;
[[file:cliptipetching.png]]&lt;br /&gt;
&lt;br /&gt;
== SpecGrid ==&lt;br /&gt;
&lt;br /&gt;
This is a separate tool which allows you to analyze Gridspectroscopy files. It is intended to cover only the basic features. More detailed analysis has to be done by the user.&lt;br /&gt;
&lt;br /&gt;
We suggest for exmaple MatLab for this purpose.&lt;br /&gt;
&lt;br /&gt;
Basics&lt;br /&gt;
&lt;br /&gt;
Gridspectroscopy creates 2 files, one which contains the spectroscopy data in binary form (file extensionand .specgrid) a normal dat file which contains the related image (file extension .specgrid.dat). Specgrid files can be very large, therefore an original file can be divided into several smaller files. (There exists also a Windows 7 64bit version to handle larger files)&lt;br /&gt;
The Pspcegrid30 program allows you to inspect individual spectra, extract these spectra in separate ASCII based spectroscopy files (either single files or&lt;br /&gt;
all files) and to display 2d images out of the spectroscopy data.&lt;br /&gt;
&lt;br /&gt;
File Format Specgrid&lt;br /&gt;
&lt;br /&gt;
Format Specgrid File (Extension .Specgrid)&lt;br /&gt;
&lt;br /&gt;
It starts with 1024 byte long header:&lt;br /&gt;
&lt;br /&gt;
    version:                integer;&lt;br /&gt;
    nx,ny:                  integer;&lt;br /&gt;
    dx,dy:                  integer;&lt;br /&gt;
    specxgrid,specygrid:    integer;&lt;br /&gt;
    vertpoints:             integer;&lt;br /&gt;
    vertmandelay:           integer;&lt;br /&gt;
    vertmangain:            integer;&lt;br /&gt;
    biasvoltage:            single;&lt;br /&gt;
    tunnelcurrent:          single;&lt;br /&gt;
    imagedatasize:          integer;&lt;br /&gt;
    specgriddatasize:       integer;&lt;br /&gt;
    specgridchan:           integer;&lt;br /&gt;
    specgridchannelselectval:   integer;&lt;br /&gt;
    specgriddatasize64:       int64;&lt;br /&gt;
    xstart,xend,ystart,yend:  integer;&lt;br /&gt;
    dummy:  array[1..236] of integer;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Latest version is 4. Beginnng with version 4 you have xstart, xend which give you the specgrid line numbers. Ystart, Yend correspondingly. For older versions you have to calculate it:&lt;br /&gt;
  xend:=round(nx/specxgrid);&lt;br /&gt;
  yend:=round(ny/specygrid);&lt;br /&gt;
  xstart:=1;&lt;br /&gt;
  ystart:=1;&lt;br /&gt;
&lt;br /&gt;
Specgridchan: Number of Channels in the Spectra.&lt;br /&gt;
Specgridchannelselectval ist the bit pattern which detemines the type&lt;br /&gt;
of selected channels. (Similar to vertchannelselectval)&lt;br /&gt;
vertpoins: Number of points in a single spectrum.&lt;br /&gt;
&lt;br /&gt;
After the header:&lt;br /&gt;
 V and Z spectrum data: Each vertpoints long. 4byte floating point values.&lt;br /&gt;
 V:  4 x vertpoints bytes for V&lt;br /&gt;
 Z:  4 x vertpoints bytes for Z&lt;br /&gt;
&lt;br /&gt;
After the V,Z data the spectra data are following in 4byte float format.&lt;br /&gt;
Spectrum1 (X=1, Y=1), Number of channels:  specgridchan*(vertpoints*4)&lt;br /&gt;
byte for each spectrum grid point.&lt;br /&gt;
Spectrum2 (X=2, Y=1), ........&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[file:clipspecgrid30.png]]&lt;br /&gt;
&lt;br /&gt;
[[Category:stmafm_manual]]&lt;/div&gt;</summary>
		<author><name>Ltspm</name></author>	</entry>

	<entry>
		<id>http://spm-wiki.createc.de/index.php?title=Tools</id>
		<title>Tools</title>
		<link rel="alternate" type="text/html" href="http://spm-wiki.createc.de/index.php?title=Tools"/>
				<updated>2016-12-21T09:42:44Z</updated>
		
		<summary type="html">&lt;p&gt;Ltspm: /* Init */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Init ==&lt;br /&gt;
&lt;br /&gt;
While most of the configuration information is saved in the Windows registry, some important initialization data is saved now in the file stmafm.ini.&lt;br /&gt;
These data can be accessed and modified within the tool window Form_Init, or the ini file can be changed directly in a text editor.&lt;br /&gt;
Apart from the ADC/DAC calibration the STMAFM program usually should be restarted to put the changes in operation, at least as HW changes are involved.&lt;br /&gt;
&lt;br /&gt;
ADC0/DAC0 ... Offset + Gain: &lt;br /&gt;
Determines the calibration data of the ADCs and DACs of the Createc ADDA board.  &lt;br /&gt;
&lt;br /&gt;
DAC6-9 Offset: &lt;br /&gt;
Input Offsets of an optional 16bit DAC Board&lt;br /&gt;
&lt;br /&gt;
Machine Name: &lt;br /&gt;
This text is added in front of all the filenames. Used to identify the instrument or user.&lt;br /&gt;
Select from the picklist or write the text dirrectly.&lt;br /&gt;
&lt;br /&gt;
HW_Platform: &lt;br /&gt;
Select from a picklist the actual hardware configuration:&lt;br /&gt;
0: No Board&lt;br /&gt;
1: C6711 : SBC6711 Board only used&lt;br /&gt;
2: C6711/USB2 V2 : SBC6711 DSP Board + USB2.0 connection through OPAL Kelly Board with SW Version 2&lt;br /&gt;
3: C6711/USB2 V3 : SBC6711 DSP Board + USB2.0 connection through OPAL Kelly Board with SW Version 3&lt;br /&gt;
4: C6711/Flashboot: SBC6711 DSP Board + USB2.0 connection through OPAL Kelly Board with SW Version 3 wiht boot from Flash&lt;br /&gt;
Mode 3 is the only mode available under Windows 7 operation&lt;br /&gt;
5: C6657 with Ethernet Connection&lt;br /&gt;
&lt;br /&gt;
AD/DA_Board_2_Mode:&lt;br /&gt;
Select from a picklist the operating mode of the second AD/DA Board, if installed&lt;br /&gt;
0: None   : Not installed&lt;br /&gt;
1: PLL     : Used as PLL for NCAFM operation&lt;br /&gt;
2: AD/DA  : Used as second normal AD/DA board&lt;br /&gt;
&lt;br /&gt;
AFM_Mode: &lt;br /&gt;
Enables AFM Mode of Operation. &lt;br /&gt;
&lt;br /&gt;
PLL_ZIHF2LI: &lt;br /&gt;
Enables use of external PLL from Zurich Instruments instead of internal PLL.&lt;br /&gt;
&lt;br /&gt;
PLL_ZIHF2LI_ExtNodename:&lt;br /&gt;
Device name of the ZI PLL&lt;br /&gt;
&lt;br /&gt;
Invert_Biasvoltage: &lt;br /&gt;
Set to true to permanently invert the biasvoltage. &lt;br /&gt;
&lt;br /&gt;
Enable_mVInput: &lt;br /&gt;
For compatibilty with older versions. If enabled Voltages are input in mV.&lt;br /&gt;
&lt;br /&gt;
TakeInternalHVGainvalues: &lt;br /&gt;
If false program reads the gain values directly from HV amplifier.&lt;br /&gt;
If true HV Gain values can be input from user.&lt;br /&gt;
&lt;br /&gt;
Ramp_Slider: &lt;br /&gt;
Enables the use of the new slider hardware for coarse movement&lt;br /&gt;
&lt;br /&gt;
Load_Preampvalues:&lt;br /&gt;
If true: When loading a datafile into the STM program, the Preamp gain as well the type of the preamplifier are taken from the file.&lt;br /&gt;
If false: Preamp gain and type are not changed. Protects against uncontrolled switching of the preamp.&lt;br /&gt;
In analysis mode this parameter has no effect, the preamp values are always loaded&lt;br /&gt;
&lt;br /&gt;
SRSLockin_Enable:&lt;br /&gt;
Enables the use of an external lockin SRSxxx&lt;br /&gt;
&lt;br /&gt;
CHMode_Icon Channel: &lt;br /&gt;
In case of  Const height mode imaging, this value determines the channel used for the icon stored in the dat file.&lt;br /&gt;
&lt;br /&gt;
Save Scan Forms: &lt;br /&gt;
Allows to remember the postion and number of channelforms for LAT and Vert Manipulation&lt;br /&gt;
&lt;br /&gt;
Compress_Files:&lt;br /&gt;
Enables the compression of dat files. Uses ZIP. The parameter info is not compressed.&lt;br /&gt;
&lt;br /&gt;
Enable ExtInt: &lt;br /&gt;
Allows to reset the DSP board by an external signal if the custom HW is installed.&lt;br /&gt;
&lt;br /&gt;
Show_Hints:&lt;br /&gt;
If true short hints are shown the mouse cursor is above particular buttons.&lt;br /&gt;
&lt;br /&gt;
Stmoutfile:&lt;br /&gt;
Path to a specific file loaded into the DSP during boot.(Used for test purposes,usually empty)&lt;br /&gt;
&lt;br /&gt;
STM_Manual:&lt;br /&gt;
Path to the STM Manual file.&lt;br /&gt;
&lt;br /&gt;
STM_Helpfile&lt;br /&gt;
Path to the STM Help file.&lt;br /&gt;
&lt;br /&gt;
STM_Website:&lt;br /&gt;
URL to the STM website.&lt;br /&gt;
&lt;br /&gt;
Press the ''Calibrate_ADCs'' Button to transfer the calibration data on the ADDA board.    &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[file:clipinit.png]]&lt;br /&gt;
&lt;br /&gt;
== Data Recorder ==&lt;br /&gt;
&lt;br /&gt;
[[file: clipdatarecorder.png]]&lt;br /&gt;
&lt;br /&gt;
== Tip Etching ==&lt;br /&gt;
&lt;br /&gt;
Under the tools menu you can select this part of the program to etch STM tips. Press the &amp;lt;Start Tipetch&amp;gt; Button to start the tip etching. A voltage is applied to the tip and simultaneously the current is recorded. Etching will be stopped when the measured current is below a given treshold current. Pressing the &amp;lt;Stop Tipetch&amp;gt; button will immediately stop etching. During etching the current is recorded and displayed in the I(t) plot.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
DAC Voltage    &lt;br /&gt;
Voltage applied to the tipetching setup. A positive voltage of about 5-6V has to be applied to the tip wire.&lt;br /&gt;
&lt;br /&gt;
Etch On/OFF Time&lt;br /&gt;
For DC etching set Etch Off Time to 0 msec. In case of pulsed etching the parameters determine the period and on/off ratio of the applied square wave signal.&lt;br /&gt;
&lt;br /&gt;
Current Filter&lt;br /&gt;
Filters the measured current signal to avoid stopping of the etching due to noise.&lt;br /&gt;
&lt;br /&gt;
Etch Level&lt;br /&gt;
If the measured current is below this treshold current level, the voltage will be switched off. &lt;br /&gt;
&lt;br /&gt;
ADC, DAC Channels&lt;br /&gt;
Selection of the ADC, DAC channel used for tip etching. ADC [1-3], DAC [1-5]&lt;br /&gt;
&lt;br /&gt;
Resistor&lt;br /&gt;
Value of the series resistor to measure the current&lt;br /&gt;
&lt;br /&gt;
[[file:cliptipetching.png]]&lt;br /&gt;
&lt;br /&gt;
== SpecGrid ==&lt;br /&gt;
&lt;br /&gt;
This is a separate tool which allows you to analyze Gridspectroscopy files. It is intended to cover only the basic features. More detailed analysis has to be done by the user.&lt;br /&gt;
&lt;br /&gt;
We suggest for exmaple MatLab for this purpose.&lt;br /&gt;
&lt;br /&gt;
Basics&lt;br /&gt;
&lt;br /&gt;
Gridspectroscopy creates 2 files, one which contains the spectroscopy data in binary form (file extensionand .specgrid) a normal dat file which contains the related image (file extension .specgrid.dat). Specgrid files can be very large, therefore an original file can be divided into several smaller files. (There exists also a Windows 7 64bit version to handle larger files)&lt;br /&gt;
The Pspcegrid30 program allows you to inspect individual spectra, extract these spectra in separate ASCII based spectroscopy files (either single files or&lt;br /&gt;
all files) and to display 2d images out of the spectroscopy data.&lt;br /&gt;
&lt;br /&gt;
File Format Specgrid&lt;br /&gt;
&lt;br /&gt;
Format Specgrid File (Extension .Specgrid)&lt;br /&gt;
&lt;br /&gt;
It starts with 1024 byte long header:&lt;br /&gt;
&lt;br /&gt;
    version:                integer;&lt;br /&gt;
    nx,ny:                  integer;&lt;br /&gt;
    dx,dy:                  integer;&lt;br /&gt;
    specxgrid,specygrid:    integer;&lt;br /&gt;
    vertpoints:             integer;&lt;br /&gt;
    vertmandelay:           integer;&lt;br /&gt;
    vertmangain:            integer;&lt;br /&gt;
    biasvoltage:            single;&lt;br /&gt;
    tunnelcurrent:          single;&lt;br /&gt;
    imagedatasize:          integer;&lt;br /&gt;
    specgriddatasize:       integer;&lt;br /&gt;
    specgridchan:           integer;&lt;br /&gt;
    specgridchannelselectval:   integer;&lt;br /&gt;
    specgriddatasize64:       int64;&lt;br /&gt;
    xstart,xend,ystart,yend:  integer;&lt;br /&gt;
    dummy:  array[1..236] of integer;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Latest version is 4. Beginnng with version 4 you have xstart, xend which give you the specgrid line numbers. Ystart, Yend correspondingly. For older versions you have to calculate it:&lt;br /&gt;
  xend:=round(nx/specxgrid);&lt;br /&gt;
  yend:=round(ny/specygrid);&lt;br /&gt;
  xstart:=1;&lt;br /&gt;
  ystart:=1;&lt;br /&gt;
&lt;br /&gt;
Specgridchan: Number of Channels in the Spectra.&lt;br /&gt;
Specgridchannelselectval ist the bit pattern which detemines the type&lt;br /&gt;
of selected channels. (Similar to vertchannelselectval)&lt;br /&gt;
vertpoins: Number of points in a single spectrum.&lt;br /&gt;
&lt;br /&gt;
After the header:&lt;br /&gt;
 V and Z spectrum data: Each vertpoints long. 4byte floating point values.&lt;br /&gt;
 V:  4 x vertpoints bytes for V&lt;br /&gt;
 Z:  4 x vertpoints bytes for Z&lt;br /&gt;
&lt;br /&gt;
After the V,Z data the spectra data are following in 4byte float format.&lt;br /&gt;
Spectrum1 (X=1, Y=1), Number of channels:  specgridchan*(vertpoints*4)&lt;br /&gt;
byte for each spectrum grid point.&lt;br /&gt;
Spectrum2 (X=2, Y=1), ........&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[file:clipspecgrid30.png]]&lt;br /&gt;
&lt;br /&gt;
[[Category:stmafm_manual]]&lt;/div&gt;</summary>
		<author><name>Ltspm</name></author>	</entry>

	<entry>
		<id>http://spm-wiki.createc.de/index.php?title=Forms</id>
		<title>Forms</title>
		<link rel="alternate" type="text/html" href="http://spm-wiki.createc.de/index.php?title=Forms"/>
				<updated>2016-12-21T09:40:50Z</updated>
		
		<summary type="html">&lt;p&gt;Ltspm: /* LineScan */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== LineScan ==&lt;br /&gt;
&lt;br /&gt;
Press the ''Lin'' Button to take a line scan of the image. First select two points of the image by pressing the left mouse button. The linescan&lt;br /&gt;
is displayed in the upper linegraph of the linescanform-window. To perform measurements on the linescan press the ''Measure'' button. &lt;br /&gt;
&lt;br /&gt;
Use the left mouse button to select a new point. With the right mouse button you can switch between points. Pressing the Shift button allows to move a whole line. Pressing the right mouse button together with the Shift button will switch to the prependicular averaging mode.&lt;br /&gt;
&lt;br /&gt;
Important: If the linescan form is opened through the menue selection first, all linescan data will be displayed always in the this particular window. Otherwise pressing the LIN button will always open a new window.&lt;br /&gt;
&lt;br /&gt;
Autosize&lt;br /&gt;
Selects automatic scaling of the linegraph&lt;br /&gt;
&lt;br /&gt;
Autolinebacksub&lt;br /&gt;
Selects automatic subtraction of linear background&lt;br /&gt;
&lt;br /&gt;
Line Display Trackbar&lt;br /&gt;
Move to show a line scan of a particular image line. A FFT of the selected line is shown in the lower line graph.(The number of points/line has to be a power of 2)&lt;br /&gt;
&lt;br /&gt;
Popup menu of upper linegraph&lt;br /&gt;
xydesign: Select to adjust the appearance of the line graph&lt;br /&gt;
CopyClipboardData: The line scan data are copied to the ClipBoard&lt;br /&gt;
CopyClipboardXYGraph: The line scan graph is copied to the ClipBoard&lt;br /&gt;
Printxygraph: The line scan graph is send to the printer&lt;br /&gt;
Measure: Do measurements of the plot data.&lt;br /&gt;
Redrawline: The line in the image is redrawn&lt;br /&gt;
&lt;br /&gt;
Popup menu of lower linegraph&lt;br /&gt;
has the same items as the upper popup menu and one additional entry:&lt;br /&gt;
Show Frequency: Gives the FFT in frequency [Hz] instead of inverse distance [1/Å] (updated when the Line Display Trackbar is moved)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Channels&lt;br /&gt;
Select the channels which are displayed&lt;br /&gt;
&lt;br /&gt;
[[file:cliplinescan.png]]&lt;br /&gt;
&lt;br /&gt;
[[file:cliplinescanpopupmenu.png]]&lt;br /&gt;
&lt;br /&gt;
== Rampcontroller ==&lt;br /&gt;
&lt;br /&gt;
Click on the ''Ramp'' button. This opens the 'Rampcontroller'-window with control elements necessary to perform the coarse approach. The 6 buttons with arrows in the top of the form correspond to moving the tip in respect to the sample surface. Moving in x/y direction can also be done using the x/y cursor keys on the keyboard. The page up and page down keys are used correspondingly for rotation up and down. Selecting the burst mode in x/y or rotation will result in a series of steps corresponding to the number of burst steps displayed in the ramp parameter list. When the Crash Protection is switched on, the program checks before each step, whether it can detect a tunneling current. If this is the case it will cancel the step. Usually the crash protection should be switched on, but in cases where the tip is already crashed, the protection has to be switched off. The program issues some warnings when the ramp windows opens to inform the user to do necessary changes for a successful ramping. These are: First retract the tip, reset the x- and y-offset in the STM-program, select the appropriate gain (1-10, depending on the temperature) in the x- and y- channel of the HV-amplifier and set the external offset voltages to zero.&lt;br /&gt;
The usual coarse approach is done by controlling the approach with an optical microscope. When the tip is  close enough, the automatic tip approach can be switched on, by pressing the ''Approach'' button. It will start a combination of single coarse approach rotation steps combined with tip approach testing until the tip can reach the sample. ''Approach'' stops when a tunneling current is detected. The value of this threshold current is set by the current slider. Important: When the approach stops, the tip is automatically retracted, by setting the current to zero. Before leaving the coarse approach by pressing the ''Quit'' button, you have to select the mode for scanning. When the ''Main/Coarse'' button displays 'Coarse' mode, then the outer 3 piezos are used for scanning, otherwise the center piezo is used. In the normal operation of the microscope the 'Coarse' mode should be selected. Select the required set point current to see if the approach was successful. Now the tip should be retracted manually by using the external HV-amplifier z-offset voltage to go out of tunneling. Select the required gains and re-approach the tip again.&lt;br /&gt;
&lt;br /&gt;
See also: Approach Tips&lt;br /&gt;
&lt;br /&gt;
The Coarse Approach operation is controlled by the following parameters:&lt;br /&gt;
&lt;br /&gt;
Puls Height[V]&lt;br /&gt;
Input the peak to peak height (in V) of the sawtooth pulse used for moving the inertial slider. Two different values are used for the lateral XY motion and the rotational motion.&lt;br /&gt;
&lt;br /&gt;
Puls-Duration[sec]&lt;br /&gt;
Input the duration of a single sawtooth pulse in seconds. &lt;br /&gt;
&lt;br /&gt;
Burst-Count&lt;br /&gt;
Determines the number of sawtooth pulses applied when operating the coarse control in burst mode.&lt;br /&gt;
&lt;br /&gt;
Approach Period[sec]&lt;br /&gt;
Determines the time for a single approach cycle including approach and retraction of the tip to find the sample surface.&lt;br /&gt;
&lt;br /&gt;
Approach Burst Count&lt;br /&gt;
This is the number of coarse pulses applied between two approach cycles.&lt;br /&gt;
&lt;br /&gt;
Approach Retry Count&lt;br /&gt;
This is the number of retry operations done before the approach is stopped.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[file:cliprampcontrollerCreatec.png]]&lt;br /&gt;
&lt;br /&gt;
== Grid ==&lt;br /&gt;
&lt;br /&gt;
The form 'Grid-Image- Transformation' contains several functions for different kinds of image transformations. A suitable combination of the procedures below will allow transformations useful for drift correction, superstructure analysis, extraction of registry information. To open the form press on the grid button in the STMAFM form. With the 6 slider controls a grid can be overlayed on the image. The lateral position, the angles of the grid and the distance between the grid lines can be adjusted. An alternative way to input the grid is pressing the ''Mouse'' button and to mark 3 points (the first one is the center, the other two determine the direction of the two lines). Pressing the ''Rotation'' button will rotate the image in such a way that one set of the grid lines (X-Axis) is parallel to the horizontal direction. Pressing the ''Zoom'' button will zoom the image by the value set in the edit control positioned next to the right of the button. The image is zoomed around the center point of the grid. By pressing on the ''X..,Y..'' button the actual center position of the grid is stored and displayed on the button. Selecting a new center position with the mouse, as described above, and pressing the ''Move grid to Center'' button will move the new defined center to the stored center position. The ''Transform'' button will transform the image according to the 2 Parameters in the edit controls below. The first is the new angle between the lines in the image and the second is the new ratio the grid line distances. Selecting the ''HexGrid'' check box will draw a grid suitable for hexagonal unit cells. If draw inverted is selected the grid is drawn by a inversion process. Otherwise you can select with &amp;lt;Grid Color&amp;gt; the line color of the grid.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;&amp;quot; widths=&amp;quot;400px&amp;quot; heights=&amp;quot;400px&amp;quot;&amp;gt;&lt;br /&gt;
file:clipgrid.png&lt;br /&gt;
file:clipgridimage.png&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== TimeSpectrum ==&lt;br /&gt;
&lt;br /&gt;
It is very often useful to take a time record of the A/D input channels, without scanning or changing the biasvoltage. This is for example a convenient way to characterize the noise performance of the STM. To take a time record just press the ''Start'' Button on the Time-Spectrum window or press the ''TS'' button on the main window. Five channels are recorded simultaneously. The A/D channels 0 and 3 (ADC0 is called current I) and the topography signal output from the feedback loop, called Z. The displayed channel is selected by the corresponding channel button. Three parameters control the data acquisition:&lt;br /&gt;
&lt;br /&gt;
Spec_Points&lt;br /&gt;
The number of data points taken for a single spectrum. This must be a power of 2, to allow FFT of the data.&lt;br /&gt;
(Maximum is 4096)&lt;br /&gt;
&lt;br /&gt;
Spec_Freq[Hz]&lt;br /&gt;
The sampling frequency. (Limited by the DSP_Clock value)&lt;br /&gt;
&lt;br /&gt;
Spec_Avrg_Count&lt;br /&gt;
The number of spectra averaged. Averaging is done only for the spectrum, i.e. the FFT data.&lt;br /&gt;
&lt;br /&gt;
Channels&lt;br /&gt;
First select the check boxes to determine the channels which are acquired during data acquisition&lt;br /&gt;
Part of these channels can be further selected to be displayed.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The results are displayed in two line graphs.&lt;br /&gt;
The upper one shows the time behaviour. (The vertical scale is always in V)&lt;br /&gt;
The lower one shows the frequency spectrum. (The vertical scale on the left shows the peak to peak value of a pure sine component,&lt;br /&gt;
the right scale the rms amplitude for non correlated signals) &lt;br /&gt;
&lt;br /&gt;
The frequency resolution depends on the number of points and the sampling frequency.&lt;br /&gt;
Important: The current signal and the ADC1 signal are filtered by a first order digital filter, which is controlled by the same CurrentRC Parameter.   &lt;br /&gt;
The contents of the memo field is saved together with the file.&lt;br /&gt;
&lt;br /&gt;
In the lower right the AVRG Value and the Standard Deviation of the timespectra data are shown.&lt;br /&gt;
&lt;br /&gt;
Save&lt;br /&gt;
The data is saved in ASCII Format&lt;br /&gt;
&lt;br /&gt;
FFT logscale: Displays the Spectrum in LogScale&lt;br /&gt;
&lt;br /&gt;
Waterfall: Displays the time dependence of the Spectra in a Waterfall like mode at the bottom of the window&lt;br /&gt;
&lt;br /&gt;
[[file:cliptimespectrum.png]]&lt;br /&gt;
&lt;br /&gt;
== 3d-view ==&lt;br /&gt;
&lt;br /&gt;
This part of the program allows the display of 3d views of selected parts of the images. To start, open the window by clicking the ''3d View'' button. Then click on  &amp;lt;New Data&amp;gt; in the main menue and select a rectangular region on the image displayed in the STMAFM program.  A new form will be opened, where the rendered image is displayed. The sliders in the 3d-view form allow to change the orientation, size, offset and lighting of the 3d object. The 3d image can be displayed in different ways, depending on which check boxes are checked. So the lights can be switched on or off, the 3d image can be shown using lines, hidden lines, or in the normal surface view. Checking the save box will start saving of each images displayed. With this feature a series of BMP images for movies can be created. Checking the ''Box'' box will draw a 3d box with x,y,z axes in the 3dimage.In the light sources field the angle of the light source can be changed. Apart from a directed diffuse light source ambient lighting can be added.&lt;br /&gt;
&lt;br /&gt;
Under the menue item Color the color of the background and of the lines can be changed.&lt;br /&gt;
Morover the image can be copied to the clipboard (in BMP format), to a new window or the data can be exported in PoVRay format. &lt;br /&gt;
(New List means that a new imagedisplaylist is created for the underlying OPENGL rendering program. This usually done automatically)&lt;br /&gt;
&lt;br /&gt;
Selected views can be saved and are saved with the program.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;&amp;quot; widths=&amp;quot;450px&amp;quot; heights=&amp;quot;300px&amp;quot;&amp;gt;&lt;br /&gt;
file:clip3dcontrol.png&lt;br /&gt;
file:clip3dform.png&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Lateral Manipulation ==&lt;br /&gt;
&lt;br /&gt;
To perform a lateral manipulation with the tip one has first to press the Button ''LM'' and then to select the starting and the final position of the manipulation path by selecting these points in the image with the left mouse button. A thin line is drawn on the screen between these points. After the manipulation is completed a separate window opens up where the tip height and current during the manipulation is displayed. By pressing the save button this data set can be saved in a *.LAT File.&lt;br /&gt;
&lt;br /&gt;
Different kinds of manipulation procedures can be performed. They are selected by choosing a certain manipulation mode number in the manipulation parameter field. These different modes are described in the following. The speed of the tip is controlled by the parameters latmandelay and latmanddx, which are used throughout the whole process and not only when the tip is manipulating.&lt;br /&gt;
&lt;br /&gt;
Mode 1: This is the simplest constant current mode manipulation. Starting from the top of the image the tip moves in a straight line to the starting point of the manipulation using the standard feedback parameters used for imaging. Then the feedback parameters are switched to the ones selected in the lateral manipulation parameter set . These are current, voltage and gain of the preamplifier. Then the tip moves using these manipulation parameters to the final position. There the parameters are set back to their original imaging values and the tip moves back to top of the image.&lt;br /&gt;
&lt;br /&gt;
Mode 2: Similar to mode 1, but the tip moves first to the final position, then starts the manipulation to the starting position and goes back to final position. It switches back to imaging parameters and moves to the top of the image.&lt;br /&gt;
&lt;br /&gt;
Mode3: Similar to mode 1: The tip first moves to the starting point. Then it moves to final position and back to the starting position using the normal imaging parameters, but the tip height and current are recorded during these two scans. Then the parameters are switched to the manipulation parameters and the tip moves to the final position. Then the parameters are changed back to the imaging parameters and the tip moves back to the starting position while again recording the tip height and current. Finally the tip moves to the top of the image.&lt;br /&gt;
&lt;br /&gt;
Mode 4: This is a constant height manipulation mode. The tip moves first to the starting position. Then it moves from the starting to the final position and back taking data in normal imaging mode. Then the feedback is switched off and the tip moves from the starting to the final position in constant height mode. The height used is given by the height of the tip when the feedbackloop is switched off plus the additional offset given by latmanccdz. This means that the height depends on the imaging parameters. Then the tip moves back from the final position to the starting position in imaging mode, but taking data again. Finally the tip moves to the top of the image. With the extension factor the manipulation path can be extended at the final position by the factor given by latmanextlextension. The starting point is not affected by the extension factor.&lt;br /&gt;
&lt;br /&gt;
Mode 5: Similar to mode 4. In this mode the extension affects also the starting position. The extension positions are first calculated. The tip moves in imaging mode to extended starting position. Then moves to the final extended position and backward and takes data in imaging mode. Then the tip moves to the starting position, while taking data in imaging mode. Then the tip moves from the starting position to the final position in constant height manipulation mode. Then it moves back to the starting position in imaging mode and takes data. Finally it moves back to the top of the image.&lt;br /&gt;
&lt;br /&gt;
Mode 6: Similar to mode 5. The only difference is that the tip moves from the starting to the final position and backward in constant height mode and not only in the forward direction, as done in mode 5.&lt;br /&gt;
&lt;br /&gt;
Mode 0: This mode is different from the other modes. In mode 0 the tip follows always the mouse position immediately. The height of the tip is displayed on rate meter appearing on the left. By pressing the upper case L key the imaging parameters are switched to the manipulation parameters and back again. (By pressing the upper case S a small 64 pixel * 64 pixel scan is performed.) Clicking with the mouse button will stop the continuous following of the tip. After additional clicking the tip moves to the new mouse position in a straight line and tracks the mouse position again.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
These parameters control the lateral manipulation processes.&lt;br /&gt;
&lt;br /&gt;
Mode&lt;br /&gt;
Select one of several different manipulation modes. There are constant current and constant height modes. For example P0 is the origin of the image. Then the tip moves to P1, the first point selected with the mouse. The tunneling parameters are changed to manipulation parameters and the tip moves from P1 to P2. There the normal tunneling parameters, used for imaging, are selected again and the tip moves to the origin P0.&lt;br /&gt;
&lt;br /&gt;
Voltage[V]&lt;br /&gt;
The tunneling voltage applied during the manipulation phase.&lt;br /&gt;
&lt;br /&gt;
Current[nA]&lt;br /&gt;
The current used during manipulation&lt;br /&gt;
&lt;br /&gt;
Gain preamplifier&lt;br /&gt;
The gain used during manipulation&lt;br /&gt;
&lt;br /&gt;
Manip. Speed[Å/sec]&lt;br /&gt;
The speed of the tip for lateral movements. Used for all movements. Step Size determines the number points measured during a lat. manip. scan.&lt;br /&gt;
&lt;br /&gt;
Extension&lt;br /&gt;
Extension value for manipulation modes 4-6&lt;br /&gt;
&lt;br /&gt;
Const. Height Z-Offset&lt;br /&gt;
In constant height mode the tip sample distance can be varied by this parameters. Positive values [Å} correspond to a closer approach to the surface.&lt;br /&gt;
&lt;br /&gt;
Channels&lt;br /&gt;
Select the channels acquired during data acquisition&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
LatChannelForm&lt;br /&gt;
Press to open a new Form to display the manipulation data.&lt;br /&gt;
&lt;br /&gt;
Lateral Speed [Å/sec]&lt;br /&gt;
Speed at which the tip is moving from the origin to first starting point&lt;br /&gt;
&lt;br /&gt;
LM in old place&lt;br /&gt;
Repeat the LM using the previous coordinates&lt;br /&gt;
&lt;br /&gt;
Load Ext Lat Par&lt;br /&gt;
Load the lateral manipulation cooordinates from an external file.&lt;br /&gt;
&lt;br /&gt;
[[file:cliplatmanip.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The measured data is displayed in separate windows. X and Y scaling can be adjusted by the user. Two independent axis can be displayed. (Press ''2.Axis'')&lt;br /&gt;
''LP'' Low Pass Filter&lt;br /&gt;
''TP'' Makes the Windows transparent to put it on top of another window.&lt;br /&gt;
&lt;br /&gt;
[[file:cliplmanip.png]]&lt;br /&gt;
&lt;br /&gt;
Right click to open the Popupmenu.&lt;br /&gt;
XYDesign, XY Series Edit allows to change the appearance of the Data&lt;br /&gt;
Copyclipboard.. copies the Plot or the Data into the clipboard&lt;br /&gt;
PrintXYGraph prints the XY Plot&lt;br /&gt;
Measure allows measuring the distance between points in the plot&lt;br /&gt;
AutoUpdate: The Plot is updated every second during Data Acquisition. &lt;br /&gt;
Lowpass filters the data (very simple just nearest neighbor average)&lt;br /&gt;
 &lt;br /&gt;
[[file:clipvertmanip_popupmenu1.png]]&lt;br /&gt;
&lt;br /&gt;
== Vertical Manipulation / I/V Spectroscopy ==&lt;br /&gt;
&lt;br /&gt;
Vertical manipulation (spectroscopy) is started by pressing on the ''VM'' button and selecting a point in the image by clicking with the left mouse button. The tip uses the lateral speed value to move to the vertical manipulation position. When the manipulation is finished the measured data appears in a separate window and can be saved with the Save button. Different channels can be selected to be recorded. Usually an external Lockin will be connected to ADC1. The internal Lockin supplies the signals dI/dV, d2I/dV2, di_q,d2_q. The form of the voltage and the z-height ramp is controlled by 8 points in time. In the case of the voltage one can define 8 time points and their corresponding voltage value. For example (0,1000), (256,0), (512,2000),(1024,-1000) define a ramp starting with 1000mV at time 0. Then it will be linear interpolated to time 256 with 0 Volt. Then it goes up again to 2000mV at time 512 and finally reaches -1000mV at time 1024. The time values correspond to the number of points taken. In this case these are 1024 points. A maximum of 100000 points is possible. The z-height values already include the gain of the z-amplifier. This means, that changing the HV gain will not change the z-height ramp, because this will be automatically corrected. Vertspecback = 1 will apply the ramp in forward and backward direction. Vertspecback=n will apply the ramp in forward and backward direction n-times (n&amp;gt;=1). The shape of the ramps is shown in the lower graph in the vertical manipulation window. &lt;br /&gt;
&lt;br /&gt;
Vertical spectroscopy can be done during scanning. Press the VM Button and select a point in the unscanned image area.  &lt;br /&gt;
&lt;br /&gt;
These parameters control the vertical manipulation and spectroscopy&lt;br /&gt;
&lt;br /&gt;
Gain preamplifier&lt;br /&gt;
Gain of the preamplifier during data acquisition&lt;br /&gt;
&lt;br /&gt;
Speclenght[sec]&lt;br /&gt;
Select the recording total time of the spectrum.&lt;br /&gt;
&lt;br /&gt;
Spectrum backward&lt;br /&gt;
0: The Spectrum defined in the V,Z table is taken only once.&lt;br /&gt;
1: The spectrum defined in the V,Z table is taken once in forward and once in backward direction&lt;br /&gt;
&amp;gt;1: Defines how often a forward and backward spectrum is taken&lt;br /&gt;
&lt;br /&gt;
Lateral Speed[Å/sec]&lt;br /&gt;
Speed at which the tip moves to the place where the spectrum will be taken.&lt;br /&gt;
&lt;br /&gt;
Z- Offset&lt;br /&gt;
Defines an additonal offset which is added to the z values in the table&lt;br /&gt;
&lt;br /&gt;
Z-Drift&lt;br /&gt;
Defines an increment which is added to the values in the table to compensate drift effects&lt;br /&gt;
&lt;br /&gt;
Repeat Count&lt;br /&gt;
Defines how many separate spectra are taken and stored.&lt;br /&gt;
&lt;br /&gt;
Spectra/Line&lt;br /&gt;
Defines the number of spectra equally spaced along a line between a start and endpoint,selected by mouse input.&lt;br /&gt;
The first spectrum is taken at the startpoint of the line the last one at the endpoint of the line.  &lt;br /&gt;
&lt;br /&gt;
V,Z table&lt;br /&gt;
4 points can be defined to create a voltage and z table used for vertical manipulation and spectroscopy. The data values are plotted in the graph below. The first Time Value should be set to 1 (not 0, still allowed for compatibility), otherwise the first value might not be displayed.&lt;br /&gt;
(Voltage(green), Z-Position(blue))&lt;br /&gt;
&lt;br /&gt;
Spec_X_Grid&lt;br /&gt;
Spec_Y_Grid&lt;br /&gt;
Determine the spacing of the spectroscopy grid. First spectrum position is (spec_x_grid,spec_y_grid) in pixel coordinates.&lt;br /&gt;
&lt;br /&gt;
SGrid_Channel&lt;br /&gt;
Number of channels recorded during the grid spectroscopy mode&lt;br /&gt;
&lt;br /&gt;
SpecGrid_Delay&lt;br /&gt;
Delay in DSP cycle units added before/after a vertical spectrum is started/finished.&lt;br /&gt;
&lt;br /&gt;
SpecAvrgCount&lt;br /&gt;
Number of Spectra acquired and averaged directly on the DSP board. For Count&amp;gt;1 be aware that the current preamplifier gain for vertical spectroscopy will be set the same to the normal preamplifer gain. Between the spectra the feedback loop will be switched on to readjust the sample tip distance.   &lt;br /&gt;
&lt;br /&gt;
SpecAvrgFBDelay  &lt;br /&gt;
On Time of the Feedback loop in DSP cycle units between spectra in Averaging mode.&lt;br /&gt;
&lt;br /&gt;
Save File&lt;br /&gt;
Save the present Vert. Spektrum&lt;br /&gt;
&lt;br /&gt;
Single_Spectrum&lt;br /&gt;
Take one single spectrum. Select the position with a left mouse button click on the image.&lt;br /&gt;
Same like pressing &amp;lt;VM&amp;gt; button&lt;br /&gt;
&lt;br /&gt;
Spectra along Line&lt;br /&gt;
Take a series of spectra equally spaced a long a line defined by two mouse clicks. &lt;br /&gt;
&lt;br /&gt;
Spec in old Place&lt;br /&gt;
Take a spectrum at the X,Y position of the previous scan.&lt;br /&gt;
&lt;br /&gt;
Multiple Spectra&lt;br /&gt;
Select several spectra taken one after the other. Left Mouse button select another spectrum, right mosue button stop selection and start data acquisition.&lt;br /&gt;
&lt;br /&gt;
MultSpec from File&lt;br /&gt;
Use an external file (Ascii) to define a series of spectra.&lt;br /&gt;
Only 256*256 pixel images allowed. No zoom.  First line contains number of spectra. Each following line contains the x y image coordinates(integer) of each spectrum. &lt;br /&gt;
&lt;br /&gt;
Spectra on Grid&lt;br /&gt;
Spectra taken at each grid position. (Analysis of the Grid data is done in another program)&lt;br /&gt;
&lt;br /&gt;
SaveSpecgrid&lt;br /&gt;
Save the Grid File. Two files are saved. One *.specgrid.dat File with all the parameters and the *.specgrid File with the grid data&lt;br /&gt;
&lt;br /&gt;
VFB_Mode&lt;br /&gt;
Select the VoltageFeedbackMode&lt;br /&gt;
I(V,z): Normal Operation feedback loop is OFF&lt;br /&gt;
z(V): Constant current operation&lt;br /&gt;
&lt;br /&gt;
VFB_Current[nA]&lt;br /&gt;
Current setpoint used in z(V) Mode. FB_Channel has to be current.&lt;br /&gt;
&lt;br /&gt;
Load Vert_Params&lt;br /&gt;
Load only the parameter of a spectrum and not the data&lt;br /&gt;
&lt;br /&gt;
External VZ Data&lt;br /&gt;
If not checked the VZ Data for a spectrum are taken from the VZ-Table parameter.&lt;br /&gt;
If checked the VZData is taken from a different source table, which can be loaded from an external file.&lt;br /&gt;
This allows the user defined design of arbitrary VZ arrays of up to 100000 points. File format see below.  &lt;br /&gt;
&lt;br /&gt;
Filenames:&lt;br /&gt;
First Letter is the machinename, in case you have more than one LTSTM or you want to assign different users.&lt;br /&gt;
Followed by DATE.TIME.VERT. VERT is the standard fileextension.&lt;br /&gt;
In case you take repeated spectra in a point or take spectra along a line an additional &amp;quot;L#Number.R#Number.&amp;quot; indicator is added before&lt;br /&gt;
the VERT file extension. L indicates line position and R indicates the numbering in repeat mode.&lt;br /&gt;
&lt;br /&gt;
[[file:clipvertmanp.png]]&lt;br /&gt;
&lt;br /&gt;
The measured data is displayed in separate windows. X and Y scaling can be adjusted by the user. Two independent axis can be displayed. (Press ''2.Axis'')&lt;br /&gt;
''LP'' Low Pass Filter&lt;br /&gt;
''TP'' Makes the Windows transparent to put it on top of another window.&lt;br /&gt;
&lt;br /&gt;
[[file:clipvmanip.png]]&lt;br /&gt;
&lt;br /&gt;
Right click to open the Popupmenu.&lt;br /&gt;
XYDesign, XY Series Edit allows to change the appearance of the Data&lt;br /&gt;
Copyclipboard.. copies the Plot or the Data into the clipboard&lt;br /&gt;
PrintXYGraph prints the XY Plot&lt;br /&gt;
Measure allows measuring the distance between points in the plot&lt;br /&gt;
AutoUpdate: The Plot is updated every second during Data Acquisition. &lt;br /&gt;
Lowpass filters the data (very simple just nearest neighbor average)&lt;br /&gt;
 &lt;br /&gt;
[[file:clipvertmanip_popupmenu1.png]]&lt;br /&gt;
&lt;br /&gt;
== Slider ==&lt;br /&gt;
&lt;br /&gt;
Brightness and Contrast&lt;br /&gt;
Use the slider window to control the brightness and contrast of the image. The slider marked B adjusts the brightness of the image. The slider marked Z controls the contrast. Above both sliders the corresponding height range in (+/-)Å is displayed.So total height difference between black and white for example is two times the displayed value. On the right for multichannel images the channel, which is displayed can be selected. &lt;br /&gt;
&lt;br /&gt;
Biasvoltage&lt;br /&gt;
The polarity of the biasvoltage can be changed by pressing with the mouse on 'V' label, or by pressing the ''+''/ ''-'' keys. &lt;br /&gt;
&lt;br /&gt;
Press the right mouse button on the 'V' label to open a Popupmenu for the biasvoltage. &lt;br /&gt;
Three options exist:&lt;br /&gt;
SetBiasMinvolt:  If selected sets the current biasvoltage as the minimum biasvoltage.&lt;br /&gt;
SetBiasMaxvolt: If selected sets the current biasvoltage as the maximum biasvoltage.&lt;br /&gt;
This feature can be used to avoid tunneling outside a specific bias voltange range. i.e for example to limit the maximum biasvoltage to protect the tip, when using the silder.&lt;br /&gt;
&lt;br /&gt;
ResetBiasMinMax: If selected deletes the Min/Max values again.&lt;br /&gt;
 &lt;br /&gt;
Current&lt;br /&gt;
Press the right mouse button on the 'A' label to open a Popupmenu for the current. &lt;br /&gt;
&lt;br /&gt;
Log: logarithmic scaling of the current slider&lt;br /&gt;
Lin: linear scaling of the current slider&lt;br /&gt;
&lt;br /&gt;
Channels &lt;br /&gt;
Select the displayed channel. For Channel Nr.=  0 all channels are displayed.&lt;br /&gt;
&lt;br /&gt;
Zoom&lt;br /&gt;
Allowed zoom factors are x1, x2, x3, x4.&lt;br /&gt;
&lt;br /&gt;
Tip up/down&lt;br /&gt;
Press this button to fully retract or to approach the tip.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[file:clipslider.png]]&lt;br /&gt;
&lt;br /&gt;
The height of the slider window can be adjusted. This changes the height of the sliders simultaneously.&lt;br /&gt;
&lt;br /&gt;
== FFT Evaluation ==&lt;br /&gt;
&lt;br /&gt;
This part of the software allows use to analyse FFT transforms of the images. (Always crosscheck the results)&lt;br /&gt;
&lt;br /&gt;
[[file:clipfftevaluation.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Load Files ==&lt;br /&gt;
&lt;br /&gt;
Loading Files is done using the ''Open *.Dat'' menu item.&lt;br /&gt;
&lt;br /&gt;
You can define your own favorite directories in the Windows Places Bar region. (Use for example the TweakUI utility.)&lt;br /&gt;
&lt;br /&gt;
Options:&lt;br /&gt;
&lt;br /&gt;
Full Parameter Load:  Check to load all parameters, not only those relevant for the loaded file type. &lt;br /&gt;
 &lt;br /&gt;
Disable Warning: If checked no warning will be given when files are loaded in data acquisition.                               &lt;br /&gt;
             &lt;br /&gt;
&lt;br /&gt;
[[file:cliploadfile.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Open allows to select in running program or alternatively in a newly opened analysis program.&lt;br /&gt;
&lt;br /&gt;
[[file:cliploadfile2.png]]&lt;br /&gt;
&lt;br /&gt;
== AFM ==&lt;br /&gt;
&lt;br /&gt;
In the following we discuss the operation of the internal PLL system.&lt;br /&gt;
The internal PLL can operate up to 32kHz ( based on 16 samples per period at 512kHz max sample rate).&lt;br /&gt;
This usualy covers operation of standard quartz tuning fork sensors as the qPlus sensor.&lt;br /&gt;
(For higher frequencies optionally the Zurich Instruments PLL can be used externally.)&lt;br /&gt;
The input signal from the Preamplifier is connected to the ADC3 input of ADDA Board 2, while DAC5 of the same ADDA Board supplies the excitation signal. &lt;br /&gt;
&lt;br /&gt;
PLL Centerfreq: determines the center frequency of the PLL. (Change either by typing the number directly or increase/decrease by using the up/down/ page up/page down and both in combination with Shift key)&lt;br /&gt;
PLL-Ampl[nm]: Input the Set value of the Amplitude in nm when the Amplitude controller is on&lt;br /&gt;
PLL-Exc[V]: Input the Excitation value in Volt&lt;br /&gt;
PLL-Phase: Phase Shift of Exciation Signal. Has to be optimized const stable PLL operation&lt;br /&gt;
PLL F Range[+/-Hz]: PLL frequency tracking range. max. allowed deviation from center frequency&lt;br /&gt;
&lt;br /&gt;
PLL On: If selected operation of the PLL is switched on&lt;br /&gt;
Ampl Control: If selected Amplitude Control is switched on&lt;br /&gt;
Active Damping: If selected the Amplitude control can electronically damp the cantilever vibration&lt;br /&gt;
Ref Signal f: If selected DAC2 of the PLL board outputs a reference of the PLL frequency&lt;br /&gt;
Ref Signal 2f: If selected DAC2 of the PLL board outputs a reference of the 2nd harmonic of the PLL frequency&lt;br /&gt;
&lt;br /&gt;
P[Hz/Deg]: Proportional value of the PLL frequency controller&lt;br /&gt;
Int[Hz/deg/s]: Integrator value of the PLL frequency controller&lt;br /&gt;
LP Filter[Hz]: Value of the 4th order loop filter&lt;br /&gt;
P Ampl[V/nm]: Proportional part of the Ampl controller&lt;br /&gt;
LP Amp filter[Hz]: Loop filter of the Amp controller&lt;br /&gt;
df Post Filter[Hz]: Filters the PLL freq data finally before it is output to the STM feedback controller&lt;br /&gt;
&lt;br /&gt;
Sensor Cal[V/nm]: Calibrate the Preamp output in nm units&lt;br /&gt;
SRS Gain: Optionally include the SRS Preamp gain&lt;br /&gt;
&lt;br /&gt;
PLL FreqScan, PLL Phase Scan: Start a frequency or Phase Scan&lt;br /&gt;
Filter PLL_Scan: Filter the Scan Data. (simple 1.order lowpass). can be repeated to allow a beeter calculation of the Q factor etc.&lt;br /&gt;
Show Phase: Displays the phase. Has to be selected to calculate the Q Factor.&lt;br /&gt;
&lt;br /&gt;
Results: Automatic determination of CenterFreq and Q Factor&lt;br /&gt;
&lt;br /&gt;
ScancenterFreq, FreqSpan, ScanTime, ScanPoints: determines the properties of the Frequency Scan or PLL Phase Scan&lt;br /&gt;
&lt;br /&gt;
[[file:Resonance.png]]&lt;br /&gt;
&lt;br /&gt;
[[Category:stmafm_manual]]&lt;br /&gt;
&lt;br /&gt;
== 20 steps to successful AFM operation ==&lt;br /&gt;
&lt;br /&gt;
For a first setup of a functioning PLL useful for scanning in CC, CH or CF mode please refer to the following graphical guide.&lt;br /&gt;
&lt;br /&gt;
[[File:Folie2.PNG|800px]]&lt;br /&gt;
&lt;br /&gt;
[[File:Folie3.PNG|800px]]&lt;br /&gt;
&lt;br /&gt;
[[File:Folie4.PNG|800px]]&lt;br /&gt;
&lt;br /&gt;
[[File:Folie5.PNG|800px]]&lt;br /&gt;
&lt;br /&gt;
In order to start scanning please perform the following steps:&lt;br /&gt;
a) For constant current mode (CC, dynamic STM)&lt;br /&gt;
14. Approach the tip and observe the frequency shift changing from Δf=0 Hz to a finite negative value.&lt;br /&gt;
15. Select the channels ''dF'', ''Amplitude'' and ''Damping'' in the Parameter window in order to measure these signals.&lt;br /&gt;
16. Set the current setpoint to a finite value, i.e. e.g., 10 or 100 pA.&lt;br /&gt;
17. Start scanning in CC mode as you would do in STM mode.&lt;br /&gt;
&lt;br /&gt;
b) For constant force mode (CF, nc-AFM)&lt;br /&gt;
14. Change the feedback mode to ''LinAbs'' and the feedback channel to ''dF''.&lt;br /&gt;
15. Change the integrator value to e.g. -0.0003 or something in the same order of magnitude.&lt;br /&gt;
16. Select the channels ''dF'', ''Amplitude'' and ''Damping'' in the Parameter window.&lt;br /&gt;
17. Set the constant frequency setpoint to a value close to but a little bit smaller than the finite Δf value from above.&lt;br /&gt;
18. Start scanning in CF mode as you would do in STM mode.&lt;br /&gt;
19. Adjust the scanning speed and the integrator together with the amplitude and phase control of the tuning fork.&lt;br /&gt;
20. Observe the current signal and increase the setpoint in order to go closer to the surface.&lt;/div&gt;</summary>
		<author><name>Ltspm</name></author>	</entry>

	<entry>
		<id>http://spm-wiki.createc.de/index.php?title=Forms</id>
		<title>Forms</title>
		<link rel="alternate" type="text/html" href="http://spm-wiki.createc.de/index.php?title=Forms"/>
				<updated>2016-12-21T09:39:20Z</updated>
		
		<summary type="html">&lt;p&gt;Ltspm: /* Load Files */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== LineScan ==&lt;br /&gt;
&lt;br /&gt;
Press the ''Lin'' Button to take a line scan of the image. First select two points of the image by pressing the left mouse button. The linescan&lt;br /&gt;
is displayed in the upper linegraph of the linescanform-window. To perform measurements on the linescan press the &amp;lt;Measure&amp;gt; button. &lt;br /&gt;
&lt;br /&gt;
Use the left mouse button to select a new point. With the right mouse button you can switch between points. Pressing the Shift button allows to move a whole line. Pressing the right mouse button together with the Shift button will switch to the prependicular averaging mode.&lt;br /&gt;
&lt;br /&gt;
Important: If the linescan form is opened through the menue selection first, all linescan data will be displayed always in the this particular window. Otherwise pressing the LIN button will always open a new window.&lt;br /&gt;
&lt;br /&gt;
Autosize&lt;br /&gt;
Selects automatic scaling of the linegraph&lt;br /&gt;
&lt;br /&gt;
Autolinebacksub&lt;br /&gt;
Selects automatic subtraction of linear background&lt;br /&gt;
&lt;br /&gt;
Line Display Trackbar&lt;br /&gt;
Move to show a line scan of a particular image line. A FFT of the selected line is shown in the lower line graph.(The number of points/line has to be a power of 2)&lt;br /&gt;
&lt;br /&gt;
Popup menu of upper linegraph&lt;br /&gt;
xydesign: Select to adjust the appearance of the line graph&lt;br /&gt;
CopyClipboardData: The line scan data are copied to the ClipBoard&lt;br /&gt;
CopyClipboardXYGraph: The line scan graph is copied to the ClipBoard&lt;br /&gt;
Printxygraph: The line scan graph is send to the printer&lt;br /&gt;
Measure: Do measurements of the plot data.&lt;br /&gt;
Redrawline: The line in the image is redrawn&lt;br /&gt;
&lt;br /&gt;
Popup menu of lower linegraph&lt;br /&gt;
has the same items as the upper popup menu and one additional entry:&lt;br /&gt;
Show Frequency: Gives the FFT in frequency [Hz] instead of inverse distance [1/Å] (updated when the Line Display Trackbar is moved)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Channels&lt;br /&gt;
Select the channels which are displayed&lt;br /&gt;
&lt;br /&gt;
[[file:cliplinescan.png]]&lt;br /&gt;
&lt;br /&gt;
[[file:cliplinescanpopupmenu.png]]&lt;br /&gt;
&lt;br /&gt;
== Rampcontroller ==&lt;br /&gt;
&lt;br /&gt;
Click on the ''Ramp'' button. This opens the 'Rampcontroller'-window with control elements necessary to perform the coarse approach. The 6 buttons with arrows in the top of the form correspond to moving the tip in respect to the sample surface. Moving in x/y direction can also be done using the x/y cursor keys on the keyboard. The page up and page down keys are used correspondingly for rotation up and down. Selecting the burst mode in x/y or rotation will result in a series of steps corresponding to the number of burst steps displayed in the ramp parameter list. When the Crash Protection is switched on, the program checks before each step, whether it can detect a tunneling current. If this is the case it will cancel the step. Usually the crash protection should be switched on, but in cases where the tip is already crashed, the protection has to be switched off. The program issues some warnings when the ramp windows opens to inform the user to do necessary changes for a successful ramping. These are: First retract the tip, reset the x- and y-offset in the STM-program, select the appropriate gain (1-10, depending on the temperature) in the x- and y- channel of the HV-amplifier and set the external offset voltages to zero.&lt;br /&gt;
The usual coarse approach is done by controlling the approach with an optical microscope. When the tip is  close enough, the automatic tip approach can be switched on, by pressing the ''Approach'' button. It will start a combination of single coarse approach rotation steps combined with tip approach testing until the tip can reach the sample. ''Approach'' stops when a tunneling current is detected. The value of this threshold current is set by the current slider. Important: When the approach stops, the tip is automatically retracted, by setting the current to zero. Before leaving the coarse approach by pressing the ''Quit'' button, you have to select the mode for scanning. When the ''Main/Coarse'' button displays 'Coarse' mode, then the outer 3 piezos are used for scanning, otherwise the center piezo is used. In the normal operation of the microscope the 'Coarse' mode should be selected. Select the required set point current to see if the approach was successful. Now the tip should be retracted manually by using the external HV-amplifier z-offset voltage to go out of tunneling. Select the required gains and re-approach the tip again.&lt;br /&gt;
&lt;br /&gt;
See also: Approach Tips&lt;br /&gt;
&lt;br /&gt;
The Coarse Approach operation is controlled by the following parameters:&lt;br /&gt;
&lt;br /&gt;
Puls Height[V]&lt;br /&gt;
Input the peak to peak height (in V) of the sawtooth pulse used for moving the inertial slider. Two different values are used for the lateral XY motion and the rotational motion.&lt;br /&gt;
&lt;br /&gt;
Puls-Duration[sec]&lt;br /&gt;
Input the duration of a single sawtooth pulse in seconds. &lt;br /&gt;
&lt;br /&gt;
Burst-Count&lt;br /&gt;
Determines the number of sawtooth pulses applied when operating the coarse control in burst mode.&lt;br /&gt;
&lt;br /&gt;
Approach Period[sec]&lt;br /&gt;
Determines the time for a single approach cycle including approach and retraction of the tip to find the sample surface.&lt;br /&gt;
&lt;br /&gt;
Approach Burst Count&lt;br /&gt;
This is the number of coarse pulses applied between two approach cycles.&lt;br /&gt;
&lt;br /&gt;
Approach Retry Count&lt;br /&gt;
This is the number of retry operations done before the approach is stopped.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[file:cliprampcontrollerCreatec.png]]&lt;br /&gt;
&lt;br /&gt;
== Grid ==&lt;br /&gt;
&lt;br /&gt;
The form 'Grid-Image- Transformation' contains several functions for different kinds of image transformations. A suitable combination of the procedures below will allow transformations useful for drift correction, superstructure analysis, extraction of registry information. To open the form press on the grid button in the STMAFM form. With the 6 slider controls a grid can be overlayed on the image. The lateral position, the angles of the grid and the distance between the grid lines can be adjusted. An alternative way to input the grid is pressing the ''Mouse'' button and to mark 3 points (the first one is the center, the other two determine the direction of the two lines). Pressing the ''Rotation'' button will rotate the image in such a way that one set of the grid lines (X-Axis) is parallel to the horizontal direction. Pressing the ''Zoom'' button will zoom the image by the value set in the edit control positioned next to the right of the button. The image is zoomed around the center point of the grid. By pressing on the ''X..,Y..'' button the actual center position of the grid is stored and displayed on the button. Selecting a new center position with the mouse, as described above, and pressing the ''Move grid to Center'' button will move the new defined center to the stored center position. The ''Transform'' button will transform the image according to the 2 Parameters in the edit controls below. The first is the new angle between the lines in the image and the second is the new ratio the grid line distances. Selecting the ''HexGrid'' check box will draw a grid suitable for hexagonal unit cells. If draw inverted is selected the grid is drawn by a inversion process. Otherwise you can select with &amp;lt;Grid Color&amp;gt; the line color of the grid.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;&amp;quot; widths=&amp;quot;400px&amp;quot; heights=&amp;quot;400px&amp;quot;&amp;gt;&lt;br /&gt;
file:clipgrid.png&lt;br /&gt;
file:clipgridimage.png&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== TimeSpectrum ==&lt;br /&gt;
&lt;br /&gt;
It is very often useful to take a time record of the A/D input channels, without scanning or changing the biasvoltage. This is for example a convenient way to characterize the noise performance of the STM. To take a time record just press the ''Start'' Button on the Time-Spectrum window or press the ''TS'' button on the main window. Five channels are recorded simultaneously. The A/D channels 0 and 3 (ADC0 is called current I) and the topography signal output from the feedback loop, called Z. The displayed channel is selected by the corresponding channel button. Three parameters control the data acquisition:&lt;br /&gt;
&lt;br /&gt;
Spec_Points&lt;br /&gt;
The number of data points taken for a single spectrum. This must be a power of 2, to allow FFT of the data.&lt;br /&gt;
(Maximum is 4096)&lt;br /&gt;
&lt;br /&gt;
Spec_Freq[Hz]&lt;br /&gt;
The sampling frequency. (Limited by the DSP_Clock value)&lt;br /&gt;
&lt;br /&gt;
Spec_Avrg_Count&lt;br /&gt;
The number of spectra averaged. Averaging is done only for the spectrum, i.e. the FFT data.&lt;br /&gt;
&lt;br /&gt;
Channels&lt;br /&gt;
First select the check boxes to determine the channels which are acquired during data acquisition&lt;br /&gt;
Part of these channels can be further selected to be displayed.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The results are displayed in two line graphs.&lt;br /&gt;
The upper one shows the time behaviour. (The vertical scale is always in V)&lt;br /&gt;
The lower one shows the frequency spectrum. (The vertical scale on the left shows the peak to peak value of a pure sine component,&lt;br /&gt;
the right scale the rms amplitude for non correlated signals) &lt;br /&gt;
&lt;br /&gt;
The frequency resolution depends on the number of points and the sampling frequency.&lt;br /&gt;
Important: The current signal and the ADC1 signal are filtered by a first order digital filter, which is controlled by the same CurrentRC Parameter.   &lt;br /&gt;
The contents of the memo field is saved together with the file.&lt;br /&gt;
&lt;br /&gt;
In the lower right the AVRG Value and the Standard Deviation of the timespectra data are shown.&lt;br /&gt;
&lt;br /&gt;
Save&lt;br /&gt;
The data is saved in ASCII Format&lt;br /&gt;
&lt;br /&gt;
FFT logscale: Displays the Spectrum in LogScale&lt;br /&gt;
&lt;br /&gt;
Waterfall: Displays the time dependence of the Spectra in a Waterfall like mode at the bottom of the window&lt;br /&gt;
&lt;br /&gt;
[[file:cliptimespectrum.png]]&lt;br /&gt;
&lt;br /&gt;
== 3d-view ==&lt;br /&gt;
&lt;br /&gt;
This part of the program allows the display of 3d views of selected parts of the images. To start, open the window by clicking the ''3d View'' button. Then click on  &amp;lt;New Data&amp;gt; in the main menue and select a rectangular region on the image displayed in the STMAFM program.  A new form will be opened, where the rendered image is displayed. The sliders in the 3d-view form allow to change the orientation, size, offset and lighting of the 3d object. The 3d image can be displayed in different ways, depending on which check boxes are checked. So the lights can be switched on or off, the 3d image can be shown using lines, hidden lines, or in the normal surface view. Checking the save box will start saving of each images displayed. With this feature a series of BMP images for movies can be created. Checking the ''Box'' box will draw a 3d box with x,y,z axes in the 3dimage.In the light sources field the angle of the light source can be changed. Apart from a directed diffuse light source ambient lighting can be added.&lt;br /&gt;
&lt;br /&gt;
Under the menue item Color the color of the background and of the lines can be changed.&lt;br /&gt;
Morover the image can be copied to the clipboard (in BMP format), to a new window or the data can be exported in PoVRay format. &lt;br /&gt;
(New List means that a new imagedisplaylist is created for the underlying OPENGL rendering program. This usually done automatically)&lt;br /&gt;
&lt;br /&gt;
Selected views can be saved and are saved with the program.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;&amp;quot; widths=&amp;quot;450px&amp;quot; heights=&amp;quot;300px&amp;quot;&amp;gt;&lt;br /&gt;
file:clip3dcontrol.png&lt;br /&gt;
file:clip3dform.png&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Lateral Manipulation ==&lt;br /&gt;
&lt;br /&gt;
To perform a lateral manipulation with the tip one has first to press the Button ''LM'' and then to select the starting and the final position of the manipulation path by selecting these points in the image with the left mouse button. A thin line is drawn on the screen between these points. After the manipulation is completed a separate window opens up where the tip height and current during the manipulation is displayed. By pressing the save button this data set can be saved in a *.LAT File.&lt;br /&gt;
&lt;br /&gt;
Different kinds of manipulation procedures can be performed. They are selected by choosing a certain manipulation mode number in the manipulation parameter field. These different modes are described in the following. The speed of the tip is controlled by the parameters latmandelay and latmanddx, which are used throughout the whole process and not only when the tip is manipulating.&lt;br /&gt;
&lt;br /&gt;
Mode 1: This is the simplest constant current mode manipulation. Starting from the top of the image the tip moves in a straight line to the starting point of the manipulation using the standard feedback parameters used for imaging. Then the feedback parameters are switched to the ones selected in the lateral manipulation parameter set . These are current, voltage and gain of the preamplifier. Then the tip moves using these manipulation parameters to the final position. There the parameters are set back to their original imaging values and the tip moves back to top of the image.&lt;br /&gt;
&lt;br /&gt;
Mode 2: Similar to mode 1, but the tip moves first to the final position, then starts the manipulation to the starting position and goes back to final position. It switches back to imaging parameters and moves to the top of the image.&lt;br /&gt;
&lt;br /&gt;
Mode3: Similar to mode 1: The tip first moves to the starting point. Then it moves to final position and back to the starting position using the normal imaging parameters, but the tip height and current are recorded during these two scans. Then the parameters are switched to the manipulation parameters and the tip moves to the final position. Then the parameters are changed back to the imaging parameters and the tip moves back to the starting position while again recording the tip height and current. Finally the tip moves to the top of the image.&lt;br /&gt;
&lt;br /&gt;
Mode 4: This is a constant height manipulation mode. The tip moves first to the starting position. Then it moves from the starting to the final position and back taking data in normal imaging mode. Then the feedback is switched off and the tip moves from the starting to the final position in constant height mode. The height used is given by the height of the tip when the feedbackloop is switched off plus the additional offset given by latmanccdz. This means that the height depends on the imaging parameters. Then the tip moves back from the final position to the starting position in imaging mode, but taking data again. Finally the tip moves to the top of the image. With the extension factor the manipulation path can be extended at the final position by the factor given by latmanextlextension. The starting point is not affected by the extension factor.&lt;br /&gt;
&lt;br /&gt;
Mode 5: Similar to mode 4. In this mode the extension affects also the starting position. The extension positions are first calculated. The tip moves in imaging mode to extended starting position. Then moves to the final extended position and backward and takes data in imaging mode. Then the tip moves to the starting position, while taking data in imaging mode. Then the tip moves from the starting position to the final position in constant height manipulation mode. Then it moves back to the starting position in imaging mode and takes data. Finally it moves back to the top of the image.&lt;br /&gt;
&lt;br /&gt;
Mode 6: Similar to mode 5. The only difference is that the tip moves from the starting to the final position and backward in constant height mode and not only in the forward direction, as done in mode 5.&lt;br /&gt;
&lt;br /&gt;
Mode 0: This mode is different from the other modes. In mode 0 the tip follows always the mouse position immediately. The height of the tip is displayed on rate meter appearing on the left. By pressing the upper case L key the imaging parameters are switched to the manipulation parameters and back again. (By pressing the upper case S a small 64 pixel * 64 pixel scan is performed.) Clicking with the mouse button will stop the continuous following of the tip. After additional clicking the tip moves to the new mouse position in a straight line and tracks the mouse position again.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
These parameters control the lateral manipulation processes.&lt;br /&gt;
&lt;br /&gt;
Mode&lt;br /&gt;
Select one of several different manipulation modes. There are constant current and constant height modes. For example P0 is the origin of the image. Then the tip moves to P1, the first point selected with the mouse. The tunneling parameters are changed to manipulation parameters and the tip moves from P1 to P2. There the normal tunneling parameters, used for imaging, are selected again and the tip moves to the origin P0.&lt;br /&gt;
&lt;br /&gt;
Voltage[V]&lt;br /&gt;
The tunneling voltage applied during the manipulation phase.&lt;br /&gt;
&lt;br /&gt;
Current[nA]&lt;br /&gt;
The current used during manipulation&lt;br /&gt;
&lt;br /&gt;
Gain preamplifier&lt;br /&gt;
The gain used during manipulation&lt;br /&gt;
&lt;br /&gt;
Manip. Speed[Å/sec]&lt;br /&gt;
The speed of the tip for lateral movements. Used for all movements. Step Size determines the number points measured during a lat. manip. scan.&lt;br /&gt;
&lt;br /&gt;
Extension&lt;br /&gt;
Extension value for manipulation modes 4-6&lt;br /&gt;
&lt;br /&gt;
Const. Height Z-Offset&lt;br /&gt;
In constant height mode the tip sample distance can be varied by this parameters. Positive values [Å} correspond to a closer approach to the surface.&lt;br /&gt;
&lt;br /&gt;
Channels&lt;br /&gt;
Select the channels acquired during data acquisition&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
LatChannelForm&lt;br /&gt;
Press to open a new Form to display the manipulation data.&lt;br /&gt;
&lt;br /&gt;
Lateral Speed [Å/sec]&lt;br /&gt;
Speed at which the tip is moving from the origin to first starting point&lt;br /&gt;
&lt;br /&gt;
LM in old place&lt;br /&gt;
Repeat the LM using the previous coordinates&lt;br /&gt;
&lt;br /&gt;
Load Ext Lat Par&lt;br /&gt;
Load the lateral manipulation cooordinates from an external file.&lt;br /&gt;
&lt;br /&gt;
[[file:cliplatmanip.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The measured data is displayed in separate windows. X and Y scaling can be adjusted by the user. Two independent axis can be displayed. (Press ''2.Axis'')&lt;br /&gt;
''LP'' Low Pass Filter&lt;br /&gt;
''TP'' Makes the Windows transparent to put it on top of another window.&lt;br /&gt;
&lt;br /&gt;
[[file:cliplmanip.png]]&lt;br /&gt;
&lt;br /&gt;
Right click to open the Popupmenu.&lt;br /&gt;
XYDesign, XY Series Edit allows to change the appearance of the Data&lt;br /&gt;
Copyclipboard.. copies the Plot or the Data into the clipboard&lt;br /&gt;
PrintXYGraph prints the XY Plot&lt;br /&gt;
Measure allows measuring the distance between points in the plot&lt;br /&gt;
AutoUpdate: The Plot is updated every second during Data Acquisition. &lt;br /&gt;
Lowpass filters the data (very simple just nearest neighbor average)&lt;br /&gt;
 &lt;br /&gt;
[[file:clipvertmanip_popupmenu1.png]]&lt;br /&gt;
&lt;br /&gt;
== Vertical Manipulation / I/V Spectroscopy ==&lt;br /&gt;
&lt;br /&gt;
Vertical manipulation (spectroscopy) is started by pressing on the ''VM'' button and selecting a point in the image by clicking with the left mouse button. The tip uses the lateral speed value to move to the vertical manipulation position. When the manipulation is finished the measured data appears in a separate window and can be saved with the Save button. Different channels can be selected to be recorded. Usually an external Lockin will be connected to ADC1. The internal Lockin supplies the signals dI/dV, d2I/dV2, di_q,d2_q. The form of the voltage and the z-height ramp is controlled by 8 points in time. In the case of the voltage one can define 8 time points and their corresponding voltage value. For example (0,1000), (256,0), (512,2000),(1024,-1000) define a ramp starting with 1000mV at time 0. Then it will be linear interpolated to time 256 with 0 Volt. Then it goes up again to 2000mV at time 512 and finally reaches -1000mV at time 1024. The time values correspond to the number of points taken. In this case these are 1024 points. A maximum of 100000 points is possible. The z-height values already include the gain of the z-amplifier. This means, that changing the HV gain will not change the z-height ramp, because this will be automatically corrected. Vertspecback = 1 will apply the ramp in forward and backward direction. Vertspecback=n will apply the ramp in forward and backward direction n-times (n&amp;gt;=1). The shape of the ramps is shown in the lower graph in the vertical manipulation window. &lt;br /&gt;
&lt;br /&gt;
Vertical spectroscopy can be done during scanning. Press the VM Button and select a point in the unscanned image area.  &lt;br /&gt;
&lt;br /&gt;
These parameters control the vertical manipulation and spectroscopy&lt;br /&gt;
&lt;br /&gt;
Gain preamplifier&lt;br /&gt;
Gain of the preamplifier during data acquisition&lt;br /&gt;
&lt;br /&gt;
Speclenght[sec]&lt;br /&gt;
Select the recording total time of the spectrum.&lt;br /&gt;
&lt;br /&gt;
Spectrum backward&lt;br /&gt;
0: The Spectrum defined in the V,Z table is taken only once.&lt;br /&gt;
1: The spectrum defined in the V,Z table is taken once in forward and once in backward direction&lt;br /&gt;
&amp;gt;1: Defines how often a forward and backward spectrum is taken&lt;br /&gt;
&lt;br /&gt;
Lateral Speed[Å/sec]&lt;br /&gt;
Speed at which the tip moves to the place where the spectrum will be taken.&lt;br /&gt;
&lt;br /&gt;
Z- Offset&lt;br /&gt;
Defines an additonal offset which is added to the z values in the table&lt;br /&gt;
&lt;br /&gt;
Z-Drift&lt;br /&gt;
Defines an increment which is added to the values in the table to compensate drift effects&lt;br /&gt;
&lt;br /&gt;
Repeat Count&lt;br /&gt;
Defines how many separate spectra are taken and stored.&lt;br /&gt;
&lt;br /&gt;
Spectra/Line&lt;br /&gt;
Defines the number of spectra equally spaced along a line between a start and endpoint,selected by mouse input.&lt;br /&gt;
The first spectrum is taken at the startpoint of the line the last one at the endpoint of the line.  &lt;br /&gt;
&lt;br /&gt;
V,Z table&lt;br /&gt;
4 points can be defined to create a voltage and z table used for vertical manipulation and spectroscopy. The data values are plotted in the graph below. The first Time Value should be set to 1 (not 0, still allowed for compatibility), otherwise the first value might not be displayed.&lt;br /&gt;
(Voltage(green), Z-Position(blue))&lt;br /&gt;
&lt;br /&gt;
Spec_X_Grid&lt;br /&gt;
Spec_Y_Grid&lt;br /&gt;
Determine the spacing of the spectroscopy grid. First spectrum position is (spec_x_grid,spec_y_grid) in pixel coordinates.&lt;br /&gt;
&lt;br /&gt;
SGrid_Channel&lt;br /&gt;
Number of channels recorded during the grid spectroscopy mode&lt;br /&gt;
&lt;br /&gt;
SpecGrid_Delay&lt;br /&gt;
Delay in DSP cycle units added before/after a vertical spectrum is started/finished.&lt;br /&gt;
&lt;br /&gt;
SpecAvrgCount&lt;br /&gt;
Number of Spectra acquired and averaged directly on the DSP board. For Count&amp;gt;1 be aware that the current preamplifier gain for vertical spectroscopy will be set the same to the normal preamplifer gain. Between the spectra the feedback loop will be switched on to readjust the sample tip distance.   &lt;br /&gt;
&lt;br /&gt;
SpecAvrgFBDelay  &lt;br /&gt;
On Time of the Feedback loop in DSP cycle units between spectra in Averaging mode.&lt;br /&gt;
&lt;br /&gt;
Save File&lt;br /&gt;
Save the present Vert. Spektrum&lt;br /&gt;
&lt;br /&gt;
Single_Spectrum&lt;br /&gt;
Take one single spectrum. Select the position with a left mouse button click on the image.&lt;br /&gt;
Same like pressing &amp;lt;VM&amp;gt; button&lt;br /&gt;
&lt;br /&gt;
Spectra along Line&lt;br /&gt;
Take a series of spectra equally spaced a long a line defined by two mouse clicks. &lt;br /&gt;
&lt;br /&gt;
Spec in old Place&lt;br /&gt;
Take a spectrum at the X,Y position of the previous scan.&lt;br /&gt;
&lt;br /&gt;
Multiple Spectra&lt;br /&gt;
Select several spectra taken one after the other. Left Mouse button select another spectrum, right mosue button stop selection and start data acquisition.&lt;br /&gt;
&lt;br /&gt;
MultSpec from File&lt;br /&gt;
Use an external file (Ascii) to define a series of spectra.&lt;br /&gt;
Only 256*256 pixel images allowed. No zoom.  First line contains number of spectra. Each following line contains the x y image coordinates(integer) of each spectrum. &lt;br /&gt;
&lt;br /&gt;
Spectra on Grid&lt;br /&gt;
Spectra taken at each grid position. (Analysis of the Grid data is done in another program)&lt;br /&gt;
&lt;br /&gt;
SaveSpecgrid&lt;br /&gt;
Save the Grid File. Two files are saved. One *.specgrid.dat File with all the parameters and the *.specgrid File with the grid data&lt;br /&gt;
&lt;br /&gt;
VFB_Mode&lt;br /&gt;
Select the VoltageFeedbackMode&lt;br /&gt;
I(V,z): Normal Operation feedback loop is OFF&lt;br /&gt;
z(V): Constant current operation&lt;br /&gt;
&lt;br /&gt;
VFB_Current[nA]&lt;br /&gt;
Current setpoint used in z(V) Mode. FB_Channel has to be current.&lt;br /&gt;
&lt;br /&gt;
Load Vert_Params&lt;br /&gt;
Load only the parameter of a spectrum and not the data&lt;br /&gt;
&lt;br /&gt;
External VZ Data&lt;br /&gt;
If not checked the VZ Data for a spectrum are taken from the VZ-Table parameter.&lt;br /&gt;
If checked the VZData is taken from a different source table, which can be loaded from an external file.&lt;br /&gt;
This allows the user defined design of arbitrary VZ arrays of up to 100000 points. File format see below.  &lt;br /&gt;
&lt;br /&gt;
Filenames:&lt;br /&gt;
First Letter is the machinename, in case you have more than one LTSTM or you want to assign different users.&lt;br /&gt;
Followed by DATE.TIME.VERT. VERT is the standard fileextension.&lt;br /&gt;
In case you take repeated spectra in a point or take spectra along a line an additional &amp;quot;L#Number.R#Number.&amp;quot; indicator is added before&lt;br /&gt;
the VERT file extension. L indicates line position and R indicates the numbering in repeat mode.&lt;br /&gt;
&lt;br /&gt;
[[file:clipvertmanp.png]]&lt;br /&gt;
&lt;br /&gt;
The measured data is displayed in separate windows. X and Y scaling can be adjusted by the user. Two independent axis can be displayed. (Press ''2.Axis'')&lt;br /&gt;
''LP'' Low Pass Filter&lt;br /&gt;
''TP'' Makes the Windows transparent to put it on top of another window.&lt;br /&gt;
&lt;br /&gt;
[[file:clipvmanip.png]]&lt;br /&gt;
&lt;br /&gt;
Right click to open the Popupmenu.&lt;br /&gt;
XYDesign, XY Series Edit allows to change the appearance of the Data&lt;br /&gt;
Copyclipboard.. copies the Plot or the Data into the clipboard&lt;br /&gt;
PrintXYGraph prints the XY Plot&lt;br /&gt;
Measure allows measuring the distance between points in the plot&lt;br /&gt;
AutoUpdate: The Plot is updated every second during Data Acquisition. &lt;br /&gt;
Lowpass filters the data (very simple just nearest neighbor average)&lt;br /&gt;
 &lt;br /&gt;
[[file:clipvertmanip_popupmenu1.png]]&lt;br /&gt;
&lt;br /&gt;
== Slider ==&lt;br /&gt;
&lt;br /&gt;
Brightness and Contrast&lt;br /&gt;
Use the slider window to control the brightness and contrast of the image. The slider marked B adjusts the brightness of the image. The slider marked Z controls the contrast. Above both sliders the corresponding height range in (+/-)Å is displayed.So total height difference between black and white for example is two times the displayed value. On the right for multichannel images the channel, which is displayed can be selected. &lt;br /&gt;
&lt;br /&gt;
Biasvoltage&lt;br /&gt;
The polarity of the biasvoltage can be changed by pressing with the mouse on 'V' label, or by pressing the ''+''/ ''-'' keys. &lt;br /&gt;
&lt;br /&gt;
Press the right mouse button on the 'V' label to open a Popupmenu for the biasvoltage. &lt;br /&gt;
Three options exist:&lt;br /&gt;
SetBiasMinvolt:  If selected sets the current biasvoltage as the minimum biasvoltage.&lt;br /&gt;
SetBiasMaxvolt: If selected sets the current biasvoltage as the maximum biasvoltage.&lt;br /&gt;
This feature can be used to avoid tunneling outside a specific bias voltange range. i.e for example to limit the maximum biasvoltage to protect the tip, when using the silder.&lt;br /&gt;
&lt;br /&gt;
ResetBiasMinMax: If selected deletes the Min/Max values again.&lt;br /&gt;
 &lt;br /&gt;
Current&lt;br /&gt;
Press the right mouse button on the 'A' label to open a Popupmenu for the current. &lt;br /&gt;
&lt;br /&gt;
Log: logarithmic scaling of the current slider&lt;br /&gt;
Lin: linear scaling of the current slider&lt;br /&gt;
&lt;br /&gt;
Channels &lt;br /&gt;
Select the displayed channel. For Channel Nr.=  0 all channels are displayed.&lt;br /&gt;
&lt;br /&gt;
Zoom&lt;br /&gt;
Allowed zoom factors are x1, x2, x3, x4.&lt;br /&gt;
&lt;br /&gt;
Tip up/down&lt;br /&gt;
Press this button to fully retract or to approach the tip.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[file:clipslider.png]]&lt;br /&gt;
&lt;br /&gt;
The height of the slider window can be adjusted. This changes the height of the sliders simultaneously.&lt;br /&gt;
&lt;br /&gt;
== FFT Evaluation ==&lt;br /&gt;
&lt;br /&gt;
This part of the software allows use to analyse FFT transforms of the images. (Always crosscheck the results)&lt;br /&gt;
&lt;br /&gt;
[[file:clipfftevaluation.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Load Files ==&lt;br /&gt;
&lt;br /&gt;
Loading Files is done using the ''Open *.Dat'' menu item.&lt;br /&gt;
&lt;br /&gt;
You can define your own favorite directories in the Windows Places Bar region. (Use for example the TweakUI utility.)&lt;br /&gt;
&lt;br /&gt;
Options:&lt;br /&gt;
&lt;br /&gt;
Full Parameter Load:  Check to load all parameters, not only those relevant for the loaded file type. &lt;br /&gt;
 &lt;br /&gt;
Disable Warning: If checked no warning will be given when files are loaded in data acquisition.                               &lt;br /&gt;
             &lt;br /&gt;
&lt;br /&gt;
[[file:cliploadfile.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Open allows to select in running program or alternatively in a newly opened analysis program.&lt;br /&gt;
&lt;br /&gt;
[[file:cliploadfile2.png]]&lt;br /&gt;
&lt;br /&gt;
== AFM ==&lt;br /&gt;
&lt;br /&gt;
In the following we discuss the operation of the internal PLL system.&lt;br /&gt;
The internal PLL can operate up to 32kHz ( based on 16 samples per period at 512kHz max sample rate).&lt;br /&gt;
This usualy covers operation of standard quartz tuning fork sensors as the qPlus sensor.&lt;br /&gt;
(For higher frequencies optionally the Zurich Instruments PLL can be used externally.)&lt;br /&gt;
The input signal from the Preamplifier is connected to the ADC3 input of ADDA Board 2, while DAC5 of the same ADDA Board supplies the excitation signal. &lt;br /&gt;
&lt;br /&gt;
PLL Centerfreq: determines the center frequency of the PLL. (Change either by typing the number directly or increase/decrease by using the up/down/ page up/page down and both in combination with Shift key)&lt;br /&gt;
PLL-Ampl[nm]: Input the Set value of the Amplitude in nm when the Amplitude controller is on&lt;br /&gt;
PLL-Exc[V]: Input the Excitation value in Volt&lt;br /&gt;
PLL-Phase: Phase Shift of Exciation Signal. Has to be optimized const stable PLL operation&lt;br /&gt;
PLL F Range[+/-Hz]: PLL frequency tracking range. max. allowed deviation from center frequency&lt;br /&gt;
&lt;br /&gt;
PLL On: If selected operation of the PLL is switched on&lt;br /&gt;
Ampl Control: If selected Amplitude Control is switched on&lt;br /&gt;
Active Damping: If selected the Amplitude control can electronically damp the cantilever vibration&lt;br /&gt;
Ref Signal f: If selected DAC2 of the PLL board outputs a reference of the PLL frequency&lt;br /&gt;
Ref Signal 2f: If selected DAC2 of the PLL board outputs a reference of the 2nd harmonic of the PLL frequency&lt;br /&gt;
&lt;br /&gt;
P[Hz/Deg]: Proportional value of the PLL frequency controller&lt;br /&gt;
Int[Hz/deg/s]: Integrator value of the PLL frequency controller&lt;br /&gt;
LP Filter[Hz]: Value of the 4th order loop filter&lt;br /&gt;
P Ampl[V/nm]: Proportional part of the Ampl controller&lt;br /&gt;
LP Amp filter[Hz]: Loop filter of the Amp controller&lt;br /&gt;
df Post Filter[Hz]: Filters the PLL freq data finally before it is output to the STM feedback controller&lt;br /&gt;
&lt;br /&gt;
Sensor Cal[V/nm]: Calibrate the Preamp output in nm units&lt;br /&gt;
SRS Gain: Optionally include the SRS Preamp gain&lt;br /&gt;
&lt;br /&gt;
PLL FreqScan, PLL Phase Scan: Start a frequency or Phase Scan&lt;br /&gt;
Filter PLL_Scan: Filter the Scan Data. (simple 1.order lowpass). can be repeated to allow a beeter calculation of the Q factor etc.&lt;br /&gt;
Show Phase: Displays the phase. Has to be selected to calculate the Q Factor.&lt;br /&gt;
&lt;br /&gt;
Results: Automatic determination of CenterFreq and Q Factor&lt;br /&gt;
&lt;br /&gt;
ScancenterFreq, FreqSpan, ScanTime, ScanPoints: determines the properties of the Frequency Scan or PLL Phase Scan&lt;br /&gt;
&lt;br /&gt;
[[file:Resonance.png]]&lt;br /&gt;
&lt;br /&gt;
[[Category:stmafm_manual]]&lt;br /&gt;
&lt;br /&gt;
== 20 steps to successful AFM operation ==&lt;br /&gt;
&lt;br /&gt;
For a first setup of a functioning PLL useful for scanning in CC, CH or CF mode please refer to the following graphical guide.&lt;br /&gt;
&lt;br /&gt;
[[File:Folie2.PNG|800px]]&lt;br /&gt;
&lt;br /&gt;
[[File:Folie3.PNG|800px]]&lt;br /&gt;
&lt;br /&gt;
[[File:Folie4.PNG|800px]]&lt;br /&gt;
&lt;br /&gt;
[[File:Folie5.PNG|800px]]&lt;br /&gt;
&lt;br /&gt;
In order to start scanning please perform the following steps:&lt;br /&gt;
a) For constant current mode (CC, dynamic STM)&lt;br /&gt;
14. Approach the tip and observe the frequency shift changing from Δf=0 Hz to a finite negative value.&lt;br /&gt;
15. Select the channels ''dF'', ''Amplitude'' and ''Damping'' in the Parameter window in order to measure these signals.&lt;br /&gt;
16. Set the current setpoint to a finite value, i.e. e.g., 10 or 100 pA.&lt;br /&gt;
17. Start scanning in CC mode as you would do in STM mode.&lt;br /&gt;
&lt;br /&gt;
b) For constant force mode (CF, nc-AFM)&lt;br /&gt;
14. Change the feedback mode to ''LinAbs'' and the feedback channel to ''dF''.&lt;br /&gt;
15. Change the integrator value to e.g. -0.0003 or something in the same order of magnitude.&lt;br /&gt;
16. Select the channels ''dF'', ''Amplitude'' and ''Damping'' in the Parameter window.&lt;br /&gt;
17. Set the constant frequency setpoint to a value close to but a little bit smaller than the finite Δf value from above.&lt;br /&gt;
18. Start scanning in CF mode as you would do in STM mode.&lt;br /&gt;
19. Adjust the scanning speed and the integrator together with the amplitude and phase control of the tuning fork.&lt;br /&gt;
20. Observe the current signal and increase the setpoint in order to go closer to the surface.&lt;/div&gt;</summary>
		<author><name>Ltspm</name></author>	</entry>

	<entry>
		<id>http://spm-wiki.createc.de/index.php?title=Forms</id>
		<title>Forms</title>
		<link rel="alternate" type="text/html" href="http://spm-wiki.createc.de/index.php?title=Forms"/>
				<updated>2016-12-21T09:37:23Z</updated>
		
		<summary type="html">&lt;p&gt;Ltspm: /* Slider */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== LineScan ==&lt;br /&gt;
&lt;br /&gt;
Press the ''Lin'' Button to take a line scan of the image. First select two points of the image by pressing the left mouse button. The linescan&lt;br /&gt;
is displayed in the upper linegraph of the linescanform-window. To perform measurements on the linescan press the &amp;lt;Measure&amp;gt; button. &lt;br /&gt;
&lt;br /&gt;
Use the left mouse button to select a new point. With the right mouse button you can switch between points. Pressing the Shift button allows to move a whole line. Pressing the right mouse button together with the Shift button will switch to the prependicular averaging mode.&lt;br /&gt;
&lt;br /&gt;
Important: If the linescan form is opened through the menue selection first, all linescan data will be displayed always in the this particular window. Otherwise pressing the LIN button will always open a new window.&lt;br /&gt;
&lt;br /&gt;
Autosize&lt;br /&gt;
Selects automatic scaling of the linegraph&lt;br /&gt;
&lt;br /&gt;
Autolinebacksub&lt;br /&gt;
Selects automatic subtraction of linear background&lt;br /&gt;
&lt;br /&gt;
Line Display Trackbar&lt;br /&gt;
Move to show a line scan of a particular image line. A FFT of the selected line is shown in the lower line graph.(The number of points/line has to be a power of 2)&lt;br /&gt;
&lt;br /&gt;
Popup menu of upper linegraph&lt;br /&gt;
xydesign: Select to adjust the appearance of the line graph&lt;br /&gt;
CopyClipboardData: The line scan data are copied to the ClipBoard&lt;br /&gt;
CopyClipboardXYGraph: The line scan graph is copied to the ClipBoard&lt;br /&gt;
Printxygraph: The line scan graph is send to the printer&lt;br /&gt;
Measure: Do measurements of the plot data.&lt;br /&gt;
Redrawline: The line in the image is redrawn&lt;br /&gt;
&lt;br /&gt;
Popup menu of lower linegraph&lt;br /&gt;
has the same items as the upper popup menu and one additional entry:&lt;br /&gt;
Show Frequency: Gives the FFT in frequency [Hz] instead of inverse distance [1/Å] (updated when the Line Display Trackbar is moved)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Channels&lt;br /&gt;
Select the channels which are displayed&lt;br /&gt;
&lt;br /&gt;
[[file:cliplinescan.png]]&lt;br /&gt;
&lt;br /&gt;
[[file:cliplinescanpopupmenu.png]]&lt;br /&gt;
&lt;br /&gt;
== Rampcontroller ==&lt;br /&gt;
&lt;br /&gt;
Click on the ''Ramp'' button. This opens the 'Rampcontroller'-window with control elements necessary to perform the coarse approach. The 6 buttons with arrows in the top of the form correspond to moving the tip in respect to the sample surface. Moving in x/y direction can also be done using the x/y cursor keys on the keyboard. The page up and page down keys are used correspondingly for rotation up and down. Selecting the burst mode in x/y or rotation will result in a series of steps corresponding to the number of burst steps displayed in the ramp parameter list. When the Crash Protection is switched on, the program checks before each step, whether it can detect a tunneling current. If this is the case it will cancel the step. Usually the crash protection should be switched on, but in cases where the tip is already crashed, the protection has to be switched off. The program issues some warnings when the ramp windows opens to inform the user to do necessary changes for a successful ramping. These are: First retract the tip, reset the x- and y-offset in the STM-program, select the appropriate gain (1-10, depending on the temperature) in the x- and y- channel of the HV-amplifier and set the external offset voltages to zero.&lt;br /&gt;
The usual coarse approach is done by controlling the approach with an optical microscope. When the tip is  close enough, the automatic tip approach can be switched on, by pressing the ''Approach'' button. It will start a combination of single coarse approach rotation steps combined with tip approach testing until the tip can reach the sample. ''Approach'' stops when a tunneling current is detected. The value of this threshold current is set by the current slider. Important: When the approach stops, the tip is automatically retracted, by setting the current to zero. Before leaving the coarse approach by pressing the ''Quit'' button, you have to select the mode for scanning. When the ''Main/Coarse'' button displays 'Coarse' mode, then the outer 3 piezos are used for scanning, otherwise the center piezo is used. In the normal operation of the microscope the 'Coarse' mode should be selected. Select the required set point current to see if the approach was successful. Now the tip should be retracted manually by using the external HV-amplifier z-offset voltage to go out of tunneling. Select the required gains and re-approach the tip again.&lt;br /&gt;
&lt;br /&gt;
See also: Approach Tips&lt;br /&gt;
&lt;br /&gt;
The Coarse Approach operation is controlled by the following parameters:&lt;br /&gt;
&lt;br /&gt;
Puls Height[V]&lt;br /&gt;
Input the peak to peak height (in V) of the sawtooth pulse used for moving the inertial slider. Two different values are used for the lateral XY motion and the rotational motion.&lt;br /&gt;
&lt;br /&gt;
Puls-Duration[sec]&lt;br /&gt;
Input the duration of a single sawtooth pulse in seconds. &lt;br /&gt;
&lt;br /&gt;
Burst-Count&lt;br /&gt;
Determines the number of sawtooth pulses applied when operating the coarse control in burst mode.&lt;br /&gt;
&lt;br /&gt;
Approach Period[sec]&lt;br /&gt;
Determines the time for a single approach cycle including approach and retraction of the tip to find the sample surface.&lt;br /&gt;
&lt;br /&gt;
Approach Burst Count&lt;br /&gt;
This is the number of coarse pulses applied between two approach cycles.&lt;br /&gt;
&lt;br /&gt;
Approach Retry Count&lt;br /&gt;
This is the number of retry operations done before the approach is stopped.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[file:cliprampcontrollerCreatec.png]]&lt;br /&gt;
&lt;br /&gt;
== Grid ==&lt;br /&gt;
&lt;br /&gt;
The form 'Grid-Image- Transformation' contains several functions for different kinds of image transformations. A suitable combination of the procedures below will allow transformations useful for drift correction, superstructure analysis, extraction of registry information. To open the form press on the grid button in the STMAFM form. With the 6 slider controls a grid can be overlayed on the image. The lateral position, the angles of the grid and the distance between the grid lines can be adjusted. An alternative way to input the grid is pressing the ''Mouse'' button and to mark 3 points (the first one is the center, the other two determine the direction of the two lines). Pressing the ''Rotation'' button will rotate the image in such a way that one set of the grid lines (X-Axis) is parallel to the horizontal direction. Pressing the ''Zoom'' button will zoom the image by the value set in the edit control positioned next to the right of the button. The image is zoomed around the center point of the grid. By pressing on the ''X..,Y..'' button the actual center position of the grid is stored and displayed on the button. Selecting a new center position with the mouse, as described above, and pressing the ''Move grid to Center'' button will move the new defined center to the stored center position. The ''Transform'' button will transform the image according to the 2 Parameters in the edit controls below. The first is the new angle between the lines in the image and the second is the new ratio the grid line distances. Selecting the ''HexGrid'' check box will draw a grid suitable for hexagonal unit cells. If draw inverted is selected the grid is drawn by a inversion process. Otherwise you can select with &amp;lt;Grid Color&amp;gt; the line color of the grid.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;&amp;quot; widths=&amp;quot;400px&amp;quot; heights=&amp;quot;400px&amp;quot;&amp;gt;&lt;br /&gt;
file:clipgrid.png&lt;br /&gt;
file:clipgridimage.png&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== TimeSpectrum ==&lt;br /&gt;
&lt;br /&gt;
It is very often useful to take a time record of the A/D input channels, without scanning or changing the biasvoltage. This is for example a convenient way to characterize the noise performance of the STM. To take a time record just press the ''Start'' Button on the Time-Spectrum window or press the ''TS'' button on the main window. Five channels are recorded simultaneously. The A/D channels 0 and 3 (ADC0 is called current I) and the topography signal output from the feedback loop, called Z. The displayed channel is selected by the corresponding channel button. Three parameters control the data acquisition:&lt;br /&gt;
&lt;br /&gt;
Spec_Points&lt;br /&gt;
The number of data points taken for a single spectrum. This must be a power of 2, to allow FFT of the data.&lt;br /&gt;
(Maximum is 4096)&lt;br /&gt;
&lt;br /&gt;
Spec_Freq[Hz]&lt;br /&gt;
The sampling frequency. (Limited by the DSP_Clock value)&lt;br /&gt;
&lt;br /&gt;
Spec_Avrg_Count&lt;br /&gt;
The number of spectra averaged. Averaging is done only for the spectrum, i.e. the FFT data.&lt;br /&gt;
&lt;br /&gt;
Channels&lt;br /&gt;
First select the check boxes to determine the channels which are acquired during data acquisition&lt;br /&gt;
Part of these channels can be further selected to be displayed.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The results are displayed in two line graphs.&lt;br /&gt;
The upper one shows the time behaviour. (The vertical scale is always in V)&lt;br /&gt;
The lower one shows the frequency spectrum. (The vertical scale on the left shows the peak to peak value of a pure sine component,&lt;br /&gt;
the right scale the rms amplitude for non correlated signals) &lt;br /&gt;
&lt;br /&gt;
The frequency resolution depends on the number of points and the sampling frequency.&lt;br /&gt;
Important: The current signal and the ADC1 signal are filtered by a first order digital filter, which is controlled by the same CurrentRC Parameter.   &lt;br /&gt;
The contents of the memo field is saved together with the file.&lt;br /&gt;
&lt;br /&gt;
In the lower right the AVRG Value and the Standard Deviation of the timespectra data are shown.&lt;br /&gt;
&lt;br /&gt;
Save&lt;br /&gt;
The data is saved in ASCII Format&lt;br /&gt;
&lt;br /&gt;
FFT logscale: Displays the Spectrum in LogScale&lt;br /&gt;
&lt;br /&gt;
Waterfall: Displays the time dependence of the Spectra in a Waterfall like mode at the bottom of the window&lt;br /&gt;
&lt;br /&gt;
[[file:cliptimespectrum.png]]&lt;br /&gt;
&lt;br /&gt;
== 3d-view ==&lt;br /&gt;
&lt;br /&gt;
This part of the program allows the display of 3d views of selected parts of the images. To start, open the window by clicking the ''3d View'' button. Then click on  &amp;lt;New Data&amp;gt; in the main menue and select a rectangular region on the image displayed in the STMAFM program.  A new form will be opened, where the rendered image is displayed. The sliders in the 3d-view form allow to change the orientation, size, offset and lighting of the 3d object. The 3d image can be displayed in different ways, depending on which check boxes are checked. So the lights can be switched on or off, the 3d image can be shown using lines, hidden lines, or in the normal surface view. Checking the save box will start saving of each images displayed. With this feature a series of BMP images for movies can be created. Checking the ''Box'' box will draw a 3d box with x,y,z axes in the 3dimage.In the light sources field the angle of the light source can be changed. Apart from a directed diffuse light source ambient lighting can be added.&lt;br /&gt;
&lt;br /&gt;
Under the menue item Color the color of the background and of the lines can be changed.&lt;br /&gt;
Morover the image can be copied to the clipboard (in BMP format), to a new window or the data can be exported in PoVRay format. &lt;br /&gt;
(New List means that a new imagedisplaylist is created for the underlying OPENGL rendering program. This usually done automatically)&lt;br /&gt;
&lt;br /&gt;
Selected views can be saved and are saved with the program.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;&amp;quot; widths=&amp;quot;450px&amp;quot; heights=&amp;quot;300px&amp;quot;&amp;gt;&lt;br /&gt;
file:clip3dcontrol.png&lt;br /&gt;
file:clip3dform.png&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Lateral Manipulation ==&lt;br /&gt;
&lt;br /&gt;
To perform a lateral manipulation with the tip one has first to press the Button ''LM'' and then to select the starting and the final position of the manipulation path by selecting these points in the image with the left mouse button. A thin line is drawn on the screen between these points. After the manipulation is completed a separate window opens up where the tip height and current during the manipulation is displayed. By pressing the save button this data set can be saved in a *.LAT File.&lt;br /&gt;
&lt;br /&gt;
Different kinds of manipulation procedures can be performed. They are selected by choosing a certain manipulation mode number in the manipulation parameter field. These different modes are described in the following. The speed of the tip is controlled by the parameters latmandelay and latmanddx, which are used throughout the whole process and not only when the tip is manipulating.&lt;br /&gt;
&lt;br /&gt;
Mode 1: This is the simplest constant current mode manipulation. Starting from the top of the image the tip moves in a straight line to the starting point of the manipulation using the standard feedback parameters used for imaging. Then the feedback parameters are switched to the ones selected in the lateral manipulation parameter set . These are current, voltage and gain of the preamplifier. Then the tip moves using these manipulation parameters to the final position. There the parameters are set back to their original imaging values and the tip moves back to top of the image.&lt;br /&gt;
&lt;br /&gt;
Mode 2: Similar to mode 1, but the tip moves first to the final position, then starts the manipulation to the starting position and goes back to final position. It switches back to imaging parameters and moves to the top of the image.&lt;br /&gt;
&lt;br /&gt;
Mode3: Similar to mode 1: The tip first moves to the starting point. Then it moves to final position and back to the starting position using the normal imaging parameters, but the tip height and current are recorded during these two scans. Then the parameters are switched to the manipulation parameters and the tip moves to the final position. Then the parameters are changed back to the imaging parameters and the tip moves back to the starting position while again recording the tip height and current. Finally the tip moves to the top of the image.&lt;br /&gt;
&lt;br /&gt;
Mode 4: This is a constant height manipulation mode. The tip moves first to the starting position. Then it moves from the starting to the final position and back taking data in normal imaging mode. Then the feedback is switched off and the tip moves from the starting to the final position in constant height mode. The height used is given by the height of the tip when the feedbackloop is switched off plus the additional offset given by latmanccdz. This means that the height depends on the imaging parameters. Then the tip moves back from the final position to the starting position in imaging mode, but taking data again. Finally the tip moves to the top of the image. With the extension factor the manipulation path can be extended at the final position by the factor given by latmanextlextension. The starting point is not affected by the extension factor.&lt;br /&gt;
&lt;br /&gt;
Mode 5: Similar to mode 4. In this mode the extension affects also the starting position. The extension positions are first calculated. The tip moves in imaging mode to extended starting position. Then moves to the final extended position and backward and takes data in imaging mode. Then the tip moves to the starting position, while taking data in imaging mode. Then the tip moves from the starting position to the final position in constant height manipulation mode. Then it moves back to the starting position in imaging mode and takes data. Finally it moves back to the top of the image.&lt;br /&gt;
&lt;br /&gt;
Mode 6: Similar to mode 5. The only difference is that the tip moves from the starting to the final position and backward in constant height mode and not only in the forward direction, as done in mode 5.&lt;br /&gt;
&lt;br /&gt;
Mode 0: This mode is different from the other modes. In mode 0 the tip follows always the mouse position immediately. The height of the tip is displayed on rate meter appearing on the left. By pressing the upper case L key the imaging parameters are switched to the manipulation parameters and back again. (By pressing the upper case S a small 64 pixel * 64 pixel scan is performed.) Clicking with the mouse button will stop the continuous following of the tip. After additional clicking the tip moves to the new mouse position in a straight line and tracks the mouse position again.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
These parameters control the lateral manipulation processes.&lt;br /&gt;
&lt;br /&gt;
Mode&lt;br /&gt;
Select one of several different manipulation modes. There are constant current and constant height modes. For example P0 is the origin of the image. Then the tip moves to P1, the first point selected with the mouse. The tunneling parameters are changed to manipulation parameters and the tip moves from P1 to P2. There the normal tunneling parameters, used for imaging, are selected again and the tip moves to the origin P0.&lt;br /&gt;
&lt;br /&gt;
Voltage[V]&lt;br /&gt;
The tunneling voltage applied during the manipulation phase.&lt;br /&gt;
&lt;br /&gt;
Current[nA]&lt;br /&gt;
The current used during manipulation&lt;br /&gt;
&lt;br /&gt;
Gain preamplifier&lt;br /&gt;
The gain used during manipulation&lt;br /&gt;
&lt;br /&gt;
Manip. Speed[Å/sec]&lt;br /&gt;
The speed of the tip for lateral movements. Used for all movements. Step Size determines the number points measured during a lat. manip. scan.&lt;br /&gt;
&lt;br /&gt;
Extension&lt;br /&gt;
Extension value for manipulation modes 4-6&lt;br /&gt;
&lt;br /&gt;
Const. Height Z-Offset&lt;br /&gt;
In constant height mode the tip sample distance can be varied by this parameters. Positive values [Å} correspond to a closer approach to the surface.&lt;br /&gt;
&lt;br /&gt;
Channels&lt;br /&gt;
Select the channels acquired during data acquisition&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
LatChannelForm&lt;br /&gt;
Press to open a new Form to display the manipulation data.&lt;br /&gt;
&lt;br /&gt;
Lateral Speed [Å/sec]&lt;br /&gt;
Speed at which the tip is moving from the origin to first starting point&lt;br /&gt;
&lt;br /&gt;
LM in old place&lt;br /&gt;
Repeat the LM using the previous coordinates&lt;br /&gt;
&lt;br /&gt;
Load Ext Lat Par&lt;br /&gt;
Load the lateral manipulation cooordinates from an external file.&lt;br /&gt;
&lt;br /&gt;
[[file:cliplatmanip.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The measured data is displayed in separate windows. X and Y scaling can be adjusted by the user. Two independent axis can be displayed. (Press ''2.Axis'')&lt;br /&gt;
''LP'' Low Pass Filter&lt;br /&gt;
''TP'' Makes the Windows transparent to put it on top of another window.&lt;br /&gt;
&lt;br /&gt;
[[file:cliplmanip.png]]&lt;br /&gt;
&lt;br /&gt;
Right click to open the Popupmenu.&lt;br /&gt;
XYDesign, XY Series Edit allows to change the appearance of the Data&lt;br /&gt;
Copyclipboard.. copies the Plot or the Data into the clipboard&lt;br /&gt;
PrintXYGraph prints the XY Plot&lt;br /&gt;
Measure allows measuring the distance between points in the plot&lt;br /&gt;
AutoUpdate: The Plot is updated every second during Data Acquisition. &lt;br /&gt;
Lowpass filters the data (very simple just nearest neighbor average)&lt;br /&gt;
 &lt;br /&gt;
[[file:clipvertmanip_popupmenu1.png]]&lt;br /&gt;
&lt;br /&gt;
== Vertical Manipulation / I/V Spectroscopy ==&lt;br /&gt;
&lt;br /&gt;
Vertical manipulation (spectroscopy) is started by pressing on the ''VM'' button and selecting a point in the image by clicking with the left mouse button. The tip uses the lateral speed value to move to the vertical manipulation position. When the manipulation is finished the measured data appears in a separate window and can be saved with the Save button. Different channels can be selected to be recorded. Usually an external Lockin will be connected to ADC1. The internal Lockin supplies the signals dI/dV, d2I/dV2, di_q,d2_q. The form of the voltage and the z-height ramp is controlled by 8 points in time. In the case of the voltage one can define 8 time points and their corresponding voltage value. For example (0,1000), (256,0), (512,2000),(1024,-1000) define a ramp starting with 1000mV at time 0. Then it will be linear interpolated to time 256 with 0 Volt. Then it goes up again to 2000mV at time 512 and finally reaches -1000mV at time 1024. The time values correspond to the number of points taken. In this case these are 1024 points. A maximum of 100000 points is possible. The z-height values already include the gain of the z-amplifier. This means, that changing the HV gain will not change the z-height ramp, because this will be automatically corrected. Vertspecback = 1 will apply the ramp in forward and backward direction. Vertspecback=n will apply the ramp in forward and backward direction n-times (n&amp;gt;=1). The shape of the ramps is shown in the lower graph in the vertical manipulation window. &lt;br /&gt;
&lt;br /&gt;
Vertical spectroscopy can be done during scanning. Press the VM Button and select a point in the unscanned image area.  &lt;br /&gt;
&lt;br /&gt;
These parameters control the vertical manipulation and spectroscopy&lt;br /&gt;
&lt;br /&gt;
Gain preamplifier&lt;br /&gt;
Gain of the preamplifier during data acquisition&lt;br /&gt;
&lt;br /&gt;
Speclenght[sec]&lt;br /&gt;
Select the recording total time of the spectrum.&lt;br /&gt;
&lt;br /&gt;
Spectrum backward&lt;br /&gt;
0: The Spectrum defined in the V,Z table is taken only once.&lt;br /&gt;
1: The spectrum defined in the V,Z table is taken once in forward and once in backward direction&lt;br /&gt;
&amp;gt;1: Defines how often a forward and backward spectrum is taken&lt;br /&gt;
&lt;br /&gt;
Lateral Speed[Å/sec]&lt;br /&gt;
Speed at which the tip moves to the place where the spectrum will be taken.&lt;br /&gt;
&lt;br /&gt;
Z- Offset&lt;br /&gt;
Defines an additonal offset which is added to the z values in the table&lt;br /&gt;
&lt;br /&gt;
Z-Drift&lt;br /&gt;
Defines an increment which is added to the values in the table to compensate drift effects&lt;br /&gt;
&lt;br /&gt;
Repeat Count&lt;br /&gt;
Defines how many separate spectra are taken and stored.&lt;br /&gt;
&lt;br /&gt;
Spectra/Line&lt;br /&gt;
Defines the number of spectra equally spaced along a line between a start and endpoint,selected by mouse input.&lt;br /&gt;
The first spectrum is taken at the startpoint of the line the last one at the endpoint of the line.  &lt;br /&gt;
&lt;br /&gt;
V,Z table&lt;br /&gt;
4 points can be defined to create a voltage and z table used for vertical manipulation and spectroscopy. The data values are plotted in the graph below. The first Time Value should be set to 1 (not 0, still allowed for compatibility), otherwise the first value might not be displayed.&lt;br /&gt;
(Voltage(green), Z-Position(blue))&lt;br /&gt;
&lt;br /&gt;
Spec_X_Grid&lt;br /&gt;
Spec_Y_Grid&lt;br /&gt;
Determine the spacing of the spectroscopy grid. First spectrum position is (spec_x_grid,spec_y_grid) in pixel coordinates.&lt;br /&gt;
&lt;br /&gt;
SGrid_Channel&lt;br /&gt;
Number of channels recorded during the grid spectroscopy mode&lt;br /&gt;
&lt;br /&gt;
SpecGrid_Delay&lt;br /&gt;
Delay in DSP cycle units added before/after a vertical spectrum is started/finished.&lt;br /&gt;
&lt;br /&gt;
SpecAvrgCount&lt;br /&gt;
Number of Spectra acquired and averaged directly on the DSP board. For Count&amp;gt;1 be aware that the current preamplifier gain for vertical spectroscopy will be set the same to the normal preamplifer gain. Between the spectra the feedback loop will be switched on to readjust the sample tip distance.   &lt;br /&gt;
&lt;br /&gt;
SpecAvrgFBDelay  &lt;br /&gt;
On Time of the Feedback loop in DSP cycle units between spectra in Averaging mode.&lt;br /&gt;
&lt;br /&gt;
Save File&lt;br /&gt;
Save the present Vert. Spektrum&lt;br /&gt;
&lt;br /&gt;
Single_Spectrum&lt;br /&gt;
Take one single spectrum. Select the position with a left mouse button click on the image.&lt;br /&gt;
Same like pressing &amp;lt;VM&amp;gt; button&lt;br /&gt;
&lt;br /&gt;
Spectra along Line&lt;br /&gt;
Take a series of spectra equally spaced a long a line defined by two mouse clicks. &lt;br /&gt;
&lt;br /&gt;
Spec in old Place&lt;br /&gt;
Take a spectrum at the X,Y position of the previous scan.&lt;br /&gt;
&lt;br /&gt;
Multiple Spectra&lt;br /&gt;
Select several spectra taken one after the other. Left Mouse button select another spectrum, right mosue button stop selection and start data acquisition.&lt;br /&gt;
&lt;br /&gt;
MultSpec from File&lt;br /&gt;
Use an external file (Ascii) to define a series of spectra.&lt;br /&gt;
Only 256*256 pixel images allowed. No zoom.  First line contains number of spectra. Each following line contains the x y image coordinates(integer) of each spectrum. &lt;br /&gt;
&lt;br /&gt;
Spectra on Grid&lt;br /&gt;
Spectra taken at each grid position. (Analysis of the Grid data is done in another program)&lt;br /&gt;
&lt;br /&gt;
SaveSpecgrid&lt;br /&gt;
Save the Grid File. Two files are saved. One *.specgrid.dat File with all the parameters and the *.specgrid File with the grid data&lt;br /&gt;
&lt;br /&gt;
VFB_Mode&lt;br /&gt;
Select the VoltageFeedbackMode&lt;br /&gt;
I(V,z): Normal Operation feedback loop is OFF&lt;br /&gt;
z(V): Constant current operation&lt;br /&gt;
&lt;br /&gt;
VFB_Current[nA]&lt;br /&gt;
Current setpoint used in z(V) Mode. FB_Channel has to be current.&lt;br /&gt;
&lt;br /&gt;
Load Vert_Params&lt;br /&gt;
Load only the parameter of a spectrum and not the data&lt;br /&gt;
&lt;br /&gt;
External VZ Data&lt;br /&gt;
If not checked the VZ Data for a spectrum are taken from the VZ-Table parameter.&lt;br /&gt;
If checked the VZData is taken from a different source table, which can be loaded from an external file.&lt;br /&gt;
This allows the user defined design of arbitrary VZ arrays of up to 100000 points. File format see below.  &lt;br /&gt;
&lt;br /&gt;
Filenames:&lt;br /&gt;
First Letter is the machinename, in case you have more than one LTSTM or you want to assign different users.&lt;br /&gt;
Followed by DATE.TIME.VERT. VERT is the standard fileextension.&lt;br /&gt;
In case you take repeated spectra in a point or take spectra along a line an additional &amp;quot;L#Number.R#Number.&amp;quot; indicator is added before&lt;br /&gt;
the VERT file extension. L indicates line position and R indicates the numbering in repeat mode.&lt;br /&gt;
&lt;br /&gt;
[[file:clipvertmanp.png]]&lt;br /&gt;
&lt;br /&gt;
The measured data is displayed in separate windows. X and Y scaling can be adjusted by the user. Two independent axis can be displayed. (Press ''2.Axis'')&lt;br /&gt;
''LP'' Low Pass Filter&lt;br /&gt;
''TP'' Makes the Windows transparent to put it on top of another window.&lt;br /&gt;
&lt;br /&gt;
[[file:clipvmanip.png]]&lt;br /&gt;
&lt;br /&gt;
Right click to open the Popupmenu.&lt;br /&gt;
XYDesign, XY Series Edit allows to change the appearance of the Data&lt;br /&gt;
Copyclipboard.. copies the Plot or the Data into the clipboard&lt;br /&gt;
PrintXYGraph prints the XY Plot&lt;br /&gt;
Measure allows measuring the distance between points in the plot&lt;br /&gt;
AutoUpdate: The Plot is updated every second during Data Acquisition. &lt;br /&gt;
Lowpass filters the data (very simple just nearest neighbor average)&lt;br /&gt;
 &lt;br /&gt;
[[file:clipvertmanip_popupmenu1.png]]&lt;br /&gt;
&lt;br /&gt;
== Slider ==&lt;br /&gt;
&lt;br /&gt;
Brightness and Contrast&lt;br /&gt;
Use the slider window to control the brightness and contrast of the image. The slider marked B adjusts the brightness of the image. The slider marked Z controls the contrast. Above both sliders the corresponding height range in (+/-)Å is displayed.So total height difference between black and white for example is two times the displayed value. On the right for multichannel images the channel, which is displayed can be selected. &lt;br /&gt;
&lt;br /&gt;
Biasvoltage&lt;br /&gt;
The polarity of the biasvoltage can be changed by pressing with the mouse on 'V' label, or by pressing the ''+''/ ''-'' keys. &lt;br /&gt;
&lt;br /&gt;
Press the right mouse button on the 'V' label to open a Popupmenu for the biasvoltage. &lt;br /&gt;
Three options exist:&lt;br /&gt;
SetBiasMinvolt:  If selected sets the current biasvoltage as the minimum biasvoltage.&lt;br /&gt;
SetBiasMaxvolt: If selected sets the current biasvoltage as the maximum biasvoltage.&lt;br /&gt;
This feature can be used to avoid tunneling outside a specific bias voltange range. i.e for example to limit the maximum biasvoltage to protect the tip, when using the silder.&lt;br /&gt;
&lt;br /&gt;
ResetBiasMinMax: If selected deletes the Min/Max values again.&lt;br /&gt;
 &lt;br /&gt;
Current&lt;br /&gt;
Press the right mouse button on the 'A' label to open a Popupmenu for the current. &lt;br /&gt;
&lt;br /&gt;
Log: logarithmic scaling of the current slider&lt;br /&gt;
Lin: linear scaling of the current slider&lt;br /&gt;
&lt;br /&gt;
Channels &lt;br /&gt;
Select the displayed channel. For Channel Nr.=  0 all channels are displayed.&lt;br /&gt;
&lt;br /&gt;
Zoom&lt;br /&gt;
Allowed zoom factors are x1, x2, x3, x4.&lt;br /&gt;
&lt;br /&gt;
Tip up/down&lt;br /&gt;
Press this button to fully retract or to approach the tip.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[file:clipslider.png]]&lt;br /&gt;
&lt;br /&gt;
The height of the slider window can be adjusted. This changes the height of the sliders simultaneously.&lt;br /&gt;
&lt;br /&gt;
== FFT Evaluation ==&lt;br /&gt;
&lt;br /&gt;
This part of the software allows use to analyse FFT transforms of the images. (Always crosscheck the results)&lt;br /&gt;
&lt;br /&gt;
[[file:clipfftevaluation.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Load Files ==&lt;br /&gt;
&lt;br /&gt;
Loading Files is done using the &amp;lt;Open *.Dat&amp;gt; menue item.&lt;br /&gt;
&lt;br /&gt;
You can define your own favorite directories in the Windows Places Bar region. (Use for example the TweakUI utility.)&lt;br /&gt;
&lt;br /&gt;
Options:&lt;br /&gt;
&lt;br /&gt;
Full Parameter Load:  Check to load all parameters, not only those relevant for the loaded file type. &lt;br /&gt;
 &lt;br /&gt;
Disable Warning: If checked no warning will be given when files are loaded in data acquisition.                               &lt;br /&gt;
             &lt;br /&gt;
&lt;br /&gt;
[[file:cliploadfile.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Open allows to select in running program or alternatively in a newly opened analysis program.&lt;br /&gt;
&lt;br /&gt;
[[file:cliploadfile2.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
== AFM ==&lt;br /&gt;
&lt;br /&gt;
In the following we discuss the operation of the internal PLL system.&lt;br /&gt;
The internal PLL can operate up to 32kHz ( based on 16 samples per period at 512kHz max sample rate).&lt;br /&gt;
This usualy covers operation of standard quartz tuning fork sensors as the qPlus sensor.&lt;br /&gt;
(For higher frequencies optionally the Zurich Instruments PLL can be used externally.)&lt;br /&gt;
The input signal from the Preamplifier is connected to the ADC3 input of ADDA Board 2, while DAC5 of the same ADDA Board supplies the excitation signal. &lt;br /&gt;
&lt;br /&gt;
PLL Centerfreq: determines the center frequency of the PLL. (Change either by typing the number directly or increase/decrease by using the up/down/ page up/page down and both in combination with Shift key)&lt;br /&gt;
PLL-Ampl[nm]: Input the Set value of the Amplitude in nm when the Amplitude controller is on&lt;br /&gt;
PLL-Exc[V]: Input the Excitation value in Volt&lt;br /&gt;
PLL-Phase: Phase Shift of Exciation Signal. Has to be optimized const stable PLL operation&lt;br /&gt;
PLL F Range[+/-Hz]: PLL frequency tracking range. max. allowed deviation from center frequency&lt;br /&gt;
&lt;br /&gt;
PLL On: If selected operation of the PLL is switched on&lt;br /&gt;
Ampl Control: If selected Amplitude Control is switched on&lt;br /&gt;
Active Damping: If selected the Amplitude control can electronically damp the cantilever vibration&lt;br /&gt;
Ref Signal f: If selected DAC2 of the PLL board outputs a reference of the PLL frequency&lt;br /&gt;
Ref Signal 2f: If selected DAC2 of the PLL board outputs a reference of the 2nd harmonic of the PLL frequency&lt;br /&gt;
&lt;br /&gt;
P[Hz/Deg]: Proportional value of the PLL frequency controller&lt;br /&gt;
Int[Hz/deg/s]: Integrator value of the PLL frequency controller&lt;br /&gt;
LP Filter[Hz]: Value of the 4th order loop filter&lt;br /&gt;
P Ampl[V/nm]: Proportional part of the Ampl controller&lt;br /&gt;
LP Amp filter[Hz]: Loop filter of the Amp controller&lt;br /&gt;
df Post Filter[Hz]: Filters the PLL freq data finally before it is output to the STM feedback controller&lt;br /&gt;
&lt;br /&gt;
Sensor Cal[V/nm]: Calibrate the Preamp output in nm units&lt;br /&gt;
SRS Gain: Optionally include the SRS Preamp gain&lt;br /&gt;
&lt;br /&gt;
PLL FreqScan, PLL Phase Scan: Start a frequency or Phase Scan&lt;br /&gt;
Filter PLL_Scan: Filter the Scan Data. (simple 1.order lowpass). can be repeated to allow a beeter calculation of the Q factor etc.&lt;br /&gt;
Show Phase: Displays the phase. Has to be selected to calculate the Q Factor.&lt;br /&gt;
&lt;br /&gt;
Results: Automatic determination of CenterFreq and Q Factor&lt;br /&gt;
&lt;br /&gt;
ScancenterFreq, FreqSpan, ScanTime, ScanPoints: determines the properties of the Frequency Scan or PLL Phase Scan&lt;br /&gt;
&lt;br /&gt;
[[file:Resonance.png]]&lt;br /&gt;
&lt;br /&gt;
[[Category:stmafm_manual]]&lt;br /&gt;
&lt;br /&gt;
== 20 steps to successful AFM operation ==&lt;br /&gt;
&lt;br /&gt;
For a first setup of a functioning PLL useful for scanning in CC, CH or CF mode please refer to the following graphical guide.&lt;br /&gt;
&lt;br /&gt;
[[File:Folie2.PNG|800px]]&lt;br /&gt;
&lt;br /&gt;
[[File:Folie3.PNG|800px]]&lt;br /&gt;
&lt;br /&gt;
[[File:Folie4.PNG|800px]]&lt;br /&gt;
&lt;br /&gt;
[[File:Folie5.PNG|800px]]&lt;br /&gt;
&lt;br /&gt;
In order to start scanning please perform the following steps:&lt;br /&gt;
a) For constant current mode (CC, dynamic STM)&lt;br /&gt;
14. Approach the tip and observe the frequency shift changing from Δf=0 Hz to a finite negative value.&lt;br /&gt;
15. Select the channels ''dF'', ''Amplitude'' and ''Damping'' in the Parameter window in order to measure these signals.&lt;br /&gt;
16. Set the current setpoint to a finite value, i.e. e.g., 10 or 100 pA.&lt;br /&gt;
17. Start scanning in CC mode as you would do in STM mode.&lt;br /&gt;
&lt;br /&gt;
b) For constant force mode (CF, nc-AFM)&lt;br /&gt;
14. Change the feedback mode to ''LinAbs'' and the feedback channel to ''dF''.&lt;br /&gt;
15. Change the integrator value to e.g. -0.0003 or something in the same order of magnitude.&lt;br /&gt;
16. Select the channels ''dF'', ''Amplitude'' and ''Damping'' in the Parameter window.&lt;br /&gt;
17. Set the constant frequency setpoint to a value close to but a little bit smaller than the finite Δf value from above.&lt;br /&gt;
18. Start scanning in CF mode as you would do in STM mode.&lt;br /&gt;
19. Adjust the scanning speed and the integrator together with the amplitude and phase control of the tuning fork.&lt;br /&gt;
20. Observe the current signal and increase the setpoint in order to go closer to the surface.&lt;/div&gt;</summary>
		<author><name>Ltspm</name></author>	</entry>

	<entry>
		<id>http://spm-wiki.createc.de/index.php?title=Forms</id>
		<title>Forms</title>
		<link rel="alternate" type="text/html" href="http://spm-wiki.createc.de/index.php?title=Forms"/>
				<updated>2016-12-21T09:36:03Z</updated>
		
		<summary type="html">&lt;p&gt;Ltspm: /* Vertical Manipulation / I/V Spectroscopy */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== LineScan ==&lt;br /&gt;
&lt;br /&gt;
Press the ''Lin'' Button to take a line scan of the image. First select two points of the image by pressing the left mouse button. The linescan&lt;br /&gt;
is displayed in the upper linegraph of the linescanform-window. To perform measurements on the linescan press the &amp;lt;Measure&amp;gt; button. &lt;br /&gt;
&lt;br /&gt;
Use the left mouse button to select a new point. With the right mouse button you can switch between points. Pressing the Shift button allows to move a whole line. Pressing the right mouse button together with the Shift button will switch to the prependicular averaging mode.&lt;br /&gt;
&lt;br /&gt;
Important: If the linescan form is opened through the menue selection first, all linescan data will be displayed always in the this particular window. Otherwise pressing the LIN button will always open a new window.&lt;br /&gt;
&lt;br /&gt;
Autosize&lt;br /&gt;
Selects automatic scaling of the linegraph&lt;br /&gt;
&lt;br /&gt;
Autolinebacksub&lt;br /&gt;
Selects automatic subtraction of linear background&lt;br /&gt;
&lt;br /&gt;
Line Display Trackbar&lt;br /&gt;
Move to show a line scan of a particular image line. A FFT of the selected line is shown in the lower line graph.(The number of points/line has to be a power of 2)&lt;br /&gt;
&lt;br /&gt;
Popup menu of upper linegraph&lt;br /&gt;
xydesign: Select to adjust the appearance of the line graph&lt;br /&gt;
CopyClipboardData: The line scan data are copied to the ClipBoard&lt;br /&gt;
CopyClipboardXYGraph: The line scan graph is copied to the ClipBoard&lt;br /&gt;
Printxygraph: The line scan graph is send to the printer&lt;br /&gt;
Measure: Do measurements of the plot data.&lt;br /&gt;
Redrawline: The line in the image is redrawn&lt;br /&gt;
&lt;br /&gt;
Popup menu of lower linegraph&lt;br /&gt;
has the same items as the upper popup menu and one additional entry:&lt;br /&gt;
Show Frequency: Gives the FFT in frequency [Hz] instead of inverse distance [1/Å] (updated when the Line Display Trackbar is moved)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Channels&lt;br /&gt;
Select the channels which are displayed&lt;br /&gt;
&lt;br /&gt;
[[file:cliplinescan.png]]&lt;br /&gt;
&lt;br /&gt;
[[file:cliplinescanpopupmenu.png]]&lt;br /&gt;
&lt;br /&gt;
== Rampcontroller ==&lt;br /&gt;
&lt;br /&gt;
Click on the ''Ramp'' button. This opens the 'Rampcontroller'-window with control elements necessary to perform the coarse approach. The 6 buttons with arrows in the top of the form correspond to moving the tip in respect to the sample surface. Moving in x/y direction can also be done using the x/y cursor keys on the keyboard. The page up and page down keys are used correspondingly for rotation up and down. Selecting the burst mode in x/y or rotation will result in a series of steps corresponding to the number of burst steps displayed in the ramp parameter list. When the Crash Protection is switched on, the program checks before each step, whether it can detect a tunneling current. If this is the case it will cancel the step. Usually the crash protection should be switched on, but in cases where the tip is already crashed, the protection has to be switched off. The program issues some warnings when the ramp windows opens to inform the user to do necessary changes for a successful ramping. These are: First retract the tip, reset the x- and y-offset in the STM-program, select the appropriate gain (1-10, depending on the temperature) in the x- and y- channel of the HV-amplifier and set the external offset voltages to zero.&lt;br /&gt;
The usual coarse approach is done by controlling the approach with an optical microscope. When the tip is  close enough, the automatic tip approach can be switched on, by pressing the ''Approach'' button. It will start a combination of single coarse approach rotation steps combined with tip approach testing until the tip can reach the sample. ''Approach'' stops when a tunneling current is detected. The value of this threshold current is set by the current slider. Important: When the approach stops, the tip is automatically retracted, by setting the current to zero. Before leaving the coarse approach by pressing the ''Quit'' button, you have to select the mode for scanning. When the ''Main/Coarse'' button displays 'Coarse' mode, then the outer 3 piezos are used for scanning, otherwise the center piezo is used. In the normal operation of the microscope the 'Coarse' mode should be selected. Select the required set point current to see if the approach was successful. Now the tip should be retracted manually by using the external HV-amplifier z-offset voltage to go out of tunneling. Select the required gains and re-approach the tip again.&lt;br /&gt;
&lt;br /&gt;
See also: Approach Tips&lt;br /&gt;
&lt;br /&gt;
The Coarse Approach operation is controlled by the following parameters:&lt;br /&gt;
&lt;br /&gt;
Puls Height[V]&lt;br /&gt;
Input the peak to peak height (in V) of the sawtooth pulse used for moving the inertial slider. Two different values are used for the lateral XY motion and the rotational motion.&lt;br /&gt;
&lt;br /&gt;
Puls-Duration[sec]&lt;br /&gt;
Input the duration of a single sawtooth pulse in seconds. &lt;br /&gt;
&lt;br /&gt;
Burst-Count&lt;br /&gt;
Determines the number of sawtooth pulses applied when operating the coarse control in burst mode.&lt;br /&gt;
&lt;br /&gt;
Approach Period[sec]&lt;br /&gt;
Determines the time for a single approach cycle including approach and retraction of the tip to find the sample surface.&lt;br /&gt;
&lt;br /&gt;
Approach Burst Count&lt;br /&gt;
This is the number of coarse pulses applied between two approach cycles.&lt;br /&gt;
&lt;br /&gt;
Approach Retry Count&lt;br /&gt;
This is the number of retry operations done before the approach is stopped.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[file:cliprampcontrollerCreatec.png]]&lt;br /&gt;
&lt;br /&gt;
== Grid ==&lt;br /&gt;
&lt;br /&gt;
The form 'Grid-Image- Transformation' contains several functions for different kinds of image transformations. A suitable combination of the procedures below will allow transformations useful for drift correction, superstructure analysis, extraction of registry information. To open the form press on the grid button in the STMAFM form. With the 6 slider controls a grid can be overlayed on the image. The lateral position, the angles of the grid and the distance between the grid lines can be adjusted. An alternative way to input the grid is pressing the ''Mouse'' button and to mark 3 points (the first one is the center, the other two determine the direction of the two lines). Pressing the ''Rotation'' button will rotate the image in such a way that one set of the grid lines (X-Axis) is parallel to the horizontal direction. Pressing the ''Zoom'' button will zoom the image by the value set in the edit control positioned next to the right of the button. The image is zoomed around the center point of the grid. By pressing on the ''X..,Y..'' button the actual center position of the grid is stored and displayed on the button. Selecting a new center position with the mouse, as described above, and pressing the ''Move grid to Center'' button will move the new defined center to the stored center position. The ''Transform'' button will transform the image according to the 2 Parameters in the edit controls below. The first is the new angle between the lines in the image and the second is the new ratio the grid line distances. Selecting the ''HexGrid'' check box will draw a grid suitable for hexagonal unit cells. If draw inverted is selected the grid is drawn by a inversion process. Otherwise you can select with &amp;lt;Grid Color&amp;gt; the line color of the grid.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;&amp;quot; widths=&amp;quot;400px&amp;quot; heights=&amp;quot;400px&amp;quot;&amp;gt;&lt;br /&gt;
file:clipgrid.png&lt;br /&gt;
file:clipgridimage.png&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== TimeSpectrum ==&lt;br /&gt;
&lt;br /&gt;
It is very often useful to take a time record of the A/D input channels, without scanning or changing the biasvoltage. This is for example a convenient way to characterize the noise performance of the STM. To take a time record just press the ''Start'' Button on the Time-Spectrum window or press the ''TS'' button on the main window. Five channels are recorded simultaneously. The A/D channels 0 and 3 (ADC0 is called current I) and the topography signal output from the feedback loop, called Z. The displayed channel is selected by the corresponding channel button. Three parameters control the data acquisition:&lt;br /&gt;
&lt;br /&gt;
Spec_Points&lt;br /&gt;
The number of data points taken for a single spectrum. This must be a power of 2, to allow FFT of the data.&lt;br /&gt;
(Maximum is 4096)&lt;br /&gt;
&lt;br /&gt;
Spec_Freq[Hz]&lt;br /&gt;
The sampling frequency. (Limited by the DSP_Clock value)&lt;br /&gt;
&lt;br /&gt;
Spec_Avrg_Count&lt;br /&gt;
The number of spectra averaged. Averaging is done only for the spectrum, i.e. the FFT data.&lt;br /&gt;
&lt;br /&gt;
Channels&lt;br /&gt;
First select the check boxes to determine the channels which are acquired during data acquisition&lt;br /&gt;
Part of these channels can be further selected to be displayed.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The results are displayed in two line graphs.&lt;br /&gt;
The upper one shows the time behaviour. (The vertical scale is always in V)&lt;br /&gt;
The lower one shows the frequency spectrum. (The vertical scale on the left shows the peak to peak value of a pure sine component,&lt;br /&gt;
the right scale the rms amplitude for non correlated signals) &lt;br /&gt;
&lt;br /&gt;
The frequency resolution depends on the number of points and the sampling frequency.&lt;br /&gt;
Important: The current signal and the ADC1 signal are filtered by a first order digital filter, which is controlled by the same CurrentRC Parameter.   &lt;br /&gt;
The contents of the memo field is saved together with the file.&lt;br /&gt;
&lt;br /&gt;
In the lower right the AVRG Value and the Standard Deviation of the timespectra data are shown.&lt;br /&gt;
&lt;br /&gt;
Save&lt;br /&gt;
The data is saved in ASCII Format&lt;br /&gt;
&lt;br /&gt;
FFT logscale: Displays the Spectrum in LogScale&lt;br /&gt;
&lt;br /&gt;
Waterfall: Displays the time dependence of the Spectra in a Waterfall like mode at the bottom of the window&lt;br /&gt;
&lt;br /&gt;
[[file:cliptimespectrum.png]]&lt;br /&gt;
&lt;br /&gt;
== 3d-view ==&lt;br /&gt;
&lt;br /&gt;
This part of the program allows the display of 3d views of selected parts of the images. To start, open the window by clicking the ''3d View'' button. Then click on  &amp;lt;New Data&amp;gt; in the main menue and select a rectangular region on the image displayed in the STMAFM program.  A new form will be opened, where the rendered image is displayed. The sliders in the 3d-view form allow to change the orientation, size, offset and lighting of the 3d object. The 3d image can be displayed in different ways, depending on which check boxes are checked. So the lights can be switched on or off, the 3d image can be shown using lines, hidden lines, or in the normal surface view. Checking the save box will start saving of each images displayed. With this feature a series of BMP images for movies can be created. Checking the ''Box'' box will draw a 3d box with x,y,z axes in the 3dimage.In the light sources field the angle of the light source can be changed. Apart from a directed diffuse light source ambient lighting can be added.&lt;br /&gt;
&lt;br /&gt;
Under the menue item Color the color of the background and of the lines can be changed.&lt;br /&gt;
Morover the image can be copied to the clipboard (in BMP format), to a new window or the data can be exported in PoVRay format. &lt;br /&gt;
(New List means that a new imagedisplaylist is created for the underlying OPENGL rendering program. This usually done automatically)&lt;br /&gt;
&lt;br /&gt;
Selected views can be saved and are saved with the program.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;&amp;quot; widths=&amp;quot;450px&amp;quot; heights=&amp;quot;300px&amp;quot;&amp;gt;&lt;br /&gt;
file:clip3dcontrol.png&lt;br /&gt;
file:clip3dform.png&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Lateral Manipulation ==&lt;br /&gt;
&lt;br /&gt;
To perform a lateral manipulation with the tip one has first to press the Button ''LM'' and then to select the starting and the final position of the manipulation path by selecting these points in the image with the left mouse button. A thin line is drawn on the screen between these points. After the manipulation is completed a separate window opens up where the tip height and current during the manipulation is displayed. By pressing the save button this data set can be saved in a *.LAT File.&lt;br /&gt;
&lt;br /&gt;
Different kinds of manipulation procedures can be performed. They are selected by choosing a certain manipulation mode number in the manipulation parameter field. These different modes are described in the following. The speed of the tip is controlled by the parameters latmandelay and latmanddx, which are used throughout the whole process and not only when the tip is manipulating.&lt;br /&gt;
&lt;br /&gt;
Mode 1: This is the simplest constant current mode manipulation. Starting from the top of the image the tip moves in a straight line to the starting point of the manipulation using the standard feedback parameters used for imaging. Then the feedback parameters are switched to the ones selected in the lateral manipulation parameter set . These are current, voltage and gain of the preamplifier. Then the tip moves using these manipulation parameters to the final position. There the parameters are set back to their original imaging values and the tip moves back to top of the image.&lt;br /&gt;
&lt;br /&gt;
Mode 2: Similar to mode 1, but the tip moves first to the final position, then starts the manipulation to the starting position and goes back to final position. It switches back to imaging parameters and moves to the top of the image.&lt;br /&gt;
&lt;br /&gt;
Mode3: Similar to mode 1: The tip first moves to the starting point. Then it moves to final position and back to the starting position using the normal imaging parameters, but the tip height and current are recorded during these two scans. Then the parameters are switched to the manipulation parameters and the tip moves to the final position. Then the parameters are changed back to the imaging parameters and the tip moves back to the starting position while again recording the tip height and current. Finally the tip moves to the top of the image.&lt;br /&gt;
&lt;br /&gt;
Mode 4: This is a constant height manipulation mode. The tip moves first to the starting position. Then it moves from the starting to the final position and back taking data in normal imaging mode. Then the feedback is switched off and the tip moves from the starting to the final position in constant height mode. The height used is given by the height of the tip when the feedbackloop is switched off plus the additional offset given by latmanccdz. This means that the height depends on the imaging parameters. Then the tip moves back from the final position to the starting position in imaging mode, but taking data again. Finally the tip moves to the top of the image. With the extension factor the manipulation path can be extended at the final position by the factor given by latmanextlextension. The starting point is not affected by the extension factor.&lt;br /&gt;
&lt;br /&gt;
Mode 5: Similar to mode 4. In this mode the extension affects also the starting position. The extension positions are first calculated. The tip moves in imaging mode to extended starting position. Then moves to the final extended position and backward and takes data in imaging mode. Then the tip moves to the starting position, while taking data in imaging mode. Then the tip moves from the starting position to the final position in constant height manipulation mode. Then it moves back to the starting position in imaging mode and takes data. Finally it moves back to the top of the image.&lt;br /&gt;
&lt;br /&gt;
Mode 6: Similar to mode 5. The only difference is that the tip moves from the starting to the final position and backward in constant height mode and not only in the forward direction, as done in mode 5.&lt;br /&gt;
&lt;br /&gt;
Mode 0: This mode is different from the other modes. In mode 0 the tip follows always the mouse position immediately. The height of the tip is displayed on rate meter appearing on the left. By pressing the upper case L key the imaging parameters are switched to the manipulation parameters and back again. (By pressing the upper case S a small 64 pixel * 64 pixel scan is performed.) Clicking with the mouse button will stop the continuous following of the tip. After additional clicking the tip moves to the new mouse position in a straight line and tracks the mouse position again.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
These parameters control the lateral manipulation processes.&lt;br /&gt;
&lt;br /&gt;
Mode&lt;br /&gt;
Select one of several different manipulation modes. There are constant current and constant height modes. For example P0 is the origin of the image. Then the tip moves to P1, the first point selected with the mouse. The tunneling parameters are changed to manipulation parameters and the tip moves from P1 to P2. There the normal tunneling parameters, used for imaging, are selected again and the tip moves to the origin P0.&lt;br /&gt;
&lt;br /&gt;
Voltage[V]&lt;br /&gt;
The tunneling voltage applied during the manipulation phase.&lt;br /&gt;
&lt;br /&gt;
Current[nA]&lt;br /&gt;
The current used during manipulation&lt;br /&gt;
&lt;br /&gt;
Gain preamplifier&lt;br /&gt;
The gain used during manipulation&lt;br /&gt;
&lt;br /&gt;
Manip. Speed[Å/sec]&lt;br /&gt;
The speed of the tip for lateral movements. Used for all movements. Step Size determines the number points measured during a lat. manip. scan.&lt;br /&gt;
&lt;br /&gt;
Extension&lt;br /&gt;
Extension value for manipulation modes 4-6&lt;br /&gt;
&lt;br /&gt;
Const. Height Z-Offset&lt;br /&gt;
In constant height mode the tip sample distance can be varied by this parameters. Positive values [Å} correspond to a closer approach to the surface.&lt;br /&gt;
&lt;br /&gt;
Channels&lt;br /&gt;
Select the channels acquired during data acquisition&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
LatChannelForm&lt;br /&gt;
Press to open a new Form to display the manipulation data.&lt;br /&gt;
&lt;br /&gt;
Lateral Speed [Å/sec]&lt;br /&gt;
Speed at which the tip is moving from the origin to first starting point&lt;br /&gt;
&lt;br /&gt;
LM in old place&lt;br /&gt;
Repeat the LM using the previous coordinates&lt;br /&gt;
&lt;br /&gt;
Load Ext Lat Par&lt;br /&gt;
Load the lateral manipulation cooordinates from an external file.&lt;br /&gt;
&lt;br /&gt;
[[file:cliplatmanip.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The measured data is displayed in separate windows. X and Y scaling can be adjusted by the user. Two independent axis can be displayed. (Press ''2.Axis'')&lt;br /&gt;
''LP'' Low Pass Filter&lt;br /&gt;
''TP'' Makes the Windows transparent to put it on top of another window.&lt;br /&gt;
&lt;br /&gt;
[[file:cliplmanip.png]]&lt;br /&gt;
&lt;br /&gt;
Right click to open the Popupmenu.&lt;br /&gt;
XYDesign, XY Series Edit allows to change the appearance of the Data&lt;br /&gt;
Copyclipboard.. copies the Plot or the Data into the clipboard&lt;br /&gt;
PrintXYGraph prints the XY Plot&lt;br /&gt;
Measure allows measuring the distance between points in the plot&lt;br /&gt;
AutoUpdate: The Plot is updated every second during Data Acquisition. &lt;br /&gt;
Lowpass filters the data (very simple just nearest neighbor average)&lt;br /&gt;
 &lt;br /&gt;
[[file:clipvertmanip_popupmenu1.png]]&lt;br /&gt;
&lt;br /&gt;
== Vertical Manipulation / I/V Spectroscopy ==&lt;br /&gt;
&lt;br /&gt;
Vertical manipulation (spectroscopy) is started by pressing on the ''VM'' button and selecting a point in the image by clicking with the left mouse button. The tip uses the lateral speed value to move to the vertical manipulation position. When the manipulation is finished the measured data appears in a separate window and can be saved with the Save button. Different channels can be selected to be recorded. Usually an external Lockin will be connected to ADC1. The internal Lockin supplies the signals dI/dV, d2I/dV2, di_q,d2_q. The form of the voltage and the z-height ramp is controlled by 8 points in time. In the case of the voltage one can define 8 time points and their corresponding voltage value. For example (0,1000), (256,0), (512,2000),(1024,-1000) define a ramp starting with 1000mV at time 0. Then it will be linear interpolated to time 256 with 0 Volt. Then it goes up again to 2000mV at time 512 and finally reaches -1000mV at time 1024. The time values correspond to the number of points taken. In this case these are 1024 points. A maximum of 100000 points is possible. The z-height values already include the gain of the z-amplifier. This means, that changing the HV gain will not change the z-height ramp, because this will be automatically corrected. Vertspecback = 1 will apply the ramp in forward and backward direction. Vertspecback=n will apply the ramp in forward and backward direction n-times (n&amp;gt;=1). The shape of the ramps is shown in the lower graph in the vertical manipulation window. &lt;br /&gt;
&lt;br /&gt;
Vertical spectroscopy can be done during scanning. Press the VM Button and select a point in the unscanned image area.  &lt;br /&gt;
&lt;br /&gt;
These parameters control the vertical manipulation and spectroscopy&lt;br /&gt;
&lt;br /&gt;
Gain preamplifier&lt;br /&gt;
Gain of the preamplifier during data acquisition&lt;br /&gt;
&lt;br /&gt;
Speclenght[sec]&lt;br /&gt;
Select the recording total time of the spectrum.&lt;br /&gt;
&lt;br /&gt;
Spectrum backward&lt;br /&gt;
0: The Spectrum defined in the V,Z table is taken only once.&lt;br /&gt;
1: The spectrum defined in the V,Z table is taken once in forward and once in backward direction&lt;br /&gt;
&amp;gt;1: Defines how often a forward and backward spectrum is taken&lt;br /&gt;
&lt;br /&gt;
Lateral Speed[Å/sec]&lt;br /&gt;
Speed at which the tip moves to the place where the spectrum will be taken.&lt;br /&gt;
&lt;br /&gt;
Z- Offset&lt;br /&gt;
Defines an additonal offset which is added to the z values in the table&lt;br /&gt;
&lt;br /&gt;
Z-Drift&lt;br /&gt;
Defines an increment which is added to the values in the table to compensate drift effects&lt;br /&gt;
&lt;br /&gt;
Repeat Count&lt;br /&gt;
Defines how many separate spectra are taken and stored.&lt;br /&gt;
&lt;br /&gt;
Spectra/Line&lt;br /&gt;
Defines the number of spectra equally spaced along a line between a start and endpoint,selected by mouse input.&lt;br /&gt;
The first spectrum is taken at the startpoint of the line the last one at the endpoint of the line.  &lt;br /&gt;
&lt;br /&gt;
V,Z table&lt;br /&gt;
4 points can be defined to create a voltage and z table used for vertical manipulation and spectroscopy. The data values are plotted in the graph below. The first Time Value should be set to 1 (not 0, still allowed for compatibility), otherwise the first value might not be displayed.&lt;br /&gt;
(Voltage(green), Z-Position(blue))&lt;br /&gt;
&lt;br /&gt;
Spec_X_Grid&lt;br /&gt;
Spec_Y_Grid&lt;br /&gt;
Determine the spacing of the spectroscopy grid. First spectrum position is (spec_x_grid,spec_y_grid) in pixel coordinates.&lt;br /&gt;
&lt;br /&gt;
SGrid_Channel&lt;br /&gt;
Number of channels recorded during the grid spectroscopy mode&lt;br /&gt;
&lt;br /&gt;
SpecGrid_Delay&lt;br /&gt;
Delay in DSP cycle units added before/after a vertical spectrum is started/finished.&lt;br /&gt;
&lt;br /&gt;
SpecAvrgCount&lt;br /&gt;
Number of Spectra acquired and averaged directly on the DSP board. For Count&amp;gt;1 be aware that the current preamplifier gain for vertical spectroscopy will be set the same to the normal preamplifer gain. Between the spectra the feedback loop will be switched on to readjust the sample tip distance.   &lt;br /&gt;
&lt;br /&gt;
SpecAvrgFBDelay  &lt;br /&gt;
On Time of the Feedback loop in DSP cycle units between spectra in Averaging mode.&lt;br /&gt;
&lt;br /&gt;
Save File&lt;br /&gt;
Save the present Vert. Spektrum&lt;br /&gt;
&lt;br /&gt;
Single_Spectrum&lt;br /&gt;
Take one single spectrum. Select the position with a left mouse button click on the image.&lt;br /&gt;
Same like pressing &amp;lt;VM&amp;gt; button&lt;br /&gt;
&lt;br /&gt;
Spectra along Line&lt;br /&gt;
Take a series of spectra equally spaced a long a line defined by two mouse clicks. &lt;br /&gt;
&lt;br /&gt;
Spec in old Place&lt;br /&gt;
Take a spectrum at the X,Y position of the previous scan.&lt;br /&gt;
&lt;br /&gt;
Multiple Spectra&lt;br /&gt;
Select several spectra taken one after the other. Left Mouse button select another spectrum, right mosue button stop selection and start data acquisition.&lt;br /&gt;
&lt;br /&gt;
MultSpec from File&lt;br /&gt;
Use an external file (Ascii) to define a series of spectra.&lt;br /&gt;
Only 256*256 pixel images allowed. No zoom.  First line contains number of spectra. Each following line contains the x y image coordinates(integer) of each spectrum. &lt;br /&gt;
&lt;br /&gt;
Spectra on Grid&lt;br /&gt;
Spectra taken at each grid position. (Analysis of the Grid data is done in another program)&lt;br /&gt;
&lt;br /&gt;
SaveSpecgrid&lt;br /&gt;
Save the Grid File. Two files are saved. One *.specgrid.dat File with all the parameters and the *.specgrid File with the grid data&lt;br /&gt;
&lt;br /&gt;
VFB_Mode&lt;br /&gt;
Select the VoltageFeedbackMode&lt;br /&gt;
I(V,z): Normal Operation feedback loop is OFF&lt;br /&gt;
z(V): Constant current operation&lt;br /&gt;
&lt;br /&gt;
VFB_Current[nA]&lt;br /&gt;
Current setpoint used in z(V) Mode. FB_Channel has to be current.&lt;br /&gt;
&lt;br /&gt;
Load Vert_Params&lt;br /&gt;
Load only the parameter of a spectrum and not the data&lt;br /&gt;
&lt;br /&gt;
External VZ Data&lt;br /&gt;
If not checked the VZ Data for a spectrum are taken from the VZ-Table parameter.&lt;br /&gt;
If checked the VZData is taken from a different source table, which can be loaded from an external file.&lt;br /&gt;
This allows the user defined design of arbitrary VZ arrays of up to 100000 points. File format see below.  &lt;br /&gt;
&lt;br /&gt;
Filenames:&lt;br /&gt;
First Letter is the machinename, in case you have more than one LTSTM or you want to assign different users.&lt;br /&gt;
Followed by DATE.TIME.VERT. VERT is the standard fileextension.&lt;br /&gt;
In case you take repeated spectra in a point or take spectra along a line an additional &amp;quot;L#Number.R#Number.&amp;quot; indicator is added before&lt;br /&gt;
the VERT file extension. L indicates line position and R indicates the numbering in repeat mode.&lt;br /&gt;
&lt;br /&gt;
[[file:clipvertmanp.png]]&lt;br /&gt;
&lt;br /&gt;
The measured data is displayed in separate windows. X and Y scaling can be adjusted by the user. Two independent axis can be displayed. (Press ''2.Axis'')&lt;br /&gt;
''LP'' Low Pass Filter&lt;br /&gt;
''TP'' Makes the Windows transparent to put it on top of another window.&lt;br /&gt;
&lt;br /&gt;
[[file:clipvmanip.png]]&lt;br /&gt;
&lt;br /&gt;
Right click to open the Popupmenu.&lt;br /&gt;
XYDesign, XY Series Edit allows to change the appearance of the Data&lt;br /&gt;
Copyclipboard.. copies the Plot or the Data into the clipboard&lt;br /&gt;
PrintXYGraph prints the XY Plot&lt;br /&gt;
Measure allows measuring the distance between points in the plot&lt;br /&gt;
AutoUpdate: The Plot is updated every second during Data Acquisition. &lt;br /&gt;
Lowpass filters the data (very simple just nearest neighbor average)&lt;br /&gt;
 &lt;br /&gt;
[[file:clipvertmanip_popupmenu1.png]]&lt;br /&gt;
&lt;br /&gt;
== Slider ==&lt;br /&gt;
&lt;br /&gt;
Brightness and Contrast&lt;br /&gt;
Use the slider window to control the brightness and contrast of the image. The slider marked B adjusts the brightness of the image. The slider marked Z controls the contrast. Above both sliders the corresponding height range in (+/-)Angstroem is displayed.So total height difference between black and white for example is two times the displayed value. On the right for multichannel images the channel, which is displayed can be selected. &lt;br /&gt;
&lt;br /&gt;
Biasvoltage&lt;br /&gt;
The polarity of the biasvoltage can be changed by pressing with the mouse on 'V' label, or by pressing the &amp;lt;+&amp;gt;/ &amp;lt;-&amp;gt; keys. &lt;br /&gt;
&lt;br /&gt;
Press the right mouse button on the 'V' label to open a Popupmenu for the biasvoltage. &lt;br /&gt;
Three options exist:&lt;br /&gt;
SetBiasMinvolt:  If selected sets the current biasvoltage as the minimum biasvoltage.&lt;br /&gt;
SetBiasMaxvolt: If selected sets the current biasvoltage as the maximum biasvoltage.&lt;br /&gt;
This feature can be used to avoid tunneling outside a specific bias voltange range. i.e for example to limit the maximum biasvoltage to protect the tip, when using the silder.&lt;br /&gt;
&lt;br /&gt;
ResetBiasMinMax: If selected deletes the Min/Max values again.&lt;br /&gt;
 &lt;br /&gt;
Current&lt;br /&gt;
Press the right mouse button on the 'A' label to open a Popupmenu for the current. &lt;br /&gt;
&lt;br /&gt;
Log: logarithmic scaling of the current slider&lt;br /&gt;
Lin: linear scaling of the current slider&lt;br /&gt;
&lt;br /&gt;
Channels &lt;br /&gt;
Select the displayed channel. For Channel Nr.=  0 all channels are displayed.&lt;br /&gt;
&lt;br /&gt;
Zoom&lt;br /&gt;
Allowed zoom factors are x1, x2, x3, x4.&lt;br /&gt;
&lt;br /&gt;
Tip up/down&lt;br /&gt;
Press this button to fully retract or to approach the tip.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[file:clipslider.png]]&lt;br /&gt;
&lt;br /&gt;
The height of the slider window can be adjusted. This changes the height of the sliders simultaneously.&lt;br /&gt;
&lt;br /&gt;
== FFT Evaluation ==&lt;br /&gt;
&lt;br /&gt;
This part of the software allows use to analyse FFT transforms of the images. (Always crosscheck the results)&lt;br /&gt;
&lt;br /&gt;
[[file:clipfftevaluation.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Load Files ==&lt;br /&gt;
&lt;br /&gt;
Loading Files is done using the &amp;lt;Open *.Dat&amp;gt; menue item.&lt;br /&gt;
&lt;br /&gt;
You can define your own favorite directories in the Windows Places Bar region. (Use for example the TweakUI utility.)&lt;br /&gt;
&lt;br /&gt;
Options:&lt;br /&gt;
&lt;br /&gt;
Full Parameter Load:  Check to load all parameters, not only those relevant for the loaded file type. &lt;br /&gt;
 &lt;br /&gt;
Disable Warning: If checked no warning will be given when files are loaded in data acquisition.                               &lt;br /&gt;
             &lt;br /&gt;
&lt;br /&gt;
[[file:cliploadfile.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Open allows to select in running program or alternatively in a newly opened analysis program.&lt;br /&gt;
&lt;br /&gt;
[[file:cliploadfile2.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
== AFM ==&lt;br /&gt;
&lt;br /&gt;
In the following we discuss the operation of the internal PLL system.&lt;br /&gt;
The internal PLL can operate up to 32kHz ( based on 16 samples per period at 512kHz max sample rate).&lt;br /&gt;
This usualy covers operation of standard quartz tuning fork sensors as the qPlus sensor.&lt;br /&gt;
(For higher frequencies optionally the Zurich Instruments PLL can be used externally.)&lt;br /&gt;
The input signal from the Preamplifier is connected to the ADC3 input of ADDA Board 2, while DAC5 of the same ADDA Board supplies the excitation signal. &lt;br /&gt;
&lt;br /&gt;
PLL Centerfreq: determines the center frequency of the PLL. (Change either by typing the number directly or increase/decrease by using the up/down/ page up/page down and both in combination with Shift key)&lt;br /&gt;
PLL-Ampl[nm]: Input the Set value of the Amplitude in nm when the Amplitude controller is on&lt;br /&gt;
PLL-Exc[V]: Input the Excitation value in Volt&lt;br /&gt;
PLL-Phase: Phase Shift of Exciation Signal. Has to be optimized const stable PLL operation&lt;br /&gt;
PLL F Range[+/-Hz]: PLL frequency tracking range. max. allowed deviation from center frequency&lt;br /&gt;
&lt;br /&gt;
PLL On: If selected operation of the PLL is switched on&lt;br /&gt;
Ampl Control: If selected Amplitude Control is switched on&lt;br /&gt;
Active Damping: If selected the Amplitude control can electronically damp the cantilever vibration&lt;br /&gt;
Ref Signal f: If selected DAC2 of the PLL board outputs a reference of the PLL frequency&lt;br /&gt;
Ref Signal 2f: If selected DAC2 of the PLL board outputs a reference of the 2nd harmonic of the PLL frequency&lt;br /&gt;
&lt;br /&gt;
P[Hz/Deg]: Proportional value of the PLL frequency controller&lt;br /&gt;
Int[Hz/deg/s]: Integrator value of the PLL frequency controller&lt;br /&gt;
LP Filter[Hz]: Value of the 4th order loop filter&lt;br /&gt;
P Ampl[V/nm]: Proportional part of the Ampl controller&lt;br /&gt;
LP Amp filter[Hz]: Loop filter of the Amp controller&lt;br /&gt;
df Post Filter[Hz]: Filters the PLL freq data finally before it is output to the STM feedback controller&lt;br /&gt;
&lt;br /&gt;
Sensor Cal[V/nm]: Calibrate the Preamp output in nm units&lt;br /&gt;
SRS Gain: Optionally include the SRS Preamp gain&lt;br /&gt;
&lt;br /&gt;
PLL FreqScan, PLL Phase Scan: Start a frequency or Phase Scan&lt;br /&gt;
Filter PLL_Scan: Filter the Scan Data. (simple 1.order lowpass). can be repeated to allow a beeter calculation of the Q factor etc.&lt;br /&gt;
Show Phase: Displays the phase. Has to be selected to calculate the Q Factor.&lt;br /&gt;
&lt;br /&gt;
Results: Automatic determination of CenterFreq and Q Factor&lt;br /&gt;
&lt;br /&gt;
ScancenterFreq, FreqSpan, ScanTime, ScanPoints: determines the properties of the Frequency Scan or PLL Phase Scan&lt;br /&gt;
&lt;br /&gt;
[[file:Resonance.png]]&lt;br /&gt;
&lt;br /&gt;
[[Category:stmafm_manual]]&lt;br /&gt;
&lt;br /&gt;
== 20 steps to successful AFM operation ==&lt;br /&gt;
&lt;br /&gt;
For a first setup of a functioning PLL useful for scanning in CC, CH or CF mode please refer to the following graphical guide.&lt;br /&gt;
&lt;br /&gt;
[[File:Folie2.PNG|800px]]&lt;br /&gt;
&lt;br /&gt;
[[File:Folie3.PNG|800px]]&lt;br /&gt;
&lt;br /&gt;
[[File:Folie4.PNG|800px]]&lt;br /&gt;
&lt;br /&gt;
[[File:Folie5.PNG|800px]]&lt;br /&gt;
&lt;br /&gt;
In order to start scanning please perform the following steps:&lt;br /&gt;
a) For constant current mode (CC, dynamic STM)&lt;br /&gt;
14. Approach the tip and observe the frequency shift changing from Δf=0 Hz to a finite negative value.&lt;br /&gt;
15. Select the channels ''dF'', ''Amplitude'' and ''Damping'' in the Parameter window in order to measure these signals.&lt;br /&gt;
16. Set the current setpoint to a finite value, i.e. e.g., 10 or 100 pA.&lt;br /&gt;
17. Start scanning in CC mode as you would do in STM mode.&lt;br /&gt;
&lt;br /&gt;
b) For constant force mode (CF, nc-AFM)&lt;br /&gt;
14. Change the feedback mode to ''LinAbs'' and the feedback channel to ''dF''.&lt;br /&gt;
15. Change the integrator value to e.g. -0.0003 or something in the same order of magnitude.&lt;br /&gt;
16. Select the channels ''dF'', ''Amplitude'' and ''Damping'' in the Parameter window.&lt;br /&gt;
17. Set the constant frequency setpoint to a value close to but a little bit smaller than the finite Δf value from above.&lt;br /&gt;
18. Start scanning in CF mode as you would do in STM mode.&lt;br /&gt;
19. Adjust the scanning speed and the integrator together with the amplitude and phase control of the tuning fork.&lt;br /&gt;
20. Observe the current signal and increase the setpoint in order to go closer to the surface.&lt;/div&gt;</summary>
		<author><name>Ltspm</name></author>	</entry>

	<entry>
		<id>http://spm-wiki.createc.de/index.php?title=Forms</id>
		<title>Forms</title>
		<link rel="alternate" type="text/html" href="http://spm-wiki.createc.de/index.php?title=Forms"/>
				<updated>2016-12-21T09:34:44Z</updated>
		
		<summary type="html">&lt;p&gt;Ltspm: /* Vertical Manipulation / I/V Spectroscopy */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== LineScan ==&lt;br /&gt;
&lt;br /&gt;
Press the ''Lin'' Button to take a line scan of the image. First select two points of the image by pressing the left mouse button. The linescan&lt;br /&gt;
is displayed in the upper linegraph of the linescanform-window. To perform measurements on the linescan press the &amp;lt;Measure&amp;gt; button. &lt;br /&gt;
&lt;br /&gt;
Use the left mouse button to select a new point. With the right mouse button you can switch between points. Pressing the Shift button allows to move a whole line. Pressing the right mouse button together with the Shift button will switch to the prependicular averaging mode.&lt;br /&gt;
&lt;br /&gt;
Important: If the linescan form is opened through the menue selection first, all linescan data will be displayed always in the this particular window. Otherwise pressing the LIN button will always open a new window.&lt;br /&gt;
&lt;br /&gt;
Autosize&lt;br /&gt;
Selects automatic scaling of the linegraph&lt;br /&gt;
&lt;br /&gt;
Autolinebacksub&lt;br /&gt;
Selects automatic subtraction of linear background&lt;br /&gt;
&lt;br /&gt;
Line Display Trackbar&lt;br /&gt;
Move to show a line scan of a particular image line. A FFT of the selected line is shown in the lower line graph.(The number of points/line has to be a power of 2)&lt;br /&gt;
&lt;br /&gt;
Popup menu of upper linegraph&lt;br /&gt;
xydesign: Select to adjust the appearance of the line graph&lt;br /&gt;
CopyClipboardData: The line scan data are copied to the ClipBoard&lt;br /&gt;
CopyClipboardXYGraph: The line scan graph is copied to the ClipBoard&lt;br /&gt;
Printxygraph: The line scan graph is send to the printer&lt;br /&gt;
Measure: Do measurements of the plot data.&lt;br /&gt;
Redrawline: The line in the image is redrawn&lt;br /&gt;
&lt;br /&gt;
Popup menu of lower linegraph&lt;br /&gt;
has the same items as the upper popup menu and one additional entry:&lt;br /&gt;
Show Frequency: Gives the FFT in frequency [Hz] instead of inverse distance [1/Å] (updated when the Line Display Trackbar is moved)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Channels&lt;br /&gt;
Select the channels which are displayed&lt;br /&gt;
&lt;br /&gt;
[[file:cliplinescan.png]]&lt;br /&gt;
&lt;br /&gt;
[[file:cliplinescanpopupmenu.png]]&lt;br /&gt;
&lt;br /&gt;
== Rampcontroller ==&lt;br /&gt;
&lt;br /&gt;
Click on the ''Ramp'' button. This opens the 'Rampcontroller'-window with control elements necessary to perform the coarse approach. The 6 buttons with arrows in the top of the form correspond to moving the tip in respect to the sample surface. Moving in x/y direction can also be done using the x/y cursor keys on the keyboard. The page up and page down keys are used correspondingly for rotation up and down. Selecting the burst mode in x/y or rotation will result in a series of steps corresponding to the number of burst steps displayed in the ramp parameter list. When the Crash Protection is switched on, the program checks before each step, whether it can detect a tunneling current. If this is the case it will cancel the step. Usually the crash protection should be switched on, but in cases where the tip is already crashed, the protection has to be switched off. The program issues some warnings when the ramp windows opens to inform the user to do necessary changes for a successful ramping. These are: First retract the tip, reset the x- and y-offset in the STM-program, select the appropriate gain (1-10, depending on the temperature) in the x- and y- channel of the HV-amplifier and set the external offset voltages to zero.&lt;br /&gt;
The usual coarse approach is done by controlling the approach with an optical microscope. When the tip is  close enough, the automatic tip approach can be switched on, by pressing the ''Approach'' button. It will start a combination of single coarse approach rotation steps combined with tip approach testing until the tip can reach the sample. ''Approach'' stops when a tunneling current is detected. The value of this threshold current is set by the current slider. Important: When the approach stops, the tip is automatically retracted, by setting the current to zero. Before leaving the coarse approach by pressing the ''Quit'' button, you have to select the mode for scanning. When the ''Main/Coarse'' button displays 'Coarse' mode, then the outer 3 piezos are used for scanning, otherwise the center piezo is used. In the normal operation of the microscope the 'Coarse' mode should be selected. Select the required set point current to see if the approach was successful. Now the tip should be retracted manually by using the external HV-amplifier z-offset voltage to go out of tunneling. Select the required gains and re-approach the tip again.&lt;br /&gt;
&lt;br /&gt;
See also: Approach Tips&lt;br /&gt;
&lt;br /&gt;
The Coarse Approach operation is controlled by the following parameters:&lt;br /&gt;
&lt;br /&gt;
Puls Height[V]&lt;br /&gt;
Input the peak to peak height (in V) of the sawtooth pulse used for moving the inertial slider. Two different values are used for the lateral XY motion and the rotational motion.&lt;br /&gt;
&lt;br /&gt;
Puls-Duration[sec]&lt;br /&gt;
Input the duration of a single sawtooth pulse in seconds. &lt;br /&gt;
&lt;br /&gt;
Burst-Count&lt;br /&gt;
Determines the number of sawtooth pulses applied when operating the coarse control in burst mode.&lt;br /&gt;
&lt;br /&gt;
Approach Period[sec]&lt;br /&gt;
Determines the time for a single approach cycle including approach and retraction of the tip to find the sample surface.&lt;br /&gt;
&lt;br /&gt;
Approach Burst Count&lt;br /&gt;
This is the number of coarse pulses applied between two approach cycles.&lt;br /&gt;
&lt;br /&gt;
Approach Retry Count&lt;br /&gt;
This is the number of retry operations done before the approach is stopped.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[file:cliprampcontrollerCreatec.png]]&lt;br /&gt;
&lt;br /&gt;
== Grid ==&lt;br /&gt;
&lt;br /&gt;
The form 'Grid-Image- Transformation' contains several functions for different kinds of image transformations. A suitable combination of the procedures below will allow transformations useful for drift correction, superstructure analysis, extraction of registry information. To open the form press on the grid button in the STMAFM form. With the 6 slider controls a grid can be overlayed on the image. The lateral position, the angles of the grid and the distance between the grid lines can be adjusted. An alternative way to input the grid is pressing the ''Mouse'' button and to mark 3 points (the first one is the center, the other two determine the direction of the two lines). Pressing the ''Rotation'' button will rotate the image in such a way that one set of the grid lines (X-Axis) is parallel to the horizontal direction. Pressing the ''Zoom'' button will zoom the image by the value set in the edit control positioned next to the right of the button. The image is zoomed around the center point of the grid. By pressing on the ''X..,Y..'' button the actual center position of the grid is stored and displayed on the button. Selecting a new center position with the mouse, as described above, and pressing the ''Move grid to Center'' button will move the new defined center to the stored center position. The ''Transform'' button will transform the image according to the 2 Parameters in the edit controls below. The first is the new angle between the lines in the image and the second is the new ratio the grid line distances. Selecting the ''HexGrid'' check box will draw a grid suitable for hexagonal unit cells. If draw inverted is selected the grid is drawn by a inversion process. Otherwise you can select with &amp;lt;Grid Color&amp;gt; the line color of the grid.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;&amp;quot; widths=&amp;quot;400px&amp;quot; heights=&amp;quot;400px&amp;quot;&amp;gt;&lt;br /&gt;
file:clipgrid.png&lt;br /&gt;
file:clipgridimage.png&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== TimeSpectrum ==&lt;br /&gt;
&lt;br /&gt;
It is very often useful to take a time record of the A/D input channels, without scanning or changing the biasvoltage. This is for example a convenient way to characterize the noise performance of the STM. To take a time record just press the ''Start'' Button on the Time-Spectrum window or press the ''TS'' button on the main window. Five channels are recorded simultaneously. The A/D channels 0 and 3 (ADC0 is called current I) and the topography signal output from the feedback loop, called Z. The displayed channel is selected by the corresponding channel button. Three parameters control the data acquisition:&lt;br /&gt;
&lt;br /&gt;
Spec_Points&lt;br /&gt;
The number of data points taken for a single spectrum. This must be a power of 2, to allow FFT of the data.&lt;br /&gt;
(Maximum is 4096)&lt;br /&gt;
&lt;br /&gt;
Spec_Freq[Hz]&lt;br /&gt;
The sampling frequency. (Limited by the DSP_Clock value)&lt;br /&gt;
&lt;br /&gt;
Spec_Avrg_Count&lt;br /&gt;
The number of spectra averaged. Averaging is done only for the spectrum, i.e. the FFT data.&lt;br /&gt;
&lt;br /&gt;
Channels&lt;br /&gt;
First select the check boxes to determine the channels which are acquired during data acquisition&lt;br /&gt;
Part of these channels can be further selected to be displayed.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The results are displayed in two line graphs.&lt;br /&gt;
The upper one shows the time behaviour. (The vertical scale is always in V)&lt;br /&gt;
The lower one shows the frequency spectrum. (The vertical scale on the left shows the peak to peak value of a pure sine component,&lt;br /&gt;
the right scale the rms amplitude for non correlated signals) &lt;br /&gt;
&lt;br /&gt;
The frequency resolution depends on the number of points and the sampling frequency.&lt;br /&gt;
Important: The current signal and the ADC1 signal are filtered by a first order digital filter, which is controlled by the same CurrentRC Parameter.   &lt;br /&gt;
The contents of the memo field is saved together with the file.&lt;br /&gt;
&lt;br /&gt;
In the lower right the AVRG Value and the Standard Deviation of the timespectra data are shown.&lt;br /&gt;
&lt;br /&gt;
Save&lt;br /&gt;
The data is saved in ASCII Format&lt;br /&gt;
&lt;br /&gt;
FFT logscale: Displays the Spectrum in LogScale&lt;br /&gt;
&lt;br /&gt;
Waterfall: Displays the time dependence of the Spectra in a Waterfall like mode at the bottom of the window&lt;br /&gt;
&lt;br /&gt;
[[file:cliptimespectrum.png]]&lt;br /&gt;
&lt;br /&gt;
== 3d-view ==&lt;br /&gt;
&lt;br /&gt;
This part of the program allows the display of 3d views of selected parts of the images. To start, open the window by clicking the ''3d View'' button. Then click on  &amp;lt;New Data&amp;gt; in the main menue and select a rectangular region on the image displayed in the STMAFM program.  A new form will be opened, where the rendered image is displayed. The sliders in the 3d-view form allow to change the orientation, size, offset and lighting of the 3d object. The 3d image can be displayed in different ways, depending on which check boxes are checked. So the lights can be switched on or off, the 3d image can be shown using lines, hidden lines, or in the normal surface view. Checking the save box will start saving of each images displayed. With this feature a series of BMP images for movies can be created. Checking the ''Box'' box will draw a 3d box with x,y,z axes in the 3dimage.In the light sources field the angle of the light source can be changed. Apart from a directed diffuse light source ambient lighting can be added.&lt;br /&gt;
&lt;br /&gt;
Under the menue item Color the color of the background and of the lines can be changed.&lt;br /&gt;
Morover the image can be copied to the clipboard (in BMP format), to a new window or the data can be exported in PoVRay format. &lt;br /&gt;
(New List means that a new imagedisplaylist is created for the underlying OPENGL rendering program. This usually done automatically)&lt;br /&gt;
&lt;br /&gt;
Selected views can be saved and are saved with the program.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;&amp;quot; widths=&amp;quot;450px&amp;quot; heights=&amp;quot;300px&amp;quot;&amp;gt;&lt;br /&gt;
file:clip3dcontrol.png&lt;br /&gt;
file:clip3dform.png&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Lateral Manipulation ==&lt;br /&gt;
&lt;br /&gt;
To perform a lateral manipulation with the tip one has first to press the Button ''LM'' and then to select the starting and the final position of the manipulation path by selecting these points in the image with the left mouse button. A thin line is drawn on the screen between these points. After the manipulation is completed a separate window opens up where the tip height and current during the manipulation is displayed. By pressing the save button this data set can be saved in a *.LAT File.&lt;br /&gt;
&lt;br /&gt;
Different kinds of manipulation procedures can be performed. They are selected by choosing a certain manipulation mode number in the manipulation parameter field. These different modes are described in the following. The speed of the tip is controlled by the parameters latmandelay and latmanddx, which are used throughout the whole process and not only when the tip is manipulating.&lt;br /&gt;
&lt;br /&gt;
Mode 1: This is the simplest constant current mode manipulation. Starting from the top of the image the tip moves in a straight line to the starting point of the manipulation using the standard feedback parameters used for imaging. Then the feedback parameters are switched to the ones selected in the lateral manipulation parameter set . These are current, voltage and gain of the preamplifier. Then the tip moves using these manipulation parameters to the final position. There the parameters are set back to their original imaging values and the tip moves back to top of the image.&lt;br /&gt;
&lt;br /&gt;
Mode 2: Similar to mode 1, but the tip moves first to the final position, then starts the manipulation to the starting position and goes back to final position. It switches back to imaging parameters and moves to the top of the image.&lt;br /&gt;
&lt;br /&gt;
Mode3: Similar to mode 1: The tip first moves to the starting point. Then it moves to final position and back to the starting position using the normal imaging parameters, but the tip height and current are recorded during these two scans. Then the parameters are switched to the manipulation parameters and the tip moves to the final position. Then the parameters are changed back to the imaging parameters and the tip moves back to the starting position while again recording the tip height and current. Finally the tip moves to the top of the image.&lt;br /&gt;
&lt;br /&gt;
Mode 4: This is a constant height manipulation mode. The tip moves first to the starting position. Then it moves from the starting to the final position and back taking data in normal imaging mode. Then the feedback is switched off and the tip moves from the starting to the final position in constant height mode. The height used is given by the height of the tip when the feedbackloop is switched off plus the additional offset given by latmanccdz. This means that the height depends on the imaging parameters. Then the tip moves back from the final position to the starting position in imaging mode, but taking data again. Finally the tip moves to the top of the image. With the extension factor the manipulation path can be extended at the final position by the factor given by latmanextlextension. The starting point is not affected by the extension factor.&lt;br /&gt;
&lt;br /&gt;
Mode 5: Similar to mode 4. In this mode the extension affects also the starting position. The extension positions are first calculated. The tip moves in imaging mode to extended starting position. Then moves to the final extended position and backward and takes data in imaging mode. Then the tip moves to the starting position, while taking data in imaging mode. Then the tip moves from the starting position to the final position in constant height manipulation mode. Then it moves back to the starting position in imaging mode and takes data. Finally it moves back to the top of the image.&lt;br /&gt;
&lt;br /&gt;
Mode 6: Similar to mode 5. The only difference is that the tip moves from the starting to the final position and backward in constant height mode and not only in the forward direction, as done in mode 5.&lt;br /&gt;
&lt;br /&gt;
Mode 0: This mode is different from the other modes. In mode 0 the tip follows always the mouse position immediately. The height of the tip is displayed on rate meter appearing on the left. By pressing the upper case L key the imaging parameters are switched to the manipulation parameters and back again. (By pressing the upper case S a small 64 pixel * 64 pixel scan is performed.) Clicking with the mouse button will stop the continuous following of the tip. After additional clicking the tip moves to the new mouse position in a straight line and tracks the mouse position again.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
These parameters control the lateral manipulation processes.&lt;br /&gt;
&lt;br /&gt;
Mode&lt;br /&gt;
Select one of several different manipulation modes. There are constant current and constant height modes. For example P0 is the origin of the image. Then the tip moves to P1, the first point selected with the mouse. The tunneling parameters are changed to manipulation parameters and the tip moves from P1 to P2. There the normal tunneling parameters, used for imaging, are selected again and the tip moves to the origin P0.&lt;br /&gt;
&lt;br /&gt;
Voltage[V]&lt;br /&gt;
The tunneling voltage applied during the manipulation phase.&lt;br /&gt;
&lt;br /&gt;
Current[nA]&lt;br /&gt;
The current used during manipulation&lt;br /&gt;
&lt;br /&gt;
Gain preamplifier&lt;br /&gt;
The gain used during manipulation&lt;br /&gt;
&lt;br /&gt;
Manip. Speed[Å/sec]&lt;br /&gt;
The speed of the tip for lateral movements. Used for all movements. Step Size determines the number points measured during a lat. manip. scan.&lt;br /&gt;
&lt;br /&gt;
Extension&lt;br /&gt;
Extension value for manipulation modes 4-6&lt;br /&gt;
&lt;br /&gt;
Const. Height Z-Offset&lt;br /&gt;
In constant height mode the tip sample distance can be varied by this parameters. Positive values [Å} correspond to a closer approach to the surface.&lt;br /&gt;
&lt;br /&gt;
Channels&lt;br /&gt;
Select the channels acquired during data acquisition&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
LatChannelForm&lt;br /&gt;
Press to open a new Form to display the manipulation data.&lt;br /&gt;
&lt;br /&gt;
Lateral Speed [Å/sec]&lt;br /&gt;
Speed at which the tip is moving from the origin to first starting point&lt;br /&gt;
&lt;br /&gt;
LM in old place&lt;br /&gt;
Repeat the LM using the previous coordinates&lt;br /&gt;
&lt;br /&gt;
Load Ext Lat Par&lt;br /&gt;
Load the lateral manipulation cooordinates from an external file.&lt;br /&gt;
&lt;br /&gt;
[[file:cliplatmanip.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The measured data is displayed in separate windows. X and Y scaling can be adjusted by the user. Two independent axis can be displayed. (Press ''2.Axis'')&lt;br /&gt;
''LP'' Low Pass Filter&lt;br /&gt;
''TP'' Makes the Windows transparent to put it on top of another window.&lt;br /&gt;
&lt;br /&gt;
[[file:cliplmanip.png]]&lt;br /&gt;
&lt;br /&gt;
Right click to open the Popupmenu.&lt;br /&gt;
XYDesign, XY Series Edit allows to change the appearance of the Data&lt;br /&gt;
Copyclipboard.. copies the Plot or the Data into the clipboard&lt;br /&gt;
PrintXYGraph prints the XY Plot&lt;br /&gt;
Measure allows measuring the distance between points in the plot&lt;br /&gt;
AutoUpdate: The Plot is updated every second during Data Acquisition. &lt;br /&gt;
Lowpass filters the data (very simple just nearest neighbor average)&lt;br /&gt;
 &lt;br /&gt;
[[file:clipvertmanip_popupmenu1.png]]&lt;br /&gt;
&lt;br /&gt;
== Vertical Manipulation / I/V Spectroscopy ==&lt;br /&gt;
&lt;br /&gt;
Vertical manipulation (spectroscopy) is started by pressing on the ''VM'' button and selecting a point in the image by clicking with the left mouse button. The tip uses the lateral speed value to move to the vertical manipulation position. When the manipulation is finished the measured data appears in a separate window and can be saved with the Save button. Different channels can be selected to be recorded. Usually an external Lockin will be connected to ADC1. The internal Lockin supplies the signals dI/dV, d2I/dV2, di_q,d2_q. The form of the voltage and the z-height ramp is controlled by 8 points in time. In the case of the voltage one can define 8 time points and their corresponding voltage value. For example (0,1000), (256,0), (512,2000),(1024,-1000) define a ramp starting with 1000mV at time 0. Then it will be linear interpolated to time 256 with 0 Volt. Then it goes up again to 2000mV at time 512 and finally reaches -1000mV at time 1024. The time values correspond to the number of points taken. In this case these are 1024 points. A maximum of 100000 points is possible. The z-height values already include the gain of the z-amplifier. This means, that changing the HV gain will not change the z-height ramp, because this will be automatically corrected. Vertspecback = 1 will apply the ramp in forward and backward direction. Vertspecback=n will apply the ramp in forward and backward direction n-times (n&amp;gt;=1). The shape of the ramps is shown in the lower graph in the vertical manipulation window. &lt;br /&gt;
&lt;br /&gt;
Vertical spectroscopy can be done during scanning. Press the VM Button and select a point in the unscanned image area.  &lt;br /&gt;
&lt;br /&gt;
These parameters control the vertical manipulation and spectroscopy&lt;br /&gt;
&lt;br /&gt;
Gain preamplifier&lt;br /&gt;
Gain of the preamplifier during data acquisition&lt;br /&gt;
&lt;br /&gt;
Speclenght[sec]&lt;br /&gt;
Select the recording total time of the spectrum.&lt;br /&gt;
&lt;br /&gt;
Spectrum backward&lt;br /&gt;
0: The Spectrum defined in the V,Z table is taken only once.&lt;br /&gt;
1: The spectrum defined in the V,Z table is taken once in forward and once in backward direction&lt;br /&gt;
&amp;gt;1: Defines how often a forward and backward spectrum is taken&lt;br /&gt;
&lt;br /&gt;
Lateral Speed[Å/sec]&lt;br /&gt;
Speed at which the tip moves to the place where the spectrum will be taken.&lt;br /&gt;
&lt;br /&gt;
Z- Offset&lt;br /&gt;
Defines an additonal offset which is added to the z values in the table&lt;br /&gt;
&lt;br /&gt;
Z-Drift&lt;br /&gt;
Defines an increment which is added to the values in the table to compensate drift effects&lt;br /&gt;
&lt;br /&gt;
Repeat Count&lt;br /&gt;
Defines how many separate spectra are taken and stored.&lt;br /&gt;
&lt;br /&gt;
Spectra/Line&lt;br /&gt;
Defines the number of spectra equally spaced along a line between a start and endpoint,selected by mouse input.&lt;br /&gt;
The first spectrum is taken at the startpoint of the line the last one at the endpoint of the line.  &lt;br /&gt;
&lt;br /&gt;
V,Z table&lt;br /&gt;
4 points can be defined to create a voltage and z table used for vertical manipulation and spectroscopy. The data values are plotted in the graph below. The first Time Value should be set to 1 (not 0, still allowed for compatibility), otherwise the first value might not be displayed.&lt;br /&gt;
(Voltage(green), Z-Position(blue))&lt;br /&gt;
&lt;br /&gt;
Spec_X_Grid&lt;br /&gt;
Spec_Y_Grid&lt;br /&gt;
Determine the spacing of the spectroscopy grid. First spectrum position is (spec_x_grid,spec_y_grid) in pixel coordinates.&lt;br /&gt;
&lt;br /&gt;
SGrid_Channel&lt;br /&gt;
Number of channels recorded during the grid spectroscopy mode&lt;br /&gt;
&lt;br /&gt;
SpecGrid_Delay&lt;br /&gt;
Delay in DSP cycle units added before/after a vertical spectrum is started/finished.&lt;br /&gt;
&lt;br /&gt;
SpecAvrgCount&lt;br /&gt;
Number of Spectra acquired and averaged directly on the DSP board. For Count&amp;gt;1 be aware that the current preamplifier gain for vertical spectroscopy will be set the same to the normal preamplifer gain. Between the spectra the feedback loop will be switched on to readjust the sample tip distance.   &lt;br /&gt;
&lt;br /&gt;
SpecAvrgFBDelay  &lt;br /&gt;
On Time of the Feedback loop in DSP cycle units between spectra in Averaging mode.&lt;br /&gt;
&lt;br /&gt;
Save File&lt;br /&gt;
Save the present Vert. Spektrum&lt;br /&gt;
&lt;br /&gt;
Single_Spectrum&lt;br /&gt;
Take one single spectrum. Select the position with a left mouse button click on the image.&lt;br /&gt;
Same like pressing &amp;lt;VM&amp;gt; button&lt;br /&gt;
&lt;br /&gt;
Spectra along Line&lt;br /&gt;
Take a series of spectra equally spaced a long a line defined by two mouse clicks. &lt;br /&gt;
&lt;br /&gt;
Spec in old Place&lt;br /&gt;
Take a spectrum at the X,Y position of the previous scan.&lt;br /&gt;
&lt;br /&gt;
Multiple Spectra&lt;br /&gt;
Select several spectra taken one after the other. Left Mouse button select another spectrum, right mosue button stop selection and start data acquisition.&lt;br /&gt;
&lt;br /&gt;
MultSpec from File&lt;br /&gt;
Use an external file (Ascii) to define a series of spectra.&lt;br /&gt;
Only 256*256 pixel images allowed. No zoom.  First line contains number of spectra. Each following line contains the x y image coordinates(integer) of each spectrum. &lt;br /&gt;
&lt;br /&gt;
Spectra on Grid&lt;br /&gt;
Spectra taken at each grid position. (Analysis of the Grid data is done in another program)&lt;br /&gt;
&lt;br /&gt;
SaveSpecgrid&lt;br /&gt;
Save the Grid File. Two files are saved. One *.specgrid.dat File with all the parameters and the *.specgrid File with the grid data&lt;br /&gt;
&lt;br /&gt;
VFB_Mode&lt;br /&gt;
Select the VoltageFeedbackMode&lt;br /&gt;
I(V,z): Normal Operation feedback loop is OFF&lt;br /&gt;
z(V): Constant current operation&lt;br /&gt;
&lt;br /&gt;
VFB_Current[nA]&lt;br /&gt;
Current setpoint used in z(V) Mode. FB_Channel has to be current.&lt;br /&gt;
&lt;br /&gt;
Load Vert_Params&lt;br /&gt;
Load only the parameter of a spectrum and not the data&lt;br /&gt;
&lt;br /&gt;
External VZ Data&lt;br /&gt;
If not checked the VZ Data for a spectrum are taken from the VZ-Table parameter.&lt;br /&gt;
If checked the VZData is taken from a different source table, which can be loaded from an external file.&lt;br /&gt;
This allows the user defined design of arbitrary VZ arrays of up to 100000 points. File format see below.  &lt;br /&gt;
&lt;br /&gt;
Filenames:&lt;br /&gt;
First Letter is the machinename, in case you have more than one LTSTM or you want to assign different users.&lt;br /&gt;
Followed by DATE.TIME.VERT. VERT is the standard fileextension.&lt;br /&gt;
In case you take repeated spectra in a point or take spectra along a line an additional &amp;quot;L#Number'.R#Number'.&amp;quot; indicator is added before&lt;br /&gt;
the VERT file extension. L indicates line position and R indicates the numbering in repeat mode.&lt;br /&gt;
&lt;br /&gt;
[[file:clipvertmanp.png]]&lt;br /&gt;
&lt;br /&gt;
The measured data is displayed in separate windows. X and Y scaling can be adjusted by the user. Two independent axis can be displayed. (Press ''2.Axis'')&lt;br /&gt;
''LP'' Low Pass Filter&lt;br /&gt;
''TP'' Makes the Windows transparent to put it on top of another window.&lt;br /&gt;
&lt;br /&gt;
[[file:clipvmanip.png]]&lt;br /&gt;
&lt;br /&gt;
Right click to open the Popupmenu.&lt;br /&gt;
XYDesign, XY Series Edit allows to change the appearance of the Data&lt;br /&gt;
Copyclipboard.. copies the Plot or the Data into the clipboard&lt;br /&gt;
PrintXYGraph prints the XY Plot&lt;br /&gt;
Measure allows measuring the distance between points in the plot&lt;br /&gt;
AutoUpdate: The Plot is updated every second during Data Acquisition. &lt;br /&gt;
Lowpass filters the data (very simple just nearest neighbor average)&lt;br /&gt;
 &lt;br /&gt;
[[file:clipvertmanip_popupmenu1.png]]&lt;br /&gt;
&lt;br /&gt;
== Slider ==&lt;br /&gt;
&lt;br /&gt;
Brightness and Contrast&lt;br /&gt;
Use the slider window to control the brightness and contrast of the image. The slider marked B adjusts the brightness of the image. The slider marked Z controls the contrast. Above both sliders the corresponding height range in (+/-)Angstroem is displayed.So total height difference between black and white for example is two times the displayed value. On the right for multichannel images the channel, which is displayed can be selected. &lt;br /&gt;
&lt;br /&gt;
Biasvoltage&lt;br /&gt;
The polarity of the biasvoltage can be changed by pressing with the mouse on 'V' label, or by pressing the &amp;lt;+&amp;gt;/ &amp;lt;-&amp;gt; keys. &lt;br /&gt;
&lt;br /&gt;
Press the right mouse button on the 'V' label to open a Popupmenu for the biasvoltage. &lt;br /&gt;
Three options exist:&lt;br /&gt;
SetBiasMinvolt:  If selected sets the current biasvoltage as the minimum biasvoltage.&lt;br /&gt;
SetBiasMaxvolt: If selected sets the current biasvoltage as the maximum biasvoltage.&lt;br /&gt;
This feature can be used to avoid tunneling outside a specific bias voltange range. i.e for example to limit the maximum biasvoltage to protect the tip, when using the silder.&lt;br /&gt;
&lt;br /&gt;
ResetBiasMinMax: If selected deletes the Min/Max values again.&lt;br /&gt;
 &lt;br /&gt;
Current&lt;br /&gt;
Press the right mouse button on the 'A' label to open a Popupmenu for the current. &lt;br /&gt;
&lt;br /&gt;
Log: logarithmic scaling of the current slider&lt;br /&gt;
Lin: linear scaling of the current slider&lt;br /&gt;
&lt;br /&gt;
Channels &lt;br /&gt;
Select the displayed channel. For Channel Nr.=  0 all channels are displayed.&lt;br /&gt;
&lt;br /&gt;
Zoom&lt;br /&gt;
Allowed zoom factors are x1, x2, x3, x4.&lt;br /&gt;
&lt;br /&gt;
Tip up/down&lt;br /&gt;
Press this button to fully retract or to approach the tip.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[file:clipslider.png]]&lt;br /&gt;
&lt;br /&gt;
The height of the slider window can be adjusted. This changes the height of the sliders simultaneously.&lt;br /&gt;
&lt;br /&gt;
== FFT Evaluation ==&lt;br /&gt;
&lt;br /&gt;
This part of the software allows use to analyse FFT transforms of the images. (Always crosscheck the results)&lt;br /&gt;
&lt;br /&gt;
[[file:clipfftevaluation.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Load Files ==&lt;br /&gt;
&lt;br /&gt;
Loading Files is done using the &amp;lt;Open *.Dat&amp;gt; menue item.&lt;br /&gt;
&lt;br /&gt;
You can define your own favorite directories in the Windows Places Bar region. (Use for example the TweakUI utility.)&lt;br /&gt;
&lt;br /&gt;
Options:&lt;br /&gt;
&lt;br /&gt;
Full Parameter Load:  Check to load all parameters, not only those relevant for the loaded file type. &lt;br /&gt;
 &lt;br /&gt;
Disable Warning: If checked no warning will be given when files are loaded in data acquisition.                               &lt;br /&gt;
             &lt;br /&gt;
&lt;br /&gt;
[[file:cliploadfile.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Open allows to select in running program or alternatively in a newly opened analysis program.&lt;br /&gt;
&lt;br /&gt;
[[file:cliploadfile2.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
== AFM ==&lt;br /&gt;
&lt;br /&gt;
In the following we discuss the operation of the internal PLL system.&lt;br /&gt;
The internal PLL can operate up to 32kHz ( based on 16 samples per period at 512kHz max sample rate).&lt;br /&gt;
This usualy covers operation of standard quartz tuning fork sensors as the qPlus sensor.&lt;br /&gt;
(For higher frequencies optionally the Zurich Instruments PLL can be used externally.)&lt;br /&gt;
The input signal from the Preamplifier is connected to the ADC3 input of ADDA Board 2, while DAC5 of the same ADDA Board supplies the excitation signal. &lt;br /&gt;
&lt;br /&gt;
PLL Centerfreq: determines the center frequency of the PLL. (Change either by typing the number directly or increase/decrease by using the up/down/ page up/page down and both in combination with Shift key)&lt;br /&gt;
PLL-Ampl[nm]: Input the Set value of the Amplitude in nm when the Amplitude controller is on&lt;br /&gt;
PLL-Exc[V]: Input the Excitation value in Volt&lt;br /&gt;
PLL-Phase: Phase Shift of Exciation Signal. Has to be optimized const stable PLL operation&lt;br /&gt;
PLL F Range[+/-Hz]: PLL frequency tracking range. max. allowed deviation from center frequency&lt;br /&gt;
&lt;br /&gt;
PLL On: If selected operation of the PLL is switched on&lt;br /&gt;
Ampl Control: If selected Amplitude Control is switched on&lt;br /&gt;
Active Damping: If selected the Amplitude control can electronically damp the cantilever vibration&lt;br /&gt;
Ref Signal f: If selected DAC2 of the PLL board outputs a reference of the PLL frequency&lt;br /&gt;
Ref Signal 2f: If selected DAC2 of the PLL board outputs a reference of the 2nd harmonic of the PLL frequency&lt;br /&gt;
&lt;br /&gt;
P[Hz/Deg]: Proportional value of the PLL frequency controller&lt;br /&gt;
Int[Hz/deg/s]: Integrator value of the PLL frequency controller&lt;br /&gt;
LP Filter[Hz]: Value of the 4th order loop filter&lt;br /&gt;
P Ampl[V/nm]: Proportional part of the Ampl controller&lt;br /&gt;
LP Amp filter[Hz]: Loop filter of the Amp controller&lt;br /&gt;
df Post Filter[Hz]: Filters the PLL freq data finally before it is output to the STM feedback controller&lt;br /&gt;
&lt;br /&gt;
Sensor Cal[V/nm]: Calibrate the Preamp output in nm units&lt;br /&gt;
SRS Gain: Optionally include the SRS Preamp gain&lt;br /&gt;
&lt;br /&gt;
PLL FreqScan, PLL Phase Scan: Start a frequency or Phase Scan&lt;br /&gt;
Filter PLL_Scan: Filter the Scan Data. (simple 1.order lowpass). can be repeated to allow a beeter calculation of the Q factor etc.&lt;br /&gt;
Show Phase: Displays the phase. Has to be selected to calculate the Q Factor.&lt;br /&gt;
&lt;br /&gt;
Results: Automatic determination of CenterFreq and Q Factor&lt;br /&gt;
&lt;br /&gt;
ScancenterFreq, FreqSpan, ScanTime, ScanPoints: determines the properties of the Frequency Scan or PLL Phase Scan&lt;br /&gt;
&lt;br /&gt;
[[file:Resonance.png]]&lt;br /&gt;
&lt;br /&gt;
[[Category:stmafm_manual]]&lt;br /&gt;
&lt;br /&gt;
== 20 steps to successful AFM operation ==&lt;br /&gt;
&lt;br /&gt;
For a first setup of a functioning PLL useful for scanning in CC, CH or CF mode please refer to the following graphical guide.&lt;br /&gt;
&lt;br /&gt;
[[File:Folie2.PNG|800px]]&lt;br /&gt;
&lt;br /&gt;
[[File:Folie3.PNG|800px]]&lt;br /&gt;
&lt;br /&gt;
[[File:Folie4.PNG|800px]]&lt;br /&gt;
&lt;br /&gt;
[[File:Folie5.PNG|800px]]&lt;br /&gt;
&lt;br /&gt;
In order to start scanning please perform the following steps:&lt;br /&gt;
a) For constant current mode (CC, dynamic STM)&lt;br /&gt;
14. Approach the tip and observe the frequency shift changing from Δf=0 Hz to a finite negative value.&lt;br /&gt;
15. Select the channels ''dF'', ''Amplitude'' and ''Damping'' in the Parameter window in order to measure these signals.&lt;br /&gt;
16. Set the current setpoint to a finite value, i.e. e.g., 10 or 100 pA.&lt;br /&gt;
17. Start scanning in CC mode as you would do in STM mode.&lt;br /&gt;
&lt;br /&gt;
b) For constant force mode (CF, nc-AFM)&lt;br /&gt;
14. Change the feedback mode to ''LinAbs'' and the feedback channel to ''dF''.&lt;br /&gt;
15. Change the integrator value to e.g. -0.0003 or something in the same order of magnitude.&lt;br /&gt;
16. Select the channels ''dF'', ''Amplitude'' and ''Damping'' in the Parameter window.&lt;br /&gt;
17. Set the constant frequency setpoint to a value close to but a little bit smaller than the finite Δf value from above.&lt;br /&gt;
18. Start scanning in CF mode as you would do in STM mode.&lt;br /&gt;
19. Adjust the scanning speed and the integrator together with the amplitude and phase control of the tuning fork.&lt;br /&gt;
20. Observe the current signal and increase the setpoint in order to go closer to the surface.&lt;/div&gt;</summary>
		<author><name>Ltspm</name></author>	</entry>

	<entry>
		<id>http://spm-wiki.createc.de/index.php?title=Forms</id>
		<title>Forms</title>
		<link rel="alternate" type="text/html" href="http://spm-wiki.createc.de/index.php?title=Forms"/>
				<updated>2016-12-21T09:34:07Z</updated>
		
		<summary type="html">&lt;p&gt;Ltspm: /* Vertical Manipulation / I/V Spectroscopy */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== LineScan ==&lt;br /&gt;
&lt;br /&gt;
Press the ''Lin'' Button to take a line scan of the image. First select two points of the image by pressing the left mouse button. The linescan&lt;br /&gt;
is displayed in the upper linegraph of the linescanform-window. To perform measurements on the linescan press the &amp;lt;Measure&amp;gt; button. &lt;br /&gt;
&lt;br /&gt;
Use the left mouse button to select a new point. With the right mouse button you can switch between points. Pressing the Shift button allows to move a whole line. Pressing the right mouse button together with the Shift button will switch to the prependicular averaging mode.&lt;br /&gt;
&lt;br /&gt;
Important: If the linescan form is opened through the menue selection first, all linescan data will be displayed always in the this particular window. Otherwise pressing the LIN button will always open a new window.&lt;br /&gt;
&lt;br /&gt;
Autosize&lt;br /&gt;
Selects automatic scaling of the linegraph&lt;br /&gt;
&lt;br /&gt;
Autolinebacksub&lt;br /&gt;
Selects automatic subtraction of linear background&lt;br /&gt;
&lt;br /&gt;
Line Display Trackbar&lt;br /&gt;
Move to show a line scan of a particular image line. A FFT of the selected line is shown in the lower line graph.(The number of points/line has to be a power of 2)&lt;br /&gt;
&lt;br /&gt;
Popup menu of upper linegraph&lt;br /&gt;
xydesign: Select to adjust the appearance of the line graph&lt;br /&gt;
CopyClipboardData: The line scan data are copied to the ClipBoard&lt;br /&gt;
CopyClipboardXYGraph: The line scan graph is copied to the ClipBoard&lt;br /&gt;
Printxygraph: The line scan graph is send to the printer&lt;br /&gt;
Measure: Do measurements of the plot data.&lt;br /&gt;
Redrawline: The line in the image is redrawn&lt;br /&gt;
&lt;br /&gt;
Popup menu of lower linegraph&lt;br /&gt;
has the same items as the upper popup menu and one additional entry:&lt;br /&gt;
Show Frequency: Gives the FFT in frequency [Hz] instead of inverse distance [1/Å] (updated when the Line Display Trackbar is moved)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Channels&lt;br /&gt;
Select the channels which are displayed&lt;br /&gt;
&lt;br /&gt;
[[file:cliplinescan.png]]&lt;br /&gt;
&lt;br /&gt;
[[file:cliplinescanpopupmenu.png]]&lt;br /&gt;
&lt;br /&gt;
== Rampcontroller ==&lt;br /&gt;
&lt;br /&gt;
Click on the ''Ramp'' button. This opens the 'Rampcontroller'-window with control elements necessary to perform the coarse approach. The 6 buttons with arrows in the top of the form correspond to moving the tip in respect to the sample surface. Moving in x/y direction can also be done using the x/y cursor keys on the keyboard. The page up and page down keys are used correspondingly for rotation up and down. Selecting the burst mode in x/y or rotation will result in a series of steps corresponding to the number of burst steps displayed in the ramp parameter list. When the Crash Protection is switched on, the program checks before each step, whether it can detect a tunneling current. If this is the case it will cancel the step. Usually the crash protection should be switched on, but in cases where the tip is already crashed, the protection has to be switched off. The program issues some warnings when the ramp windows opens to inform the user to do necessary changes for a successful ramping. These are: First retract the tip, reset the x- and y-offset in the STM-program, select the appropriate gain (1-10, depending on the temperature) in the x- and y- channel of the HV-amplifier and set the external offset voltages to zero.&lt;br /&gt;
The usual coarse approach is done by controlling the approach with an optical microscope. When the tip is  close enough, the automatic tip approach can be switched on, by pressing the ''Approach'' button. It will start a combination of single coarse approach rotation steps combined with tip approach testing until the tip can reach the sample. ''Approach'' stops when a tunneling current is detected. The value of this threshold current is set by the current slider. Important: When the approach stops, the tip is automatically retracted, by setting the current to zero. Before leaving the coarse approach by pressing the ''Quit'' button, you have to select the mode for scanning. When the ''Main/Coarse'' button displays 'Coarse' mode, then the outer 3 piezos are used for scanning, otherwise the center piezo is used. In the normal operation of the microscope the 'Coarse' mode should be selected. Select the required set point current to see if the approach was successful. Now the tip should be retracted manually by using the external HV-amplifier z-offset voltage to go out of tunneling. Select the required gains and re-approach the tip again.&lt;br /&gt;
&lt;br /&gt;
See also: Approach Tips&lt;br /&gt;
&lt;br /&gt;
The Coarse Approach operation is controlled by the following parameters:&lt;br /&gt;
&lt;br /&gt;
Puls Height[V]&lt;br /&gt;
Input the peak to peak height (in V) of the sawtooth pulse used for moving the inertial slider. Two different values are used for the lateral XY motion and the rotational motion.&lt;br /&gt;
&lt;br /&gt;
Puls-Duration[sec]&lt;br /&gt;
Input the duration of a single sawtooth pulse in seconds. &lt;br /&gt;
&lt;br /&gt;
Burst-Count&lt;br /&gt;
Determines the number of sawtooth pulses applied when operating the coarse control in burst mode.&lt;br /&gt;
&lt;br /&gt;
Approach Period[sec]&lt;br /&gt;
Determines the time for a single approach cycle including approach and retraction of the tip to find the sample surface.&lt;br /&gt;
&lt;br /&gt;
Approach Burst Count&lt;br /&gt;
This is the number of coarse pulses applied between two approach cycles.&lt;br /&gt;
&lt;br /&gt;
Approach Retry Count&lt;br /&gt;
This is the number of retry operations done before the approach is stopped.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[file:cliprampcontrollerCreatec.png]]&lt;br /&gt;
&lt;br /&gt;
== Grid ==&lt;br /&gt;
&lt;br /&gt;
The form 'Grid-Image- Transformation' contains several functions for different kinds of image transformations. A suitable combination of the procedures below will allow transformations useful for drift correction, superstructure analysis, extraction of registry information. To open the form press on the grid button in the STMAFM form. With the 6 slider controls a grid can be overlayed on the image. The lateral position, the angles of the grid and the distance between the grid lines can be adjusted. An alternative way to input the grid is pressing the ''Mouse'' button and to mark 3 points (the first one is the center, the other two determine the direction of the two lines). Pressing the ''Rotation'' button will rotate the image in such a way that one set of the grid lines (X-Axis) is parallel to the horizontal direction. Pressing the ''Zoom'' button will zoom the image by the value set in the edit control positioned next to the right of the button. The image is zoomed around the center point of the grid. By pressing on the ''X..,Y..'' button the actual center position of the grid is stored and displayed on the button. Selecting a new center position with the mouse, as described above, and pressing the ''Move grid to Center'' button will move the new defined center to the stored center position. The ''Transform'' button will transform the image according to the 2 Parameters in the edit controls below. The first is the new angle between the lines in the image and the second is the new ratio the grid line distances. Selecting the ''HexGrid'' check box will draw a grid suitable for hexagonal unit cells. If draw inverted is selected the grid is drawn by a inversion process. Otherwise you can select with &amp;lt;Grid Color&amp;gt; the line color of the grid.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;&amp;quot; widths=&amp;quot;400px&amp;quot; heights=&amp;quot;400px&amp;quot;&amp;gt;&lt;br /&gt;
file:clipgrid.png&lt;br /&gt;
file:clipgridimage.png&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== TimeSpectrum ==&lt;br /&gt;
&lt;br /&gt;
It is very often useful to take a time record of the A/D input channels, without scanning or changing the biasvoltage. This is for example a convenient way to characterize the noise performance of the STM. To take a time record just press the ''Start'' Button on the Time-Spectrum window or press the ''TS'' button on the main window. Five channels are recorded simultaneously. The A/D channels 0 and 3 (ADC0 is called current I) and the topography signal output from the feedback loop, called Z. The displayed channel is selected by the corresponding channel button. Three parameters control the data acquisition:&lt;br /&gt;
&lt;br /&gt;
Spec_Points&lt;br /&gt;
The number of data points taken for a single spectrum. This must be a power of 2, to allow FFT of the data.&lt;br /&gt;
(Maximum is 4096)&lt;br /&gt;
&lt;br /&gt;
Spec_Freq[Hz]&lt;br /&gt;
The sampling frequency. (Limited by the DSP_Clock value)&lt;br /&gt;
&lt;br /&gt;
Spec_Avrg_Count&lt;br /&gt;
The number of spectra averaged. Averaging is done only for the spectrum, i.e. the FFT data.&lt;br /&gt;
&lt;br /&gt;
Channels&lt;br /&gt;
First select the check boxes to determine the channels which are acquired during data acquisition&lt;br /&gt;
Part of these channels can be further selected to be displayed.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The results are displayed in two line graphs.&lt;br /&gt;
The upper one shows the time behaviour. (The vertical scale is always in V)&lt;br /&gt;
The lower one shows the frequency spectrum. (The vertical scale on the left shows the peak to peak value of a pure sine component,&lt;br /&gt;
the right scale the rms amplitude for non correlated signals) &lt;br /&gt;
&lt;br /&gt;
The frequency resolution depends on the number of points and the sampling frequency.&lt;br /&gt;
Important: The current signal and the ADC1 signal are filtered by a first order digital filter, which is controlled by the same CurrentRC Parameter.   &lt;br /&gt;
The contents of the memo field is saved together with the file.&lt;br /&gt;
&lt;br /&gt;
In the lower right the AVRG Value and the Standard Deviation of the timespectra data are shown.&lt;br /&gt;
&lt;br /&gt;
Save&lt;br /&gt;
The data is saved in ASCII Format&lt;br /&gt;
&lt;br /&gt;
FFT logscale: Displays the Spectrum in LogScale&lt;br /&gt;
&lt;br /&gt;
Waterfall: Displays the time dependence of the Spectra in a Waterfall like mode at the bottom of the window&lt;br /&gt;
&lt;br /&gt;
[[file:cliptimespectrum.png]]&lt;br /&gt;
&lt;br /&gt;
== 3d-view ==&lt;br /&gt;
&lt;br /&gt;
This part of the program allows the display of 3d views of selected parts of the images. To start, open the window by clicking the ''3d View'' button. Then click on  &amp;lt;New Data&amp;gt; in the main menue and select a rectangular region on the image displayed in the STMAFM program.  A new form will be opened, where the rendered image is displayed. The sliders in the 3d-view form allow to change the orientation, size, offset and lighting of the 3d object. The 3d image can be displayed in different ways, depending on which check boxes are checked. So the lights can be switched on or off, the 3d image can be shown using lines, hidden lines, or in the normal surface view. Checking the save box will start saving of each images displayed. With this feature a series of BMP images for movies can be created. Checking the ''Box'' box will draw a 3d box with x,y,z axes in the 3dimage.In the light sources field the angle of the light source can be changed. Apart from a directed diffuse light source ambient lighting can be added.&lt;br /&gt;
&lt;br /&gt;
Under the menue item Color the color of the background and of the lines can be changed.&lt;br /&gt;
Morover the image can be copied to the clipboard (in BMP format), to a new window or the data can be exported in PoVRay format. &lt;br /&gt;
(New List means that a new imagedisplaylist is created for the underlying OPENGL rendering program. This usually done automatically)&lt;br /&gt;
&lt;br /&gt;
Selected views can be saved and are saved with the program.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;&amp;quot; widths=&amp;quot;450px&amp;quot; heights=&amp;quot;300px&amp;quot;&amp;gt;&lt;br /&gt;
file:clip3dcontrol.png&lt;br /&gt;
file:clip3dform.png&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Lateral Manipulation ==&lt;br /&gt;
&lt;br /&gt;
To perform a lateral manipulation with the tip one has first to press the Button ''LM'' and then to select the starting and the final position of the manipulation path by selecting these points in the image with the left mouse button. A thin line is drawn on the screen between these points. After the manipulation is completed a separate window opens up where the tip height and current during the manipulation is displayed. By pressing the save button this data set can be saved in a *.LAT File.&lt;br /&gt;
&lt;br /&gt;
Different kinds of manipulation procedures can be performed. They are selected by choosing a certain manipulation mode number in the manipulation parameter field. These different modes are described in the following. The speed of the tip is controlled by the parameters latmandelay and latmanddx, which are used throughout the whole process and not only when the tip is manipulating.&lt;br /&gt;
&lt;br /&gt;
Mode 1: This is the simplest constant current mode manipulation. Starting from the top of the image the tip moves in a straight line to the starting point of the manipulation using the standard feedback parameters used for imaging. Then the feedback parameters are switched to the ones selected in the lateral manipulation parameter set . These are current, voltage and gain of the preamplifier. Then the tip moves using these manipulation parameters to the final position. There the parameters are set back to their original imaging values and the tip moves back to top of the image.&lt;br /&gt;
&lt;br /&gt;
Mode 2: Similar to mode 1, but the tip moves first to the final position, then starts the manipulation to the starting position and goes back to final position. It switches back to imaging parameters and moves to the top of the image.&lt;br /&gt;
&lt;br /&gt;
Mode3: Similar to mode 1: The tip first moves to the starting point. Then it moves to final position and back to the starting position using the normal imaging parameters, but the tip height and current are recorded during these two scans. Then the parameters are switched to the manipulation parameters and the tip moves to the final position. Then the parameters are changed back to the imaging parameters and the tip moves back to the starting position while again recording the tip height and current. Finally the tip moves to the top of the image.&lt;br /&gt;
&lt;br /&gt;
Mode 4: This is a constant height manipulation mode. The tip moves first to the starting position. Then it moves from the starting to the final position and back taking data in normal imaging mode. Then the feedback is switched off and the tip moves from the starting to the final position in constant height mode. The height used is given by the height of the tip when the feedbackloop is switched off plus the additional offset given by latmanccdz. This means that the height depends on the imaging parameters. Then the tip moves back from the final position to the starting position in imaging mode, but taking data again. Finally the tip moves to the top of the image. With the extension factor the manipulation path can be extended at the final position by the factor given by latmanextlextension. The starting point is not affected by the extension factor.&lt;br /&gt;
&lt;br /&gt;
Mode 5: Similar to mode 4. In this mode the extension affects also the starting position. The extension positions are first calculated. The tip moves in imaging mode to extended starting position. Then moves to the final extended position and backward and takes data in imaging mode. Then the tip moves to the starting position, while taking data in imaging mode. Then the tip moves from the starting position to the final position in constant height manipulation mode. Then it moves back to the starting position in imaging mode and takes data. Finally it moves back to the top of the image.&lt;br /&gt;
&lt;br /&gt;
Mode 6: Similar to mode 5. The only difference is that the tip moves from the starting to the final position and backward in constant height mode and not only in the forward direction, as done in mode 5.&lt;br /&gt;
&lt;br /&gt;
Mode 0: This mode is different from the other modes. In mode 0 the tip follows always the mouse position immediately. The height of the tip is displayed on rate meter appearing on the left. By pressing the upper case L key the imaging parameters are switched to the manipulation parameters and back again. (By pressing the upper case S a small 64 pixel * 64 pixel scan is performed.) Clicking with the mouse button will stop the continuous following of the tip. After additional clicking the tip moves to the new mouse position in a straight line and tracks the mouse position again.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
These parameters control the lateral manipulation processes.&lt;br /&gt;
&lt;br /&gt;
Mode&lt;br /&gt;
Select one of several different manipulation modes. There are constant current and constant height modes. For example P0 is the origin of the image. Then the tip moves to P1, the first point selected with the mouse. The tunneling parameters are changed to manipulation parameters and the tip moves from P1 to P2. There the normal tunneling parameters, used for imaging, are selected again and the tip moves to the origin P0.&lt;br /&gt;
&lt;br /&gt;
Voltage[V]&lt;br /&gt;
The tunneling voltage applied during the manipulation phase.&lt;br /&gt;
&lt;br /&gt;
Current[nA]&lt;br /&gt;
The current used during manipulation&lt;br /&gt;
&lt;br /&gt;
Gain preamplifier&lt;br /&gt;
The gain used during manipulation&lt;br /&gt;
&lt;br /&gt;
Manip. Speed[Å/sec]&lt;br /&gt;
The speed of the tip for lateral movements. Used for all movements. Step Size determines the number points measured during a lat. manip. scan.&lt;br /&gt;
&lt;br /&gt;
Extension&lt;br /&gt;
Extension value for manipulation modes 4-6&lt;br /&gt;
&lt;br /&gt;
Const. Height Z-Offset&lt;br /&gt;
In constant height mode the tip sample distance can be varied by this parameters. Positive values [Å} correspond to a closer approach to the surface.&lt;br /&gt;
&lt;br /&gt;
Channels&lt;br /&gt;
Select the channels acquired during data acquisition&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
LatChannelForm&lt;br /&gt;
Press to open a new Form to display the manipulation data.&lt;br /&gt;
&lt;br /&gt;
Lateral Speed [Å/sec]&lt;br /&gt;
Speed at which the tip is moving from the origin to first starting point&lt;br /&gt;
&lt;br /&gt;
LM in old place&lt;br /&gt;
Repeat the LM using the previous coordinates&lt;br /&gt;
&lt;br /&gt;
Load Ext Lat Par&lt;br /&gt;
Load the lateral manipulation cooordinates from an external file.&lt;br /&gt;
&lt;br /&gt;
[[file:cliplatmanip.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The measured data is displayed in separate windows. X and Y scaling can be adjusted by the user. Two independent axis can be displayed. (Press ''2.Axis'')&lt;br /&gt;
''LP'' Low Pass Filter&lt;br /&gt;
''TP'' Makes the Windows transparent to put it on top of another window.&lt;br /&gt;
&lt;br /&gt;
[[file:cliplmanip.png]]&lt;br /&gt;
&lt;br /&gt;
Right click to open the Popupmenu.&lt;br /&gt;
XYDesign, XY Series Edit allows to change the appearance of the Data&lt;br /&gt;
Copyclipboard.. copies the Plot or the Data into the clipboard&lt;br /&gt;
PrintXYGraph prints the XY Plot&lt;br /&gt;
Measure allows measuring the distance between points in the plot&lt;br /&gt;
AutoUpdate: The Plot is updated every second during Data Acquisition. &lt;br /&gt;
Lowpass filters the data (very simple just nearest neighbor average)&lt;br /&gt;
 &lt;br /&gt;
[[file:clipvertmanip_popupmenu1.png]]&lt;br /&gt;
&lt;br /&gt;
== Vertical Manipulation / I/V Spectroscopy ==&lt;br /&gt;
&lt;br /&gt;
Vertical manipulation (spectroscopy) is started by pressing on the ''VM' button and selecting a point in the image by clicking with the left mouse button. The tip uses the lateral speed value to move to the vertical manipulation position. When the manipulation is finished the measured data appears in a separate window and can be saved with the Save button. Different channels can be selected to be recorded. Usually an external Lockin will be connected to ADC1. The internal Lockin supplies the signals dI/dV, d2I/dV2, di_q,d2_q. The form of the voltage and the z-height ramp is controlled by 8 points in time. In the case of the voltage one can define 8 time points and their corresponding voltage value. For example (0,1000), (256,0), (512,2000),(1024,-1000) define a ramp starting with 1000mV at time 0. Then it will be linear interpolated to time 256 with 0 Volt. Then it goes up again to 2000mV at time 512 and finally reaches -1000mV at time 1024. The time values correspond to the number of points taken. In this case these are 1024 points. A maximum of 100000 points is possible. The z-height values already include the gain of the z-amplifier. This means, that changing the HV gain will not change the z-height ramp, because this will be automatically corrected. Vertspecback = 1 will apply the ramp in forward and backward direction. Vertspecback=n will apply the ramp in forward and backward direction n-times (n&amp;gt;=1). The shape of the ramps is shown in the lower graph in the vertical manipulation window. &lt;br /&gt;
&lt;br /&gt;
Vertical spectroscopy can be done during scanning. Press the VM Button and select a point in the unscanned image area.  &lt;br /&gt;
&lt;br /&gt;
These parameters control the vertical manipulation and spectroscopy&lt;br /&gt;
&lt;br /&gt;
Gain preamplifier&lt;br /&gt;
Gain of the preamplifier during data acquisition&lt;br /&gt;
&lt;br /&gt;
Speclenght[sec]&lt;br /&gt;
Select the recording total time of the spectrum.&lt;br /&gt;
&lt;br /&gt;
Spectrum backward&lt;br /&gt;
0: The Spectrum defined in the V,Z table is taken only once.&lt;br /&gt;
1: The spectrum defined in the V,Z table is taken once in forward and once in backward direction&lt;br /&gt;
&amp;gt;1: Defines how often a forward and backward spectrum is taken&lt;br /&gt;
&lt;br /&gt;
Lateral Speed[Å/sec]&lt;br /&gt;
Speed at which the tip moves to the place where the spectrum will be taken.&lt;br /&gt;
&lt;br /&gt;
Z- Offset&lt;br /&gt;
Defines an additonal offset which is added to the z values in the table&lt;br /&gt;
&lt;br /&gt;
Z-Drift&lt;br /&gt;
Defines an increment which is added to the values in the table to compensate drift effects&lt;br /&gt;
&lt;br /&gt;
Repeat Count&lt;br /&gt;
Defines how many separate spectra are taken and stored.&lt;br /&gt;
&lt;br /&gt;
Spectra/Line&lt;br /&gt;
Defines the number of spectra equally spaced along a line between a start and endpoint,selected by mouse input.&lt;br /&gt;
The first spectrum is taken at the startpoint of the line the last one at the endpoint of the line.  &lt;br /&gt;
&lt;br /&gt;
V,Z table&lt;br /&gt;
4 points can be defined to create a voltage and z table used for vertical manipulation and spectroscopy. The data values are plotted in the graph below. The first Time Value should be set to 1 (not 0, still allowed for compatibility), otherwise the first value might not be displayed.&lt;br /&gt;
(Voltage(green), Z-Position(blue))&lt;br /&gt;
&lt;br /&gt;
Spec_X_Grid&lt;br /&gt;
Spec_Y_Grid&lt;br /&gt;
Determine the spacing of the spectroscopy grid. First spectrum position is (spec_x_grid,spec_y_grid) in pixel coordinates.&lt;br /&gt;
&lt;br /&gt;
SGrid_Channel&lt;br /&gt;
Number of channels recorded during the grid spectroscopy mode&lt;br /&gt;
&lt;br /&gt;
SpecGrid_Delay&lt;br /&gt;
Delay in DSP cycle units added before/after a vertical spectrum is started/finished.&lt;br /&gt;
&lt;br /&gt;
SpecAvrgCount&lt;br /&gt;
Number of Spectra acquired and averaged directly on the DSP board. For Count&amp;gt;1 be aware that the current preamplifier gain for vertical spectroscopy will be set the same to the normal preamplifer gain. Between the spectra the feedback loop will be switched on to readjust the sample tip distance.   &lt;br /&gt;
&lt;br /&gt;
SpecAvrgFBDelay  &lt;br /&gt;
On Time of the Feedback loop in DSP cycle units between spectra in Averaging mode.&lt;br /&gt;
&lt;br /&gt;
Save File&lt;br /&gt;
Save the present Vert. Spektrum&lt;br /&gt;
&lt;br /&gt;
Single_Spectrum&lt;br /&gt;
Take one single spectrum. Select the position with a left mouse button click on the image.&lt;br /&gt;
Same like pressing &amp;lt;VM&amp;gt; button&lt;br /&gt;
&lt;br /&gt;
Spectra along Line&lt;br /&gt;
Take a series of spectra equally spaced a long a line defined by two mouse clicks. &lt;br /&gt;
&lt;br /&gt;
Spec in old Place&lt;br /&gt;
Take a spectrum at the X,Y position of the previous scan.&lt;br /&gt;
&lt;br /&gt;
Multiple Spectra&lt;br /&gt;
Select several spectra taken one after the other. Left Mouse button select another spectrum, right mosue button stop selection and start data acquisition.&lt;br /&gt;
&lt;br /&gt;
MultSpec from File&lt;br /&gt;
Use an external file (Ascii) to define a series of spectra.&lt;br /&gt;
Only 256*256 pixel images allowed. No zoom.  First line contains number of spectra. Each following line contains the x y image coordinates(integer) of each spectrum. &lt;br /&gt;
&lt;br /&gt;
Spectra on Grid&lt;br /&gt;
Spectra taken at each grid position. (Analysis of the Grid data is done in another program)&lt;br /&gt;
&lt;br /&gt;
SaveSpecgrid&lt;br /&gt;
Save the Grid File. Two files are saved. One *.specgrid.dat File with all the parameters and the *.specgrid File with the grid data&lt;br /&gt;
&lt;br /&gt;
VFB_Mode&lt;br /&gt;
Select the VoltageFeedbackMode&lt;br /&gt;
I(V,z): Normal Operation feedback loop is OFF&lt;br /&gt;
z(V): Constant current operation&lt;br /&gt;
&lt;br /&gt;
VFB_Current[nA]&lt;br /&gt;
Current setpoint used in z(V) Mode. FB_Channel has to be current.&lt;br /&gt;
&lt;br /&gt;
Load Vert_Params&lt;br /&gt;
Load only the parameter of a spectrum and not the data&lt;br /&gt;
&lt;br /&gt;
External VZ Data&lt;br /&gt;
If not checked the VZ Data for a spectrum are taken from the VZ-Table parameter.&lt;br /&gt;
If checked the VZData is taken from a different source table, which can be loaded from an external file.&lt;br /&gt;
This allows the user defined design of arbitrary VZ arrays of up to 100000 points. File format see below.  &lt;br /&gt;
&lt;br /&gt;
Filenames:&lt;br /&gt;
First Letter is the machinename, in case you have more than one LTSTM or you want to assign different users.&lt;br /&gt;
Followed by DATE.TIME.VERT. VERT is the standard fileextension.&lt;br /&gt;
In case you take repeated spectra in a point or take spectra along a line an additional &amp;quot;L#Number'.R#Number'.&amp;quot; indicator is added before&lt;br /&gt;
the VERT file extension. L indicates line position and R indicates the numbering in repeat mode.&lt;br /&gt;
&lt;br /&gt;
[[file:clipvertmanp.png]]&lt;br /&gt;
&lt;br /&gt;
The measured data is displayed in separate windows. X and Y scaling can be adjusted by the user. Two independent axis can be displayed. (Press ''2.Axis'')&lt;br /&gt;
''LP'' Low Pass Filter&lt;br /&gt;
''TP'' Makes the Windows transparent to put it on top of another window.&lt;br /&gt;
&lt;br /&gt;
[[file:clipvmanip.png]]&lt;br /&gt;
&lt;br /&gt;
Right click to open the Popupmenu.&lt;br /&gt;
XYDesign, XY Series Edit allows to change the appearance of the Data&lt;br /&gt;
Copyclipboard.. copies the Plot or the Data into the clipboard&lt;br /&gt;
PrintXYGraph prints the XY Plot&lt;br /&gt;
Measure allows measuring the distance between points in the plot&lt;br /&gt;
AutoUpdate: The Plot is updated every second during Data Acquisition. &lt;br /&gt;
Lowpass filters the data (very simple just nearest neighbor average)&lt;br /&gt;
 &lt;br /&gt;
[[file:clipvertmanip_popupmenu1.png]]&lt;br /&gt;
&lt;br /&gt;
== Slider ==&lt;br /&gt;
&lt;br /&gt;
Brightness and Contrast&lt;br /&gt;
Use the slider window to control the brightness and contrast of the image. The slider marked B adjusts the brightness of the image. The slider marked Z controls the contrast. Above both sliders the corresponding height range in (+/-)Angstroem is displayed.So total height difference between black and white for example is two times the displayed value. On the right for multichannel images the channel, which is displayed can be selected. &lt;br /&gt;
&lt;br /&gt;
Biasvoltage&lt;br /&gt;
The polarity of the biasvoltage can be changed by pressing with the mouse on 'V' label, or by pressing the &amp;lt;+&amp;gt;/ &amp;lt;-&amp;gt; keys. &lt;br /&gt;
&lt;br /&gt;
Press the right mouse button on the 'V' label to open a Popupmenu for the biasvoltage. &lt;br /&gt;
Three options exist:&lt;br /&gt;
SetBiasMinvolt:  If selected sets the current biasvoltage as the minimum biasvoltage.&lt;br /&gt;
SetBiasMaxvolt: If selected sets the current biasvoltage as the maximum biasvoltage.&lt;br /&gt;
This feature can be used to avoid tunneling outside a specific bias voltange range. i.e for example to limit the maximum biasvoltage to protect the tip, when using the silder.&lt;br /&gt;
&lt;br /&gt;
ResetBiasMinMax: If selected deletes the Min/Max values again.&lt;br /&gt;
 &lt;br /&gt;
Current&lt;br /&gt;
Press the right mouse button on the 'A' label to open a Popupmenu for the current. &lt;br /&gt;
&lt;br /&gt;
Log: logarithmic scaling of the current slider&lt;br /&gt;
Lin: linear scaling of the current slider&lt;br /&gt;
&lt;br /&gt;
Channels &lt;br /&gt;
Select the displayed channel. For Channel Nr.=  0 all channels are displayed.&lt;br /&gt;
&lt;br /&gt;
Zoom&lt;br /&gt;
Allowed zoom factors are x1, x2, x3, x4.&lt;br /&gt;
&lt;br /&gt;
Tip up/down&lt;br /&gt;
Press this button to fully retract or to approach the tip.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[file:clipslider.png]]&lt;br /&gt;
&lt;br /&gt;
The height of the slider window can be adjusted. This changes the height of the sliders simultaneously.&lt;br /&gt;
&lt;br /&gt;
== FFT Evaluation ==&lt;br /&gt;
&lt;br /&gt;
This part of the software allows use to analyse FFT transforms of the images. (Always crosscheck the results)&lt;br /&gt;
&lt;br /&gt;
[[file:clipfftevaluation.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Load Files ==&lt;br /&gt;
&lt;br /&gt;
Loading Files is done using the &amp;lt;Open *.Dat&amp;gt; menue item.&lt;br /&gt;
&lt;br /&gt;
You can define your own favorite directories in the Windows Places Bar region. (Use for example the TweakUI utility.)&lt;br /&gt;
&lt;br /&gt;
Options:&lt;br /&gt;
&lt;br /&gt;
Full Parameter Load:  Check to load all parameters, not only those relevant for the loaded file type. &lt;br /&gt;
 &lt;br /&gt;
Disable Warning: If checked no warning will be given when files are loaded in data acquisition.                               &lt;br /&gt;
             &lt;br /&gt;
&lt;br /&gt;
[[file:cliploadfile.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Open allows to select in running program or alternatively in a newly opened analysis program.&lt;br /&gt;
&lt;br /&gt;
[[file:cliploadfile2.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
== AFM ==&lt;br /&gt;
&lt;br /&gt;
In the following we discuss the operation of the internal PLL system.&lt;br /&gt;
The internal PLL can operate up to 32kHz ( based on 16 samples per period at 512kHz max sample rate).&lt;br /&gt;
This usualy covers operation of standard quartz tuning fork sensors as the qPlus sensor.&lt;br /&gt;
(For higher frequencies optionally the Zurich Instruments PLL can be used externally.)&lt;br /&gt;
The input signal from the Preamplifier is connected to the ADC3 input of ADDA Board 2, while DAC5 of the same ADDA Board supplies the excitation signal. &lt;br /&gt;
&lt;br /&gt;
PLL Centerfreq: determines the center frequency of the PLL. (Change either by typing the number directly or increase/decrease by using the up/down/ page up/page down and both in combination with Shift key)&lt;br /&gt;
PLL-Ampl[nm]: Input the Set value of the Amplitude in nm when the Amplitude controller is on&lt;br /&gt;
PLL-Exc[V]: Input the Excitation value in Volt&lt;br /&gt;
PLL-Phase: Phase Shift of Exciation Signal. Has to be optimized const stable PLL operation&lt;br /&gt;
PLL F Range[+/-Hz]: PLL frequency tracking range. max. allowed deviation from center frequency&lt;br /&gt;
&lt;br /&gt;
PLL On: If selected operation of the PLL is switched on&lt;br /&gt;
Ampl Control: If selected Amplitude Control is switched on&lt;br /&gt;
Active Damping: If selected the Amplitude control can electronically damp the cantilever vibration&lt;br /&gt;
Ref Signal f: If selected DAC2 of the PLL board outputs a reference of the PLL frequency&lt;br /&gt;
Ref Signal 2f: If selected DAC2 of the PLL board outputs a reference of the 2nd harmonic of the PLL frequency&lt;br /&gt;
&lt;br /&gt;
P[Hz/Deg]: Proportional value of the PLL frequency controller&lt;br /&gt;
Int[Hz/deg/s]: Integrator value of the PLL frequency controller&lt;br /&gt;
LP Filter[Hz]: Value of the 4th order loop filter&lt;br /&gt;
P Ampl[V/nm]: Proportional part of the Ampl controller&lt;br /&gt;
LP Amp filter[Hz]: Loop filter of the Amp controller&lt;br /&gt;
df Post Filter[Hz]: Filters the PLL freq data finally before it is output to the STM feedback controller&lt;br /&gt;
&lt;br /&gt;
Sensor Cal[V/nm]: Calibrate the Preamp output in nm units&lt;br /&gt;
SRS Gain: Optionally include the SRS Preamp gain&lt;br /&gt;
&lt;br /&gt;
PLL FreqScan, PLL Phase Scan: Start a frequency or Phase Scan&lt;br /&gt;
Filter PLL_Scan: Filter the Scan Data. (simple 1.order lowpass). can be repeated to allow a beeter calculation of the Q factor etc.&lt;br /&gt;
Show Phase: Displays the phase. Has to be selected to calculate the Q Factor.&lt;br /&gt;
&lt;br /&gt;
Results: Automatic determination of CenterFreq and Q Factor&lt;br /&gt;
&lt;br /&gt;
ScancenterFreq, FreqSpan, ScanTime, ScanPoints: determines the properties of the Frequency Scan or PLL Phase Scan&lt;br /&gt;
&lt;br /&gt;
[[file:Resonance.png]]&lt;br /&gt;
&lt;br /&gt;
[[Category:stmafm_manual]]&lt;br /&gt;
&lt;br /&gt;
== 20 steps to successful AFM operation ==&lt;br /&gt;
&lt;br /&gt;
For a first setup of a functioning PLL useful for scanning in CC, CH or CF mode please refer to the following graphical guide.&lt;br /&gt;
&lt;br /&gt;
[[File:Folie2.PNG|800px]]&lt;br /&gt;
&lt;br /&gt;
[[File:Folie3.PNG|800px]]&lt;br /&gt;
&lt;br /&gt;
[[File:Folie4.PNG|800px]]&lt;br /&gt;
&lt;br /&gt;
[[File:Folie5.PNG|800px]]&lt;br /&gt;
&lt;br /&gt;
In order to start scanning please perform the following steps:&lt;br /&gt;
a) For constant current mode (CC, dynamic STM)&lt;br /&gt;
14. Approach the tip and observe the frequency shift changing from Δf=0 Hz to a finite negative value.&lt;br /&gt;
15. Select the channels ''dF'', ''Amplitude'' and ''Damping'' in the Parameter window in order to measure these signals.&lt;br /&gt;
16. Set the current setpoint to a finite value, i.e. e.g., 10 or 100 pA.&lt;br /&gt;
17. Start scanning in CC mode as you would do in STM mode.&lt;br /&gt;
&lt;br /&gt;
b) For constant force mode (CF, nc-AFM)&lt;br /&gt;
14. Change the feedback mode to ''LinAbs'' and the feedback channel to ''dF''.&lt;br /&gt;
15. Change the integrator value to e.g. -0.0003 or something in the same order of magnitude.&lt;br /&gt;
16. Select the channels ''dF'', ''Amplitude'' and ''Damping'' in the Parameter window.&lt;br /&gt;
17. Set the constant frequency setpoint to a value close to but a little bit smaller than the finite Δf value from above.&lt;br /&gt;
18. Start scanning in CF mode as you would do in STM mode.&lt;br /&gt;
19. Adjust the scanning speed and the integrator together with the amplitude and phase control of the tuning fork.&lt;br /&gt;
20. Observe the current signal and increase the setpoint in order to go closer to the surface.&lt;/div&gt;</summary>
		<author><name>Ltspm</name></author>	</entry>

	<entry>
		<id>http://spm-wiki.createc.de/index.php?title=Forms</id>
		<title>Forms</title>
		<link rel="alternate" type="text/html" href="http://spm-wiki.createc.de/index.php?title=Forms"/>
				<updated>2016-12-21T09:29:44Z</updated>
		
		<summary type="html">&lt;p&gt;Ltspm: /* Lateral Manipulation */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== LineScan ==&lt;br /&gt;
&lt;br /&gt;
Press the ''Lin'' Button to take a line scan of the image. First select two points of the image by pressing the left mouse button. The linescan&lt;br /&gt;
is displayed in the upper linegraph of the linescanform-window. To perform measurements on the linescan press the &amp;lt;Measure&amp;gt; button. &lt;br /&gt;
&lt;br /&gt;
Use the left mouse button to select a new point. With the right mouse button you can switch between points. Pressing the Shift button allows to move a whole line. Pressing the right mouse button together with the Shift button will switch to the prependicular averaging mode.&lt;br /&gt;
&lt;br /&gt;
Important: If the linescan form is opened through the menue selection first, all linescan data will be displayed always in the this particular window. Otherwise pressing the LIN button will always open a new window.&lt;br /&gt;
&lt;br /&gt;
Autosize&lt;br /&gt;
Selects automatic scaling of the linegraph&lt;br /&gt;
&lt;br /&gt;
Autolinebacksub&lt;br /&gt;
Selects automatic subtraction of linear background&lt;br /&gt;
&lt;br /&gt;
Line Display Trackbar&lt;br /&gt;
Move to show a line scan of a particular image line. A FFT of the selected line is shown in the lower line graph.(The number of points/line has to be a power of 2)&lt;br /&gt;
&lt;br /&gt;
Popup menu of upper linegraph&lt;br /&gt;
xydesign: Select to adjust the appearance of the line graph&lt;br /&gt;
CopyClipboardData: The line scan data are copied to the ClipBoard&lt;br /&gt;
CopyClipboardXYGraph: The line scan graph is copied to the ClipBoard&lt;br /&gt;
Printxygraph: The line scan graph is send to the printer&lt;br /&gt;
Measure: Do measurements of the plot data.&lt;br /&gt;
Redrawline: The line in the image is redrawn&lt;br /&gt;
&lt;br /&gt;
Popup menu of lower linegraph&lt;br /&gt;
has the same items as the upper popup menu and one additional entry:&lt;br /&gt;
Show Frequency: Gives the FFT in frequency [Hz] instead of inverse distance [1/Å] (updated when the Line Display Trackbar is moved)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Channels&lt;br /&gt;
Select the channels which are displayed&lt;br /&gt;
&lt;br /&gt;
[[file:cliplinescan.png]]&lt;br /&gt;
&lt;br /&gt;
[[file:cliplinescanpopupmenu.png]]&lt;br /&gt;
&lt;br /&gt;
== Rampcontroller ==&lt;br /&gt;
&lt;br /&gt;
Click on the ''Ramp'' button. This opens the 'Rampcontroller'-window with control elements necessary to perform the coarse approach. The 6 buttons with arrows in the top of the form correspond to moving the tip in respect to the sample surface. Moving in x/y direction can also be done using the x/y cursor keys on the keyboard. The page up and page down keys are used correspondingly for rotation up and down. Selecting the burst mode in x/y or rotation will result in a series of steps corresponding to the number of burst steps displayed in the ramp parameter list. When the Crash Protection is switched on, the program checks before each step, whether it can detect a tunneling current. If this is the case it will cancel the step. Usually the crash protection should be switched on, but in cases where the tip is already crashed, the protection has to be switched off. The program issues some warnings when the ramp windows opens to inform the user to do necessary changes for a successful ramping. These are: First retract the tip, reset the x- and y-offset in the STM-program, select the appropriate gain (1-10, depending on the temperature) in the x- and y- channel of the HV-amplifier and set the external offset voltages to zero.&lt;br /&gt;
The usual coarse approach is done by controlling the approach with an optical microscope. When the tip is  close enough, the automatic tip approach can be switched on, by pressing the ''Approach'' button. It will start a combination of single coarse approach rotation steps combined with tip approach testing until the tip can reach the sample. ''Approach'' stops when a tunneling current is detected. The value of this threshold current is set by the current slider. Important: When the approach stops, the tip is automatically retracted, by setting the current to zero. Before leaving the coarse approach by pressing the ''Quit'' button, you have to select the mode for scanning. When the ''Main/Coarse'' button displays 'Coarse' mode, then the outer 3 piezos are used for scanning, otherwise the center piezo is used. In the normal operation of the microscope the 'Coarse' mode should be selected. Select the required set point current to see if the approach was successful. Now the tip should be retracted manually by using the external HV-amplifier z-offset voltage to go out of tunneling. Select the required gains and re-approach the tip again.&lt;br /&gt;
&lt;br /&gt;
See also: Approach Tips&lt;br /&gt;
&lt;br /&gt;
The Coarse Approach operation is controlled by the following parameters:&lt;br /&gt;
&lt;br /&gt;
Puls Height[V]&lt;br /&gt;
Input the peak to peak height (in V) of the sawtooth pulse used for moving the inertial slider. Two different values are used for the lateral XY motion and the rotational motion.&lt;br /&gt;
&lt;br /&gt;
Puls-Duration[sec]&lt;br /&gt;
Input the duration of a single sawtooth pulse in seconds. &lt;br /&gt;
&lt;br /&gt;
Burst-Count&lt;br /&gt;
Determines the number of sawtooth pulses applied when operating the coarse control in burst mode.&lt;br /&gt;
&lt;br /&gt;
Approach Period[sec]&lt;br /&gt;
Determines the time for a single approach cycle including approach and retraction of the tip to find the sample surface.&lt;br /&gt;
&lt;br /&gt;
Approach Burst Count&lt;br /&gt;
This is the number of coarse pulses applied between two approach cycles.&lt;br /&gt;
&lt;br /&gt;
Approach Retry Count&lt;br /&gt;
This is the number of retry operations done before the approach is stopped.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[file:cliprampcontrollerCreatec.png]]&lt;br /&gt;
&lt;br /&gt;
== Grid ==&lt;br /&gt;
&lt;br /&gt;
The form 'Grid-Image- Transformation' contains several functions for different kinds of image transformations. A suitable combination of the procedures below will allow transformations useful for drift correction, superstructure analysis, extraction of registry information. To open the form press on the grid button in the STMAFM form. With the 6 slider controls a grid can be overlayed on the image. The lateral position, the angles of the grid and the distance between the grid lines can be adjusted. An alternative way to input the grid is pressing the ''Mouse'' button and to mark 3 points (the first one is the center, the other two determine the direction of the two lines). Pressing the ''Rotation'' button will rotate the image in such a way that one set of the grid lines (X-Axis) is parallel to the horizontal direction. Pressing the ''Zoom'' button will zoom the image by the value set in the edit control positioned next to the right of the button. The image is zoomed around the center point of the grid. By pressing on the ''X..,Y..'' button the actual center position of the grid is stored and displayed on the button. Selecting a new center position with the mouse, as described above, and pressing the ''Move grid to Center'' button will move the new defined center to the stored center position. The ''Transform'' button will transform the image according to the 2 Parameters in the edit controls below. The first is the new angle between the lines in the image and the second is the new ratio the grid line distances. Selecting the ''HexGrid'' check box will draw a grid suitable for hexagonal unit cells. If draw inverted is selected the grid is drawn by a inversion process. Otherwise you can select with &amp;lt;Grid Color&amp;gt; the line color of the grid.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;&amp;quot; widths=&amp;quot;400px&amp;quot; heights=&amp;quot;400px&amp;quot;&amp;gt;&lt;br /&gt;
file:clipgrid.png&lt;br /&gt;
file:clipgridimage.png&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== TimeSpectrum ==&lt;br /&gt;
&lt;br /&gt;
It is very often useful to take a time record of the A/D input channels, without scanning or changing the biasvoltage. This is for example a convenient way to characterize the noise performance of the STM. To take a time record just press the ''Start'' Button on the Time-Spectrum window or press the ''TS'' button on the main window. Five channels are recorded simultaneously. The A/D channels 0 and 3 (ADC0 is called current I) and the topography signal output from the feedback loop, called Z. The displayed channel is selected by the corresponding channel button. Three parameters control the data acquisition:&lt;br /&gt;
&lt;br /&gt;
Spec_Points&lt;br /&gt;
The number of data points taken for a single spectrum. This must be a power of 2, to allow FFT of the data.&lt;br /&gt;
(Maximum is 4096)&lt;br /&gt;
&lt;br /&gt;
Spec_Freq[Hz]&lt;br /&gt;
The sampling frequency. (Limited by the DSP_Clock value)&lt;br /&gt;
&lt;br /&gt;
Spec_Avrg_Count&lt;br /&gt;
The number of spectra averaged. Averaging is done only for the spectrum, i.e. the FFT data.&lt;br /&gt;
&lt;br /&gt;
Channels&lt;br /&gt;
First select the check boxes to determine the channels which are acquired during data acquisition&lt;br /&gt;
Part of these channels can be further selected to be displayed.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The results are displayed in two line graphs.&lt;br /&gt;
The upper one shows the time behaviour. (The vertical scale is always in V)&lt;br /&gt;
The lower one shows the frequency spectrum. (The vertical scale on the left shows the peak to peak value of a pure sine component,&lt;br /&gt;
the right scale the rms amplitude for non correlated signals) &lt;br /&gt;
&lt;br /&gt;
The frequency resolution depends on the number of points and the sampling frequency.&lt;br /&gt;
Important: The current signal and the ADC1 signal are filtered by a first order digital filter, which is controlled by the same CurrentRC Parameter.   &lt;br /&gt;
The contents of the memo field is saved together with the file.&lt;br /&gt;
&lt;br /&gt;
In the lower right the AVRG Value and the Standard Deviation of the timespectra data are shown.&lt;br /&gt;
&lt;br /&gt;
Save&lt;br /&gt;
The data is saved in ASCII Format&lt;br /&gt;
&lt;br /&gt;
FFT logscale: Displays the Spectrum in LogScale&lt;br /&gt;
&lt;br /&gt;
Waterfall: Displays the time dependence of the Spectra in a Waterfall like mode at the bottom of the window&lt;br /&gt;
&lt;br /&gt;
[[file:cliptimespectrum.png]]&lt;br /&gt;
&lt;br /&gt;
== 3d-view ==&lt;br /&gt;
&lt;br /&gt;
This part of the program allows the display of 3d views of selected parts of the images. To start, open the window by clicking the ''3d View'' button. Then click on  &amp;lt;New Data&amp;gt; in the main menue and select a rectangular region on the image displayed in the STMAFM program.  A new form will be opened, where the rendered image is displayed. The sliders in the 3d-view form allow to change the orientation, size, offset and lighting of the 3d object. The 3d image can be displayed in different ways, depending on which check boxes are checked. So the lights can be switched on or off, the 3d image can be shown using lines, hidden lines, or in the normal surface view. Checking the save box will start saving of each images displayed. With this feature a series of BMP images for movies can be created. Checking the ''Box'' box will draw a 3d box with x,y,z axes in the 3dimage.In the light sources field the angle of the light source can be changed. Apart from a directed diffuse light source ambient lighting can be added.&lt;br /&gt;
&lt;br /&gt;
Under the menue item Color the color of the background and of the lines can be changed.&lt;br /&gt;
Morover the image can be copied to the clipboard (in BMP format), to a new window or the data can be exported in PoVRay format. &lt;br /&gt;
(New List means that a new imagedisplaylist is created for the underlying OPENGL rendering program. This usually done automatically)&lt;br /&gt;
&lt;br /&gt;
Selected views can be saved and are saved with the program.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;&amp;quot; widths=&amp;quot;450px&amp;quot; heights=&amp;quot;300px&amp;quot;&amp;gt;&lt;br /&gt;
file:clip3dcontrol.png&lt;br /&gt;
file:clip3dform.png&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Lateral Manipulation ==&lt;br /&gt;
&lt;br /&gt;
To perform a lateral manipulation with the tip one has first to press the Button ''LM'' and then to select the starting and the final position of the manipulation path by selecting these points in the image with the left mouse button. A thin line is drawn on the screen between these points. After the manipulation is completed a separate window opens up where the tip height and current during the manipulation is displayed. By pressing the save button this data set can be saved in a *.LAT File.&lt;br /&gt;
&lt;br /&gt;
Different kinds of manipulation procedures can be performed. They are selected by choosing a certain manipulation mode number in the manipulation parameter field. These different modes are described in the following. The speed of the tip is controlled by the parameters latmandelay and latmanddx, which are used throughout the whole process and not only when the tip is manipulating.&lt;br /&gt;
&lt;br /&gt;
Mode 1: This is the simplest constant current mode manipulation. Starting from the top of the image the tip moves in a straight line to the starting point of the manipulation using the standard feedback parameters used for imaging. Then the feedback parameters are switched to the ones selected in the lateral manipulation parameter set . These are current, voltage and gain of the preamplifier. Then the tip moves using these manipulation parameters to the final position. There the parameters are set back to their original imaging values and the tip moves back to top of the image.&lt;br /&gt;
&lt;br /&gt;
Mode 2: Similar to mode 1, but the tip moves first to the final position, then starts the manipulation to the starting position and goes back to final position. It switches back to imaging parameters and moves to the top of the image.&lt;br /&gt;
&lt;br /&gt;
Mode3: Similar to mode 1: The tip first moves to the starting point. Then it moves to final position and back to the starting position using the normal imaging parameters, but the tip height and current are recorded during these two scans. Then the parameters are switched to the manipulation parameters and the tip moves to the final position. Then the parameters are changed back to the imaging parameters and the tip moves back to the starting position while again recording the tip height and current. Finally the tip moves to the top of the image.&lt;br /&gt;
&lt;br /&gt;
Mode 4: This is a constant height manipulation mode. The tip moves first to the starting position. Then it moves from the starting to the final position and back taking data in normal imaging mode. Then the feedback is switched off and the tip moves from the starting to the final position in constant height mode. The height used is given by the height of the tip when the feedbackloop is switched off plus the additional offset given by latmanccdz. This means that the height depends on the imaging parameters. Then the tip moves back from the final position to the starting position in imaging mode, but taking data again. Finally the tip moves to the top of the image. With the extension factor the manipulation path can be extended at the final position by the factor given by latmanextlextension. The starting point is not affected by the extension factor.&lt;br /&gt;
&lt;br /&gt;
Mode 5: Similar to mode 4. In this mode the extension affects also the starting position. The extension positions are first calculated. The tip moves in imaging mode to extended starting position. Then moves to the final extended position and backward and takes data in imaging mode. Then the tip moves to the starting position, while taking data in imaging mode. Then the tip moves from the starting position to the final position in constant height manipulation mode. Then it moves back to the starting position in imaging mode and takes data. Finally it moves back to the top of the image.&lt;br /&gt;
&lt;br /&gt;
Mode 6: Similar to mode 5. The only difference is that the tip moves from the starting to the final position and backward in constant height mode and not only in the forward direction, as done in mode 5.&lt;br /&gt;
&lt;br /&gt;
Mode 0: This mode is different from the other modes. In mode 0 the tip follows always the mouse position immediately. The height of the tip is displayed on rate meter appearing on the left. By pressing the upper case L key the imaging parameters are switched to the manipulation parameters and back again. (By pressing the upper case S a small 64 pixel * 64 pixel scan is performed.) Clicking with the mouse button will stop the continuous following of the tip. After additional clicking the tip moves to the new mouse position in a straight line and tracks the mouse position again.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
These parameters control the lateral manipulation processes.&lt;br /&gt;
&lt;br /&gt;
Mode&lt;br /&gt;
Select one of several different manipulation modes. There are constant current and constant height modes. For example P0 is the origin of the image. Then the tip moves to P1, the first point selected with the mouse. The tunneling parameters are changed to manipulation parameters and the tip moves from P1 to P2. There the normal tunneling parameters, used for imaging, are selected again and the tip moves to the origin P0.&lt;br /&gt;
&lt;br /&gt;
Voltage[V]&lt;br /&gt;
The tunneling voltage applied during the manipulation phase.&lt;br /&gt;
&lt;br /&gt;
Current[nA]&lt;br /&gt;
The current used during manipulation&lt;br /&gt;
&lt;br /&gt;
Gain preamplifier&lt;br /&gt;
The gain used during manipulation&lt;br /&gt;
&lt;br /&gt;
Manip. Speed[Å/sec]&lt;br /&gt;
The speed of the tip for lateral movements. Used for all movements. Step Size determines the number points measured during a lat. manip. scan.&lt;br /&gt;
&lt;br /&gt;
Extension&lt;br /&gt;
Extension value for manipulation modes 4-6&lt;br /&gt;
&lt;br /&gt;
Const. Height Z-Offset&lt;br /&gt;
In constant height mode the tip sample distance can be varied by this parameters. Positive values [Å} correspond to a closer approach to the surface.&lt;br /&gt;
&lt;br /&gt;
Channels&lt;br /&gt;
Select the channels acquired during data acquisition&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
LatChannelForm&lt;br /&gt;
Press to open a new Form to display the manipulation data.&lt;br /&gt;
&lt;br /&gt;
Lateral Speed [Å/sec]&lt;br /&gt;
Speed at which the tip is moving from the origin to first starting point&lt;br /&gt;
&lt;br /&gt;
LM in old place&lt;br /&gt;
Repeat the LM using the previous coordinates&lt;br /&gt;
&lt;br /&gt;
Load Ext Lat Par&lt;br /&gt;
Load the lateral manipulation cooordinates from an external file.&lt;br /&gt;
&lt;br /&gt;
[[file:cliplatmanip.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The measured data is displayed in separate windows. X and Y scaling can be adjusted by the user. Two independent axis can be displayed. (Press ''2.Axis'')&lt;br /&gt;
''LP'' Low Pass Filter&lt;br /&gt;
''TP'' Makes the Windows transparent to put it on top of another window.&lt;br /&gt;
&lt;br /&gt;
[[file:cliplmanip.png]]&lt;br /&gt;
&lt;br /&gt;
Right click to open the Popupmenu.&lt;br /&gt;
XYDesign, XY Series Edit allows to change the appearance of the Data&lt;br /&gt;
Copyclipboard.. copies the Plot or the Data into the clipboard&lt;br /&gt;
PrintXYGraph prints the XY Plot&lt;br /&gt;
Measure allows measuring the distance between points in the plot&lt;br /&gt;
AutoUpdate: The Plot is updated every second during Data Acquisition. &lt;br /&gt;
Lowpass filters the data (very simple just nearest neighbor average)&lt;br /&gt;
 &lt;br /&gt;
[[file:clipvertmanip_popupmenu1.png]]&lt;br /&gt;
&lt;br /&gt;
== Vertical Manipulation / I/V Spectroscopy ==&lt;br /&gt;
&lt;br /&gt;
Vertical manipulation (spectroscopy) is started by pressing on the &amp;lt;VM&amp;gt; button and selecting a point in the image by clicking with the left mouse button. The tip uses the lateral speed value to move to the vertical manipulation position. When the manipulation is finished the measured data appears in a separate window and can be saved with the Save button. Different channels can be selected to be recorded. Usually an external Lockin will be connected to ADC1. The internal Lockin supplies the signals dI/dV, d2I/dV2, di_q,d2_q. The form of the voltage and the z-height ramp is controlled by 8 points in time. In the case of the voltage one can define 8 time points and their corresponding voltage value. For example (0,1000), (256,0), (512,2000),(1024,-1000) define a ramp starting with 1000mV at time 0. Then it will be linear interpolated to time 256 with 0 Volt. Then it goes up again to 2000mV at time 512 and finally reaches -1000mV at time 1024. The time values correspond to the number of points taken. In this case these are 1024 points. A maximum of 100000 points is possible. The z-height values already include the gain of the z-amplifier. This means, that changing the HV gain will not change the z-height ramp, because this will be automatically corrected. Vertspecback = 1 will apply the ramp in forward and backward direction. Vertspecback=n will apply the ramp in forward and backward direction n-times (n&amp;gt;=1). The shape of the ramps is shown in the lower graph in the vertical manipulation window. &lt;br /&gt;
&lt;br /&gt;
Vertical spectroscopy can be done during scanning. Press the VM Button and select a point in the unscanned image area.  &lt;br /&gt;
&lt;br /&gt;
These parameters control the vertical manipulation and spectroscopy&lt;br /&gt;
&lt;br /&gt;
Gain preamplifier&lt;br /&gt;
Gain of the preamplifier during data acquisition&lt;br /&gt;
&lt;br /&gt;
Speclenght[sec]&lt;br /&gt;
Select the recording total time of the spectrum.&lt;br /&gt;
&lt;br /&gt;
Spectrum backward&lt;br /&gt;
0: The Spectrum defined in the V,Z table is taken only once.&lt;br /&gt;
1: The spectrum defined in the V,Z table is taken once in forward and once in backward direction&lt;br /&gt;
&amp;gt;1: Defines how often a forward and backward spectrum is taken&lt;br /&gt;
&lt;br /&gt;
Lateral Speed[A/sec]&lt;br /&gt;
Speed at which the tip moves to the place where the spectrum will be taken.&lt;br /&gt;
&lt;br /&gt;
Z- Offset&lt;br /&gt;
Defines an additonal offset which is added to the z values in the table&lt;br /&gt;
&lt;br /&gt;
Z-Drift&lt;br /&gt;
Defines an increment which is added to the values in the table to compensate drift effects&lt;br /&gt;
&lt;br /&gt;
Repeat Count&lt;br /&gt;
Defines how many separate spectra are taken and stored.&lt;br /&gt;
&lt;br /&gt;
Spectra/Line&lt;br /&gt;
Defines the number of spectra equally spaced along a line between a start and endpoint,selected by mouse input.&lt;br /&gt;
The first spectrum is taken at the startpoint of the line the last one at the endpoint of the line.  &lt;br /&gt;
&lt;br /&gt;
V,Z table&lt;br /&gt;
4 points can be defined to create a voltage and z table used for vertical manipulation and spectroscopy. The data values are plotted in the graph below. The first Time Value should be set to 1 (not 0, still allowed for compatibility), otherwise the first value might not be displayed.&lt;br /&gt;
(Voltage(green), Z-Position(blue))&lt;br /&gt;
&lt;br /&gt;
Spec_X_Grid&lt;br /&gt;
Spec_Y_Grid&lt;br /&gt;
Determine the spacing of the spectroscopy grid. First spectrum position is (spec_x_grid,spec_y_grid) in pixel coordinates.&lt;br /&gt;
&lt;br /&gt;
SGrid_Channel&lt;br /&gt;
Number of channels recorded during the grid spectroscopy mode&lt;br /&gt;
&lt;br /&gt;
SpecGrid_Delay&lt;br /&gt;
Delay in DSP cycle units added before/after a vertical spectrum is started/finished.&lt;br /&gt;
&lt;br /&gt;
SpecAvrgCount&lt;br /&gt;
Number of Spectra acquired and averaged directly on the DSP board. For Count&amp;gt;1 be aware that the current preamplifier gain for vertical spectroscopy will be set the same to the normal preamplifer gain. Between the spectra the feedback loop will be switched on to readjust the sample tip distance.   &lt;br /&gt;
&lt;br /&gt;
SpecAvrgFBDelay  &lt;br /&gt;
On Time of the Feedback loop in DSP cycle units between spectra in Averaging mode.&lt;br /&gt;
&lt;br /&gt;
Save File&lt;br /&gt;
Save the present Vert. Spektrum&lt;br /&gt;
&lt;br /&gt;
Single_Spectrum&lt;br /&gt;
Take one single spectrum. Select the position with a left mouse button click on the image.&lt;br /&gt;
Same like pressing &amp;lt;VM&amp;gt; button&lt;br /&gt;
&lt;br /&gt;
Spectra along Line&lt;br /&gt;
Take a series of spectra equally spaced a long a line defined by two mouse clicks. &lt;br /&gt;
&lt;br /&gt;
Spec in old Place&lt;br /&gt;
Take a spectrum at the X,Y position of the previous scan.&lt;br /&gt;
&lt;br /&gt;
Multiple Spectra&lt;br /&gt;
Select several spectra taken one after the other. Left Mouse button select another spectrum, right mosue button stop selection and start data acquisition.&lt;br /&gt;
&lt;br /&gt;
MultSpec from File&lt;br /&gt;
Use an external file (Ascii) to define a series of spectra.&lt;br /&gt;
Only 256*256 pixel images allowed. No zoom.  First line contains number of spectra. Each following line contains the x y image coordinates(integer) of each spectrum. &lt;br /&gt;
&lt;br /&gt;
Spectra on Grid&lt;br /&gt;
Spectra taken at each grid position. (Analysis of the Grid data is done in another program)&lt;br /&gt;
&lt;br /&gt;
SaveSpecgrid&lt;br /&gt;
Save the Grid File. Two files are saved. One *.specgrid.dat File with all the parameters and the *.specgrid File with the grid data&lt;br /&gt;
&lt;br /&gt;
VFB_Mode&lt;br /&gt;
Select the VoltageFeedbackMode&lt;br /&gt;
I(V,z): Normal Operation feedback loop is OFF&lt;br /&gt;
z(V): Constant current operation&lt;br /&gt;
&lt;br /&gt;
VFB_Current[nA]&lt;br /&gt;
Current setpoint used in z(V) Mode. FB_Channel has to be current.&lt;br /&gt;
&lt;br /&gt;
Load Vert_Params&lt;br /&gt;
Load only the parameter of a spectrum and not the data&lt;br /&gt;
&lt;br /&gt;
External VZ Data&lt;br /&gt;
If not checked the VZ Data for a spectrum are taken from the VZ-Table parameter.&lt;br /&gt;
If checked the VZData is taken from a different source table, which can be loaded from an external file.&lt;br /&gt;
This allows the user defined design of arbitrary VZ arrays of up to 100000 points. File format see below.  &lt;br /&gt;
&lt;br /&gt;
Filenames:&lt;br /&gt;
First Letter is the machinename, in case you have more than one LTSTM or you want to assign different users.&lt;br /&gt;
Followed by DATE.TIME.VERT. VERT is the standard fileextension.&lt;br /&gt;
In case you take repeated spectra in a point or take spectra along a line an additional &amp;quot;L&amp;lt;Number&amp;gt;.R&amp;lt;Number&amp;gt;.&amp;quot; indicator is added before&lt;br /&gt;
the VERT file extension. L indicates line position and R indicates the numbering in repeat mode.&lt;br /&gt;
&lt;br /&gt;
[[file:clipvertmanp.png]]&lt;br /&gt;
&lt;br /&gt;
The measured data is displayed in separate windows. X and Y scaling can be adjusted by the user. Two independent axis can be displayed. (Press &amp;lt;2.Axis&amp;gt;)&lt;br /&gt;
&amp;lt;LP&amp;gt; Low Pass Filter&lt;br /&gt;
&amp;lt;TP&amp;gt; Makes the Windows transparent to put it on top of another window.&lt;br /&gt;
&lt;br /&gt;
[[file:clipvmanip.png]]&lt;br /&gt;
&lt;br /&gt;
Right click to open the Popupmenu.&lt;br /&gt;
XYDesign, XY Series Edit allows to change the appearance of the Data&lt;br /&gt;
Copyclipboard.. copies the Plot or the Data into the clipboard&lt;br /&gt;
PrintXYGraph prints the XY Plot&lt;br /&gt;
Measure allows measuring the distance between points in the plot&lt;br /&gt;
AutoUpdate: The Plot is updated every second during Data Acquisition. &lt;br /&gt;
Lowpass filters the data (very simple just nearest neighbor average)&lt;br /&gt;
 &lt;br /&gt;
[[file:clipvertmanip_popupmenu1.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Slider ==&lt;br /&gt;
&lt;br /&gt;
Brightness and Contrast&lt;br /&gt;
Use the slider window to control the brightness and contrast of the image. The slider marked B adjusts the brightness of the image. The slider marked Z controls the contrast. Above both sliders the corresponding height range in (+/-)Angstroem is displayed.So total height difference between black and white for example is two times the displayed value. On the right for multichannel images the channel, which is displayed can be selected. &lt;br /&gt;
&lt;br /&gt;
Biasvoltage&lt;br /&gt;
The polarity of the biasvoltage can be changed by pressing with the mouse on 'V' label, or by pressing the &amp;lt;+&amp;gt;/ &amp;lt;-&amp;gt; keys. &lt;br /&gt;
&lt;br /&gt;
Press the right mouse button on the 'V' label to open a Popupmenu for the biasvoltage. &lt;br /&gt;
Three options exist:&lt;br /&gt;
SetBiasMinvolt:  If selected sets the current biasvoltage as the minimum biasvoltage.&lt;br /&gt;
SetBiasMaxvolt: If selected sets the current biasvoltage as the maximum biasvoltage.&lt;br /&gt;
This feature can be used to avoid tunneling outside a specific bias voltange range. i.e for example to limit the maximum biasvoltage to protect the tip, when using the silder.&lt;br /&gt;
&lt;br /&gt;
ResetBiasMinMax: If selected deletes the Min/Max values again.&lt;br /&gt;
 &lt;br /&gt;
Current&lt;br /&gt;
Press the right mouse button on the 'A' label to open a Popupmenu for the current. &lt;br /&gt;
&lt;br /&gt;
Log: logarithmic scaling of the current slider&lt;br /&gt;
Lin: linear scaling of the current slider&lt;br /&gt;
&lt;br /&gt;
Channels &lt;br /&gt;
Select the displayed channel. For Channel Nr.=  0 all channels are displayed.&lt;br /&gt;
&lt;br /&gt;
Zoom&lt;br /&gt;
Allowed zoom factors are x1, x2, x3, x4.&lt;br /&gt;
&lt;br /&gt;
Tip up/down&lt;br /&gt;
Press this button to fully retract or to approach the tip.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[file:clipslider.png]]&lt;br /&gt;
&lt;br /&gt;
The height of the slider window can be adjusted. This changes the height of the sliders simultaneously.&lt;br /&gt;
&lt;br /&gt;
== FFT Evaluation ==&lt;br /&gt;
&lt;br /&gt;
This part of the software allows use to analyse FFT transforms of the images. (Always crosscheck the results)&lt;br /&gt;
&lt;br /&gt;
[[file:clipfftevaluation.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Load Files ==&lt;br /&gt;
&lt;br /&gt;
Loading Files is done using the &amp;lt;Open *.Dat&amp;gt; menue item.&lt;br /&gt;
&lt;br /&gt;
You can define your own favorite directories in the Windows Places Bar region. (Use for example the TweakUI utility.)&lt;br /&gt;
&lt;br /&gt;
Options:&lt;br /&gt;
&lt;br /&gt;
Full Parameter Load:  Check to load all parameters, not only those relevant for the loaded file type. &lt;br /&gt;
 &lt;br /&gt;
Disable Warning: If checked no warning will be given when files are loaded in data acquisition.                               &lt;br /&gt;
             &lt;br /&gt;
&lt;br /&gt;
[[file:cliploadfile.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Open allows to select in running program or alternatively in a newly opened analysis program.&lt;br /&gt;
&lt;br /&gt;
[[file:cliploadfile2.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
== AFM ==&lt;br /&gt;
&lt;br /&gt;
In the following we discuss the operation of the internal PLL system.&lt;br /&gt;
The internal PLL can operate up to 32kHz ( based on 16 samples per period at 512kHz max sample rate).&lt;br /&gt;
This usualy covers operation of standard quartz tuning fork sensors as the qPlus sensor.&lt;br /&gt;
(For higher frequencies optionally the Zurich Instruments PLL can be used externally.)&lt;br /&gt;
The input signal from the Preamplifier is connected to the ADC3 input of ADDA Board 2, while DAC5 of the same ADDA Board supplies the excitation signal. &lt;br /&gt;
&lt;br /&gt;
PLL Centerfreq: determines the center frequency of the PLL. (Change either by typing the number directly or increase/decrease by using the up/down/ page up/page down and both in combination with Shift key)&lt;br /&gt;
PLL-Ampl[nm]: Input the Set value of the Amplitude in nm when the Amplitude controller is on&lt;br /&gt;
PLL-Exc[V]: Input the Excitation value in Volt&lt;br /&gt;
PLL-Phase: Phase Shift of Exciation Signal. Has to be optimized const stable PLL operation&lt;br /&gt;
PLL F Range[+/-Hz]: PLL frequency tracking range. max. allowed deviation from center frequency&lt;br /&gt;
&lt;br /&gt;
PLL On: If selected operation of the PLL is switched on&lt;br /&gt;
Ampl Control: If selected Amplitude Control is switched on&lt;br /&gt;
Active Damping: If selected the Amplitude control can electronically damp the cantilever vibration&lt;br /&gt;
Ref Signal f: If selected DAC2 of the PLL board outputs a reference of the PLL frequency&lt;br /&gt;
Ref Signal 2f: If selected DAC2 of the PLL board outputs a reference of the 2nd harmonic of the PLL frequency&lt;br /&gt;
&lt;br /&gt;
P[Hz/Deg]: Proportional value of the PLL frequency controller&lt;br /&gt;
Int[Hz/deg/s]: Integrator value of the PLL frequency controller&lt;br /&gt;
LP Filter[Hz]: Value of the 4th order loop filter&lt;br /&gt;
P Ampl[V/nm]: Proportional part of the Ampl controller&lt;br /&gt;
LP Amp filter[Hz]: Loop filter of the Amp controller&lt;br /&gt;
df Post Filter[Hz]: Filters the PLL freq data finally before it is output to the STM feedback controller&lt;br /&gt;
&lt;br /&gt;
Sensor Cal[V/nm]: Calibrate the Preamp output in nm units&lt;br /&gt;
SRS Gain: Optionally include the SRS Preamp gain&lt;br /&gt;
&lt;br /&gt;
PLL FreqScan, PLL Phase Scan: Start a frequency or Phase Scan&lt;br /&gt;
Filter PLL_Scan: Filter the Scan Data. (simple 1.order lowpass). can be repeated to allow a beeter calculation of the Q factor etc.&lt;br /&gt;
Show Phase: Displays the phase. Has to be selected to calculate the Q Factor.&lt;br /&gt;
&lt;br /&gt;
Results: Automatic determination of CenterFreq and Q Factor&lt;br /&gt;
&lt;br /&gt;
ScancenterFreq, FreqSpan, ScanTime, ScanPoints: determines the properties of the Frequency Scan or PLL Phase Scan&lt;br /&gt;
&lt;br /&gt;
[[file:Resonance.png]]&lt;br /&gt;
&lt;br /&gt;
[[Category:stmafm_manual]]&lt;br /&gt;
&lt;br /&gt;
== 20 steps to successful AFM operation ==&lt;br /&gt;
&lt;br /&gt;
For a first setup of a functioning PLL useful for scanning in CC, CH or CF mode please refer to the following graphical guide.&lt;br /&gt;
&lt;br /&gt;
[[File:Folie2.PNG|800px]]&lt;br /&gt;
&lt;br /&gt;
[[File:Folie3.PNG|800px]]&lt;br /&gt;
&lt;br /&gt;
[[File:Folie4.PNG|800px]]&lt;br /&gt;
&lt;br /&gt;
[[File:Folie5.PNG|800px]]&lt;br /&gt;
&lt;br /&gt;
In order to start scanning please perform the following steps:&lt;br /&gt;
a) For constant current mode (CC, dynamic STM)&lt;br /&gt;
14. Approach the tip and observe the frequency shift changing from Δf=0 Hz to a finite negative value.&lt;br /&gt;
15. Select the channels ''dF'', ''Amplitude'' and ''Damping'' in the Parameter window in order to measure these signals.&lt;br /&gt;
16. Set the current setpoint to a finite value, i.e. e.g., 10 or 100 pA.&lt;br /&gt;
17. Start scanning in CC mode as you would do in STM mode.&lt;br /&gt;
&lt;br /&gt;
b) For constant force mode (CF, nc-AFM)&lt;br /&gt;
14. Change the feedback mode to ''LinAbs'' and the feedback channel to ''dF''.&lt;br /&gt;
15. Change the integrator value to e.g. -0.0003 or something in the same order of magnitude.&lt;br /&gt;
16. Select the channels ''dF'', ''Amplitude'' and ''Damping'' in the Parameter window.&lt;br /&gt;
17. Set the constant frequency setpoint to a value close to but a little bit smaller than the finite Δf value from above.&lt;br /&gt;
18. Start scanning in CF mode as you would do in STM mode.&lt;br /&gt;
19. Adjust the scanning speed and the integrator together with the amplitude and phase control of the tuning fork.&lt;br /&gt;
20. Observe the current signal and increase the setpoint in order to go closer to the surface.&lt;/div&gt;</summary>
		<author><name>Ltspm</name></author>	</entry>

	<entry>
		<id>http://spm-wiki.createc.de/index.php?title=Forms</id>
		<title>Forms</title>
		<link rel="alternate" type="text/html" href="http://spm-wiki.createc.de/index.php?title=Forms"/>
				<updated>2016-12-21T09:27:48Z</updated>
		
		<summary type="html">&lt;p&gt;Ltspm: /* 3d-view */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== LineScan ==&lt;br /&gt;
&lt;br /&gt;
Press the ''Lin'' Button to take a line scan of the image. First select two points of the image by pressing the left mouse button. The linescan&lt;br /&gt;
is displayed in the upper linegraph of the linescanform-window. To perform measurements on the linescan press the &amp;lt;Measure&amp;gt; button. &lt;br /&gt;
&lt;br /&gt;
Use the left mouse button to select a new point. With the right mouse button you can switch between points. Pressing the Shift button allows to move a whole line. Pressing the right mouse button together with the Shift button will switch to the prependicular averaging mode.&lt;br /&gt;
&lt;br /&gt;
Important: If the linescan form is opened through the menue selection first, all linescan data will be displayed always in the this particular window. Otherwise pressing the LIN button will always open a new window.&lt;br /&gt;
&lt;br /&gt;
Autosize&lt;br /&gt;
Selects automatic scaling of the linegraph&lt;br /&gt;
&lt;br /&gt;
Autolinebacksub&lt;br /&gt;
Selects automatic subtraction of linear background&lt;br /&gt;
&lt;br /&gt;
Line Display Trackbar&lt;br /&gt;
Move to show a line scan of a particular image line. A FFT of the selected line is shown in the lower line graph.(The number of points/line has to be a power of 2)&lt;br /&gt;
&lt;br /&gt;
Popup menu of upper linegraph&lt;br /&gt;
xydesign: Select to adjust the appearance of the line graph&lt;br /&gt;
CopyClipboardData: The line scan data are copied to the ClipBoard&lt;br /&gt;
CopyClipboardXYGraph: The line scan graph is copied to the ClipBoard&lt;br /&gt;
Printxygraph: The line scan graph is send to the printer&lt;br /&gt;
Measure: Do measurements of the plot data.&lt;br /&gt;
Redrawline: The line in the image is redrawn&lt;br /&gt;
&lt;br /&gt;
Popup menu of lower linegraph&lt;br /&gt;
has the same items as the upper popup menu and one additional entry:&lt;br /&gt;
Show Frequency: Gives the FFT in frequency [Hz] instead of inverse distance [1/Å] (updated when the Line Display Trackbar is moved)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Channels&lt;br /&gt;
Select the channels which are displayed&lt;br /&gt;
&lt;br /&gt;
[[file:cliplinescan.png]]&lt;br /&gt;
&lt;br /&gt;
[[file:cliplinescanpopupmenu.png]]&lt;br /&gt;
&lt;br /&gt;
== Rampcontroller ==&lt;br /&gt;
&lt;br /&gt;
Click on the ''Ramp'' button. This opens the 'Rampcontroller'-window with control elements necessary to perform the coarse approach. The 6 buttons with arrows in the top of the form correspond to moving the tip in respect to the sample surface. Moving in x/y direction can also be done using the x/y cursor keys on the keyboard. The page up and page down keys are used correspondingly for rotation up and down. Selecting the burst mode in x/y or rotation will result in a series of steps corresponding to the number of burst steps displayed in the ramp parameter list. When the Crash Protection is switched on, the program checks before each step, whether it can detect a tunneling current. If this is the case it will cancel the step. Usually the crash protection should be switched on, but in cases where the tip is already crashed, the protection has to be switched off. The program issues some warnings when the ramp windows opens to inform the user to do necessary changes for a successful ramping. These are: First retract the tip, reset the x- and y-offset in the STM-program, select the appropriate gain (1-10, depending on the temperature) in the x- and y- channel of the HV-amplifier and set the external offset voltages to zero.&lt;br /&gt;
The usual coarse approach is done by controlling the approach with an optical microscope. When the tip is  close enough, the automatic tip approach can be switched on, by pressing the ''Approach'' button. It will start a combination of single coarse approach rotation steps combined with tip approach testing until the tip can reach the sample. ''Approach'' stops when a tunneling current is detected. The value of this threshold current is set by the current slider. Important: When the approach stops, the tip is automatically retracted, by setting the current to zero. Before leaving the coarse approach by pressing the ''Quit'' button, you have to select the mode for scanning. When the ''Main/Coarse'' button displays 'Coarse' mode, then the outer 3 piezos are used for scanning, otherwise the center piezo is used. In the normal operation of the microscope the 'Coarse' mode should be selected. Select the required set point current to see if the approach was successful. Now the tip should be retracted manually by using the external HV-amplifier z-offset voltage to go out of tunneling. Select the required gains and re-approach the tip again.&lt;br /&gt;
&lt;br /&gt;
See also: Approach Tips&lt;br /&gt;
&lt;br /&gt;
The Coarse Approach operation is controlled by the following parameters:&lt;br /&gt;
&lt;br /&gt;
Puls Height[V]&lt;br /&gt;
Input the peak to peak height (in V) of the sawtooth pulse used for moving the inertial slider. Two different values are used for the lateral XY motion and the rotational motion.&lt;br /&gt;
&lt;br /&gt;
Puls-Duration[sec]&lt;br /&gt;
Input the duration of a single sawtooth pulse in seconds. &lt;br /&gt;
&lt;br /&gt;
Burst-Count&lt;br /&gt;
Determines the number of sawtooth pulses applied when operating the coarse control in burst mode.&lt;br /&gt;
&lt;br /&gt;
Approach Period[sec]&lt;br /&gt;
Determines the time for a single approach cycle including approach and retraction of the tip to find the sample surface.&lt;br /&gt;
&lt;br /&gt;
Approach Burst Count&lt;br /&gt;
This is the number of coarse pulses applied between two approach cycles.&lt;br /&gt;
&lt;br /&gt;
Approach Retry Count&lt;br /&gt;
This is the number of retry operations done before the approach is stopped.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[file:cliprampcontrollerCreatec.png]]&lt;br /&gt;
&lt;br /&gt;
== Grid ==&lt;br /&gt;
&lt;br /&gt;
The form 'Grid-Image- Transformation' contains several functions for different kinds of image transformations. A suitable combination of the procedures below will allow transformations useful for drift correction, superstructure analysis, extraction of registry information. To open the form press on the grid button in the STMAFM form. With the 6 slider controls a grid can be overlayed on the image. The lateral position, the angles of the grid and the distance between the grid lines can be adjusted. An alternative way to input the grid is pressing the ''Mouse'' button and to mark 3 points (the first one is the center, the other two determine the direction of the two lines). Pressing the ''Rotation'' button will rotate the image in such a way that one set of the grid lines (X-Axis) is parallel to the horizontal direction. Pressing the ''Zoom'' button will zoom the image by the value set in the edit control positioned next to the right of the button. The image is zoomed around the center point of the grid. By pressing on the ''X..,Y..'' button the actual center position of the grid is stored and displayed on the button. Selecting a new center position with the mouse, as described above, and pressing the ''Move grid to Center'' button will move the new defined center to the stored center position. The ''Transform'' button will transform the image according to the 2 Parameters in the edit controls below. The first is the new angle between the lines in the image and the second is the new ratio the grid line distances. Selecting the ''HexGrid'' check box will draw a grid suitable for hexagonal unit cells. If draw inverted is selected the grid is drawn by a inversion process. Otherwise you can select with &amp;lt;Grid Color&amp;gt; the line color of the grid.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;&amp;quot; widths=&amp;quot;400px&amp;quot; heights=&amp;quot;400px&amp;quot;&amp;gt;&lt;br /&gt;
file:clipgrid.png&lt;br /&gt;
file:clipgridimage.png&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== TimeSpectrum ==&lt;br /&gt;
&lt;br /&gt;
It is very often useful to take a time record of the A/D input channels, without scanning or changing the biasvoltage. This is for example a convenient way to characterize the noise performance of the STM. To take a time record just press the ''Start'' Button on the Time-Spectrum window or press the ''TS'' button on the main window. Five channels are recorded simultaneously. The A/D channels 0 and 3 (ADC0 is called current I) and the topography signal output from the feedback loop, called Z. The displayed channel is selected by the corresponding channel button. Three parameters control the data acquisition:&lt;br /&gt;
&lt;br /&gt;
Spec_Points&lt;br /&gt;
The number of data points taken for a single spectrum. This must be a power of 2, to allow FFT of the data.&lt;br /&gt;
(Maximum is 4096)&lt;br /&gt;
&lt;br /&gt;
Spec_Freq[Hz]&lt;br /&gt;
The sampling frequency. (Limited by the DSP_Clock value)&lt;br /&gt;
&lt;br /&gt;
Spec_Avrg_Count&lt;br /&gt;
The number of spectra averaged. Averaging is done only for the spectrum, i.e. the FFT data.&lt;br /&gt;
&lt;br /&gt;
Channels&lt;br /&gt;
First select the check boxes to determine the channels which are acquired during data acquisition&lt;br /&gt;
Part of these channels can be further selected to be displayed.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The results are displayed in two line graphs.&lt;br /&gt;
The upper one shows the time behaviour. (The vertical scale is always in V)&lt;br /&gt;
The lower one shows the frequency spectrum. (The vertical scale on the left shows the peak to peak value of a pure sine component,&lt;br /&gt;
the right scale the rms amplitude for non correlated signals) &lt;br /&gt;
&lt;br /&gt;
The frequency resolution depends on the number of points and the sampling frequency.&lt;br /&gt;
Important: The current signal and the ADC1 signal are filtered by a first order digital filter, which is controlled by the same CurrentRC Parameter.   &lt;br /&gt;
The contents of the memo field is saved together with the file.&lt;br /&gt;
&lt;br /&gt;
In the lower right the AVRG Value and the Standard Deviation of the timespectra data are shown.&lt;br /&gt;
&lt;br /&gt;
Save&lt;br /&gt;
The data is saved in ASCII Format&lt;br /&gt;
&lt;br /&gt;
FFT logscale: Displays the Spectrum in LogScale&lt;br /&gt;
&lt;br /&gt;
Waterfall: Displays the time dependence of the Spectra in a Waterfall like mode at the bottom of the window&lt;br /&gt;
&lt;br /&gt;
[[file:cliptimespectrum.png]]&lt;br /&gt;
&lt;br /&gt;
== 3d-view ==&lt;br /&gt;
&lt;br /&gt;
This part of the program allows the display of 3d views of selected parts of the images. To start, open the window by clicking the ''3d View'' button. Then click on  &amp;lt;New Data&amp;gt; in the main menue and select a rectangular region on the image displayed in the STMAFM program.  A new form will be opened, where the rendered image is displayed. The sliders in the 3d-view form allow to change the orientation, size, offset and lighting of the 3d object. The 3d image can be displayed in different ways, depending on which check boxes are checked. So the lights can be switched on or off, the 3d image can be shown using lines, hidden lines, or in the normal surface view. Checking the save box will start saving of each images displayed. With this feature a series of BMP images for movies can be created. Checking the ''Box'' box will draw a 3d box with x,y,z axes in the 3dimage.In the light sources field the angle of the light source can be changed. Apart from a directed diffuse light source ambient lighting can be added.&lt;br /&gt;
&lt;br /&gt;
Under the menue item Color the color of the background and of the lines can be changed.&lt;br /&gt;
Morover the image can be copied to the clipboard (in BMP format), to a new window or the data can be exported in PoVRay format. &lt;br /&gt;
(New List means that a new imagedisplaylist is created for the underlying OPENGL rendering program. This usually done automatically)&lt;br /&gt;
&lt;br /&gt;
Selected views can be saved and are saved with the program.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;&amp;quot; widths=&amp;quot;450px&amp;quot; heights=&amp;quot;300px&amp;quot;&amp;gt;&lt;br /&gt;
file:clip3dcontrol.png&lt;br /&gt;
file:clip3dform.png&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Lateral Manipulation ==&lt;br /&gt;
&lt;br /&gt;
To perform a lateral manipulation with the tip one has first to press the Button &amp;lt;LM&amp;gt; and then to select the starting and the final position of the manipulation path by selecting these points in the image with the left mouse button. A thin line is drawn on the screen between these points. After the manipulation is completed a separate window opens up where the tip height and current during the manipulation is displayed. By pressing the save button this data set can be saved in a *.LAT File.&lt;br /&gt;
&lt;br /&gt;
Different kinds of manipulation procedures can be performed. They are selected by choosing a certain manipulation mode number in the manipulation parameter field. These different modes are described in the following. The speed of the tip is controlled by the parameters latmandelay and latmanddx, which are used throughout the whole process and not only when the tip is manipulating.&lt;br /&gt;
&lt;br /&gt;
Mode 1: This is the simplest constant current mode manipulation. Starting from the top of the image the tip moves in a straight line to the starting point of the manipulation using the standard feedback parameters used for imaging. Then the feedback parameters are switched to the ones selected in the lateral manipulation parameter set . These are current, voltage and gain of the preamplifier. Then the tip moves using these manipulation parameters to the final position. There the parameters are set back to their original imaging values and the tip moves back to top of the image.&lt;br /&gt;
&lt;br /&gt;
Mode 2: Similar to mode 1, but the tip moves first to the final position, then starts the manipulation to the starting position and goes back to final position. It switches back to imaging parameters and moves to the top of the image.&lt;br /&gt;
&lt;br /&gt;
Mode3: Similar to mode 1: The tip first moves to the starting point. Then it moves to final position and back to the starting position using the normal imaging parameters, but the tip height and current are recorded during these two scans. Then the parameters are switched to the manipulation parameters and the tip moves to the final position. Then the parameters are changed back to the imaging parameters and the tip moves back to the starting position while again recording the tip height and current. Finally the tip moves to the top of the image.&lt;br /&gt;
&lt;br /&gt;
Mode 4: This is a constant height manipulation mode. The tip moves first to the starting position. Then it moves from the starting to the final position and back taking data in normal imaging mode. Then the feedback is switched off and the tip moves from the starting to the final position in constant height mode. The height used is given by the height of the tip when the feedbackloop is switched off plus the additional offset given by latmanccdz. This means that the height depends on the imaging parameters. Then the tip moves back from the final position to the starting position in imaging mode, but taking data again. Finally the tip moves to the top of the image. With the extension factor the manipulation path can be extended at the final position by the factor given by latmanextlextension. The starting point is not affected by the extension factor.&lt;br /&gt;
&lt;br /&gt;
Mode 5: Similar to mode 4. In this mode the extension affects also the starting position. The extension positions are first calculated. The tip moves in imaging mode to extended starting position. Then moves to the final extended position and backward and takes data in imaging mode. Then the tip moves to the starting position, while taking data in imaging mode. Then the tip moves from the starting position to the final position in constant height manipulation mode. Then it moves back to the starting position in imaging mode and takes data. Finally it moves back to the top of the image.&lt;br /&gt;
&lt;br /&gt;
Mode 6: Similar to mode 5. The only difference is that the tip moves from the starting to the final position and backward in constant height mode and not only in the forward direction, as done in mode 5.&lt;br /&gt;
&lt;br /&gt;
Mode 0: This mode is different from the other modes. In mode 0 the tip follows always the mouse position immediately. The height of the tip is displayed on rate meter appearing on the left. By pressing the upper case L key the imaging parameters are switched to the manipulation parameters and back again. (By pressing the upper case S a small 64 pixel * 64 pixel scan is performed.) Clicking with the mouse button will stop the continuous following of the tip. After additional clicking the tip moves to the new mouse position in a straight line and tracks the mouse position again.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
These parameters control the lateral manipulation processes.&lt;br /&gt;
&lt;br /&gt;
Mode&lt;br /&gt;
Select one of several different manipulation modes. There are constant current and constant height modes. For example P0 is the origin of the image. Then the tip moves to P1, the first point selected with the mouse. The tunneling parameters are changed to manipulation parameters and the tip moves from P1 to P2. There the normal tunneling parameters, used for imaging, are selected again and the tip moves to the origin P0.&lt;br /&gt;
&lt;br /&gt;
Voltage[V]&lt;br /&gt;
The tunneling voltage applied during the manipulation phase.&lt;br /&gt;
&lt;br /&gt;
Current[nA]&lt;br /&gt;
The current used during manipulation&lt;br /&gt;
&lt;br /&gt;
Gain preamplifier&lt;br /&gt;
The gain used during manipulation&lt;br /&gt;
&lt;br /&gt;
Manip. Speed[A/sec]&lt;br /&gt;
The speed of the tip for lateral movements. Used for all movements. Step Size determines the number points measured during a lat. manip. scan.&lt;br /&gt;
&lt;br /&gt;
Extension&lt;br /&gt;
Extension value for manipulation modes 4-6&lt;br /&gt;
&lt;br /&gt;
Const. Height Z-Offset&lt;br /&gt;
In constant height mode the tip sample distance can be varied by this parameters. Positive values [Å} correspond to a closer approach to the surface.&lt;br /&gt;
&lt;br /&gt;
Channels&lt;br /&gt;
Select the channels acquired during data acquisition&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
LatChannelForm&lt;br /&gt;
Press to open a new Form to display the manipulation data.&lt;br /&gt;
&lt;br /&gt;
Lateral Speed [A/sec]&lt;br /&gt;
Speed at which the tip is moving from the origin to first starting point&lt;br /&gt;
&lt;br /&gt;
LM in old place&lt;br /&gt;
Repeat the LM using the previous coordinates&lt;br /&gt;
&lt;br /&gt;
Load Ext Lat Par&lt;br /&gt;
Load the lateral manipulation cooordinates from an external file.&lt;br /&gt;
&lt;br /&gt;
[[file:cliplatmanip.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The measured data is displayed in separate windows. X and Y scaling can be adjusted by the user. Two independent axis can be displayed. (Press &amp;lt;2.Axis&amp;gt;)&lt;br /&gt;
&amp;lt;LP&amp;gt; Low Pass Filter&lt;br /&gt;
&amp;lt;TP&amp;gt; Makes the Windows transparent to put it on top of another window.&lt;br /&gt;
&lt;br /&gt;
[[file:cliplmanip.png]]&lt;br /&gt;
&lt;br /&gt;
Right click to open the Popupmenu.&lt;br /&gt;
XYDesign, XY Series Edit allows to change the appearance of the Data&lt;br /&gt;
Copyclipboard.. copies the Plot or the Data into the clipboard&lt;br /&gt;
PrintXYGraph prints the XY Plot&lt;br /&gt;
Measure allows measuring the distance between points in the plot&lt;br /&gt;
AutoUpdate: The Plot is updated every second during Data Acquisition. &lt;br /&gt;
Lowpass filters the data (very simple just nearest neighbor average)&lt;br /&gt;
 &lt;br /&gt;
[[file:clipvertmanip_popupmenu1.png]]&lt;br /&gt;
&lt;br /&gt;
== Vertical Manipulation / I/V Spectroscopy ==&lt;br /&gt;
&lt;br /&gt;
Vertical manipulation (spectroscopy) is started by pressing on the &amp;lt;VM&amp;gt; button and selecting a point in the image by clicking with the left mouse button. The tip uses the lateral speed value to move to the vertical manipulation position. When the manipulation is finished the measured data appears in a separate window and can be saved with the Save button. Different channels can be selected to be recorded. Usually an external Lockin will be connected to ADC1. The internal Lockin supplies the signals dI/dV, d2I/dV2, di_q,d2_q. The form of the voltage and the z-height ramp is controlled by 8 points in time. In the case of the voltage one can define 8 time points and their corresponding voltage value. For example (0,1000), (256,0), (512,2000),(1024,-1000) define a ramp starting with 1000mV at time 0. Then it will be linear interpolated to time 256 with 0 Volt. Then it goes up again to 2000mV at time 512 and finally reaches -1000mV at time 1024. The time values correspond to the number of points taken. In this case these are 1024 points. A maximum of 100000 points is possible. The z-height values already include the gain of the z-amplifier. This means, that changing the HV gain will not change the z-height ramp, because this will be automatically corrected. Vertspecback = 1 will apply the ramp in forward and backward direction. Vertspecback=n will apply the ramp in forward and backward direction n-times (n&amp;gt;=1). The shape of the ramps is shown in the lower graph in the vertical manipulation window. &lt;br /&gt;
&lt;br /&gt;
Vertical spectroscopy can be done during scanning. Press the VM Button and select a point in the unscanned image area.  &lt;br /&gt;
&lt;br /&gt;
These parameters control the vertical manipulation and spectroscopy&lt;br /&gt;
&lt;br /&gt;
Gain preamplifier&lt;br /&gt;
Gain of the preamplifier during data acquisition&lt;br /&gt;
&lt;br /&gt;
Speclenght[sec]&lt;br /&gt;
Select the recording total time of the spectrum.&lt;br /&gt;
&lt;br /&gt;
Spectrum backward&lt;br /&gt;
0: The Spectrum defined in the V,Z table is taken only once.&lt;br /&gt;
1: The spectrum defined in the V,Z table is taken once in forward and once in backward direction&lt;br /&gt;
&amp;gt;1: Defines how often a forward and backward spectrum is taken&lt;br /&gt;
&lt;br /&gt;
Lateral Speed[A/sec]&lt;br /&gt;
Speed at which the tip moves to the place where the spectrum will be taken.&lt;br /&gt;
&lt;br /&gt;
Z- Offset&lt;br /&gt;
Defines an additonal offset which is added to the z values in the table&lt;br /&gt;
&lt;br /&gt;
Z-Drift&lt;br /&gt;
Defines an increment which is added to the values in the table to compensate drift effects&lt;br /&gt;
&lt;br /&gt;
Repeat Count&lt;br /&gt;
Defines how many separate spectra are taken and stored.&lt;br /&gt;
&lt;br /&gt;
Spectra/Line&lt;br /&gt;
Defines the number of spectra equally spaced along a line between a start and endpoint,selected by mouse input.&lt;br /&gt;
The first spectrum is taken at the startpoint of the line the last one at the endpoint of the line.  &lt;br /&gt;
&lt;br /&gt;
V,Z table&lt;br /&gt;
4 points can be defined to create a voltage and z table used for vertical manipulation and spectroscopy. The data values are plotted in the graph below. The first Time Value should be set to 1 (not 0, still allowed for compatibility), otherwise the first value might not be displayed.&lt;br /&gt;
(Voltage(green), Z-Position(blue))&lt;br /&gt;
&lt;br /&gt;
Spec_X_Grid&lt;br /&gt;
Spec_Y_Grid&lt;br /&gt;
Determine the spacing of the spectroscopy grid. First spectrum position is (spec_x_grid,spec_y_grid) in pixel coordinates.&lt;br /&gt;
&lt;br /&gt;
SGrid_Channel&lt;br /&gt;
Number of channels recorded during the grid spectroscopy mode&lt;br /&gt;
&lt;br /&gt;
SpecGrid_Delay&lt;br /&gt;
Delay in DSP cycle units added before/after a vertical spectrum is started/finished.&lt;br /&gt;
&lt;br /&gt;
SpecAvrgCount&lt;br /&gt;
Number of Spectra acquired and averaged directly on the DSP board. For Count&amp;gt;1 be aware that the current preamplifier gain for vertical spectroscopy will be set the same to the normal preamplifer gain. Between the spectra the feedback loop will be switched on to readjust the sample tip distance.   &lt;br /&gt;
&lt;br /&gt;
SpecAvrgFBDelay  &lt;br /&gt;
On Time of the Feedback loop in DSP cycle units between spectra in Averaging mode.&lt;br /&gt;
&lt;br /&gt;
Save File&lt;br /&gt;
Save the present Vert. Spektrum&lt;br /&gt;
&lt;br /&gt;
Single_Spectrum&lt;br /&gt;
Take one single spectrum. Select the position with a left mouse button click on the image.&lt;br /&gt;
Same like pressing &amp;lt;VM&amp;gt; button&lt;br /&gt;
&lt;br /&gt;
Spectra along Line&lt;br /&gt;
Take a series of spectra equally spaced a long a line defined by two mouse clicks. &lt;br /&gt;
&lt;br /&gt;
Spec in old Place&lt;br /&gt;
Take a spectrum at the X,Y position of the previous scan.&lt;br /&gt;
&lt;br /&gt;
Multiple Spectra&lt;br /&gt;
Select several spectra taken one after the other. Left Mouse button select another spectrum, right mosue button stop selection and start data acquisition.&lt;br /&gt;
&lt;br /&gt;
MultSpec from File&lt;br /&gt;
Use an external file (Ascii) to define a series of spectra.&lt;br /&gt;
Only 256*256 pixel images allowed. No zoom.  First line contains number of spectra. Each following line contains the x y image coordinates(integer) of each spectrum. &lt;br /&gt;
&lt;br /&gt;
Spectra on Grid&lt;br /&gt;
Spectra taken at each grid position. (Analysis of the Grid data is done in another program)&lt;br /&gt;
&lt;br /&gt;
SaveSpecgrid&lt;br /&gt;
Save the Grid File. Two files are saved. One *.specgrid.dat File with all the parameters and the *.specgrid File with the grid data&lt;br /&gt;
&lt;br /&gt;
VFB_Mode&lt;br /&gt;
Select the VoltageFeedbackMode&lt;br /&gt;
I(V,z): Normal Operation feedback loop is OFF&lt;br /&gt;
z(V): Constant current operation&lt;br /&gt;
&lt;br /&gt;
VFB_Current[nA]&lt;br /&gt;
Current setpoint used in z(V) Mode. FB_Channel has to be current.&lt;br /&gt;
&lt;br /&gt;
Load Vert_Params&lt;br /&gt;
Load only the parameter of a spectrum and not the data&lt;br /&gt;
&lt;br /&gt;
External VZ Data&lt;br /&gt;
If not checked the VZ Data for a spectrum are taken from the VZ-Table parameter.&lt;br /&gt;
If checked the VZData is taken from a different source table, which can be loaded from an external file.&lt;br /&gt;
This allows the user defined design of arbitrary VZ arrays of up to 100000 points. File format see below.  &lt;br /&gt;
&lt;br /&gt;
Filenames:&lt;br /&gt;
First Letter is the machinename, in case you have more than one LTSTM or you want to assign different users.&lt;br /&gt;
Followed by DATE.TIME.VERT. VERT is the standard fileextension.&lt;br /&gt;
In case you take repeated spectra in a point or take spectra along a line an additional &amp;quot;L&amp;lt;Number&amp;gt;.R&amp;lt;Number&amp;gt;.&amp;quot; indicator is added before&lt;br /&gt;
the VERT file extension. L indicates line position and R indicates the numbering in repeat mode.&lt;br /&gt;
&lt;br /&gt;
[[file:clipvertmanp.png]]&lt;br /&gt;
&lt;br /&gt;
The measured data is displayed in separate windows. X and Y scaling can be adjusted by the user. Two independent axis can be displayed. (Press &amp;lt;2.Axis&amp;gt;)&lt;br /&gt;
&amp;lt;LP&amp;gt; Low Pass Filter&lt;br /&gt;
&amp;lt;TP&amp;gt; Makes the Windows transparent to put it on top of another window.&lt;br /&gt;
&lt;br /&gt;
[[file:clipvmanip.png]]&lt;br /&gt;
&lt;br /&gt;
Right click to open the Popupmenu.&lt;br /&gt;
XYDesign, XY Series Edit allows to change the appearance of the Data&lt;br /&gt;
Copyclipboard.. copies the Plot or the Data into the clipboard&lt;br /&gt;
PrintXYGraph prints the XY Plot&lt;br /&gt;
Measure allows measuring the distance between points in the plot&lt;br /&gt;
AutoUpdate: The Plot is updated every second during Data Acquisition. &lt;br /&gt;
Lowpass filters the data (very simple just nearest neighbor average)&lt;br /&gt;
 &lt;br /&gt;
[[file:clipvertmanip_popupmenu1.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Slider ==&lt;br /&gt;
&lt;br /&gt;
Brightness and Contrast&lt;br /&gt;
Use the slider window to control the brightness and contrast of the image. The slider marked B adjusts the brightness of the image. The slider marked Z controls the contrast. Above both sliders the corresponding height range in (+/-)Angstroem is displayed.So total height difference between black and white for example is two times the displayed value. On the right for multichannel images the channel, which is displayed can be selected. &lt;br /&gt;
&lt;br /&gt;
Biasvoltage&lt;br /&gt;
The polarity of the biasvoltage can be changed by pressing with the mouse on 'V' label, or by pressing the &amp;lt;+&amp;gt;/ &amp;lt;-&amp;gt; keys. &lt;br /&gt;
&lt;br /&gt;
Press the right mouse button on the 'V' label to open a Popupmenu for the biasvoltage. &lt;br /&gt;
Three options exist:&lt;br /&gt;
SetBiasMinvolt:  If selected sets the current biasvoltage as the minimum biasvoltage.&lt;br /&gt;
SetBiasMaxvolt: If selected sets the current biasvoltage as the maximum biasvoltage.&lt;br /&gt;
This feature can be used to avoid tunneling outside a specific bias voltange range. i.e for example to limit the maximum biasvoltage to protect the tip, when using the silder.&lt;br /&gt;
&lt;br /&gt;
ResetBiasMinMax: If selected deletes the Min/Max values again.&lt;br /&gt;
 &lt;br /&gt;
Current&lt;br /&gt;
Press the right mouse button on the 'A' label to open a Popupmenu for the current. &lt;br /&gt;
&lt;br /&gt;
Log: logarithmic scaling of the current slider&lt;br /&gt;
Lin: linear scaling of the current slider&lt;br /&gt;
&lt;br /&gt;
Channels &lt;br /&gt;
Select the displayed channel. For Channel Nr.=  0 all channels are displayed.&lt;br /&gt;
&lt;br /&gt;
Zoom&lt;br /&gt;
Allowed zoom factors are x1, x2, x3, x4.&lt;br /&gt;
&lt;br /&gt;
Tip up/down&lt;br /&gt;
Press this button to fully retract or to approach the tip.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[file:clipslider.png]]&lt;br /&gt;
&lt;br /&gt;
The height of the slider window can be adjusted. This changes the height of the sliders simultaneously.&lt;br /&gt;
&lt;br /&gt;
== FFT Evaluation ==&lt;br /&gt;
&lt;br /&gt;
This part of the software allows use to analyse FFT transforms of the images. (Always crosscheck the results)&lt;br /&gt;
&lt;br /&gt;
[[file:clipfftevaluation.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Load Files ==&lt;br /&gt;
&lt;br /&gt;
Loading Files is done using the &amp;lt;Open *.Dat&amp;gt; menue item.&lt;br /&gt;
&lt;br /&gt;
You can define your own favorite directories in the Windows Places Bar region. (Use for example the TweakUI utility.)&lt;br /&gt;
&lt;br /&gt;
Options:&lt;br /&gt;
&lt;br /&gt;
Full Parameter Load:  Check to load all parameters, not only those relevant for the loaded file type. &lt;br /&gt;
 &lt;br /&gt;
Disable Warning: If checked no warning will be given when files are loaded in data acquisition.                               &lt;br /&gt;
             &lt;br /&gt;
&lt;br /&gt;
[[file:cliploadfile.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Open allows to select in running program or alternatively in a newly opened analysis program.&lt;br /&gt;
&lt;br /&gt;
[[file:cliploadfile2.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
== AFM ==&lt;br /&gt;
&lt;br /&gt;
In the following we discuss the operation of the internal PLL system.&lt;br /&gt;
The internal PLL can operate up to 32kHz ( based on 16 samples per period at 512kHz max sample rate).&lt;br /&gt;
This usualy covers operation of standard quartz tuning fork sensors as the qPlus sensor.&lt;br /&gt;
(For higher frequencies optionally the Zurich Instruments PLL can be used externally.)&lt;br /&gt;
The input signal from the Preamplifier is connected to the ADC3 input of ADDA Board 2, while DAC5 of the same ADDA Board supplies the excitation signal. &lt;br /&gt;
&lt;br /&gt;
PLL Centerfreq: determines the center frequency of the PLL. (Change either by typing the number directly or increase/decrease by using the up/down/ page up/page down and both in combination with Shift key)&lt;br /&gt;
PLL-Ampl[nm]: Input the Set value of the Amplitude in nm when the Amplitude controller is on&lt;br /&gt;
PLL-Exc[V]: Input the Excitation value in Volt&lt;br /&gt;
PLL-Phase: Phase Shift of Exciation Signal. Has to be optimized const stable PLL operation&lt;br /&gt;
PLL F Range[+/-Hz]: PLL frequency tracking range. max. allowed deviation from center frequency&lt;br /&gt;
&lt;br /&gt;
PLL On: If selected operation of the PLL is switched on&lt;br /&gt;
Ampl Control: If selected Amplitude Control is switched on&lt;br /&gt;
Active Damping: If selected the Amplitude control can electronically damp the cantilever vibration&lt;br /&gt;
Ref Signal f: If selected DAC2 of the PLL board outputs a reference of the PLL frequency&lt;br /&gt;
Ref Signal 2f: If selected DAC2 of the PLL board outputs a reference of the 2nd harmonic of the PLL frequency&lt;br /&gt;
&lt;br /&gt;
P[Hz/Deg]: Proportional value of the PLL frequency controller&lt;br /&gt;
Int[Hz/deg/s]: Integrator value of the PLL frequency controller&lt;br /&gt;
LP Filter[Hz]: Value of the 4th order loop filter&lt;br /&gt;
P Ampl[V/nm]: Proportional part of the Ampl controller&lt;br /&gt;
LP Amp filter[Hz]: Loop filter of the Amp controller&lt;br /&gt;
df Post Filter[Hz]: Filters the PLL freq data finally before it is output to the STM feedback controller&lt;br /&gt;
&lt;br /&gt;
Sensor Cal[V/nm]: Calibrate the Preamp output in nm units&lt;br /&gt;
SRS Gain: Optionally include the SRS Preamp gain&lt;br /&gt;
&lt;br /&gt;
PLL FreqScan, PLL Phase Scan: Start a frequency or Phase Scan&lt;br /&gt;
Filter PLL_Scan: Filter the Scan Data. (simple 1.order lowpass). can be repeated to allow a beeter calculation of the Q factor etc.&lt;br /&gt;
Show Phase: Displays the phase. Has to be selected to calculate the Q Factor.&lt;br /&gt;
&lt;br /&gt;
Results: Automatic determination of CenterFreq and Q Factor&lt;br /&gt;
&lt;br /&gt;
ScancenterFreq, FreqSpan, ScanTime, ScanPoints: determines the properties of the Frequency Scan or PLL Phase Scan&lt;br /&gt;
&lt;br /&gt;
[[file:Resonance.png]]&lt;br /&gt;
&lt;br /&gt;
[[Category:stmafm_manual]]&lt;br /&gt;
&lt;br /&gt;
== 20 steps to successful AFM operation ==&lt;br /&gt;
&lt;br /&gt;
For a first setup of a functioning PLL useful for scanning in CC, CH or CF mode please refer to the following graphical guide.&lt;br /&gt;
&lt;br /&gt;
[[File:Folie2.PNG|800px]]&lt;br /&gt;
&lt;br /&gt;
[[File:Folie3.PNG|800px]]&lt;br /&gt;
&lt;br /&gt;
[[File:Folie4.PNG|800px]]&lt;br /&gt;
&lt;br /&gt;
[[File:Folie5.PNG|800px]]&lt;br /&gt;
&lt;br /&gt;
In order to start scanning please perform the following steps:&lt;br /&gt;
a) For constant current mode (CC, dynamic STM)&lt;br /&gt;
14. Approach the tip and observe the frequency shift changing from Δf=0 Hz to a finite negative value.&lt;br /&gt;
15. Select the channels ''dF'', ''Amplitude'' and ''Damping'' in the Parameter window in order to measure these signals.&lt;br /&gt;
16. Set the current setpoint to a finite value, i.e. e.g., 10 or 100 pA.&lt;br /&gt;
17. Start scanning in CC mode as you would do in STM mode.&lt;br /&gt;
&lt;br /&gt;
b) For constant force mode (CF, nc-AFM)&lt;br /&gt;
14. Change the feedback mode to ''LinAbs'' and the feedback channel to ''dF''.&lt;br /&gt;
15. Change the integrator value to e.g. -0.0003 or something in the same order of magnitude.&lt;br /&gt;
16. Select the channels ''dF'', ''Amplitude'' and ''Damping'' in the Parameter window.&lt;br /&gt;
17. Set the constant frequency setpoint to a value close to but a little bit smaller than the finite Δf value from above.&lt;br /&gt;
18. Start scanning in CF mode as you would do in STM mode.&lt;br /&gt;
19. Adjust the scanning speed and the integrator together with the amplitude and phase control of the tuning fork.&lt;br /&gt;
20. Observe the current signal and increase the setpoint in order to go closer to the surface.&lt;/div&gt;</summary>
		<author><name>Ltspm</name></author>	</entry>

	<entry>
		<id>http://spm-wiki.createc.de/index.php?title=Forms</id>
		<title>Forms</title>
		<link rel="alternate" type="text/html" href="http://spm-wiki.createc.de/index.php?title=Forms"/>
				<updated>2016-12-21T09:26:41Z</updated>
		
		<summary type="html">&lt;p&gt;Ltspm: /* TimeSpectrum */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== LineScan ==&lt;br /&gt;
&lt;br /&gt;
Press the ''Lin'' Button to take a line scan of the image. First select two points of the image by pressing the left mouse button. The linescan&lt;br /&gt;
is displayed in the upper linegraph of the linescanform-window. To perform measurements on the linescan press the &amp;lt;Measure&amp;gt; button. &lt;br /&gt;
&lt;br /&gt;
Use the left mouse button to select a new point. With the right mouse button you can switch between points. Pressing the Shift button allows to move a whole line. Pressing the right mouse button together with the Shift button will switch to the prependicular averaging mode.&lt;br /&gt;
&lt;br /&gt;
Important: If the linescan form is opened through the menue selection first, all linescan data will be displayed always in the this particular window. Otherwise pressing the LIN button will always open a new window.&lt;br /&gt;
&lt;br /&gt;
Autosize&lt;br /&gt;
Selects automatic scaling of the linegraph&lt;br /&gt;
&lt;br /&gt;
Autolinebacksub&lt;br /&gt;
Selects automatic subtraction of linear background&lt;br /&gt;
&lt;br /&gt;
Line Display Trackbar&lt;br /&gt;
Move to show a line scan of a particular image line. A FFT of the selected line is shown in the lower line graph.(The number of points/line has to be a power of 2)&lt;br /&gt;
&lt;br /&gt;
Popup menu of upper linegraph&lt;br /&gt;
xydesign: Select to adjust the appearance of the line graph&lt;br /&gt;
CopyClipboardData: The line scan data are copied to the ClipBoard&lt;br /&gt;
CopyClipboardXYGraph: The line scan graph is copied to the ClipBoard&lt;br /&gt;
Printxygraph: The line scan graph is send to the printer&lt;br /&gt;
Measure: Do measurements of the plot data.&lt;br /&gt;
Redrawline: The line in the image is redrawn&lt;br /&gt;
&lt;br /&gt;
Popup menu of lower linegraph&lt;br /&gt;
has the same items as the upper popup menu and one additional entry:&lt;br /&gt;
Show Frequency: Gives the FFT in frequency [Hz] instead of inverse distance [1/Å] (updated when the Line Display Trackbar is moved)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Channels&lt;br /&gt;
Select the channels which are displayed&lt;br /&gt;
&lt;br /&gt;
[[file:cliplinescan.png]]&lt;br /&gt;
&lt;br /&gt;
[[file:cliplinescanpopupmenu.png]]&lt;br /&gt;
&lt;br /&gt;
== Rampcontroller ==&lt;br /&gt;
&lt;br /&gt;
Click on the ''Ramp'' button. This opens the 'Rampcontroller'-window with control elements necessary to perform the coarse approach. The 6 buttons with arrows in the top of the form correspond to moving the tip in respect to the sample surface. Moving in x/y direction can also be done using the x/y cursor keys on the keyboard. The page up and page down keys are used correspondingly for rotation up and down. Selecting the burst mode in x/y or rotation will result in a series of steps corresponding to the number of burst steps displayed in the ramp parameter list. When the Crash Protection is switched on, the program checks before each step, whether it can detect a tunneling current. If this is the case it will cancel the step. Usually the crash protection should be switched on, but in cases where the tip is already crashed, the protection has to be switched off. The program issues some warnings when the ramp windows opens to inform the user to do necessary changes for a successful ramping. These are: First retract the tip, reset the x- and y-offset in the STM-program, select the appropriate gain (1-10, depending on the temperature) in the x- and y- channel of the HV-amplifier and set the external offset voltages to zero.&lt;br /&gt;
The usual coarse approach is done by controlling the approach with an optical microscope. When the tip is  close enough, the automatic tip approach can be switched on, by pressing the ''Approach'' button. It will start a combination of single coarse approach rotation steps combined with tip approach testing until the tip can reach the sample. ''Approach'' stops when a tunneling current is detected. The value of this threshold current is set by the current slider. Important: When the approach stops, the tip is automatically retracted, by setting the current to zero. Before leaving the coarse approach by pressing the ''Quit'' button, you have to select the mode for scanning. When the ''Main/Coarse'' button displays 'Coarse' mode, then the outer 3 piezos are used for scanning, otherwise the center piezo is used. In the normal operation of the microscope the 'Coarse' mode should be selected. Select the required set point current to see if the approach was successful. Now the tip should be retracted manually by using the external HV-amplifier z-offset voltage to go out of tunneling. Select the required gains and re-approach the tip again.&lt;br /&gt;
&lt;br /&gt;
See also: Approach Tips&lt;br /&gt;
&lt;br /&gt;
The Coarse Approach operation is controlled by the following parameters:&lt;br /&gt;
&lt;br /&gt;
Puls Height[V]&lt;br /&gt;
Input the peak to peak height (in V) of the sawtooth pulse used for moving the inertial slider. Two different values are used for the lateral XY motion and the rotational motion.&lt;br /&gt;
&lt;br /&gt;
Puls-Duration[sec]&lt;br /&gt;
Input the duration of a single sawtooth pulse in seconds. &lt;br /&gt;
&lt;br /&gt;
Burst-Count&lt;br /&gt;
Determines the number of sawtooth pulses applied when operating the coarse control in burst mode.&lt;br /&gt;
&lt;br /&gt;
Approach Period[sec]&lt;br /&gt;
Determines the time for a single approach cycle including approach and retraction of the tip to find the sample surface.&lt;br /&gt;
&lt;br /&gt;
Approach Burst Count&lt;br /&gt;
This is the number of coarse pulses applied between two approach cycles.&lt;br /&gt;
&lt;br /&gt;
Approach Retry Count&lt;br /&gt;
This is the number of retry operations done before the approach is stopped.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[file:cliprampcontrollerCreatec.png]]&lt;br /&gt;
&lt;br /&gt;
== Grid ==&lt;br /&gt;
&lt;br /&gt;
The form 'Grid-Image- Transformation' contains several functions for different kinds of image transformations. A suitable combination of the procedures below will allow transformations useful for drift correction, superstructure analysis, extraction of registry information. To open the form press on the grid button in the STMAFM form. With the 6 slider controls a grid can be overlayed on the image. The lateral position, the angles of the grid and the distance between the grid lines can be adjusted. An alternative way to input the grid is pressing the ''Mouse'' button and to mark 3 points (the first one is the center, the other two determine the direction of the two lines). Pressing the ''Rotation'' button will rotate the image in such a way that one set of the grid lines (X-Axis) is parallel to the horizontal direction. Pressing the ''Zoom'' button will zoom the image by the value set in the edit control positioned next to the right of the button. The image is zoomed around the center point of the grid. By pressing on the ''X..,Y..'' button the actual center position of the grid is stored and displayed on the button. Selecting a new center position with the mouse, as described above, and pressing the ''Move grid to Center'' button will move the new defined center to the stored center position. The ''Transform'' button will transform the image according to the 2 Parameters in the edit controls below. The first is the new angle between the lines in the image and the second is the new ratio the grid line distances. Selecting the ''HexGrid'' check box will draw a grid suitable for hexagonal unit cells. If draw inverted is selected the grid is drawn by a inversion process. Otherwise you can select with &amp;lt;Grid Color&amp;gt; the line color of the grid.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;&amp;quot; widths=&amp;quot;400px&amp;quot; heights=&amp;quot;400px&amp;quot;&amp;gt;&lt;br /&gt;
file:clipgrid.png&lt;br /&gt;
file:clipgridimage.png&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== TimeSpectrum ==&lt;br /&gt;
&lt;br /&gt;
It is very often useful to take a time record of the A/D input channels, without scanning or changing the biasvoltage. This is for example a convenient way to characterize the noise performance of the STM. To take a time record just press the ''Start'' Button on the Time-Spectrum window or press the ''TS'' button on the main window. Five channels are recorded simultaneously. The A/D channels 0 and 3 (ADC0 is called current I) and the topography signal output from the feedback loop, called Z. The displayed channel is selected by the corresponding channel button. Three parameters control the data acquisition:&lt;br /&gt;
&lt;br /&gt;
Spec_Points&lt;br /&gt;
The number of data points taken for a single spectrum. This must be a power of 2, to allow FFT of the data.&lt;br /&gt;
(Maximum is 4096)&lt;br /&gt;
&lt;br /&gt;
Spec_Freq[Hz]&lt;br /&gt;
The sampling frequency. (Limited by the DSP_Clock value)&lt;br /&gt;
&lt;br /&gt;
Spec_Avrg_Count&lt;br /&gt;
The number of spectra averaged. Averaging is done only for the spectrum, i.e. the FFT data.&lt;br /&gt;
&lt;br /&gt;
Channels&lt;br /&gt;
First select the check boxes to determine the channels which are acquired during data acquisition&lt;br /&gt;
Part of these channels can be further selected to be displayed.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The results are displayed in two line graphs.&lt;br /&gt;
The upper one shows the time behaviour. (The vertical scale is always in V)&lt;br /&gt;
The lower one shows the frequency spectrum. (The vertical scale on the left shows the peak to peak value of a pure sine component,&lt;br /&gt;
the right scale the rms amplitude for non correlated signals) &lt;br /&gt;
&lt;br /&gt;
The frequency resolution depends on the number of points and the sampling frequency.&lt;br /&gt;
Important: The current signal and the ADC1 signal are filtered by a first order digital filter, which is controlled by the same CurrentRC Parameter.   &lt;br /&gt;
The contents of the memo field is saved together with the file.&lt;br /&gt;
&lt;br /&gt;
In the lower right the AVRG Value and the Standard Deviation of the timespectra data are shown.&lt;br /&gt;
&lt;br /&gt;
Save&lt;br /&gt;
The data is saved in ASCII Format&lt;br /&gt;
&lt;br /&gt;
FFT logscale: Displays the Spectrum in LogScale&lt;br /&gt;
&lt;br /&gt;
Waterfall: Displays the time dependence of the Spectra in a Waterfall like mode at the bottom of the window&lt;br /&gt;
&lt;br /&gt;
[[file:cliptimespectrum.png]]&lt;br /&gt;
&lt;br /&gt;
== 3d-view ==&lt;br /&gt;
&lt;br /&gt;
This part of the program allows the display of 3d views of selected parts of the images. To start, open the window by clicking the &amp;lt;3d view&amp;gt; button. Then click on  &amp;lt;New Data&amp;gt; in the main menue and select a rectangular region on the image displayed in the STMAFM program.  A new form will be opened, where the rendered image is displayed. The sliders in the 3d-view form allow to change the orientation, size, offset and lighting of the 3d object. The 3d image can be displayed in different ways, depending on which check boxes are checked. So the lights can be switched on or off, the 3d image can be shown using lines, hidden lines, or in the normal surface view. Checking the save box will start saving of each images displayed. With this feature a series of BMP images for movies can be created. Checking the &amp;lt;Box&amp;gt; box will draw a 3d box with x,y,z axes in the 3dimage.In the light sources field the angle of the light source can be changed. Apart from a directed diffuse light source ambient lighting can be added.&lt;br /&gt;
&lt;br /&gt;
Under the menue item Color the color of the background and of the lines can be changed.&lt;br /&gt;
Morover the image can be copied to the clipboard (in BMP format), to a new window or the data can be exported in PoVRay format. &lt;br /&gt;
(New List means that a new imagedisplaylist is created for the underlying OPENGL rendering program. This usually done automatically)&lt;br /&gt;
&lt;br /&gt;
Selected views can be saved and are saved with the program.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;&amp;quot; widths=&amp;quot;450px&amp;quot; heights=&amp;quot;300px&amp;quot;&amp;gt;&lt;br /&gt;
file:clip3dcontrol.png&lt;br /&gt;
file:clip3dform.png&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Lateral Manipulation ==&lt;br /&gt;
&lt;br /&gt;
To perform a lateral manipulation with the tip one has first to press the Button &amp;lt;LM&amp;gt; and then to select the starting and the final position of the manipulation path by selecting these points in the image with the left mouse button. A thin line is drawn on the screen between these points. After the manipulation is completed a separate window opens up where the tip height and current during the manipulation is displayed. By pressing the save button this data set can be saved in a *.LAT File.&lt;br /&gt;
&lt;br /&gt;
Different kinds of manipulation procedures can be performed. They are selected by choosing a certain manipulation mode number in the manipulation parameter field. These different modes are described in the following. The speed of the tip is controlled by the parameters latmandelay and latmanddx, which are used throughout the whole process and not only when the tip is manipulating.&lt;br /&gt;
&lt;br /&gt;
Mode 1: This is the simplest constant current mode manipulation. Starting from the top of the image the tip moves in a straight line to the starting point of the manipulation using the standard feedback parameters used for imaging. Then the feedback parameters are switched to the ones selected in the lateral manipulation parameter set . These are current, voltage and gain of the preamplifier. Then the tip moves using these manipulation parameters to the final position. There the parameters are set back to their original imaging values and the tip moves back to top of the image.&lt;br /&gt;
&lt;br /&gt;
Mode 2: Similar to mode 1, but the tip moves first to the final position, then starts the manipulation to the starting position and goes back to final position. It switches back to imaging parameters and moves to the top of the image.&lt;br /&gt;
&lt;br /&gt;
Mode3: Similar to mode 1: The tip first moves to the starting point. Then it moves to final position and back to the starting position using the normal imaging parameters, but the tip height and current are recorded during these two scans. Then the parameters are switched to the manipulation parameters and the tip moves to the final position. Then the parameters are changed back to the imaging parameters and the tip moves back to the starting position while again recording the tip height and current. Finally the tip moves to the top of the image.&lt;br /&gt;
&lt;br /&gt;
Mode 4: This is a constant height manipulation mode. The tip moves first to the starting position. Then it moves from the starting to the final position and back taking data in normal imaging mode. Then the feedback is switched off and the tip moves from the starting to the final position in constant height mode. The height used is given by the height of the tip when the feedbackloop is switched off plus the additional offset given by latmanccdz. This means that the height depends on the imaging parameters. Then the tip moves back from the final position to the starting position in imaging mode, but taking data again. Finally the tip moves to the top of the image. With the extension factor the manipulation path can be extended at the final position by the factor given by latmanextlextension. The starting point is not affected by the extension factor.&lt;br /&gt;
&lt;br /&gt;
Mode 5: Similar to mode 4. In this mode the extension affects also the starting position. The extension positions are first calculated. The tip moves in imaging mode to extended starting position. Then moves to the final extended position and backward and takes data in imaging mode. Then the tip moves to the starting position, while taking data in imaging mode. Then the tip moves from the starting position to the final position in constant height manipulation mode. Then it moves back to the starting position in imaging mode and takes data. Finally it moves back to the top of the image.&lt;br /&gt;
&lt;br /&gt;
Mode 6: Similar to mode 5. The only difference is that the tip moves from the starting to the final position and backward in constant height mode and not only in the forward direction, as done in mode 5.&lt;br /&gt;
&lt;br /&gt;
Mode 0: This mode is different from the other modes. In mode 0 the tip follows always the mouse position immediately. The height of the tip is displayed on rate meter appearing on the left. By pressing the upper case L key the imaging parameters are switched to the manipulation parameters and back again. (By pressing the upper case S a small 64 pixel * 64 pixel scan is performed.) Clicking with the mouse button will stop the continuous following of the tip. After additional clicking the tip moves to the new mouse position in a straight line and tracks the mouse position again.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
These parameters control the lateral manipulation processes.&lt;br /&gt;
&lt;br /&gt;
Mode&lt;br /&gt;
Select one of several different manipulation modes. There are constant current and constant height modes. For example P0 is the origin of the image. Then the tip moves to P1, the first point selected with the mouse. The tunneling parameters are changed to manipulation parameters and the tip moves from P1 to P2. There the normal tunneling parameters, used for imaging, are selected again and the tip moves to the origin P0.&lt;br /&gt;
&lt;br /&gt;
Voltage[V]&lt;br /&gt;
The tunneling voltage applied during the manipulation phase.&lt;br /&gt;
&lt;br /&gt;
Current[nA]&lt;br /&gt;
The current used during manipulation&lt;br /&gt;
&lt;br /&gt;
Gain preamplifier&lt;br /&gt;
The gain used during manipulation&lt;br /&gt;
&lt;br /&gt;
Manip. Speed[A/sec]&lt;br /&gt;
The speed of the tip for lateral movements. Used for all movements. Step Size determines the number points measured during a lat. manip. scan.&lt;br /&gt;
&lt;br /&gt;
Extension&lt;br /&gt;
Extension value for manipulation modes 4-6&lt;br /&gt;
&lt;br /&gt;
Const. Height Z-Offset&lt;br /&gt;
In constant height mode the tip sample distance can be varied by this parameters. Positive values [Å} correspond to a closer approach to the surface.&lt;br /&gt;
&lt;br /&gt;
Channels&lt;br /&gt;
Select the channels acquired during data acquisition&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
LatChannelForm&lt;br /&gt;
Press to open a new Form to display the manipulation data.&lt;br /&gt;
&lt;br /&gt;
Lateral Speed [A/sec]&lt;br /&gt;
Speed at which the tip is moving from the origin to first starting point&lt;br /&gt;
&lt;br /&gt;
LM in old place&lt;br /&gt;
Repeat the LM using the previous coordinates&lt;br /&gt;
&lt;br /&gt;
Load Ext Lat Par&lt;br /&gt;
Load the lateral manipulation cooordinates from an external file.&lt;br /&gt;
&lt;br /&gt;
[[file:cliplatmanip.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The measured data is displayed in separate windows. X and Y scaling can be adjusted by the user. Two independent axis can be displayed. (Press &amp;lt;2.Axis&amp;gt;)&lt;br /&gt;
&amp;lt;LP&amp;gt; Low Pass Filter&lt;br /&gt;
&amp;lt;TP&amp;gt; Makes the Windows transparent to put it on top of another window.&lt;br /&gt;
&lt;br /&gt;
[[file:cliplmanip.png]]&lt;br /&gt;
&lt;br /&gt;
Right click to open the Popupmenu.&lt;br /&gt;
XYDesign, XY Series Edit allows to change the appearance of the Data&lt;br /&gt;
Copyclipboard.. copies the Plot or the Data into the clipboard&lt;br /&gt;
PrintXYGraph prints the XY Plot&lt;br /&gt;
Measure allows measuring the distance between points in the plot&lt;br /&gt;
AutoUpdate: The Plot is updated every second during Data Acquisition. &lt;br /&gt;
Lowpass filters the data (very simple just nearest neighbor average)&lt;br /&gt;
 &lt;br /&gt;
[[file:clipvertmanip_popupmenu1.png]]&lt;br /&gt;
&lt;br /&gt;
== Vertical Manipulation / I/V Spectroscopy ==&lt;br /&gt;
&lt;br /&gt;
Vertical manipulation (spectroscopy) is started by pressing on the &amp;lt;VM&amp;gt; button and selecting a point in the image by clicking with the left mouse button. The tip uses the lateral speed value to move to the vertical manipulation position. When the manipulation is finished the measured data appears in a separate window and can be saved with the Save button. Different channels can be selected to be recorded. Usually an external Lockin will be connected to ADC1. The internal Lockin supplies the signals dI/dV, d2I/dV2, di_q,d2_q. The form of the voltage and the z-height ramp is controlled by 8 points in time. In the case of the voltage one can define 8 time points and their corresponding voltage value. For example (0,1000), (256,0), (512,2000),(1024,-1000) define a ramp starting with 1000mV at time 0. Then it will be linear interpolated to time 256 with 0 Volt. Then it goes up again to 2000mV at time 512 and finally reaches -1000mV at time 1024. The time values correspond to the number of points taken. In this case these are 1024 points. A maximum of 100000 points is possible. The z-height values already include the gain of the z-amplifier. This means, that changing the HV gain will not change the z-height ramp, because this will be automatically corrected. Vertspecback = 1 will apply the ramp in forward and backward direction. Vertspecback=n will apply the ramp in forward and backward direction n-times (n&amp;gt;=1). The shape of the ramps is shown in the lower graph in the vertical manipulation window. &lt;br /&gt;
&lt;br /&gt;
Vertical spectroscopy can be done during scanning. Press the VM Button and select a point in the unscanned image area.  &lt;br /&gt;
&lt;br /&gt;
These parameters control the vertical manipulation and spectroscopy&lt;br /&gt;
&lt;br /&gt;
Gain preamplifier&lt;br /&gt;
Gain of the preamplifier during data acquisition&lt;br /&gt;
&lt;br /&gt;
Speclenght[sec]&lt;br /&gt;
Select the recording total time of the spectrum.&lt;br /&gt;
&lt;br /&gt;
Spectrum backward&lt;br /&gt;
0: The Spectrum defined in the V,Z table is taken only once.&lt;br /&gt;
1: The spectrum defined in the V,Z table is taken once in forward and once in backward direction&lt;br /&gt;
&amp;gt;1: Defines how often a forward and backward spectrum is taken&lt;br /&gt;
&lt;br /&gt;
Lateral Speed[A/sec]&lt;br /&gt;
Speed at which the tip moves to the place where the spectrum will be taken.&lt;br /&gt;
&lt;br /&gt;
Z- Offset&lt;br /&gt;
Defines an additonal offset which is added to the z values in the table&lt;br /&gt;
&lt;br /&gt;
Z-Drift&lt;br /&gt;
Defines an increment which is added to the values in the table to compensate drift effects&lt;br /&gt;
&lt;br /&gt;
Repeat Count&lt;br /&gt;
Defines how many separate spectra are taken and stored.&lt;br /&gt;
&lt;br /&gt;
Spectra/Line&lt;br /&gt;
Defines the number of spectra equally spaced along a line between a start and endpoint,selected by mouse input.&lt;br /&gt;
The first spectrum is taken at the startpoint of the line the last one at the endpoint of the line.  &lt;br /&gt;
&lt;br /&gt;
V,Z table&lt;br /&gt;
4 points can be defined to create a voltage and z table used for vertical manipulation and spectroscopy. The data values are plotted in the graph below. The first Time Value should be set to 1 (not 0, still allowed for compatibility), otherwise the first value might not be displayed.&lt;br /&gt;
(Voltage(green), Z-Position(blue))&lt;br /&gt;
&lt;br /&gt;
Spec_X_Grid&lt;br /&gt;
Spec_Y_Grid&lt;br /&gt;
Determine the spacing of the spectroscopy grid. First spectrum position is (spec_x_grid,spec_y_grid) in pixel coordinates.&lt;br /&gt;
&lt;br /&gt;
SGrid_Channel&lt;br /&gt;
Number of channels recorded during the grid spectroscopy mode&lt;br /&gt;
&lt;br /&gt;
SpecGrid_Delay&lt;br /&gt;
Delay in DSP cycle units added before/after a vertical spectrum is started/finished.&lt;br /&gt;
&lt;br /&gt;
SpecAvrgCount&lt;br /&gt;
Number of Spectra acquired and averaged directly on the DSP board. For Count&amp;gt;1 be aware that the current preamplifier gain for vertical spectroscopy will be set the same to the normal preamplifer gain. Between the spectra the feedback loop will be switched on to readjust the sample tip distance.   &lt;br /&gt;
&lt;br /&gt;
SpecAvrgFBDelay  &lt;br /&gt;
On Time of the Feedback loop in DSP cycle units between spectra in Averaging mode.&lt;br /&gt;
&lt;br /&gt;
Save File&lt;br /&gt;
Save the present Vert. Spektrum&lt;br /&gt;
&lt;br /&gt;
Single_Spectrum&lt;br /&gt;
Take one single spectrum. Select the position with a left mouse button click on the image.&lt;br /&gt;
Same like pressing &amp;lt;VM&amp;gt; button&lt;br /&gt;
&lt;br /&gt;
Spectra along Line&lt;br /&gt;
Take a series of spectra equally spaced a long a line defined by two mouse clicks. &lt;br /&gt;
&lt;br /&gt;
Spec in old Place&lt;br /&gt;
Take a spectrum at the X,Y position of the previous scan.&lt;br /&gt;
&lt;br /&gt;
Multiple Spectra&lt;br /&gt;
Select several spectra taken one after the other. Left Mouse button select another spectrum, right mosue button stop selection and start data acquisition.&lt;br /&gt;
&lt;br /&gt;
MultSpec from File&lt;br /&gt;
Use an external file (Ascii) to define a series of spectra.&lt;br /&gt;
Only 256*256 pixel images allowed. No zoom.  First line contains number of spectra. Each following line contains the x y image coordinates(integer) of each spectrum. &lt;br /&gt;
&lt;br /&gt;
Spectra on Grid&lt;br /&gt;
Spectra taken at each grid position. (Analysis of the Grid data is done in another program)&lt;br /&gt;
&lt;br /&gt;
SaveSpecgrid&lt;br /&gt;
Save the Grid File. Two files are saved. One *.specgrid.dat File with all the parameters and the *.specgrid File with the grid data&lt;br /&gt;
&lt;br /&gt;
VFB_Mode&lt;br /&gt;
Select the VoltageFeedbackMode&lt;br /&gt;
I(V,z): Normal Operation feedback loop is OFF&lt;br /&gt;
z(V): Constant current operation&lt;br /&gt;
&lt;br /&gt;
VFB_Current[nA]&lt;br /&gt;
Current setpoint used in z(V) Mode. FB_Channel has to be current.&lt;br /&gt;
&lt;br /&gt;
Load Vert_Params&lt;br /&gt;
Load only the parameter of a spectrum and not the data&lt;br /&gt;
&lt;br /&gt;
External VZ Data&lt;br /&gt;
If not checked the VZ Data for a spectrum are taken from the VZ-Table parameter.&lt;br /&gt;
If checked the VZData is taken from a different source table, which can be loaded from an external file.&lt;br /&gt;
This allows the user defined design of arbitrary VZ arrays of up to 100000 points. File format see below.  &lt;br /&gt;
&lt;br /&gt;
Filenames:&lt;br /&gt;
First Letter is the machinename, in case you have more than one LTSTM or you want to assign different users.&lt;br /&gt;
Followed by DATE.TIME.VERT. VERT is the standard fileextension.&lt;br /&gt;
In case you take repeated spectra in a point or take spectra along a line an additional &amp;quot;L&amp;lt;Number&amp;gt;.R&amp;lt;Number&amp;gt;.&amp;quot; indicator is added before&lt;br /&gt;
the VERT file extension. L indicates line position and R indicates the numbering in repeat mode.&lt;br /&gt;
&lt;br /&gt;
[[file:clipvertmanp.png]]&lt;br /&gt;
&lt;br /&gt;
The measured data is displayed in separate windows. X and Y scaling can be adjusted by the user. Two independent axis can be displayed. (Press &amp;lt;2.Axis&amp;gt;)&lt;br /&gt;
&amp;lt;LP&amp;gt; Low Pass Filter&lt;br /&gt;
&amp;lt;TP&amp;gt; Makes the Windows transparent to put it on top of another window.&lt;br /&gt;
&lt;br /&gt;
[[file:clipvmanip.png]]&lt;br /&gt;
&lt;br /&gt;
Right click to open the Popupmenu.&lt;br /&gt;
XYDesign, XY Series Edit allows to change the appearance of the Data&lt;br /&gt;
Copyclipboard.. copies the Plot or the Data into the clipboard&lt;br /&gt;
PrintXYGraph prints the XY Plot&lt;br /&gt;
Measure allows measuring the distance between points in the plot&lt;br /&gt;
AutoUpdate: The Plot is updated every second during Data Acquisition. &lt;br /&gt;
Lowpass filters the data (very simple just nearest neighbor average)&lt;br /&gt;
 &lt;br /&gt;
[[file:clipvertmanip_popupmenu1.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Slider ==&lt;br /&gt;
&lt;br /&gt;
Brightness and Contrast&lt;br /&gt;
Use the slider window to control the brightness and contrast of the image. The slider marked B adjusts the brightness of the image. The slider marked Z controls the contrast. Above both sliders the corresponding height range in (+/-)Angstroem is displayed.So total height difference between black and white for example is two times the displayed value. On the right for multichannel images the channel, which is displayed can be selected. &lt;br /&gt;
&lt;br /&gt;
Biasvoltage&lt;br /&gt;
The polarity of the biasvoltage can be changed by pressing with the mouse on 'V' label, or by pressing the &amp;lt;+&amp;gt;/ &amp;lt;-&amp;gt; keys. &lt;br /&gt;
&lt;br /&gt;
Press the right mouse button on the 'V' label to open a Popupmenu for the biasvoltage. &lt;br /&gt;
Three options exist:&lt;br /&gt;
SetBiasMinvolt:  If selected sets the current biasvoltage as the minimum biasvoltage.&lt;br /&gt;
SetBiasMaxvolt: If selected sets the current biasvoltage as the maximum biasvoltage.&lt;br /&gt;
This feature can be used to avoid tunneling outside a specific bias voltange range. i.e for example to limit the maximum biasvoltage to protect the tip, when using the silder.&lt;br /&gt;
&lt;br /&gt;
ResetBiasMinMax: If selected deletes the Min/Max values again.&lt;br /&gt;
 &lt;br /&gt;
Current&lt;br /&gt;
Press the right mouse button on the 'A' label to open a Popupmenu for the current. &lt;br /&gt;
&lt;br /&gt;
Log: logarithmic scaling of the current slider&lt;br /&gt;
Lin: linear scaling of the current slider&lt;br /&gt;
&lt;br /&gt;
Channels &lt;br /&gt;
Select the displayed channel. For Channel Nr.=  0 all channels are displayed.&lt;br /&gt;
&lt;br /&gt;
Zoom&lt;br /&gt;
Allowed zoom factors are x1, x2, x3, x4.&lt;br /&gt;
&lt;br /&gt;
Tip up/down&lt;br /&gt;
Press this button to fully retract or to approach the tip.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[file:clipslider.png]]&lt;br /&gt;
&lt;br /&gt;
The height of the slider window can be adjusted. This changes the height of the sliders simultaneously.&lt;br /&gt;
&lt;br /&gt;
== FFT Evaluation ==&lt;br /&gt;
&lt;br /&gt;
This part of the software allows use to analyse FFT transforms of the images. (Always crosscheck the results)&lt;br /&gt;
&lt;br /&gt;
[[file:clipfftevaluation.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Load Files ==&lt;br /&gt;
&lt;br /&gt;
Loading Files is done using the &amp;lt;Open *.Dat&amp;gt; menue item.&lt;br /&gt;
&lt;br /&gt;
You can define your own favorite directories in the Windows Places Bar region. (Use for example the TweakUI utility.)&lt;br /&gt;
&lt;br /&gt;
Options:&lt;br /&gt;
&lt;br /&gt;
Full Parameter Load:  Check to load all parameters, not only those relevant for the loaded file type. &lt;br /&gt;
 &lt;br /&gt;
Disable Warning: If checked no warning will be given when files are loaded in data acquisition.                               &lt;br /&gt;
             &lt;br /&gt;
&lt;br /&gt;
[[file:cliploadfile.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Open allows to select in running program or alternatively in a newly opened analysis program.&lt;br /&gt;
&lt;br /&gt;
[[file:cliploadfile2.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
== AFM ==&lt;br /&gt;
&lt;br /&gt;
In the following we discuss the operation of the internal PLL system.&lt;br /&gt;
The internal PLL can operate up to 32kHz ( based on 16 samples per period at 512kHz max sample rate).&lt;br /&gt;
This usualy covers operation of standard quartz tuning fork sensors as the qPlus sensor.&lt;br /&gt;
(For higher frequencies optionally the Zurich Instruments PLL can be used externally.)&lt;br /&gt;
The input signal from the Preamplifier is connected to the ADC3 input of ADDA Board 2, while DAC5 of the same ADDA Board supplies the excitation signal. &lt;br /&gt;
&lt;br /&gt;
PLL Centerfreq: determines the center frequency of the PLL. (Change either by typing the number directly or increase/decrease by using the up/down/ page up/page down and both in combination with Shift key)&lt;br /&gt;
PLL-Ampl[nm]: Input the Set value of the Amplitude in nm when the Amplitude controller is on&lt;br /&gt;
PLL-Exc[V]: Input the Excitation value in Volt&lt;br /&gt;
PLL-Phase: Phase Shift of Exciation Signal. Has to be optimized const stable PLL operation&lt;br /&gt;
PLL F Range[+/-Hz]: PLL frequency tracking range. max. allowed deviation from center frequency&lt;br /&gt;
&lt;br /&gt;
PLL On: If selected operation of the PLL is switched on&lt;br /&gt;
Ampl Control: If selected Amplitude Control is switched on&lt;br /&gt;
Active Damping: If selected the Amplitude control can electronically damp the cantilever vibration&lt;br /&gt;
Ref Signal f: If selected DAC2 of the PLL board outputs a reference of the PLL frequency&lt;br /&gt;
Ref Signal 2f: If selected DAC2 of the PLL board outputs a reference of the 2nd harmonic of the PLL frequency&lt;br /&gt;
&lt;br /&gt;
P[Hz/Deg]: Proportional value of the PLL frequency controller&lt;br /&gt;
Int[Hz/deg/s]: Integrator value of the PLL frequency controller&lt;br /&gt;
LP Filter[Hz]: Value of the 4th order loop filter&lt;br /&gt;
P Ampl[V/nm]: Proportional part of the Ampl controller&lt;br /&gt;
LP Amp filter[Hz]: Loop filter of the Amp controller&lt;br /&gt;
df Post Filter[Hz]: Filters the PLL freq data finally before it is output to the STM feedback controller&lt;br /&gt;
&lt;br /&gt;
Sensor Cal[V/nm]: Calibrate the Preamp output in nm units&lt;br /&gt;
SRS Gain: Optionally include the SRS Preamp gain&lt;br /&gt;
&lt;br /&gt;
PLL FreqScan, PLL Phase Scan: Start a frequency or Phase Scan&lt;br /&gt;
Filter PLL_Scan: Filter the Scan Data. (simple 1.order lowpass). can be repeated to allow a beeter calculation of the Q factor etc.&lt;br /&gt;
Show Phase: Displays the phase. Has to be selected to calculate the Q Factor.&lt;br /&gt;
&lt;br /&gt;
Results: Automatic determination of CenterFreq and Q Factor&lt;br /&gt;
&lt;br /&gt;
ScancenterFreq, FreqSpan, ScanTime, ScanPoints: determines the properties of the Frequency Scan or PLL Phase Scan&lt;br /&gt;
&lt;br /&gt;
[[file:Resonance.png]]&lt;br /&gt;
&lt;br /&gt;
[[Category:stmafm_manual]]&lt;br /&gt;
&lt;br /&gt;
== 20 steps to successful AFM operation ==&lt;br /&gt;
&lt;br /&gt;
For a first setup of a functioning PLL useful for scanning in CC, CH or CF mode please refer to the following graphical guide.&lt;br /&gt;
&lt;br /&gt;
[[File:Folie2.PNG|800px]]&lt;br /&gt;
&lt;br /&gt;
[[File:Folie3.PNG|800px]]&lt;br /&gt;
&lt;br /&gt;
[[File:Folie4.PNG|800px]]&lt;br /&gt;
&lt;br /&gt;
[[File:Folie5.PNG|800px]]&lt;br /&gt;
&lt;br /&gt;
In order to start scanning please perform the following steps:&lt;br /&gt;
a) For constant current mode (CC, dynamic STM)&lt;br /&gt;
14. Approach the tip and observe the frequency shift changing from Δf=0 Hz to a finite negative value.&lt;br /&gt;
15. Select the channels ''dF'', ''Amplitude'' and ''Damping'' in the Parameter window in order to measure these signals.&lt;br /&gt;
16. Set the current setpoint to a finite value, i.e. e.g., 10 or 100 pA.&lt;br /&gt;
17. Start scanning in CC mode as you would do in STM mode.&lt;br /&gt;
&lt;br /&gt;
b) For constant force mode (CF, nc-AFM)&lt;br /&gt;
14. Change the feedback mode to ''LinAbs'' and the feedback channel to ''dF''.&lt;br /&gt;
15. Change the integrator value to e.g. -0.0003 or something in the same order of magnitude.&lt;br /&gt;
16. Select the channels ''dF'', ''Amplitude'' and ''Damping'' in the Parameter window.&lt;br /&gt;
17. Set the constant frequency setpoint to a value close to but a little bit smaller than the finite Δf value from above.&lt;br /&gt;
18. Start scanning in CF mode as you would do in STM mode.&lt;br /&gt;
19. Adjust the scanning speed and the integrator together with the amplitude and phase control of the tuning fork.&lt;br /&gt;
20. Observe the current signal and increase the setpoint in order to go closer to the surface.&lt;/div&gt;</summary>
		<author><name>Ltspm</name></author>	</entry>

	<entry>
		<id>http://spm-wiki.createc.de/index.php?title=Forms</id>
		<title>Forms</title>
		<link rel="alternate" type="text/html" href="http://spm-wiki.createc.de/index.php?title=Forms"/>
				<updated>2016-12-21T09:25:38Z</updated>
		
		<summary type="html">&lt;p&gt;Ltspm: /* Grid */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== LineScan ==&lt;br /&gt;
&lt;br /&gt;
Press the ''Lin'' Button to take a line scan of the image. First select two points of the image by pressing the left mouse button. The linescan&lt;br /&gt;
is displayed in the upper linegraph of the linescanform-window. To perform measurements on the linescan press the &amp;lt;Measure&amp;gt; button. &lt;br /&gt;
&lt;br /&gt;
Use the left mouse button to select a new point. With the right mouse button you can switch between points. Pressing the Shift button allows to move a whole line. Pressing the right mouse button together with the Shift button will switch to the prependicular averaging mode.&lt;br /&gt;
&lt;br /&gt;
Important: If the linescan form is opened through the menue selection first, all linescan data will be displayed always in the this particular window. Otherwise pressing the LIN button will always open a new window.&lt;br /&gt;
&lt;br /&gt;
Autosize&lt;br /&gt;
Selects automatic scaling of the linegraph&lt;br /&gt;
&lt;br /&gt;
Autolinebacksub&lt;br /&gt;
Selects automatic subtraction of linear background&lt;br /&gt;
&lt;br /&gt;
Line Display Trackbar&lt;br /&gt;
Move to show a line scan of a particular image line. A FFT of the selected line is shown in the lower line graph.(The number of points/line has to be a power of 2)&lt;br /&gt;
&lt;br /&gt;
Popup menu of upper linegraph&lt;br /&gt;
xydesign: Select to adjust the appearance of the line graph&lt;br /&gt;
CopyClipboardData: The line scan data are copied to the ClipBoard&lt;br /&gt;
CopyClipboardXYGraph: The line scan graph is copied to the ClipBoard&lt;br /&gt;
Printxygraph: The line scan graph is send to the printer&lt;br /&gt;
Measure: Do measurements of the plot data.&lt;br /&gt;
Redrawline: The line in the image is redrawn&lt;br /&gt;
&lt;br /&gt;
Popup menu of lower linegraph&lt;br /&gt;
has the same items as the upper popup menu and one additional entry:&lt;br /&gt;
Show Frequency: Gives the FFT in frequency [Hz] instead of inverse distance [1/Å] (updated when the Line Display Trackbar is moved)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Channels&lt;br /&gt;
Select the channels which are displayed&lt;br /&gt;
&lt;br /&gt;
[[file:cliplinescan.png]]&lt;br /&gt;
&lt;br /&gt;
[[file:cliplinescanpopupmenu.png]]&lt;br /&gt;
&lt;br /&gt;
== Rampcontroller ==&lt;br /&gt;
&lt;br /&gt;
Click on the ''Ramp'' button. This opens the 'Rampcontroller'-window with control elements necessary to perform the coarse approach. The 6 buttons with arrows in the top of the form correspond to moving the tip in respect to the sample surface. Moving in x/y direction can also be done using the x/y cursor keys on the keyboard. The page up and page down keys are used correspondingly for rotation up and down. Selecting the burst mode in x/y or rotation will result in a series of steps corresponding to the number of burst steps displayed in the ramp parameter list. When the Crash Protection is switched on, the program checks before each step, whether it can detect a tunneling current. If this is the case it will cancel the step. Usually the crash protection should be switched on, but in cases where the tip is already crashed, the protection has to be switched off. The program issues some warnings when the ramp windows opens to inform the user to do necessary changes for a successful ramping. These are: First retract the tip, reset the x- and y-offset in the STM-program, select the appropriate gain (1-10, depending on the temperature) in the x- and y- channel of the HV-amplifier and set the external offset voltages to zero.&lt;br /&gt;
The usual coarse approach is done by controlling the approach with an optical microscope. When the tip is  close enough, the automatic tip approach can be switched on, by pressing the ''Approach'' button. It will start a combination of single coarse approach rotation steps combined with tip approach testing until the tip can reach the sample. ''Approach'' stops when a tunneling current is detected. The value of this threshold current is set by the current slider. Important: When the approach stops, the tip is automatically retracted, by setting the current to zero. Before leaving the coarse approach by pressing the ''Quit'' button, you have to select the mode for scanning. When the ''Main/Coarse'' button displays 'Coarse' mode, then the outer 3 piezos are used for scanning, otherwise the center piezo is used. In the normal operation of the microscope the 'Coarse' mode should be selected. Select the required set point current to see if the approach was successful. Now the tip should be retracted manually by using the external HV-amplifier z-offset voltage to go out of tunneling. Select the required gains and re-approach the tip again.&lt;br /&gt;
&lt;br /&gt;
See also: Approach Tips&lt;br /&gt;
&lt;br /&gt;
The Coarse Approach operation is controlled by the following parameters:&lt;br /&gt;
&lt;br /&gt;
Puls Height[V]&lt;br /&gt;
Input the peak to peak height (in V) of the sawtooth pulse used for moving the inertial slider. Two different values are used for the lateral XY motion and the rotational motion.&lt;br /&gt;
&lt;br /&gt;
Puls-Duration[sec]&lt;br /&gt;
Input the duration of a single sawtooth pulse in seconds. &lt;br /&gt;
&lt;br /&gt;
Burst-Count&lt;br /&gt;
Determines the number of sawtooth pulses applied when operating the coarse control in burst mode.&lt;br /&gt;
&lt;br /&gt;
Approach Period[sec]&lt;br /&gt;
Determines the time for a single approach cycle including approach and retraction of the tip to find the sample surface.&lt;br /&gt;
&lt;br /&gt;
Approach Burst Count&lt;br /&gt;
This is the number of coarse pulses applied between two approach cycles.&lt;br /&gt;
&lt;br /&gt;
Approach Retry Count&lt;br /&gt;
This is the number of retry operations done before the approach is stopped.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[file:cliprampcontrollerCreatec.png]]&lt;br /&gt;
&lt;br /&gt;
== Grid ==&lt;br /&gt;
&lt;br /&gt;
The form 'Grid-Image- Transformation' contains several functions for different kinds of image transformations. A suitable combination of the procedures below will allow transformations useful for drift correction, superstructure analysis, extraction of registry information. To open the form press on the grid button in the STMAFM form. With the 6 slider controls a grid can be overlayed on the image. The lateral position, the angles of the grid and the distance between the grid lines can be adjusted. An alternative way to input the grid is pressing the ''Mouse'' button and to mark 3 points (the first one is the center, the other two determine the direction of the two lines). Pressing the ''Rotation'' button will rotate the image in such a way that one set of the grid lines (X-Axis) is parallel to the horizontal direction. Pressing the ''Zoom'' button will zoom the image by the value set in the edit control positioned next to the right of the button. The image is zoomed around the center point of the grid. By pressing on the ''X..,Y..'' button the actual center position of the grid is stored and displayed on the button. Selecting a new center position with the mouse, as described above, and pressing the ''Move grid to Center'' button will move the new defined center to the stored center position. The ''Transform'' button will transform the image according to the 2 Parameters in the edit controls below. The first is the new angle between the lines in the image and the second is the new ratio the grid line distances. Selecting the ''HexGrid'' check box will draw a grid suitable for hexagonal unit cells. If draw inverted is selected the grid is drawn by a inversion process. Otherwise you can select with &amp;lt;Grid Color&amp;gt; the line color of the grid.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;&amp;quot; widths=&amp;quot;400px&amp;quot; heights=&amp;quot;400px&amp;quot;&amp;gt;&lt;br /&gt;
file:clipgrid.png&lt;br /&gt;
file:clipgridimage.png&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== TimeSpectrum ==&lt;br /&gt;
&lt;br /&gt;
It is very often useful to take a time record of the A/D input channels, without scanning or changing the biasvoltage. This is for example a convenient way to characterize the noise performance of the STM. To take a time record just press the &amp;lt;Start&amp;gt; Button on the Time-Spectrum window or press the &amp;lt;TS&amp;gt; button on the main window. Five channels are recorded simultaneously. The A/D channels 0 and 3 (ADC0 is called current I) and the topography signal output from the feedback loop, called Z. The displayed channel is selected by the corresponding channel button. Three parameters control the data acquisition:&lt;br /&gt;
&lt;br /&gt;
Spec_Points&lt;br /&gt;
The number of data points taken for a single spectrum. This must be a power of 2, to allow FFT of the data.&lt;br /&gt;
(Maximum is 4096)&lt;br /&gt;
&lt;br /&gt;
Spec_Freq[Hz]&lt;br /&gt;
The sampling frequency. (Limited by the DSP_Clock value)&lt;br /&gt;
&lt;br /&gt;
Spec_Avrg_Count&lt;br /&gt;
The number of spectra averaged. Averaging is done only for the spectrum, i.e. the FFT data.&lt;br /&gt;
&lt;br /&gt;
Channels&lt;br /&gt;
First select the check boxes to determine the channels which are acquired during data acquisition&lt;br /&gt;
Part of these channels can be further selected to be displayed.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The results are displayed in two line graphs.&lt;br /&gt;
The upper one shows the time behaviour. (The vertical scale is always in V)&lt;br /&gt;
The lower one shows the frequency spectrum. (The vertical scale on the left shows the peak to peak value of a pure sine component,&lt;br /&gt;
the right scale the rms amplitude for non correlated signals) &lt;br /&gt;
&lt;br /&gt;
The frequency resolution depends on the number of points and the sampling frequency.&lt;br /&gt;
Important: The current signal and the ADC1 signal are filtered by a first order digital filter, which is controlled by the same CurrentRC Parameter.   &lt;br /&gt;
The contents of the memo field is saved together with the file.&lt;br /&gt;
&lt;br /&gt;
In the lower right the AVRG Value and the Standard Deviation of the timespectra data are shown.&lt;br /&gt;
&lt;br /&gt;
Save&lt;br /&gt;
The data is saved in ASCII Format&lt;br /&gt;
&lt;br /&gt;
FFT logscale: Displays the Spectrum in LogScale&lt;br /&gt;
&lt;br /&gt;
Waterfall: Displays the time dependence of the Spectra in a Waterfall like mode at the bottom of the window&lt;br /&gt;
&lt;br /&gt;
[[file:cliptimespectrum.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== 3d-view ==&lt;br /&gt;
&lt;br /&gt;
This part of the program allows the display of 3d views of selected parts of the images. To start, open the window by clicking the &amp;lt;3d view&amp;gt; button. Then click on  &amp;lt;New Data&amp;gt; in the main menue and select a rectangular region on the image displayed in the STMAFM program.  A new form will be opened, where the rendered image is displayed. The sliders in the 3d-view form allow to change the orientation, size, offset and lighting of the 3d object. The 3d image can be displayed in different ways, depending on which check boxes are checked. So the lights can be switched on or off, the 3d image can be shown using lines, hidden lines, or in the normal surface view. Checking the save box will start saving of each images displayed. With this feature a series of BMP images for movies can be created. Checking the &amp;lt;Box&amp;gt; box will draw a 3d box with x,y,z axes in the 3dimage.In the light sources field the angle of the light source can be changed. Apart from a directed diffuse light source ambient lighting can be added.&lt;br /&gt;
&lt;br /&gt;
Under the menue item Color the color of the background and of the lines can be changed.&lt;br /&gt;
Morover the image can be copied to the clipboard (in BMP format), to a new window or the data can be exported in PoVRay format. &lt;br /&gt;
(New List means that a new imagedisplaylist is created for the underlying OPENGL rendering program. This usually done automatically)&lt;br /&gt;
&lt;br /&gt;
Selected views can be saved and are saved with the program.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;&amp;quot; widths=&amp;quot;450px&amp;quot; heights=&amp;quot;300px&amp;quot;&amp;gt;&lt;br /&gt;
file:clip3dcontrol.png&lt;br /&gt;
file:clip3dform.png&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Lateral Manipulation ==&lt;br /&gt;
&lt;br /&gt;
To perform a lateral manipulation with the tip one has first to press the Button &amp;lt;LM&amp;gt; and then to select the starting and the final position of the manipulation path by selecting these points in the image with the left mouse button. A thin line is drawn on the screen between these points. After the manipulation is completed a separate window opens up where the tip height and current during the manipulation is displayed. By pressing the save button this data set can be saved in a *.LAT File.&lt;br /&gt;
&lt;br /&gt;
Different kinds of manipulation procedures can be performed. They are selected by choosing a certain manipulation mode number in the manipulation parameter field. These different modes are described in the following. The speed of the tip is controlled by the parameters latmandelay and latmanddx, which are used throughout the whole process and not only when the tip is manipulating.&lt;br /&gt;
&lt;br /&gt;
Mode 1: This is the simplest constant current mode manipulation. Starting from the top of the image the tip moves in a straight line to the starting point of the manipulation using the standard feedback parameters used for imaging. Then the feedback parameters are switched to the ones selected in the lateral manipulation parameter set . These are current, voltage and gain of the preamplifier. Then the tip moves using these manipulation parameters to the final position. There the parameters are set back to their original imaging values and the tip moves back to top of the image.&lt;br /&gt;
&lt;br /&gt;
Mode 2: Similar to mode 1, but the tip moves first to the final position, then starts the manipulation to the starting position and goes back to final position. It switches back to imaging parameters and moves to the top of the image.&lt;br /&gt;
&lt;br /&gt;
Mode3: Similar to mode 1: The tip first moves to the starting point. Then it moves to final position and back to the starting position using the normal imaging parameters, but the tip height and current are recorded during these two scans. Then the parameters are switched to the manipulation parameters and the tip moves to the final position. Then the parameters are changed back to the imaging parameters and the tip moves back to the starting position while again recording the tip height and current. Finally the tip moves to the top of the image.&lt;br /&gt;
&lt;br /&gt;
Mode 4: This is a constant height manipulation mode. The tip moves first to the starting position. Then it moves from the starting to the final position and back taking data in normal imaging mode. Then the feedback is switched off and the tip moves from the starting to the final position in constant height mode. The height used is given by the height of the tip when the feedbackloop is switched off plus the additional offset given by latmanccdz. This means that the height depends on the imaging parameters. Then the tip moves back from the final position to the starting position in imaging mode, but taking data again. Finally the tip moves to the top of the image. With the extension factor the manipulation path can be extended at the final position by the factor given by latmanextlextension. The starting point is not affected by the extension factor.&lt;br /&gt;
&lt;br /&gt;
Mode 5: Similar to mode 4. In this mode the extension affects also the starting position. The extension positions are first calculated. The tip moves in imaging mode to extended starting position. Then moves to the final extended position and backward and takes data in imaging mode. Then the tip moves to the starting position, while taking data in imaging mode. Then the tip moves from the starting position to the final position in constant height manipulation mode. Then it moves back to the starting position in imaging mode and takes data. Finally it moves back to the top of the image.&lt;br /&gt;
&lt;br /&gt;
Mode 6: Similar to mode 5. The only difference is that the tip moves from the starting to the final position and backward in constant height mode and not only in the forward direction, as done in mode 5.&lt;br /&gt;
&lt;br /&gt;
Mode 0: This mode is different from the other modes. In mode 0 the tip follows always the mouse position immediately. The height of the tip is displayed on rate meter appearing on the left. By pressing the upper case L key the imaging parameters are switched to the manipulation parameters and back again. (By pressing the upper case S a small 64 pixel * 64 pixel scan is performed.) Clicking with the mouse button will stop the continuous following of the tip. After additional clicking the tip moves to the new mouse position in a straight line and tracks the mouse position again.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
These parameters control the lateral manipulation processes.&lt;br /&gt;
&lt;br /&gt;
Mode&lt;br /&gt;
Select one of several different manipulation modes. There are constant current and constant height modes. For example P0 is the origin of the image. Then the tip moves to P1, the first point selected with the mouse. The tunneling parameters are changed to manipulation parameters and the tip moves from P1 to P2. There the normal tunneling parameters, used for imaging, are selected again and the tip moves to the origin P0.&lt;br /&gt;
&lt;br /&gt;
Voltage[V]&lt;br /&gt;
The tunneling voltage applied during the manipulation phase.&lt;br /&gt;
&lt;br /&gt;
Current[nA]&lt;br /&gt;
The current used during manipulation&lt;br /&gt;
&lt;br /&gt;
Gain preamplifier&lt;br /&gt;
The gain used during manipulation&lt;br /&gt;
&lt;br /&gt;
Manip. Speed[A/sec]&lt;br /&gt;
The speed of the tip for lateral movements. Used for all movements. Step Size determines the number points measured during a lat. manip. scan.&lt;br /&gt;
&lt;br /&gt;
Extension&lt;br /&gt;
Extension value for manipulation modes 4-6&lt;br /&gt;
&lt;br /&gt;
Const. Height Z-Offset&lt;br /&gt;
In constant height mode the tip sample distance can be varied by this parameters. Positive values [Å} correspond to a closer approach to the surface.&lt;br /&gt;
&lt;br /&gt;
Channels&lt;br /&gt;
Select the channels acquired during data acquisition&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
LatChannelForm&lt;br /&gt;
Press to open a new Form to display the manipulation data.&lt;br /&gt;
&lt;br /&gt;
Lateral Speed [A/sec]&lt;br /&gt;
Speed at which the tip is moving from the origin to first starting point&lt;br /&gt;
&lt;br /&gt;
LM in old place&lt;br /&gt;
Repeat the LM using the previous coordinates&lt;br /&gt;
&lt;br /&gt;
Load Ext Lat Par&lt;br /&gt;
Load the lateral manipulation cooordinates from an external file.&lt;br /&gt;
&lt;br /&gt;
[[file:cliplatmanip.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The measured data is displayed in separate windows. X and Y scaling can be adjusted by the user. Two independent axis can be displayed. (Press &amp;lt;2.Axis&amp;gt;)&lt;br /&gt;
&amp;lt;LP&amp;gt; Low Pass Filter&lt;br /&gt;
&amp;lt;TP&amp;gt; Makes the Windows transparent to put it on top of another window.&lt;br /&gt;
&lt;br /&gt;
[[file:cliplmanip.png]]&lt;br /&gt;
&lt;br /&gt;
Right click to open the Popupmenu.&lt;br /&gt;
XYDesign, XY Series Edit allows to change the appearance of the Data&lt;br /&gt;
Copyclipboard.. copies the Plot or the Data into the clipboard&lt;br /&gt;
PrintXYGraph prints the XY Plot&lt;br /&gt;
Measure allows measuring the distance between points in the plot&lt;br /&gt;
AutoUpdate: The Plot is updated every second during Data Acquisition. &lt;br /&gt;
Lowpass filters the data (very simple just nearest neighbor average)&lt;br /&gt;
 &lt;br /&gt;
[[file:clipvertmanip_popupmenu1.png]]&lt;br /&gt;
&lt;br /&gt;
== Vertical Manipulation / I/V Spectroscopy ==&lt;br /&gt;
&lt;br /&gt;
Vertical manipulation (spectroscopy) is started by pressing on the &amp;lt;VM&amp;gt; button and selecting a point in the image by clicking with the left mouse button. The tip uses the lateral speed value to move to the vertical manipulation position. When the manipulation is finished the measured data appears in a separate window and can be saved with the Save button. Different channels can be selected to be recorded. Usually an external Lockin will be connected to ADC1. The internal Lockin supplies the signals dI/dV, d2I/dV2, di_q,d2_q. The form of the voltage and the z-height ramp is controlled by 8 points in time. In the case of the voltage one can define 8 time points and their corresponding voltage value. For example (0,1000), (256,0), (512,2000),(1024,-1000) define a ramp starting with 1000mV at time 0. Then it will be linear interpolated to time 256 with 0 Volt. Then it goes up again to 2000mV at time 512 and finally reaches -1000mV at time 1024. The time values correspond to the number of points taken. In this case these are 1024 points. A maximum of 100000 points is possible. The z-height values already include the gain of the z-amplifier. This means, that changing the HV gain will not change the z-height ramp, because this will be automatically corrected. Vertspecback = 1 will apply the ramp in forward and backward direction. Vertspecback=n will apply the ramp in forward and backward direction n-times (n&amp;gt;=1). The shape of the ramps is shown in the lower graph in the vertical manipulation window. &lt;br /&gt;
&lt;br /&gt;
Vertical spectroscopy can be done during scanning. Press the VM Button and select a point in the unscanned image area.  &lt;br /&gt;
&lt;br /&gt;
These parameters control the vertical manipulation and spectroscopy&lt;br /&gt;
&lt;br /&gt;
Gain preamplifier&lt;br /&gt;
Gain of the preamplifier during data acquisition&lt;br /&gt;
&lt;br /&gt;
Speclenght[sec]&lt;br /&gt;
Select the recording total time of the spectrum.&lt;br /&gt;
&lt;br /&gt;
Spectrum backward&lt;br /&gt;
0: The Spectrum defined in the V,Z table is taken only once.&lt;br /&gt;
1: The spectrum defined in the V,Z table is taken once in forward and once in backward direction&lt;br /&gt;
&amp;gt;1: Defines how often a forward and backward spectrum is taken&lt;br /&gt;
&lt;br /&gt;
Lateral Speed[A/sec]&lt;br /&gt;
Speed at which the tip moves to the place where the spectrum will be taken.&lt;br /&gt;
&lt;br /&gt;
Z- Offset&lt;br /&gt;
Defines an additonal offset which is added to the z values in the table&lt;br /&gt;
&lt;br /&gt;
Z-Drift&lt;br /&gt;
Defines an increment which is added to the values in the table to compensate drift effects&lt;br /&gt;
&lt;br /&gt;
Repeat Count&lt;br /&gt;
Defines how many separate spectra are taken and stored.&lt;br /&gt;
&lt;br /&gt;
Spectra/Line&lt;br /&gt;
Defines the number of spectra equally spaced along a line between a start and endpoint,selected by mouse input.&lt;br /&gt;
The first spectrum is taken at the startpoint of the line the last one at the endpoint of the line.  &lt;br /&gt;
&lt;br /&gt;
V,Z table&lt;br /&gt;
4 points can be defined to create a voltage and z table used for vertical manipulation and spectroscopy. The data values are plotted in the graph below. The first Time Value should be set to 1 (not 0, still allowed for compatibility), otherwise the first value might not be displayed.&lt;br /&gt;
(Voltage(green), Z-Position(blue))&lt;br /&gt;
&lt;br /&gt;
Spec_X_Grid&lt;br /&gt;
Spec_Y_Grid&lt;br /&gt;
Determine the spacing of the spectroscopy grid. First spectrum position is (spec_x_grid,spec_y_grid) in pixel coordinates.&lt;br /&gt;
&lt;br /&gt;
SGrid_Channel&lt;br /&gt;
Number of channels recorded during the grid spectroscopy mode&lt;br /&gt;
&lt;br /&gt;
SpecGrid_Delay&lt;br /&gt;
Delay in DSP cycle units added before/after a vertical spectrum is started/finished.&lt;br /&gt;
&lt;br /&gt;
SpecAvrgCount&lt;br /&gt;
Number of Spectra acquired and averaged directly on the DSP board. For Count&amp;gt;1 be aware that the current preamplifier gain for vertical spectroscopy will be set the same to the normal preamplifer gain. Between the spectra the feedback loop will be switched on to readjust the sample tip distance.   &lt;br /&gt;
&lt;br /&gt;
SpecAvrgFBDelay  &lt;br /&gt;
On Time of the Feedback loop in DSP cycle units between spectra in Averaging mode.&lt;br /&gt;
&lt;br /&gt;
Save File&lt;br /&gt;
Save the present Vert. Spektrum&lt;br /&gt;
&lt;br /&gt;
Single_Spectrum&lt;br /&gt;
Take one single spectrum. Select the position with a left mouse button click on the image.&lt;br /&gt;
Same like pressing &amp;lt;VM&amp;gt; button&lt;br /&gt;
&lt;br /&gt;
Spectra along Line&lt;br /&gt;
Take a series of spectra equally spaced a long a line defined by two mouse clicks. &lt;br /&gt;
&lt;br /&gt;
Spec in old Place&lt;br /&gt;
Take a spectrum at the X,Y position of the previous scan.&lt;br /&gt;
&lt;br /&gt;
Multiple Spectra&lt;br /&gt;
Select several spectra taken one after the other. Left Mouse button select another spectrum, right mosue button stop selection and start data acquisition.&lt;br /&gt;
&lt;br /&gt;
MultSpec from File&lt;br /&gt;
Use an external file (Ascii) to define a series of spectra.&lt;br /&gt;
Only 256*256 pixel images allowed. No zoom.  First line contains number of spectra. Each following line contains the x y image coordinates(integer) of each spectrum. &lt;br /&gt;
&lt;br /&gt;
Spectra on Grid&lt;br /&gt;
Spectra taken at each grid position. (Analysis of the Grid data is done in another program)&lt;br /&gt;
&lt;br /&gt;
SaveSpecgrid&lt;br /&gt;
Save the Grid File. Two files are saved. One *.specgrid.dat File with all the parameters and the *.specgrid File with the grid data&lt;br /&gt;
&lt;br /&gt;
VFB_Mode&lt;br /&gt;
Select the VoltageFeedbackMode&lt;br /&gt;
I(V,z): Normal Operation feedback loop is OFF&lt;br /&gt;
z(V): Constant current operation&lt;br /&gt;
&lt;br /&gt;
VFB_Current[nA]&lt;br /&gt;
Current setpoint used in z(V) Mode. FB_Channel has to be current.&lt;br /&gt;
&lt;br /&gt;
Load Vert_Params&lt;br /&gt;
Load only the parameter of a spectrum and not the data&lt;br /&gt;
&lt;br /&gt;
External VZ Data&lt;br /&gt;
If not checked the VZ Data for a spectrum are taken from the VZ-Table parameter.&lt;br /&gt;
If checked the VZData is taken from a different source table, which can be loaded from an external file.&lt;br /&gt;
This allows the user defined design of arbitrary VZ arrays of up to 100000 points. File format see below.  &lt;br /&gt;
&lt;br /&gt;
Filenames:&lt;br /&gt;
First Letter is the machinename, in case you have more than one LTSTM or you want to assign different users.&lt;br /&gt;
Followed by DATE.TIME.VERT. VERT is the standard fileextension.&lt;br /&gt;
In case you take repeated spectra in a point or take spectra along a line an additional &amp;quot;L&amp;lt;Number&amp;gt;.R&amp;lt;Number&amp;gt;.&amp;quot; indicator is added before&lt;br /&gt;
the VERT file extension. L indicates line position and R indicates the numbering in repeat mode.&lt;br /&gt;
&lt;br /&gt;
[[file:clipvertmanp.png]]&lt;br /&gt;
&lt;br /&gt;
The measured data is displayed in separate windows. X and Y scaling can be adjusted by the user. Two independent axis can be displayed. (Press &amp;lt;2.Axis&amp;gt;)&lt;br /&gt;
&amp;lt;LP&amp;gt; Low Pass Filter&lt;br /&gt;
&amp;lt;TP&amp;gt; Makes the Windows transparent to put it on top of another window.&lt;br /&gt;
&lt;br /&gt;
[[file:clipvmanip.png]]&lt;br /&gt;
&lt;br /&gt;
Right click to open the Popupmenu.&lt;br /&gt;
XYDesign, XY Series Edit allows to change the appearance of the Data&lt;br /&gt;
Copyclipboard.. copies the Plot or the Data into the clipboard&lt;br /&gt;
PrintXYGraph prints the XY Plot&lt;br /&gt;
Measure allows measuring the distance between points in the plot&lt;br /&gt;
AutoUpdate: The Plot is updated every second during Data Acquisition. &lt;br /&gt;
Lowpass filters the data (very simple just nearest neighbor average)&lt;br /&gt;
 &lt;br /&gt;
[[file:clipvertmanip_popupmenu1.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Slider ==&lt;br /&gt;
&lt;br /&gt;
Brightness and Contrast&lt;br /&gt;
Use the slider window to control the brightness and contrast of the image. The slider marked B adjusts the brightness of the image. The slider marked Z controls the contrast. Above both sliders the corresponding height range in (+/-)Angstroem is displayed.So total height difference between black and white for example is two times the displayed value. On the right for multichannel images the channel, which is displayed can be selected. &lt;br /&gt;
&lt;br /&gt;
Biasvoltage&lt;br /&gt;
The polarity of the biasvoltage can be changed by pressing with the mouse on 'V' label, or by pressing the &amp;lt;+&amp;gt;/ &amp;lt;-&amp;gt; keys. &lt;br /&gt;
&lt;br /&gt;
Press the right mouse button on the 'V' label to open a Popupmenu for the biasvoltage. &lt;br /&gt;
Three options exist:&lt;br /&gt;
SetBiasMinvolt:  If selected sets the current biasvoltage as the minimum biasvoltage.&lt;br /&gt;
SetBiasMaxvolt: If selected sets the current biasvoltage as the maximum biasvoltage.&lt;br /&gt;
This feature can be used to avoid tunneling outside a specific bias voltange range. i.e for example to limit the maximum biasvoltage to protect the tip, when using the silder.&lt;br /&gt;
&lt;br /&gt;
ResetBiasMinMax: If selected deletes the Min/Max values again.&lt;br /&gt;
 &lt;br /&gt;
Current&lt;br /&gt;
Press the right mouse button on the 'A' label to open a Popupmenu for the current. &lt;br /&gt;
&lt;br /&gt;
Log: logarithmic scaling of the current slider&lt;br /&gt;
Lin: linear scaling of the current slider&lt;br /&gt;
&lt;br /&gt;
Channels &lt;br /&gt;
Select the displayed channel. For Channel Nr.=  0 all channels are displayed.&lt;br /&gt;
&lt;br /&gt;
Zoom&lt;br /&gt;
Allowed zoom factors are x1, x2, x3, x4.&lt;br /&gt;
&lt;br /&gt;
Tip up/down&lt;br /&gt;
Press this button to fully retract or to approach the tip.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[file:clipslider.png]]&lt;br /&gt;
&lt;br /&gt;
The height of the slider window can be adjusted. This changes the height of the sliders simultaneously.&lt;br /&gt;
&lt;br /&gt;
== FFT Evaluation ==&lt;br /&gt;
&lt;br /&gt;
This part of the software allows use to analyse FFT transforms of the images. (Always crosscheck the results)&lt;br /&gt;
&lt;br /&gt;
[[file:clipfftevaluation.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Load Files ==&lt;br /&gt;
&lt;br /&gt;
Loading Files is done using the &amp;lt;Open *.Dat&amp;gt; menue item.&lt;br /&gt;
&lt;br /&gt;
You can define your own favorite directories in the Windows Places Bar region. (Use for example the TweakUI utility.)&lt;br /&gt;
&lt;br /&gt;
Options:&lt;br /&gt;
&lt;br /&gt;
Full Parameter Load:  Check to load all parameters, not only those relevant for the loaded file type. &lt;br /&gt;
 &lt;br /&gt;
Disable Warning: If checked no warning will be given when files are loaded in data acquisition.                               &lt;br /&gt;
             &lt;br /&gt;
&lt;br /&gt;
[[file:cliploadfile.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Open allows to select in running program or alternatively in a newly opened analysis program.&lt;br /&gt;
&lt;br /&gt;
[[file:cliploadfile2.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
== AFM ==&lt;br /&gt;
&lt;br /&gt;
In the following we discuss the operation of the internal PLL system.&lt;br /&gt;
The internal PLL can operate up to 32kHz ( based on 16 samples per period at 512kHz max sample rate).&lt;br /&gt;
This usualy covers operation of standard quartz tuning fork sensors as the qPlus sensor.&lt;br /&gt;
(For higher frequencies optionally the Zurich Instruments PLL can be used externally.)&lt;br /&gt;
The input signal from the Preamplifier is connected to the ADC3 input of ADDA Board 2, while DAC5 of the same ADDA Board supplies the excitation signal. &lt;br /&gt;
&lt;br /&gt;
PLL Centerfreq: determines the center frequency of the PLL. (Change either by typing the number directly or increase/decrease by using the up/down/ page up/page down and both in combination with Shift key)&lt;br /&gt;
PLL-Ampl[nm]: Input the Set value of the Amplitude in nm when the Amplitude controller is on&lt;br /&gt;
PLL-Exc[V]: Input the Excitation value in Volt&lt;br /&gt;
PLL-Phase: Phase Shift of Exciation Signal. Has to be optimized const stable PLL operation&lt;br /&gt;
PLL F Range[+/-Hz]: PLL frequency tracking range. max. allowed deviation from center frequency&lt;br /&gt;
&lt;br /&gt;
PLL On: If selected operation of the PLL is switched on&lt;br /&gt;
Ampl Control: If selected Amplitude Control is switched on&lt;br /&gt;
Active Damping: If selected the Amplitude control can electronically damp the cantilever vibration&lt;br /&gt;
Ref Signal f: If selected DAC2 of the PLL board outputs a reference of the PLL frequency&lt;br /&gt;
Ref Signal 2f: If selected DAC2 of the PLL board outputs a reference of the 2nd harmonic of the PLL frequency&lt;br /&gt;
&lt;br /&gt;
P[Hz/Deg]: Proportional value of the PLL frequency controller&lt;br /&gt;
Int[Hz/deg/s]: Integrator value of the PLL frequency controller&lt;br /&gt;
LP Filter[Hz]: Value of the 4th order loop filter&lt;br /&gt;
P Ampl[V/nm]: Proportional part of the Ampl controller&lt;br /&gt;
LP Amp filter[Hz]: Loop filter of the Amp controller&lt;br /&gt;
df Post Filter[Hz]: Filters the PLL freq data finally before it is output to the STM feedback controller&lt;br /&gt;
&lt;br /&gt;
Sensor Cal[V/nm]: Calibrate the Preamp output in nm units&lt;br /&gt;
SRS Gain: Optionally include the SRS Preamp gain&lt;br /&gt;
&lt;br /&gt;
PLL FreqScan, PLL Phase Scan: Start a frequency or Phase Scan&lt;br /&gt;
Filter PLL_Scan: Filter the Scan Data. (simple 1.order lowpass). can be repeated to allow a beeter calculation of the Q factor etc.&lt;br /&gt;
Show Phase: Displays the phase. Has to be selected to calculate the Q Factor.&lt;br /&gt;
&lt;br /&gt;
Results: Automatic determination of CenterFreq and Q Factor&lt;br /&gt;
&lt;br /&gt;
ScancenterFreq, FreqSpan, ScanTime, ScanPoints: determines the properties of the Frequency Scan or PLL Phase Scan&lt;br /&gt;
&lt;br /&gt;
[[file:Resonance.png]]&lt;br /&gt;
&lt;br /&gt;
[[Category:stmafm_manual]]&lt;br /&gt;
&lt;br /&gt;
== 20 steps to successful AFM operation ==&lt;br /&gt;
&lt;br /&gt;
For a first setup of a functioning PLL useful for scanning in CC, CH or CF mode please refer to the following graphical guide.&lt;br /&gt;
&lt;br /&gt;
[[File:Folie2.PNG|800px]]&lt;br /&gt;
&lt;br /&gt;
[[File:Folie3.PNG|800px]]&lt;br /&gt;
&lt;br /&gt;
[[File:Folie4.PNG|800px]]&lt;br /&gt;
&lt;br /&gt;
[[File:Folie5.PNG|800px]]&lt;br /&gt;
&lt;br /&gt;
In order to start scanning please perform the following steps:&lt;br /&gt;
a) For constant current mode (CC, dynamic STM)&lt;br /&gt;
14. Approach the tip and observe the frequency shift changing from Δf=0 Hz to a finite negative value.&lt;br /&gt;
15. Select the channels ''dF'', ''Amplitude'' and ''Damping'' in the Parameter window in order to measure these signals.&lt;br /&gt;
16. Set the current setpoint to a finite value, i.e. e.g., 10 or 100 pA.&lt;br /&gt;
17. Start scanning in CC mode as you would do in STM mode.&lt;br /&gt;
&lt;br /&gt;
b) For constant force mode (CF, nc-AFM)&lt;br /&gt;
14. Change the feedback mode to ''LinAbs'' and the feedback channel to ''dF''.&lt;br /&gt;
15. Change the integrator value to e.g. -0.0003 or something in the same order of magnitude.&lt;br /&gt;
16. Select the channels ''dF'', ''Amplitude'' and ''Damping'' in the Parameter window.&lt;br /&gt;
17. Set the constant frequency setpoint to a value close to but a little bit smaller than the finite Δf value from above.&lt;br /&gt;
18. Start scanning in CF mode as you would do in STM mode.&lt;br /&gt;
19. Adjust the scanning speed and the integrator together with the amplitude and phase control of the tuning fork.&lt;br /&gt;
20. Observe the current signal and increase the setpoint in order to go closer to the surface.&lt;/div&gt;</summary>
		<author><name>Ltspm</name></author>	</entry>

	<entry>
		<id>http://spm-wiki.createc.de/index.php?title=Forms</id>
		<title>Forms</title>
		<link rel="alternate" type="text/html" href="http://spm-wiki.createc.de/index.php?title=Forms"/>
				<updated>2016-12-21T09:23:25Z</updated>
		
		<summary type="html">&lt;p&gt;Ltspm: /* Rampcontroller */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== LineScan ==&lt;br /&gt;
&lt;br /&gt;
Press the ''Lin'' Button to take a line scan of the image. First select two points of the image by pressing the left mouse button. The linescan&lt;br /&gt;
is displayed in the upper linegraph of the linescanform-window. To perform measurements on the linescan press the &amp;lt;Measure&amp;gt; button. &lt;br /&gt;
&lt;br /&gt;
Use the left mouse button to select a new point. With the right mouse button you can switch between points. Pressing the Shift button allows to move a whole line. Pressing the right mouse button together with the Shift button will switch to the prependicular averaging mode.&lt;br /&gt;
&lt;br /&gt;
Important: If the linescan form is opened through the menue selection first, all linescan data will be displayed always in the this particular window. Otherwise pressing the LIN button will always open a new window.&lt;br /&gt;
&lt;br /&gt;
Autosize&lt;br /&gt;
Selects automatic scaling of the linegraph&lt;br /&gt;
&lt;br /&gt;
Autolinebacksub&lt;br /&gt;
Selects automatic subtraction of linear background&lt;br /&gt;
&lt;br /&gt;
Line Display Trackbar&lt;br /&gt;
Move to show a line scan of a particular image line. A FFT of the selected line is shown in the lower line graph.(The number of points/line has to be a power of 2)&lt;br /&gt;
&lt;br /&gt;
Popup menu of upper linegraph&lt;br /&gt;
xydesign: Select to adjust the appearance of the line graph&lt;br /&gt;
CopyClipboardData: The line scan data are copied to the ClipBoard&lt;br /&gt;
CopyClipboardXYGraph: The line scan graph is copied to the ClipBoard&lt;br /&gt;
Printxygraph: The line scan graph is send to the printer&lt;br /&gt;
Measure: Do measurements of the plot data.&lt;br /&gt;
Redrawline: The line in the image is redrawn&lt;br /&gt;
&lt;br /&gt;
Popup menu of lower linegraph&lt;br /&gt;
has the same items as the upper popup menu and one additional entry:&lt;br /&gt;
Show Frequency: Gives the FFT in frequency [Hz] instead of inverse distance [1/Å] (updated when the Line Display Trackbar is moved)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Channels&lt;br /&gt;
Select the channels which are displayed&lt;br /&gt;
&lt;br /&gt;
[[file:cliplinescan.png]]&lt;br /&gt;
&lt;br /&gt;
[[file:cliplinescanpopupmenu.png]]&lt;br /&gt;
&lt;br /&gt;
== Rampcontroller ==&lt;br /&gt;
&lt;br /&gt;
Click on the ''Ramp'' button. This opens the 'Rampcontroller'-window with control elements necessary to perform the coarse approach. The 6 buttons with arrows in the top of the form correspond to moving the tip in respect to the sample surface. Moving in x/y direction can also be done using the x/y cursor keys on the keyboard. The page up and page down keys are used correspondingly for rotation up and down. Selecting the burst mode in x/y or rotation will result in a series of steps corresponding to the number of burst steps displayed in the ramp parameter list. When the Crash Protection is switched on, the program checks before each step, whether it can detect a tunneling current. If this is the case it will cancel the step. Usually the crash protection should be switched on, but in cases where the tip is already crashed, the protection has to be switched off. The program issues some warnings when the ramp windows opens to inform the user to do necessary changes for a successful ramping. These are: First retract the tip, reset the x- and y-offset in the STM-program, select the appropriate gain (1-10, depending on the temperature) in the x- and y- channel of the HV-amplifier and set the external offset voltages to zero.&lt;br /&gt;
The usual coarse approach is done by controlling the approach with an optical microscope. When the tip is  close enough, the automatic tip approach can be switched on, by pressing the ''Approach'' button. It will start a combination of single coarse approach rotation steps combined with tip approach testing until the tip can reach the sample. ''Approach'' stops when a tunneling current is detected. The value of this threshold current is set by the current slider. Important: When the approach stops, the tip is automatically retracted, by setting the current to zero. Before leaving the coarse approach by pressing the ''Quit'' button, you have to select the mode for scanning. When the ''Main/Coarse'' button displays 'Coarse' mode, then the outer 3 piezos are used for scanning, otherwise the center piezo is used. In the normal operation of the microscope the 'Coarse' mode should be selected. Select the required set point current to see if the approach was successful. Now the tip should be retracted manually by using the external HV-amplifier z-offset voltage to go out of tunneling. Select the required gains and re-approach the tip again.&lt;br /&gt;
&lt;br /&gt;
See also: Approach Tips&lt;br /&gt;
&lt;br /&gt;
The Coarse Approach operation is controlled by the following parameters:&lt;br /&gt;
&lt;br /&gt;
Puls Height[V]&lt;br /&gt;
Input the peak to peak height (in V) of the sawtooth pulse used for moving the inertial slider. Two different values are used for the lateral XY motion and the rotational motion.&lt;br /&gt;
&lt;br /&gt;
Puls-Duration[sec]&lt;br /&gt;
Input the duration of a single sawtooth pulse in seconds. &lt;br /&gt;
&lt;br /&gt;
Burst-Count&lt;br /&gt;
Determines the number of sawtooth pulses applied when operating the coarse control in burst mode.&lt;br /&gt;
&lt;br /&gt;
Approach Period[sec]&lt;br /&gt;
Determines the time for a single approach cycle including approach and retraction of the tip to find the sample surface.&lt;br /&gt;
&lt;br /&gt;
Approach Burst Count&lt;br /&gt;
This is the number of coarse pulses applied between two approach cycles.&lt;br /&gt;
&lt;br /&gt;
Approach Retry Count&lt;br /&gt;
This is the number of retry operations done before the approach is stopped.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[file:cliprampcontrollerCreatec.png]]&lt;br /&gt;
&lt;br /&gt;
== Grid ==&lt;br /&gt;
&lt;br /&gt;
The form 'Grid-Image- Transformation' contains several functions for different kinds of image transformations. A suitable combination of the procedures below will allow transformations useful for drift correction, superstructure analysis, extraction of registry information. To open the form press on the grid button in the STMAFM form. With the 6 slider controls a grid can be overlayed on the image. The lateral position, the angles of the grid and the distance between the grid lines can be adjusted. An alternative way to input the grid is pressing the &amp;lt;Mouse&amp;gt; button and to mark 3 points (the first one is the center, the other two determine the direction of the two lines). Pressing the &amp;lt;Rotation&amp;gt; button will rotate the image in such a way that one set of the grid lines (X-Axis) is parallel to the horizontal direction. Pressing the &amp;lt;Zoom&amp;gt; button will zoom the image by the value set in the edit control positioned next to the right of the button. The image is zoomed around the center point of the grid. By pressing on the &amp;lt;X..,Y..&amp;gt; button the actual center position of the grid is stored and displayed on the button. Selecting a new center position with the mouse, as described above, and pressing the &amp;lt;Move grid to Center&amp;gt; button will move the new defined center to the stored center position. The &amp;lt;Transform&amp;gt; button will transform the image according to the 2 Parameters in the edit controls below. The first is the new angle between the lines in the image and the second is the new ratio the grid line distances. Selecting the &amp;lt;HexGrid&amp;gt; check box will draw a grid suitable for hexagonal unit cells. If draw inverted is selected the grid is drawn by a inversion process. Otherwise you can select with &amp;lt;Grid Color&amp;gt; the line color of the grid.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;&amp;quot; widths=&amp;quot;400px&amp;quot; heights=&amp;quot;400px&amp;quot;&amp;gt;&lt;br /&gt;
file:clipgrid.png&lt;br /&gt;
file:clipgridimage.png&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== TimeSpectrum ==&lt;br /&gt;
&lt;br /&gt;
It is very often useful to take a time record of the A/D input channels, without scanning or changing the biasvoltage. This is for example a convenient way to characterize the noise performance of the STM. To take a time record just press the &amp;lt;Start&amp;gt; Button on the Time-Spectrum window or press the &amp;lt;TS&amp;gt; button on the main window. Five channels are recorded simultaneously. The A/D channels 0 and 3 (ADC0 is called current I) and the topography signal output from the feedback loop, called Z. The displayed channel is selected by the corresponding channel button. Three parameters control the data acquisition:&lt;br /&gt;
&lt;br /&gt;
Spec_Points&lt;br /&gt;
The number of data points taken for a single spectrum. This must be a power of 2, to allow FFT of the data.&lt;br /&gt;
(Maximum is 4096)&lt;br /&gt;
&lt;br /&gt;
Spec_Freq[Hz]&lt;br /&gt;
The sampling frequency. (Limited by the DSP_Clock value)&lt;br /&gt;
&lt;br /&gt;
Spec_Avrg_Count&lt;br /&gt;
The number of spectra averaged. Averaging is done only for the spectrum, i.e. the FFT data.&lt;br /&gt;
&lt;br /&gt;
Channels&lt;br /&gt;
First select the check boxes to determine the channels which are acquired during data acquisition&lt;br /&gt;
Part of these channels can be further selected to be displayed.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The results are displayed in two line graphs.&lt;br /&gt;
The upper one shows the time behaviour. (The vertical scale is always in V)&lt;br /&gt;
The lower one shows the frequency spectrum. (The vertical scale on the left shows the peak to peak value of a pure sine component,&lt;br /&gt;
the right scale the rms amplitude for non correlated signals) &lt;br /&gt;
&lt;br /&gt;
The frequency resolution depends on the number of points and the sampling frequency.&lt;br /&gt;
Important: The current signal and the ADC1 signal are filtered by a first order digital filter, which is controlled by the same CurrentRC Parameter.   &lt;br /&gt;
The contents of the memo field is saved together with the file.&lt;br /&gt;
&lt;br /&gt;
In the lower right the AVRG Value and the Standard Deviation of the timespectra data are shown.&lt;br /&gt;
&lt;br /&gt;
Save&lt;br /&gt;
The data is saved in ASCII Format&lt;br /&gt;
&lt;br /&gt;
FFT logscale: Displays the Spectrum in LogScale&lt;br /&gt;
&lt;br /&gt;
Waterfall: Displays the time dependence of the Spectra in a Waterfall like mode at the bottom of the window&lt;br /&gt;
&lt;br /&gt;
[[file:cliptimespectrum.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== 3d-view ==&lt;br /&gt;
&lt;br /&gt;
This part of the program allows the display of 3d views of selected parts of the images. To start, open the window by clicking the &amp;lt;3d view&amp;gt; button. Then click on  &amp;lt;New Data&amp;gt; in the main menue and select a rectangular region on the image displayed in the STMAFM program.  A new form will be opened, where the rendered image is displayed. The sliders in the 3d-view form allow to change the orientation, size, offset and lighting of the 3d object. The 3d image can be displayed in different ways, depending on which check boxes are checked. So the lights can be switched on or off, the 3d image can be shown using lines, hidden lines, or in the normal surface view. Checking the save box will start saving of each images displayed. With this feature a series of BMP images for movies can be created. Checking the &amp;lt;Box&amp;gt; box will draw a 3d box with x,y,z axes in the 3dimage.In the light sources field the angle of the light source can be changed. Apart from a directed diffuse light source ambient lighting can be added.&lt;br /&gt;
&lt;br /&gt;
Under the menue item Color the color of the background and of the lines can be changed.&lt;br /&gt;
Morover the image can be copied to the clipboard (in BMP format), to a new window or the data can be exported in PoVRay format. &lt;br /&gt;
(New List means that a new imagedisplaylist is created for the underlying OPENGL rendering program. This usually done automatically)&lt;br /&gt;
&lt;br /&gt;
Selected views can be saved and are saved with the program.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;&amp;quot; widths=&amp;quot;450px&amp;quot; heights=&amp;quot;300px&amp;quot;&amp;gt;&lt;br /&gt;
file:clip3dcontrol.png&lt;br /&gt;
file:clip3dform.png&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Lateral Manipulation ==&lt;br /&gt;
&lt;br /&gt;
To perform a lateral manipulation with the tip one has first to press the Button &amp;lt;LM&amp;gt; and then to select the starting and the final position of the manipulation path by selecting these points in the image with the left mouse button. A thin line is drawn on the screen between these points. After the manipulation is completed a separate window opens up where the tip height and current during the manipulation is displayed. By pressing the save button this data set can be saved in a *.LAT File.&lt;br /&gt;
&lt;br /&gt;
Different kinds of manipulation procedures can be performed. They are selected by choosing a certain manipulation mode number in the manipulation parameter field. These different modes are described in the following. The speed of the tip is controlled by the parameters latmandelay and latmanddx, which are used throughout the whole process and not only when the tip is manipulating.&lt;br /&gt;
&lt;br /&gt;
Mode 1: This is the simplest constant current mode manipulation. Starting from the top of the image the tip moves in a straight line to the starting point of the manipulation using the standard feedback parameters used for imaging. Then the feedback parameters are switched to the ones selected in the lateral manipulation parameter set . These are current, voltage and gain of the preamplifier. Then the tip moves using these manipulation parameters to the final position. There the parameters are set back to their original imaging values and the tip moves back to top of the image.&lt;br /&gt;
&lt;br /&gt;
Mode 2: Similar to mode 1, but the tip moves first to the final position, then starts the manipulation to the starting position and goes back to final position. It switches back to imaging parameters and moves to the top of the image.&lt;br /&gt;
&lt;br /&gt;
Mode3: Similar to mode 1: The tip first moves to the starting point. Then it moves to final position and back to the starting position using the normal imaging parameters, but the tip height and current are recorded during these two scans. Then the parameters are switched to the manipulation parameters and the tip moves to the final position. Then the parameters are changed back to the imaging parameters and the tip moves back to the starting position while again recording the tip height and current. Finally the tip moves to the top of the image.&lt;br /&gt;
&lt;br /&gt;
Mode 4: This is a constant height manipulation mode. The tip moves first to the starting position. Then it moves from the starting to the final position and back taking data in normal imaging mode. Then the feedback is switched off and the tip moves from the starting to the final position in constant height mode. The height used is given by the height of the tip when the feedbackloop is switched off plus the additional offset given by latmanccdz. This means that the height depends on the imaging parameters. Then the tip moves back from the final position to the starting position in imaging mode, but taking data again. Finally the tip moves to the top of the image. With the extension factor the manipulation path can be extended at the final position by the factor given by latmanextlextension. The starting point is not affected by the extension factor.&lt;br /&gt;
&lt;br /&gt;
Mode 5: Similar to mode 4. In this mode the extension affects also the starting position. The extension positions are first calculated. The tip moves in imaging mode to extended starting position. Then moves to the final extended position and backward and takes data in imaging mode. Then the tip moves to the starting position, while taking data in imaging mode. Then the tip moves from the starting position to the final position in constant height manipulation mode. Then it moves back to the starting position in imaging mode and takes data. Finally it moves back to the top of the image.&lt;br /&gt;
&lt;br /&gt;
Mode 6: Similar to mode 5. The only difference is that the tip moves from the starting to the final position and backward in constant height mode and not only in the forward direction, as done in mode 5.&lt;br /&gt;
&lt;br /&gt;
Mode 0: This mode is different from the other modes. In mode 0 the tip follows always the mouse position immediately. The height of the tip is displayed on rate meter appearing on the left. By pressing the upper case L key the imaging parameters are switched to the manipulation parameters and back again. (By pressing the upper case S a small 64 pixel * 64 pixel scan is performed.) Clicking with the mouse button will stop the continuous following of the tip. After additional clicking the tip moves to the new mouse position in a straight line and tracks the mouse position again.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
These parameters control the lateral manipulation processes.&lt;br /&gt;
&lt;br /&gt;
Mode&lt;br /&gt;
Select one of several different manipulation modes. There are constant current and constant height modes. For example P0 is the origin of the image. Then the tip moves to P1, the first point selected with the mouse. The tunneling parameters are changed to manipulation parameters and the tip moves from P1 to P2. There the normal tunneling parameters, used for imaging, are selected again and the tip moves to the origin P0.&lt;br /&gt;
&lt;br /&gt;
Voltage[V]&lt;br /&gt;
The tunneling voltage applied during the manipulation phase.&lt;br /&gt;
&lt;br /&gt;
Current[nA]&lt;br /&gt;
The current used during manipulation&lt;br /&gt;
&lt;br /&gt;
Gain preamplifier&lt;br /&gt;
The gain used during manipulation&lt;br /&gt;
&lt;br /&gt;
Manip. Speed[A/sec]&lt;br /&gt;
The speed of the tip for lateral movements. Used for all movements. Step Size determines the number points measured during a lat. manip. scan.&lt;br /&gt;
&lt;br /&gt;
Extension&lt;br /&gt;
Extension value for manipulation modes 4-6&lt;br /&gt;
&lt;br /&gt;
Const. Height Z-Offset&lt;br /&gt;
In constant height mode the tip sample distance can be varied by this parameters. Positive values [Å} correspond to a closer approach to the surface.&lt;br /&gt;
&lt;br /&gt;
Channels&lt;br /&gt;
Select the channels acquired during data acquisition&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
LatChannelForm&lt;br /&gt;
Press to open a new Form to display the manipulation data.&lt;br /&gt;
&lt;br /&gt;
Lateral Speed [A/sec]&lt;br /&gt;
Speed at which the tip is moving from the origin to first starting point&lt;br /&gt;
&lt;br /&gt;
LM in old place&lt;br /&gt;
Repeat the LM using the previous coordinates&lt;br /&gt;
&lt;br /&gt;
Load Ext Lat Par&lt;br /&gt;
Load the lateral manipulation cooordinates from an external file.&lt;br /&gt;
&lt;br /&gt;
[[file:cliplatmanip.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The measured data is displayed in separate windows. X and Y scaling can be adjusted by the user. Two independent axis can be displayed. (Press &amp;lt;2.Axis&amp;gt;)&lt;br /&gt;
&amp;lt;LP&amp;gt; Low Pass Filter&lt;br /&gt;
&amp;lt;TP&amp;gt; Makes the Windows transparent to put it on top of another window.&lt;br /&gt;
&lt;br /&gt;
[[file:cliplmanip.png]]&lt;br /&gt;
&lt;br /&gt;
Right click to open the Popupmenu.&lt;br /&gt;
XYDesign, XY Series Edit allows to change the appearance of the Data&lt;br /&gt;
Copyclipboard.. copies the Plot or the Data into the clipboard&lt;br /&gt;
PrintXYGraph prints the XY Plot&lt;br /&gt;
Measure allows measuring the distance between points in the plot&lt;br /&gt;
AutoUpdate: The Plot is updated every second during Data Acquisition. &lt;br /&gt;
Lowpass filters the data (very simple just nearest neighbor average)&lt;br /&gt;
 &lt;br /&gt;
[[file:clipvertmanip_popupmenu1.png]]&lt;br /&gt;
&lt;br /&gt;
== Vertical Manipulation / I/V Spectroscopy ==&lt;br /&gt;
&lt;br /&gt;
Vertical manipulation (spectroscopy) is started by pressing on the &amp;lt;VM&amp;gt; button and selecting a point in the image by clicking with the left mouse button. The tip uses the lateral speed value to move to the vertical manipulation position. When the manipulation is finished the measured data appears in a separate window and can be saved with the Save button. Different channels can be selected to be recorded. Usually an external Lockin will be connected to ADC1. The internal Lockin supplies the signals dI/dV, d2I/dV2, di_q,d2_q. The form of the voltage and the z-height ramp is controlled by 8 points in time. In the case of the voltage one can define 8 time points and their corresponding voltage value. For example (0,1000), (256,0), (512,2000),(1024,-1000) define a ramp starting with 1000mV at time 0. Then it will be linear interpolated to time 256 with 0 Volt. Then it goes up again to 2000mV at time 512 and finally reaches -1000mV at time 1024. The time values correspond to the number of points taken. In this case these are 1024 points. A maximum of 100000 points is possible. The z-height values already include the gain of the z-amplifier. This means, that changing the HV gain will not change the z-height ramp, because this will be automatically corrected. Vertspecback = 1 will apply the ramp in forward and backward direction. Vertspecback=n will apply the ramp in forward and backward direction n-times (n&amp;gt;=1). The shape of the ramps is shown in the lower graph in the vertical manipulation window. &lt;br /&gt;
&lt;br /&gt;
Vertical spectroscopy can be done during scanning. Press the VM Button and select a point in the unscanned image area.  &lt;br /&gt;
&lt;br /&gt;
These parameters control the vertical manipulation and spectroscopy&lt;br /&gt;
&lt;br /&gt;
Gain preamplifier&lt;br /&gt;
Gain of the preamplifier during data acquisition&lt;br /&gt;
&lt;br /&gt;
Speclenght[sec]&lt;br /&gt;
Select the recording total time of the spectrum.&lt;br /&gt;
&lt;br /&gt;
Spectrum backward&lt;br /&gt;
0: The Spectrum defined in the V,Z table is taken only once.&lt;br /&gt;
1: The spectrum defined in the V,Z table is taken once in forward and once in backward direction&lt;br /&gt;
&amp;gt;1: Defines how often a forward and backward spectrum is taken&lt;br /&gt;
&lt;br /&gt;
Lateral Speed[A/sec]&lt;br /&gt;
Speed at which the tip moves to the place where the spectrum will be taken.&lt;br /&gt;
&lt;br /&gt;
Z- Offset&lt;br /&gt;
Defines an additonal offset which is added to the z values in the table&lt;br /&gt;
&lt;br /&gt;
Z-Drift&lt;br /&gt;
Defines an increment which is added to the values in the table to compensate drift effects&lt;br /&gt;
&lt;br /&gt;
Repeat Count&lt;br /&gt;
Defines how many separate spectra are taken and stored.&lt;br /&gt;
&lt;br /&gt;
Spectra/Line&lt;br /&gt;
Defines the number of spectra equally spaced along a line between a start and endpoint,selected by mouse input.&lt;br /&gt;
The first spectrum is taken at the startpoint of the line the last one at the endpoint of the line.  &lt;br /&gt;
&lt;br /&gt;
V,Z table&lt;br /&gt;
4 points can be defined to create a voltage and z table used for vertical manipulation and spectroscopy. The data values are plotted in the graph below. The first Time Value should be set to 1 (not 0, still allowed for compatibility), otherwise the first value might not be displayed.&lt;br /&gt;
(Voltage(green), Z-Position(blue))&lt;br /&gt;
&lt;br /&gt;
Spec_X_Grid&lt;br /&gt;
Spec_Y_Grid&lt;br /&gt;
Determine the spacing of the spectroscopy grid. First spectrum position is (spec_x_grid,spec_y_grid) in pixel coordinates.&lt;br /&gt;
&lt;br /&gt;
SGrid_Channel&lt;br /&gt;
Number of channels recorded during the grid spectroscopy mode&lt;br /&gt;
&lt;br /&gt;
SpecGrid_Delay&lt;br /&gt;
Delay in DSP cycle units added before/after a vertical spectrum is started/finished.&lt;br /&gt;
&lt;br /&gt;
SpecAvrgCount&lt;br /&gt;
Number of Spectra acquired and averaged directly on the DSP board. For Count&amp;gt;1 be aware that the current preamplifier gain for vertical spectroscopy will be set the same to the normal preamplifer gain. Between the spectra the feedback loop will be switched on to readjust the sample tip distance.   &lt;br /&gt;
&lt;br /&gt;
SpecAvrgFBDelay  &lt;br /&gt;
On Time of the Feedback loop in DSP cycle units between spectra in Averaging mode.&lt;br /&gt;
&lt;br /&gt;
Save File&lt;br /&gt;
Save the present Vert. Spektrum&lt;br /&gt;
&lt;br /&gt;
Single_Spectrum&lt;br /&gt;
Take one single spectrum. Select the position with a left mouse button click on the image.&lt;br /&gt;
Same like pressing &amp;lt;VM&amp;gt; button&lt;br /&gt;
&lt;br /&gt;
Spectra along Line&lt;br /&gt;
Take a series of spectra equally spaced a long a line defined by two mouse clicks. &lt;br /&gt;
&lt;br /&gt;
Spec in old Place&lt;br /&gt;
Take a spectrum at the X,Y position of the previous scan.&lt;br /&gt;
&lt;br /&gt;
Multiple Spectra&lt;br /&gt;
Select several spectra taken one after the other. Left Mouse button select another spectrum, right mosue button stop selection and start data acquisition.&lt;br /&gt;
&lt;br /&gt;
MultSpec from File&lt;br /&gt;
Use an external file (Ascii) to define a series of spectra.&lt;br /&gt;
Only 256*256 pixel images allowed. No zoom.  First line contains number of spectra. Each following line contains the x y image coordinates(integer) of each spectrum. &lt;br /&gt;
&lt;br /&gt;
Spectra on Grid&lt;br /&gt;
Spectra taken at each grid position. (Analysis of the Grid data is done in another program)&lt;br /&gt;
&lt;br /&gt;
SaveSpecgrid&lt;br /&gt;
Save the Grid File. Two files are saved. One *.specgrid.dat File with all the parameters and the *.specgrid File with the grid data&lt;br /&gt;
&lt;br /&gt;
VFB_Mode&lt;br /&gt;
Select the VoltageFeedbackMode&lt;br /&gt;
I(V,z): Normal Operation feedback loop is OFF&lt;br /&gt;
z(V): Constant current operation&lt;br /&gt;
&lt;br /&gt;
VFB_Current[nA]&lt;br /&gt;
Current setpoint used in z(V) Mode. FB_Channel has to be current.&lt;br /&gt;
&lt;br /&gt;
Load Vert_Params&lt;br /&gt;
Load only the parameter of a spectrum and not the data&lt;br /&gt;
&lt;br /&gt;
External VZ Data&lt;br /&gt;
If not checked the VZ Data for a spectrum are taken from the VZ-Table parameter.&lt;br /&gt;
If checked the VZData is taken from a different source table, which can be loaded from an external file.&lt;br /&gt;
This allows the user defined design of arbitrary VZ arrays of up to 100000 points. File format see below.  &lt;br /&gt;
&lt;br /&gt;
Filenames:&lt;br /&gt;
First Letter is the machinename, in case you have more than one LTSTM or you want to assign different users.&lt;br /&gt;
Followed by DATE.TIME.VERT. VERT is the standard fileextension.&lt;br /&gt;
In case you take repeated spectra in a point or take spectra along a line an additional &amp;quot;L&amp;lt;Number&amp;gt;.R&amp;lt;Number&amp;gt;.&amp;quot; indicator is added before&lt;br /&gt;
the VERT file extension. L indicates line position and R indicates the numbering in repeat mode.&lt;br /&gt;
&lt;br /&gt;
[[file:clipvertmanp.png]]&lt;br /&gt;
&lt;br /&gt;
The measured data is displayed in separate windows. X and Y scaling can be adjusted by the user. Two independent axis can be displayed. (Press &amp;lt;2.Axis&amp;gt;)&lt;br /&gt;
&amp;lt;LP&amp;gt; Low Pass Filter&lt;br /&gt;
&amp;lt;TP&amp;gt; Makes the Windows transparent to put it on top of another window.&lt;br /&gt;
&lt;br /&gt;
[[file:clipvmanip.png]]&lt;br /&gt;
&lt;br /&gt;
Right click to open the Popupmenu.&lt;br /&gt;
XYDesign, XY Series Edit allows to change the appearance of the Data&lt;br /&gt;
Copyclipboard.. copies the Plot or the Data into the clipboard&lt;br /&gt;
PrintXYGraph prints the XY Plot&lt;br /&gt;
Measure allows measuring the distance between points in the plot&lt;br /&gt;
AutoUpdate: The Plot is updated every second during Data Acquisition. &lt;br /&gt;
Lowpass filters the data (very simple just nearest neighbor average)&lt;br /&gt;
 &lt;br /&gt;
[[file:clipvertmanip_popupmenu1.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Slider ==&lt;br /&gt;
&lt;br /&gt;
Brightness and Contrast&lt;br /&gt;
Use the slider window to control the brightness and contrast of the image. The slider marked B adjusts the brightness of the image. The slider marked Z controls the contrast. Above both sliders the corresponding height range in (+/-)Angstroem is displayed.So total height difference between black and white for example is two times the displayed value. On the right for multichannel images the channel, which is displayed can be selected. &lt;br /&gt;
&lt;br /&gt;
Biasvoltage&lt;br /&gt;
The polarity of the biasvoltage can be changed by pressing with the mouse on 'V' label, or by pressing the &amp;lt;+&amp;gt;/ &amp;lt;-&amp;gt; keys. &lt;br /&gt;
&lt;br /&gt;
Press the right mouse button on the 'V' label to open a Popupmenu for the biasvoltage. &lt;br /&gt;
Three options exist:&lt;br /&gt;
SetBiasMinvolt:  If selected sets the current biasvoltage as the minimum biasvoltage.&lt;br /&gt;
SetBiasMaxvolt: If selected sets the current biasvoltage as the maximum biasvoltage.&lt;br /&gt;
This feature can be used to avoid tunneling outside a specific bias voltange range. i.e for example to limit the maximum biasvoltage to protect the tip, when using the silder.&lt;br /&gt;
&lt;br /&gt;
ResetBiasMinMax: If selected deletes the Min/Max values again.&lt;br /&gt;
 &lt;br /&gt;
Current&lt;br /&gt;
Press the right mouse button on the 'A' label to open a Popupmenu for the current. &lt;br /&gt;
&lt;br /&gt;
Log: logarithmic scaling of the current slider&lt;br /&gt;
Lin: linear scaling of the current slider&lt;br /&gt;
&lt;br /&gt;
Channels &lt;br /&gt;
Select the displayed channel. For Channel Nr.=  0 all channels are displayed.&lt;br /&gt;
&lt;br /&gt;
Zoom&lt;br /&gt;
Allowed zoom factors are x1, x2, x3, x4.&lt;br /&gt;
&lt;br /&gt;
Tip up/down&lt;br /&gt;
Press this button to fully retract or to approach the tip.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[file:clipslider.png]]&lt;br /&gt;
&lt;br /&gt;
The height of the slider window can be adjusted. This changes the height of the sliders simultaneously.&lt;br /&gt;
&lt;br /&gt;
== FFT Evaluation ==&lt;br /&gt;
&lt;br /&gt;
This part of the software allows use to analyse FFT transforms of the images. (Always crosscheck the results)&lt;br /&gt;
&lt;br /&gt;
[[file:clipfftevaluation.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Load Files ==&lt;br /&gt;
&lt;br /&gt;
Loading Files is done using the &amp;lt;Open *.Dat&amp;gt; menue item.&lt;br /&gt;
&lt;br /&gt;
You can define your own favorite directories in the Windows Places Bar region. (Use for example the TweakUI utility.)&lt;br /&gt;
&lt;br /&gt;
Options:&lt;br /&gt;
&lt;br /&gt;
Full Parameter Load:  Check to load all parameters, not only those relevant for the loaded file type. &lt;br /&gt;
 &lt;br /&gt;
Disable Warning: If checked no warning will be given when files are loaded in data acquisition.                               &lt;br /&gt;
             &lt;br /&gt;
&lt;br /&gt;
[[file:cliploadfile.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Open allows to select in running program or alternatively in a newly opened analysis program.&lt;br /&gt;
&lt;br /&gt;
[[file:cliploadfile2.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
== AFM ==&lt;br /&gt;
&lt;br /&gt;
In the following we discuss the operation of the internal PLL system.&lt;br /&gt;
The internal PLL can operate up to 32kHz ( based on 16 samples per period at 512kHz max sample rate).&lt;br /&gt;
This usualy covers operation of standard quartz tuning fork sensors as the qPlus sensor.&lt;br /&gt;
(For higher frequencies optionally the Zurich Instruments PLL can be used externally.)&lt;br /&gt;
The input signal from the Preamplifier is connected to the ADC3 input of ADDA Board 2, while DAC5 of the same ADDA Board supplies the excitation signal. &lt;br /&gt;
&lt;br /&gt;
PLL Centerfreq: determines the center frequency of the PLL. (Change either by typing the number directly or increase/decrease by using the up/down/ page up/page down and both in combination with Shift key)&lt;br /&gt;
PLL-Ampl[nm]: Input the Set value of the Amplitude in nm when the Amplitude controller is on&lt;br /&gt;
PLL-Exc[V]: Input the Excitation value in Volt&lt;br /&gt;
PLL-Phase: Phase Shift of Exciation Signal. Has to be optimized const stable PLL operation&lt;br /&gt;
PLL F Range[+/-Hz]: PLL frequency tracking range. max. allowed deviation from center frequency&lt;br /&gt;
&lt;br /&gt;
PLL On: If selected operation of the PLL is switched on&lt;br /&gt;
Ampl Control: If selected Amplitude Control is switched on&lt;br /&gt;
Active Damping: If selected the Amplitude control can electronically damp the cantilever vibration&lt;br /&gt;
Ref Signal f: If selected DAC2 of the PLL board outputs a reference of the PLL frequency&lt;br /&gt;
Ref Signal 2f: If selected DAC2 of the PLL board outputs a reference of the 2nd harmonic of the PLL frequency&lt;br /&gt;
&lt;br /&gt;
P[Hz/Deg]: Proportional value of the PLL frequency controller&lt;br /&gt;
Int[Hz/deg/s]: Integrator value of the PLL frequency controller&lt;br /&gt;
LP Filter[Hz]: Value of the 4th order loop filter&lt;br /&gt;
P Ampl[V/nm]: Proportional part of the Ampl controller&lt;br /&gt;
LP Amp filter[Hz]: Loop filter of the Amp controller&lt;br /&gt;
df Post Filter[Hz]: Filters the PLL freq data finally before it is output to the STM feedback controller&lt;br /&gt;
&lt;br /&gt;
Sensor Cal[V/nm]: Calibrate the Preamp output in nm units&lt;br /&gt;
SRS Gain: Optionally include the SRS Preamp gain&lt;br /&gt;
&lt;br /&gt;
PLL FreqScan, PLL Phase Scan: Start a frequency or Phase Scan&lt;br /&gt;
Filter PLL_Scan: Filter the Scan Data. (simple 1.order lowpass). can be repeated to allow a beeter calculation of the Q factor etc.&lt;br /&gt;
Show Phase: Displays the phase. Has to be selected to calculate the Q Factor.&lt;br /&gt;
&lt;br /&gt;
Results: Automatic determination of CenterFreq and Q Factor&lt;br /&gt;
&lt;br /&gt;
ScancenterFreq, FreqSpan, ScanTime, ScanPoints: determines the properties of the Frequency Scan or PLL Phase Scan&lt;br /&gt;
&lt;br /&gt;
[[file:Resonance.png]]&lt;br /&gt;
&lt;br /&gt;
[[Category:stmafm_manual]]&lt;br /&gt;
&lt;br /&gt;
== 20 steps to successful AFM operation ==&lt;br /&gt;
&lt;br /&gt;
For a first setup of a functioning PLL useful for scanning in CC, CH or CF mode please refer to the following graphical guide.&lt;br /&gt;
&lt;br /&gt;
[[File:Folie2.PNG|800px]]&lt;br /&gt;
&lt;br /&gt;
[[File:Folie3.PNG|800px]]&lt;br /&gt;
&lt;br /&gt;
[[File:Folie4.PNG|800px]]&lt;br /&gt;
&lt;br /&gt;
[[File:Folie5.PNG|800px]]&lt;br /&gt;
&lt;br /&gt;
In order to start scanning please perform the following steps:&lt;br /&gt;
a) For constant current mode (CC, dynamic STM)&lt;br /&gt;
14. Approach the tip and observe the frequency shift changing from Δf=0 Hz to a finite negative value.&lt;br /&gt;
15. Select the channels ''dF'', ''Amplitude'' and ''Damping'' in the Parameter window in order to measure these signals.&lt;br /&gt;
16. Set the current setpoint to a finite value, i.e. e.g., 10 or 100 pA.&lt;br /&gt;
17. Start scanning in CC mode as you would do in STM mode.&lt;br /&gt;
&lt;br /&gt;
b) For constant force mode (CF, nc-AFM)&lt;br /&gt;
14. Change the feedback mode to ''LinAbs'' and the feedback channel to ''dF''.&lt;br /&gt;
15. Change the integrator value to e.g. -0.0003 or something in the same order of magnitude.&lt;br /&gt;
16. Select the channels ''dF'', ''Amplitude'' and ''Damping'' in the Parameter window.&lt;br /&gt;
17. Set the constant frequency setpoint to a value close to but a little bit smaller than the finite Δf value from above.&lt;br /&gt;
18. Start scanning in CF mode as you would do in STM mode.&lt;br /&gt;
19. Adjust the scanning speed and the integrator together with the amplitude and phase control of the tuning fork.&lt;br /&gt;
20. Observe the current signal and increase the setpoint in order to go closer to the surface.&lt;/div&gt;</summary>
		<author><name>Ltspm</name></author>	</entry>

	<entry>
		<id>http://spm-wiki.createc.de/index.php?title=Forms</id>
		<title>Forms</title>
		<link rel="alternate" type="text/html" href="http://spm-wiki.createc.de/index.php?title=Forms"/>
				<updated>2016-12-21T09:20:33Z</updated>
		
		<summary type="html">&lt;p&gt;Ltspm: /* LineScan */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== LineScan ==&lt;br /&gt;
&lt;br /&gt;
Press the ''Lin'' Button to take a line scan of the image. First select two points of the image by pressing the left mouse button. The linescan&lt;br /&gt;
is displayed in the upper linegraph of the linescanform-window. To perform measurements on the linescan press the &amp;lt;Measure&amp;gt; button. &lt;br /&gt;
&lt;br /&gt;
Use the left mouse button to select a new point. With the right mouse button you can switch between points. Pressing the Shift button allows to move a whole line. Pressing the right mouse button together with the Shift button will switch to the prependicular averaging mode.&lt;br /&gt;
&lt;br /&gt;
Important: If the linescan form is opened through the menue selection first, all linescan data will be displayed always in the this particular window. Otherwise pressing the LIN button will always open a new window.&lt;br /&gt;
&lt;br /&gt;
Autosize&lt;br /&gt;
Selects automatic scaling of the linegraph&lt;br /&gt;
&lt;br /&gt;
Autolinebacksub&lt;br /&gt;
Selects automatic subtraction of linear background&lt;br /&gt;
&lt;br /&gt;
Line Display Trackbar&lt;br /&gt;
Move to show a line scan of a particular image line. A FFT of the selected line is shown in the lower line graph.(The number of points/line has to be a power of 2)&lt;br /&gt;
&lt;br /&gt;
Popup menu of upper linegraph&lt;br /&gt;
xydesign: Select to adjust the appearance of the line graph&lt;br /&gt;
CopyClipboardData: The line scan data are copied to the ClipBoard&lt;br /&gt;
CopyClipboardXYGraph: The line scan graph is copied to the ClipBoard&lt;br /&gt;
Printxygraph: The line scan graph is send to the printer&lt;br /&gt;
Measure: Do measurements of the plot data.&lt;br /&gt;
Redrawline: The line in the image is redrawn&lt;br /&gt;
&lt;br /&gt;
Popup menu of lower linegraph&lt;br /&gt;
has the same items as the upper popup menu and one additional entry:&lt;br /&gt;
Show Frequency: Gives the FFT in frequency [Hz] instead of inverse distance [1/Å] (updated when the Line Display Trackbar is moved)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Channels&lt;br /&gt;
Select the channels which are displayed&lt;br /&gt;
&lt;br /&gt;
[[file:cliplinescan.png]]&lt;br /&gt;
&lt;br /&gt;
[[file:cliplinescanpopupmenu.png]]&lt;br /&gt;
&lt;br /&gt;
== Rampcontroller ==&lt;br /&gt;
&lt;br /&gt;
Click on the &amp;lt;Ramp&amp;gt; button. This opens the 'Rampcontroller'-window with control elements necessary to perform the coarse approach. The 6 buttons with arrows in the top of the form correspond to moving the tip in respect to the sample surface. Moving in x/y direction can also be done using the x/y cursor keys on the keyboard. The page up and page down keys are used correspondingly for rotation up and down. Selecting the burst mode in x/y or rotation will result in a series of steps corresponding to the number of burst steps displayed in the ramp parameter list. When the &amp;lt;Crash Protection&amp;gt; is switched on, the program checks before each step, whether it can detect a tunneling current. If this is the case it will cancel the step. Usually the crash protection should be switched on, but in cases where the tip is already crashed, the protection has to be switched off. The program issues some warnings when the ramp windows opens to inform the user to do necessary changes for a successful ramping. These are: First retract the tip, reset the x- and y-offset in the STM-program, select the appropriate gain (1-10, depending on the temperature) in the x- and y- channel of the HV-amplifier and set the external offset voltages to zero.&lt;br /&gt;
The usual coarse approach is done by controlling the approach with an optical microscope. When the tip is  close enough, the automatic tip approach can be switched on, by pressing the &amp;lt;Approach&amp;gt; button. It will start a combination of single coarse approach rotation steps combined with tip approach testing until the tip can reach the sample. The &amp;lt;Approach&amp;gt; stops when a tunneling current is detected. The value of this threshold current is set by the current slider. Important: When the approach stops, the tip is automatically retracted, by setting the current to zero. Before leaving the coarse approach by pressing the &amp;lt;Quit&amp;gt; button, you have to select the mode for scanning. When the &amp;lt;Main/Coarse&amp;gt; button displays 'Coarse' mode, then the outer 3 piezos are used for scanning, otherwise the center piezo is used. In the normal operation of the microscope the 'Coarse' mode should be selected. Select the required set point current to see if the approach was successful. Now the tip should be retracted manually by using the external HV-amplifier z-offset voltage to go out of tunneling. Select the required gains and re-approach the tip again.&lt;br /&gt;
&lt;br /&gt;
See also: Approach Tips&lt;br /&gt;
&lt;br /&gt;
The Coarse Approach operation is controlled by the following parameters:&lt;br /&gt;
&lt;br /&gt;
Puls Height[V]&lt;br /&gt;
Input the peak to peak height (in V) of the sawtooth pulse used for moving the inertial slider. Two different values are used for the lateral XY motion and the rotational motion.&lt;br /&gt;
&lt;br /&gt;
Puls-Duration[sec]&lt;br /&gt;
Input the duration of a single sawtooth pulse in seconds. &lt;br /&gt;
&lt;br /&gt;
Burst-Count&lt;br /&gt;
Determines the number of sawtooth pulses applied when operating the coarse control in burst mode.&lt;br /&gt;
&lt;br /&gt;
Approach Period[sec]&lt;br /&gt;
Determines the time for a single approach cycle including approach and retraction of the tip to find the sample surface.&lt;br /&gt;
&lt;br /&gt;
Approach Burst Count&lt;br /&gt;
This is the number of coarse pulses applied between two approach cycles.&lt;br /&gt;
&lt;br /&gt;
Approach Retry Count&lt;br /&gt;
This is the number of retry operations done before the approach is stopped.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[file:cliprampcontrollerCreatec.png]]&lt;br /&gt;
&lt;br /&gt;
== Grid ==&lt;br /&gt;
&lt;br /&gt;
The form 'Grid-Image- Transformation' contains several functions for different kinds of image transformations. A suitable combination of the procedures below will allow transformations useful for drift correction, superstructure analysis, extraction of registry information. To open the form press on the grid button in the STMAFM form. With the 6 slider controls a grid can be overlayed on the image. The lateral position, the angles of the grid and the distance between the grid lines can be adjusted. An alternative way to input the grid is pressing the &amp;lt;Mouse&amp;gt; button and to mark 3 points (the first one is the center, the other two determine the direction of the two lines). Pressing the &amp;lt;Rotation&amp;gt; button will rotate the image in such a way that one set of the grid lines (X-Axis) is parallel to the horizontal direction. Pressing the &amp;lt;Zoom&amp;gt; button will zoom the image by the value set in the edit control positioned next to the right of the button. The image is zoomed around the center point of the grid. By pressing on the &amp;lt;X..,Y..&amp;gt; button the actual center position of the grid is stored and displayed on the button. Selecting a new center position with the mouse, as described above, and pressing the &amp;lt;Move grid to Center&amp;gt; button will move the new defined center to the stored center position. The &amp;lt;Transform&amp;gt; button will transform the image according to the 2 Parameters in the edit controls below. The first is the new angle between the lines in the image and the second is the new ratio the grid line distances. Selecting the &amp;lt;HexGrid&amp;gt; check box will draw a grid suitable for hexagonal unit cells. If draw inverted is selected the grid is drawn by a inversion process. Otherwise you can select with &amp;lt;Grid Color&amp;gt; the line color of the grid.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;&amp;quot; widths=&amp;quot;400px&amp;quot; heights=&amp;quot;400px&amp;quot;&amp;gt;&lt;br /&gt;
file:clipgrid.png&lt;br /&gt;
file:clipgridimage.png&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== TimeSpectrum ==&lt;br /&gt;
&lt;br /&gt;
It is very often useful to take a time record of the A/D input channels, without scanning or changing the biasvoltage. This is for example a convenient way to characterize the noise performance of the STM. To take a time record just press the &amp;lt;Start&amp;gt; Button on the Time-Spectrum window or press the &amp;lt;TS&amp;gt; button on the main window. Five channels are recorded simultaneously. The A/D channels 0 and 3 (ADC0 is called current I) and the topography signal output from the feedback loop, called Z. The displayed channel is selected by the corresponding channel button. Three parameters control the data acquisition:&lt;br /&gt;
&lt;br /&gt;
Spec_Points&lt;br /&gt;
The number of data points taken for a single spectrum. This must be a power of 2, to allow FFT of the data.&lt;br /&gt;
(Maximum is 4096)&lt;br /&gt;
&lt;br /&gt;
Spec_Freq[Hz]&lt;br /&gt;
The sampling frequency. (Limited by the DSP_Clock value)&lt;br /&gt;
&lt;br /&gt;
Spec_Avrg_Count&lt;br /&gt;
The number of spectra averaged. Averaging is done only for the spectrum, i.e. the FFT data.&lt;br /&gt;
&lt;br /&gt;
Channels&lt;br /&gt;
First select the check boxes to determine the channels which are acquired during data acquisition&lt;br /&gt;
Part of these channels can be further selected to be displayed.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The results are displayed in two line graphs.&lt;br /&gt;
The upper one shows the time behaviour. (The vertical scale is always in V)&lt;br /&gt;
The lower one shows the frequency spectrum. (The vertical scale on the left shows the peak to peak value of a pure sine component,&lt;br /&gt;
the right scale the rms amplitude for non correlated signals) &lt;br /&gt;
&lt;br /&gt;
The frequency resolution depends on the number of points and the sampling frequency.&lt;br /&gt;
Important: The current signal and the ADC1 signal are filtered by a first order digital filter, which is controlled by the same CurrentRC Parameter.   &lt;br /&gt;
The contents of the memo field is saved together with the file.&lt;br /&gt;
&lt;br /&gt;
In the lower right the AVRG Value and the Standard Deviation of the timespectra data are shown.&lt;br /&gt;
&lt;br /&gt;
Save&lt;br /&gt;
The data is saved in ASCII Format&lt;br /&gt;
&lt;br /&gt;
FFT logscale: Displays the Spectrum in LogScale&lt;br /&gt;
&lt;br /&gt;
Waterfall: Displays the time dependence of the Spectra in a Waterfall like mode at the bottom of the window&lt;br /&gt;
&lt;br /&gt;
[[file:cliptimespectrum.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== 3d-view ==&lt;br /&gt;
&lt;br /&gt;
This part of the program allows the display of 3d views of selected parts of the images. To start, open the window by clicking the &amp;lt;3d view&amp;gt; button. Then click on  &amp;lt;New Data&amp;gt; in the main menue and select a rectangular region on the image displayed in the STMAFM program.  A new form will be opened, where the rendered image is displayed. The sliders in the 3d-view form allow to change the orientation, size, offset and lighting of the 3d object. The 3d image can be displayed in different ways, depending on which check boxes are checked. So the lights can be switched on or off, the 3d image can be shown using lines, hidden lines, or in the normal surface view. Checking the save box will start saving of each images displayed. With this feature a series of BMP images for movies can be created. Checking the &amp;lt;Box&amp;gt; box will draw a 3d box with x,y,z axes in the 3dimage.In the light sources field the angle of the light source can be changed. Apart from a directed diffuse light source ambient lighting can be added.&lt;br /&gt;
&lt;br /&gt;
Under the menue item Color the color of the background and of the lines can be changed.&lt;br /&gt;
Morover the image can be copied to the clipboard (in BMP format), to a new window or the data can be exported in PoVRay format. &lt;br /&gt;
(New List means that a new imagedisplaylist is created for the underlying OPENGL rendering program. This usually done automatically)&lt;br /&gt;
&lt;br /&gt;
Selected views can be saved and are saved with the program.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;&amp;quot; widths=&amp;quot;450px&amp;quot; heights=&amp;quot;300px&amp;quot;&amp;gt;&lt;br /&gt;
file:clip3dcontrol.png&lt;br /&gt;
file:clip3dform.png&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Lateral Manipulation ==&lt;br /&gt;
&lt;br /&gt;
To perform a lateral manipulation with the tip one has first to press the Button &amp;lt;LM&amp;gt; and then to select the starting and the final position of the manipulation path by selecting these points in the image with the left mouse button. A thin line is drawn on the screen between these points. After the manipulation is completed a separate window opens up where the tip height and current during the manipulation is displayed. By pressing the save button this data set can be saved in a *.LAT File.&lt;br /&gt;
&lt;br /&gt;
Different kinds of manipulation procedures can be performed. They are selected by choosing a certain manipulation mode number in the manipulation parameter field. These different modes are described in the following. The speed of the tip is controlled by the parameters latmandelay and latmanddx, which are used throughout the whole process and not only when the tip is manipulating.&lt;br /&gt;
&lt;br /&gt;
Mode 1: This is the simplest constant current mode manipulation. Starting from the top of the image the tip moves in a straight line to the starting point of the manipulation using the standard feedback parameters used for imaging. Then the feedback parameters are switched to the ones selected in the lateral manipulation parameter set . These are current, voltage and gain of the preamplifier. Then the tip moves using these manipulation parameters to the final position. There the parameters are set back to their original imaging values and the tip moves back to top of the image.&lt;br /&gt;
&lt;br /&gt;
Mode 2: Similar to mode 1, but the tip moves first to the final position, then starts the manipulation to the starting position and goes back to final position. It switches back to imaging parameters and moves to the top of the image.&lt;br /&gt;
&lt;br /&gt;
Mode3: Similar to mode 1: The tip first moves to the starting point. Then it moves to final position and back to the starting position using the normal imaging parameters, but the tip height and current are recorded during these two scans. Then the parameters are switched to the manipulation parameters and the tip moves to the final position. Then the parameters are changed back to the imaging parameters and the tip moves back to the starting position while again recording the tip height and current. Finally the tip moves to the top of the image.&lt;br /&gt;
&lt;br /&gt;
Mode 4: This is a constant height manipulation mode. The tip moves first to the starting position. Then it moves from the starting to the final position and back taking data in normal imaging mode. Then the feedback is switched off and the tip moves from the starting to the final position in constant height mode. The height used is given by the height of the tip when the feedbackloop is switched off plus the additional offset given by latmanccdz. This means that the height depends on the imaging parameters. Then the tip moves back from the final position to the starting position in imaging mode, but taking data again. Finally the tip moves to the top of the image. With the extension factor the manipulation path can be extended at the final position by the factor given by latmanextlextension. The starting point is not affected by the extension factor.&lt;br /&gt;
&lt;br /&gt;
Mode 5: Similar to mode 4. In this mode the extension affects also the starting position. The extension positions are first calculated. The tip moves in imaging mode to extended starting position. Then moves to the final extended position and backward and takes data in imaging mode. Then the tip moves to the starting position, while taking data in imaging mode. Then the tip moves from the starting position to the final position in constant height manipulation mode. Then it moves back to the starting position in imaging mode and takes data. Finally it moves back to the top of the image.&lt;br /&gt;
&lt;br /&gt;
Mode 6: Similar to mode 5. The only difference is that the tip moves from the starting to the final position and backward in constant height mode and not only in the forward direction, as done in mode 5.&lt;br /&gt;
&lt;br /&gt;
Mode 0: This mode is different from the other modes. In mode 0 the tip follows always the mouse position immediately. The height of the tip is displayed on rate meter appearing on the left. By pressing the upper case L key the imaging parameters are switched to the manipulation parameters and back again. (By pressing the upper case S a small 64 pixel * 64 pixel scan is performed.) Clicking with the mouse button will stop the continuous following of the tip. After additional clicking the tip moves to the new mouse position in a straight line and tracks the mouse position again.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
These parameters control the lateral manipulation processes.&lt;br /&gt;
&lt;br /&gt;
Mode&lt;br /&gt;
Select one of several different manipulation modes. There are constant current and constant height modes. For example P0 is the origin of the image. Then the tip moves to P1, the first point selected with the mouse. The tunneling parameters are changed to manipulation parameters and the tip moves from P1 to P2. There the normal tunneling parameters, used for imaging, are selected again and the tip moves to the origin P0.&lt;br /&gt;
&lt;br /&gt;
Voltage[V]&lt;br /&gt;
The tunneling voltage applied during the manipulation phase.&lt;br /&gt;
&lt;br /&gt;
Current[nA]&lt;br /&gt;
The current used during manipulation&lt;br /&gt;
&lt;br /&gt;
Gain preamplifier&lt;br /&gt;
The gain used during manipulation&lt;br /&gt;
&lt;br /&gt;
Manip. Speed[A/sec]&lt;br /&gt;
The speed of the tip for lateral movements. Used for all movements. Step Size determines the number points measured during a lat. manip. scan.&lt;br /&gt;
&lt;br /&gt;
Extension&lt;br /&gt;
Extension value for manipulation modes 4-6&lt;br /&gt;
&lt;br /&gt;
Const. Height Z-Offset&lt;br /&gt;
In constant height mode the tip sample distance can be varied by this parameters. Positive values [Å} correspond to a closer approach to the surface.&lt;br /&gt;
&lt;br /&gt;
Channels&lt;br /&gt;
Select the channels acquired during data acquisition&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
LatChannelForm&lt;br /&gt;
Press to open a new Form to display the manipulation data.&lt;br /&gt;
&lt;br /&gt;
Lateral Speed [A/sec]&lt;br /&gt;
Speed at which the tip is moving from the origin to first starting point&lt;br /&gt;
&lt;br /&gt;
LM in old place&lt;br /&gt;
Repeat the LM using the previous coordinates&lt;br /&gt;
&lt;br /&gt;
Load Ext Lat Par&lt;br /&gt;
Load the lateral manipulation cooordinates from an external file.&lt;br /&gt;
&lt;br /&gt;
[[file:cliplatmanip.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The measured data is displayed in separate windows. X and Y scaling can be adjusted by the user. Two independent axis can be displayed. (Press &amp;lt;2.Axis&amp;gt;)&lt;br /&gt;
&amp;lt;LP&amp;gt; Low Pass Filter&lt;br /&gt;
&amp;lt;TP&amp;gt; Makes the Windows transparent to put it on top of another window.&lt;br /&gt;
&lt;br /&gt;
[[file:cliplmanip.png]]&lt;br /&gt;
&lt;br /&gt;
Right click to open the Popupmenu.&lt;br /&gt;
XYDesign, XY Series Edit allows to change the appearance of the Data&lt;br /&gt;
Copyclipboard.. copies the Plot or the Data into the clipboard&lt;br /&gt;
PrintXYGraph prints the XY Plot&lt;br /&gt;
Measure allows measuring the distance between points in the plot&lt;br /&gt;
AutoUpdate: The Plot is updated every second during Data Acquisition. &lt;br /&gt;
Lowpass filters the data (very simple just nearest neighbor average)&lt;br /&gt;
 &lt;br /&gt;
[[file:clipvertmanip_popupmenu1.png]]&lt;br /&gt;
&lt;br /&gt;
== Vertical Manipulation / I/V Spectroscopy ==&lt;br /&gt;
&lt;br /&gt;
Vertical manipulation (spectroscopy) is started by pressing on the &amp;lt;VM&amp;gt; button and selecting a point in the image by clicking with the left mouse button. The tip uses the lateral speed value to move to the vertical manipulation position. When the manipulation is finished the measured data appears in a separate window and can be saved with the Save button. Different channels can be selected to be recorded. Usually an external Lockin will be connected to ADC1. The internal Lockin supplies the signals dI/dV, d2I/dV2, di_q,d2_q. The form of the voltage and the z-height ramp is controlled by 8 points in time. In the case of the voltage one can define 8 time points and their corresponding voltage value. For example (0,1000), (256,0), (512,2000),(1024,-1000) define a ramp starting with 1000mV at time 0. Then it will be linear interpolated to time 256 with 0 Volt. Then it goes up again to 2000mV at time 512 and finally reaches -1000mV at time 1024. The time values correspond to the number of points taken. In this case these are 1024 points. A maximum of 100000 points is possible. The z-height values already include the gain of the z-amplifier. This means, that changing the HV gain will not change the z-height ramp, because this will be automatically corrected. Vertspecback = 1 will apply the ramp in forward and backward direction. Vertspecback=n will apply the ramp in forward and backward direction n-times (n&amp;gt;=1). The shape of the ramps is shown in the lower graph in the vertical manipulation window. &lt;br /&gt;
&lt;br /&gt;
Vertical spectroscopy can be done during scanning. Press the VM Button and select a point in the unscanned image area.  &lt;br /&gt;
&lt;br /&gt;
These parameters control the vertical manipulation and spectroscopy&lt;br /&gt;
&lt;br /&gt;
Gain preamplifier&lt;br /&gt;
Gain of the preamplifier during data acquisition&lt;br /&gt;
&lt;br /&gt;
Speclenght[sec]&lt;br /&gt;
Select the recording total time of the spectrum.&lt;br /&gt;
&lt;br /&gt;
Spectrum backward&lt;br /&gt;
0: The Spectrum defined in the V,Z table is taken only once.&lt;br /&gt;
1: The spectrum defined in the V,Z table is taken once in forward and once in backward direction&lt;br /&gt;
&amp;gt;1: Defines how often a forward and backward spectrum is taken&lt;br /&gt;
&lt;br /&gt;
Lateral Speed[A/sec]&lt;br /&gt;
Speed at which the tip moves to the place where the spectrum will be taken.&lt;br /&gt;
&lt;br /&gt;
Z- Offset&lt;br /&gt;
Defines an additonal offset which is added to the z values in the table&lt;br /&gt;
&lt;br /&gt;
Z-Drift&lt;br /&gt;
Defines an increment which is added to the values in the table to compensate drift effects&lt;br /&gt;
&lt;br /&gt;
Repeat Count&lt;br /&gt;
Defines how many separate spectra are taken and stored.&lt;br /&gt;
&lt;br /&gt;
Spectra/Line&lt;br /&gt;
Defines the number of spectra equally spaced along a line between a start and endpoint,selected by mouse input.&lt;br /&gt;
The first spectrum is taken at the startpoint of the line the last one at the endpoint of the line.  &lt;br /&gt;
&lt;br /&gt;
V,Z table&lt;br /&gt;
4 points can be defined to create a voltage and z table used for vertical manipulation and spectroscopy. The data values are plotted in the graph below. The first Time Value should be set to 1 (not 0, still allowed for compatibility), otherwise the first value might not be displayed.&lt;br /&gt;
(Voltage(green), Z-Position(blue))&lt;br /&gt;
&lt;br /&gt;
Spec_X_Grid&lt;br /&gt;
Spec_Y_Grid&lt;br /&gt;
Determine the spacing of the spectroscopy grid. First spectrum position is (spec_x_grid,spec_y_grid) in pixel coordinates.&lt;br /&gt;
&lt;br /&gt;
SGrid_Channel&lt;br /&gt;
Number of channels recorded during the grid spectroscopy mode&lt;br /&gt;
&lt;br /&gt;
SpecGrid_Delay&lt;br /&gt;
Delay in DSP cycle units added before/after a vertical spectrum is started/finished.&lt;br /&gt;
&lt;br /&gt;
SpecAvrgCount&lt;br /&gt;
Number of Spectra acquired and averaged directly on the DSP board. For Count&amp;gt;1 be aware that the current preamplifier gain for vertical spectroscopy will be set the same to the normal preamplifer gain. Between the spectra the feedback loop will be switched on to readjust the sample tip distance.   &lt;br /&gt;
&lt;br /&gt;
SpecAvrgFBDelay  &lt;br /&gt;
On Time of the Feedback loop in DSP cycle units between spectra in Averaging mode.&lt;br /&gt;
&lt;br /&gt;
Save File&lt;br /&gt;
Save the present Vert. Spektrum&lt;br /&gt;
&lt;br /&gt;
Single_Spectrum&lt;br /&gt;
Take one single spectrum. Select the position with a left mouse button click on the image.&lt;br /&gt;
Same like pressing &amp;lt;VM&amp;gt; button&lt;br /&gt;
&lt;br /&gt;
Spectra along Line&lt;br /&gt;
Take a series of spectra equally spaced a long a line defined by two mouse clicks. &lt;br /&gt;
&lt;br /&gt;
Spec in old Place&lt;br /&gt;
Take a spectrum at the X,Y position of the previous scan.&lt;br /&gt;
&lt;br /&gt;
Multiple Spectra&lt;br /&gt;
Select several spectra taken one after the other. Left Mouse button select another spectrum, right mosue button stop selection and start data acquisition.&lt;br /&gt;
&lt;br /&gt;
MultSpec from File&lt;br /&gt;
Use an external file (Ascii) to define a series of spectra.&lt;br /&gt;
Only 256*256 pixel images allowed. No zoom.  First line contains number of spectra. Each following line contains the x y image coordinates(integer) of each spectrum. &lt;br /&gt;
&lt;br /&gt;
Spectra on Grid&lt;br /&gt;
Spectra taken at each grid position. (Analysis of the Grid data is done in another program)&lt;br /&gt;
&lt;br /&gt;
SaveSpecgrid&lt;br /&gt;
Save the Grid File. Two files are saved. One *.specgrid.dat File with all the parameters and the *.specgrid File with the grid data&lt;br /&gt;
&lt;br /&gt;
VFB_Mode&lt;br /&gt;
Select the VoltageFeedbackMode&lt;br /&gt;
I(V,z): Normal Operation feedback loop is OFF&lt;br /&gt;
z(V): Constant current operation&lt;br /&gt;
&lt;br /&gt;
VFB_Current[nA]&lt;br /&gt;
Current setpoint used in z(V) Mode. FB_Channel has to be current.&lt;br /&gt;
&lt;br /&gt;
Load Vert_Params&lt;br /&gt;
Load only the parameter of a spectrum and not the data&lt;br /&gt;
&lt;br /&gt;
External VZ Data&lt;br /&gt;
If not checked the VZ Data for a spectrum are taken from the VZ-Table parameter.&lt;br /&gt;
If checked the VZData is taken from a different source table, which can be loaded from an external file.&lt;br /&gt;
This allows the user defined design of arbitrary VZ arrays of up to 100000 points. File format see below.  &lt;br /&gt;
&lt;br /&gt;
Filenames:&lt;br /&gt;
First Letter is the machinename, in case you have more than one LTSTM or you want to assign different users.&lt;br /&gt;
Followed by DATE.TIME.VERT. VERT is the standard fileextension.&lt;br /&gt;
In case you take repeated spectra in a point or take spectra along a line an additional &amp;quot;L&amp;lt;Number&amp;gt;.R&amp;lt;Number&amp;gt;.&amp;quot; indicator is added before&lt;br /&gt;
the VERT file extension. L indicates line position and R indicates the numbering in repeat mode.&lt;br /&gt;
&lt;br /&gt;
[[file:clipvertmanp.png]]&lt;br /&gt;
&lt;br /&gt;
The measured data is displayed in separate windows. X and Y scaling can be adjusted by the user. Two independent axis can be displayed. (Press &amp;lt;2.Axis&amp;gt;)&lt;br /&gt;
&amp;lt;LP&amp;gt; Low Pass Filter&lt;br /&gt;
&amp;lt;TP&amp;gt; Makes the Windows transparent to put it on top of another window.&lt;br /&gt;
&lt;br /&gt;
[[file:clipvmanip.png]]&lt;br /&gt;
&lt;br /&gt;
Right click to open the Popupmenu.&lt;br /&gt;
XYDesign, XY Series Edit allows to change the appearance of the Data&lt;br /&gt;
Copyclipboard.. copies the Plot or the Data into the clipboard&lt;br /&gt;
PrintXYGraph prints the XY Plot&lt;br /&gt;
Measure allows measuring the distance between points in the plot&lt;br /&gt;
AutoUpdate: The Plot is updated every second during Data Acquisition. &lt;br /&gt;
Lowpass filters the data (very simple just nearest neighbor average)&lt;br /&gt;
 &lt;br /&gt;
[[file:clipvertmanip_popupmenu1.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Slider ==&lt;br /&gt;
&lt;br /&gt;
Brightness and Contrast&lt;br /&gt;
Use the slider window to control the brightness and contrast of the image. The slider marked B adjusts the brightness of the image. The slider marked Z controls the contrast. Above both sliders the corresponding height range in (+/-)Angstroem is displayed.So total height difference between black and white for example is two times the displayed value. On the right for multichannel images the channel, which is displayed can be selected. &lt;br /&gt;
&lt;br /&gt;
Biasvoltage&lt;br /&gt;
The polarity of the biasvoltage can be changed by pressing with the mouse on 'V' label, or by pressing the &amp;lt;+&amp;gt;/ &amp;lt;-&amp;gt; keys. &lt;br /&gt;
&lt;br /&gt;
Press the right mouse button on the 'V' label to open a Popupmenu for the biasvoltage. &lt;br /&gt;
Three options exist:&lt;br /&gt;
SetBiasMinvolt:  If selected sets the current biasvoltage as the minimum biasvoltage.&lt;br /&gt;
SetBiasMaxvolt: If selected sets the current biasvoltage as the maximum biasvoltage.&lt;br /&gt;
This feature can be used to avoid tunneling outside a specific bias voltange range. i.e for example to limit the maximum biasvoltage to protect the tip, when using the silder.&lt;br /&gt;
&lt;br /&gt;
ResetBiasMinMax: If selected deletes the Min/Max values again.&lt;br /&gt;
 &lt;br /&gt;
Current&lt;br /&gt;
Press the right mouse button on the 'A' label to open a Popupmenu for the current. &lt;br /&gt;
&lt;br /&gt;
Log: logarithmic scaling of the current slider&lt;br /&gt;
Lin: linear scaling of the current slider&lt;br /&gt;
&lt;br /&gt;
Channels &lt;br /&gt;
Select the displayed channel. For Channel Nr.=  0 all channels are displayed.&lt;br /&gt;
&lt;br /&gt;
Zoom&lt;br /&gt;
Allowed zoom factors are x1, x2, x3, x4.&lt;br /&gt;
&lt;br /&gt;
Tip up/down&lt;br /&gt;
Press this button to fully retract or to approach the tip.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[file:clipslider.png]]&lt;br /&gt;
&lt;br /&gt;
The height of the slider window can be adjusted. This changes the height of the sliders simultaneously.&lt;br /&gt;
&lt;br /&gt;
== FFT Evaluation ==&lt;br /&gt;
&lt;br /&gt;
This part of the software allows use to analyse FFT transforms of the images. (Always crosscheck the results)&lt;br /&gt;
&lt;br /&gt;
[[file:clipfftevaluation.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Load Files ==&lt;br /&gt;
&lt;br /&gt;
Loading Files is done using the &amp;lt;Open *.Dat&amp;gt; menue item.&lt;br /&gt;
&lt;br /&gt;
You can define your own favorite directories in the Windows Places Bar region. (Use for example the TweakUI utility.)&lt;br /&gt;
&lt;br /&gt;
Options:&lt;br /&gt;
&lt;br /&gt;
Full Parameter Load:  Check to load all parameters, not only those relevant for the loaded file type. &lt;br /&gt;
 &lt;br /&gt;
Disable Warning: If checked no warning will be given when files are loaded in data acquisition.                               &lt;br /&gt;
             &lt;br /&gt;
&lt;br /&gt;
[[file:cliploadfile.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Open allows to select in running program or alternatively in a newly opened analysis program.&lt;br /&gt;
&lt;br /&gt;
[[file:cliploadfile2.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
== AFM ==&lt;br /&gt;
&lt;br /&gt;
In the following we discuss the operation of the internal PLL system.&lt;br /&gt;
The internal PLL can operate up to 32kHz ( based on 16 samples per period at 512kHz max sample rate).&lt;br /&gt;
This usualy covers operation of standard quartz tuning fork sensors as the qPlus sensor.&lt;br /&gt;
(For higher frequencies optionally the Zurich Instruments PLL can be used externally.)&lt;br /&gt;
The input signal from the Preamplifier is connected to the ADC3 input of ADDA Board 2, while DAC5 of the same ADDA Board supplies the excitation signal. &lt;br /&gt;
&lt;br /&gt;
PLL Centerfreq: determines the center frequency of the PLL. (Change either by typing the number directly or increase/decrease by using the up/down/ page up/page down and both in combination with Shift key)&lt;br /&gt;
PLL-Ampl[nm]: Input the Set value of the Amplitude in nm when the Amplitude controller is on&lt;br /&gt;
PLL-Exc[V]: Input the Excitation value in Volt&lt;br /&gt;
PLL-Phase: Phase Shift of Exciation Signal. Has to be optimized const stable PLL operation&lt;br /&gt;
PLL F Range[+/-Hz]: PLL frequency tracking range. max. allowed deviation from center frequency&lt;br /&gt;
&lt;br /&gt;
PLL On: If selected operation of the PLL is switched on&lt;br /&gt;
Ampl Control: If selected Amplitude Control is switched on&lt;br /&gt;
Active Damping: If selected the Amplitude control can electronically damp the cantilever vibration&lt;br /&gt;
Ref Signal f: If selected DAC2 of the PLL board outputs a reference of the PLL frequency&lt;br /&gt;
Ref Signal 2f: If selected DAC2 of the PLL board outputs a reference of the 2nd harmonic of the PLL frequency&lt;br /&gt;
&lt;br /&gt;
P[Hz/Deg]: Proportional value of the PLL frequency controller&lt;br /&gt;
Int[Hz/deg/s]: Integrator value of the PLL frequency controller&lt;br /&gt;
LP Filter[Hz]: Value of the 4th order loop filter&lt;br /&gt;
P Ampl[V/nm]: Proportional part of the Ampl controller&lt;br /&gt;
LP Amp filter[Hz]: Loop filter of the Amp controller&lt;br /&gt;
df Post Filter[Hz]: Filters the PLL freq data finally before it is output to the STM feedback controller&lt;br /&gt;
&lt;br /&gt;
Sensor Cal[V/nm]: Calibrate the Preamp output in nm units&lt;br /&gt;
SRS Gain: Optionally include the SRS Preamp gain&lt;br /&gt;
&lt;br /&gt;
PLL FreqScan, PLL Phase Scan: Start a frequency or Phase Scan&lt;br /&gt;
Filter PLL_Scan: Filter the Scan Data. (simple 1.order lowpass). can be repeated to allow a beeter calculation of the Q factor etc.&lt;br /&gt;
Show Phase: Displays the phase. Has to be selected to calculate the Q Factor.&lt;br /&gt;
&lt;br /&gt;
Results: Automatic determination of CenterFreq and Q Factor&lt;br /&gt;
&lt;br /&gt;
ScancenterFreq, FreqSpan, ScanTime, ScanPoints: determines the properties of the Frequency Scan or PLL Phase Scan&lt;br /&gt;
&lt;br /&gt;
[[file:Resonance.png]]&lt;br /&gt;
&lt;br /&gt;
[[Category:stmafm_manual]]&lt;br /&gt;
&lt;br /&gt;
== 20 steps to successful AFM operation ==&lt;br /&gt;
&lt;br /&gt;
For a first setup of a functioning PLL useful for scanning in CC, CH or CF mode please refer to the following graphical guide.&lt;br /&gt;
&lt;br /&gt;
[[File:Folie2.PNG|800px]]&lt;br /&gt;
&lt;br /&gt;
[[File:Folie3.PNG|800px]]&lt;br /&gt;
&lt;br /&gt;
[[File:Folie4.PNG|800px]]&lt;br /&gt;
&lt;br /&gt;
[[File:Folie5.PNG|800px]]&lt;br /&gt;
&lt;br /&gt;
In order to start scanning please perform the following steps:&lt;br /&gt;
a) For constant current mode (CC, dynamic STM)&lt;br /&gt;
14. Approach the tip and observe the frequency shift changing from Δf=0 Hz to a finite negative value.&lt;br /&gt;
15. Select the channels ''dF'', ''Amplitude'' and ''Damping'' in the Parameter window in order to measure these signals.&lt;br /&gt;
16. Set the current setpoint to a finite value, i.e. e.g., 10 or 100 pA.&lt;br /&gt;
17. Start scanning in CC mode as you would do in STM mode.&lt;br /&gt;
&lt;br /&gt;
b) For constant force mode (CF, nc-AFM)&lt;br /&gt;
14. Change the feedback mode to ''LinAbs'' and the feedback channel to ''dF''.&lt;br /&gt;
15. Change the integrator value to e.g. -0.0003 or something in the same order of magnitude.&lt;br /&gt;
16. Select the channels ''dF'', ''Amplitude'' and ''Damping'' in the Parameter window.&lt;br /&gt;
17. Set the constant frequency setpoint to a value close to but a little bit smaller than the finite Δf value from above.&lt;br /&gt;
18. Start scanning in CF mode as you would do in STM mode.&lt;br /&gt;
19. Adjust the scanning speed and the integrator together with the amplitude and phase control of the tuning fork.&lt;br /&gt;
20. Observe the current signal and increase the setpoint in order to go closer to the surface.&lt;/div&gt;</summary>
		<author><name>Ltspm</name></author>	</entry>

	<entry>
		<id>http://spm-wiki.createc.de/index.php?title=Parameter</id>
		<title>Parameter</title>
		<link rel="alternate" type="text/html" href="http://spm-wiki.createc.de/index.php?title=Parameter"/>
				<updated>2016-12-21T09:18:30Z</updated>
		
		<summary type="html">&lt;p&gt;Ltspm: /* Scan */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Scan ==&lt;br /&gt;
The position of the tip (x,y,z) is controlled by three 20bit D/A converters. Range ( -524288 .. +524287 corresponding to –10V to +10V).The orientation is chosen in the following way: negative X Values are located on the left side of the image, positive Y values are located at the bottom of the image. The origin of the image is without additional offset values at point (0,0). This corresponds to the point in the Y top and X-center of the image. (The origin of the image can be changed using the setxyoffset – command, which changes the OffsetX,Y values). &lt;br /&gt;
The size of the image is defined by the distance between the image points in DAC units (Delta X,Y) and the number of image points. The corresponding size of the image is in Angström: DeltaX*NumX/(524287)*10V* GainX*XPIEZOCONST[Å/V]  (similar to Y, Z). T&lt;br /&gt;
Size, Speed, Pixelnumber(with certain limitations) can be changed during scanning. Top-down and Bottom-Up scanning is supported.&lt;br /&gt;
&lt;br /&gt;
Scan operation is controlled by the following parameters:&lt;br /&gt;
&lt;br /&gt;
'''Image Size(Pixel):'''&lt;br /&gt;
Input the number of pixels of the image to be acquired. X is the value of the horizontal scan direction.&lt;br /&gt;
 &lt;br /&gt;
'''Image Size(Å):'''&lt;br /&gt;
Input the size of the image [Å]. It is important that the Piezo-Sensitivity factors have been correctly chosen. The deflection sensitivity is temperature dependent!&lt;br /&gt;
&lt;br /&gt;
'''Scanning Speed[Å/sec]:'''&lt;br /&gt;
Value of the scanning speed [Å/s]. Input values will be adjusted regarding to hardware restrictions. For higher speeds larger internal step sizes will be chosen. Also the time it takes for a single line (only forward direction time) and the time to take a complete image are displayed.&lt;br /&gt;
&lt;br /&gt;
'''Biasvoltage[V]:'''&lt;br /&gt;
Input of tunneling bias voltage [V]. The bias voltage value can be also changed with the Voltage - Slider. The Bias-Polarity can be switched by pressing the ''+'' or ''-'' Keys or by mouse clicking on the '+V' or '-V' - Label at the voltage - slider. &lt;br /&gt;
&lt;br /&gt;
'''Rotation[Deg]:'''&lt;br /&gt;
Rotation of the scanning direction in degree. Rotation is around the center point in the top image scan line (0,0 point)&lt;br /&gt;
&lt;br /&gt;
'''Rot_center:'''&lt;br /&gt;
If checked the rotation is done around the image center.&lt;br /&gt;
&lt;br /&gt;
'''Channels:'''&lt;br /&gt;
Select the channels which will be measured during a scan operation.&lt;br /&gt;
&lt;br /&gt;
'''I-Preamp Gain:'''&lt;br /&gt;
Select the gain of the gain switchable current preamplifier. The value is the base 10 logarithm of the gain in [Å/V].&lt;br /&gt;
&lt;br /&gt;
'''Constant Current - Constant Height:'''&lt;br /&gt;
Select either scanning in normal constant current or in constant height mode. In constant height mode the topography signal is automatically substituted by the current signal.&lt;br /&gt;
&lt;br /&gt;
'''Forward - Backward Scandirection:'''&lt;br /&gt;
Normally data is taken only when scanning from left to right. If forward+backward is selected then data is acquired in both directions. As an example if only one channel is active the uneven lines are taken from left to right and the even lines are taken from right to left.&lt;br /&gt;
&lt;br /&gt;
'''Multivoltage:'''&lt;br /&gt;
Another option is the multiple voltages mode. In this mode a series of images are taken in parallel line by line, while for each image a different bias voltage is applied. The different bias voltages are taken from the neighboring MultiVolt table. Only the voltages up to the first voltage which is equal  to zero are used up to a maximum of 6 voltages. The individual images are saved in the same file and appear in one single image window&lt;br /&gt;
&lt;br /&gt;
'''PlanDX, PlanDY:'''&lt;br /&gt;
An average tilt of the sample can be compensated by using these parameters. The user can input these parameters manually or use the automatic feature. This is done the following way. Take an image. Use the &amp;lt;Pln&amp;gt; Button and input 3 points to subtract a plane.  Then select the Set_Plan_DX_DY feature under the DSP item in the main menu. It is important to realize that thermal drift or piezo creep will significantly disturb the Plan_DY value. To improve that you could take an image rotated by 90deg and follow the above procedure. This will give you a better Plan_DY value, but less precise Plan_DX value. Combination of both allow you to both values with higher precision. Important: Check the new values, especially before you take a constant height image.&lt;br /&gt;
&lt;br /&gt;
'''Offset_X,Offset_Y:'''&lt;br /&gt;
The X,Y offset voltages of the origin of the image. Double Click the Offset_X Label to switch between [V] and [Å] units&lt;br /&gt;
&lt;br /&gt;
'''Repeat Control:'''&lt;br /&gt;
Use these parameters to acquire image series with precise timing. &lt;br /&gt;
&lt;br /&gt;
'''Count:''' The number of images to be taken.&lt;br /&gt;
&lt;br /&gt;
'''Interval:''' Select the time interval [s] when a new image scan is started. (must be larger then the time to acquire a single image)&lt;br /&gt;
&lt;br /&gt;
The files are automatically saved with the file extension R.DAT&lt;br /&gt;
&lt;br /&gt;
'''Const. Height Z-Offset, Preamp gain, Bias Voltage: '''&lt;br /&gt;
In constant height mode different values for the Preamp Gain and the Biasvoltage can be applied.&lt;br /&gt;
In constant height mode scanning Zoffset determines an additional perpendicular shift of the tip after the feedback loop has been switched off.&lt;br /&gt;
&lt;br /&gt;
'''Piezoconstants:'''&lt;br /&gt;
These are calibration constants to determine the piezo sensitivity [Å/V]. Be aware that these parameters are temperature dependant.&lt;br /&gt;
&lt;br /&gt;
'''HV_Gain:''' &lt;br /&gt;
Displays the gain of the x,y,z channels of the Createc HV Amplifier&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[file:clipscan.png]]&lt;br /&gt;
&lt;br /&gt;
== DSP ==&lt;br /&gt;
The digital feedback controller is operated by the following parameters.&lt;br /&gt;
&lt;br /&gt;
'''FB-Mode:'''&lt;br /&gt;
Select whether the current signal from the FB Channel is applied directly to the digital feedback controller (Lin(I)), or the logarithm of the signal (Log(I)) or the absolute value (Abs(I)) is calculated first.&lt;br /&gt;
&lt;br /&gt;
'''FB-Channel:'''&lt;br /&gt;
Here the value of the channel can be selected which is used as input signal of the Feedback Loop controller.&lt;br /&gt;
&lt;br /&gt;
SetPoint[A or Hz]:&lt;br /&gt;
Setpoint value of the current or df signal.&lt;br /&gt;
&lt;br /&gt;
'''Integrator-RC:'''&lt;br /&gt;
This value sets the response time of the integrator part of the PI controller. Only the integrator part is usually installed.&lt;br /&gt;
&lt;br /&gt;
'''P-Gain:'''&lt;br /&gt;
This value sets the proportional part of the PI controller. &lt;br /&gt;
&lt;br /&gt;
'''Current Low Pass[Hz]:'''&lt;br /&gt;
The current signal from ADC0 can be recorded during scanning. Before the signal is stored on the PC the signal is low pass filtered. The edge frequency of this low pass filter can be set by this parameter.&lt;br /&gt;
&lt;br /&gt;
'''Integrator and P-Gain Slider:'''&lt;br /&gt;
The Integration and P-Gain values can be continuously modified using the two sliders. The original values input manually in the text boxes can be changed by 0.1 - 10.0 by slider movement. Both values can be changed during scan operation to optimize feedback operation.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[file:clipDSP.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Tip Forming ==&lt;br /&gt;
Tip forming (controlled crashing of the tip) is similar to the vertical manipulation procedure, but uses independent parameters to simplify the intermittent use of tip forming and vertical manipulation/spectroscopy. Tip forming is performed by first pressing on the tip forming button &amp;lt;TF&amp;gt; and then marking a particular point in the image by clicking with the left mouse button. Similar to vertical manipulation the data taken during the tip formation are displayed in the vertical manipulation form. The parameters used are TipForm_Vol, which is the voltage applied to the sample during the tip forming process. Then TipForm_Z [mV] , which means that the tip is moved towards the sample by Z x Zpiezoconst for the tip forming. (The gain of the z - HV amplifier is automatically included). The preamplifier gain is always set to gain 106. &lt;br /&gt;
&lt;br /&gt;
'''Voltage[V]'''&lt;br /&gt;
Voltage applied during the tip forming manipulation process.&lt;br /&gt;
&lt;br /&gt;
'''Z-Approach'''&lt;br /&gt;
Defines how far the tip moves towards the sample during a tip forming process&lt;br /&gt;
&lt;br /&gt;
'''Pulslength[sec]'''&lt;br /&gt;
Defines how long a complete tip forming approach takes.&lt;br /&gt;
&lt;br /&gt;
'''Lateral Speed[A/sec]'''&lt;br /&gt;
Defines how fast the tip moves to the selected tip contact position&lt;br /&gt;
&lt;br /&gt;
[[file:cliptipform.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Lockin ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The new version of STMAFM has an internal lockin integrated in the DSP software. The internal lockin modulates the bias voltage directly and measures the modulated current signal on ADC0. No extra cabling has to be installed. It is still possible to switch between the internal lockin and an external one whose output has to be connected to ADC1(ADC2).&lt;br /&gt;
&lt;br /&gt;
The internal lockin measures both the signal at the modulation frequency and the second harmonic.&lt;br /&gt;
&lt;br /&gt;
[[File:Cliplockin.png]]&lt;br /&gt;
&lt;br /&gt;
The parameters:&lt;br /&gt;
&lt;br /&gt;
'''Frequency:''' &lt;br /&gt;
Modulation frequency&lt;br /&gt;
&lt;br /&gt;
'''Amplitude:'''&lt;br /&gt;
Peak to Peak modulation amplitude&lt;br /&gt;
&lt;br /&gt;
'''Ref. Amplitude:'''&lt;br /&gt;
Peak to Peak amplitude of the external reference signal supplied by DAC4. (Discontinued under AFM Operation)&lt;br /&gt;
&lt;br /&gt;
'''RC:'''&lt;br /&gt;
Time constant of the lock-in low pass filter &lt;br /&gt;
&lt;br /&gt;
'''Phase1, Phase2:'''&lt;br /&gt;
Phase value for first and second harmonic&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Lockin-Mode:'''&lt;br /&gt;
&lt;br /&gt;
[[File:Cliplockinmode.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Internal Off (External): The internal lockin is switched off. The modulation has to be taken from an external lockin. Connect the dI/dV signal to channel ADC1 and the d2I/dV2 to ADC2. &lt;br /&gt;
&lt;br /&gt;
Internal: Modulation and Signal detection done by the internal lockin. The signal is extracted from the current signal (ADC0).&lt;br /&gt;
&lt;br /&gt;
Internal + Scan off: Internal Lockin Mode but the modulation is switched off during scanning&lt;br /&gt;
&lt;br /&gt;
Internal + Spectrum only: The modulation is applied only during spectroscopy&lt;br /&gt;
&lt;br /&gt;
External + Internal Ref.on DAC 5: The modulation is done by the internal lockin, but lockin detection is performed by the external lockin. A reference signal for the external lockin is supplied by DAC 5. Connect the dI/dV signal to channel ADC1 and the d2I/dV2 to ADC2. &lt;br /&gt;
&lt;br /&gt;
Output Channel:&lt;br /&gt;
Determines the output channel of the Lockin. (BiasVoltage, PLL df and Ampl, Z)&lt;br /&gt;
&lt;br /&gt;
Lockin-Channel: Determines the input channel of the Lockin (ADC0-3, df Z(DAC0))&lt;br /&gt;
&lt;br /&gt;
2F: Enables 2nd harmonic mode&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Panel ==&lt;br /&gt;
&lt;br /&gt;
Sensors&lt;br /&gt;
On Panel additional information is available, regarding the temperature sensors etc.&lt;br /&gt;
&lt;br /&gt;
Memo&lt;br /&gt;
The memo field is used to input extra information about the current image. The memo info is stored with the image.&lt;br /&gt;
&lt;br /&gt;
[[File:Clippanel.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Info ==&lt;br /&gt;
&lt;br /&gt;
Lists all paramter sets.&lt;br /&gt;
&lt;br /&gt;
Load,Save&lt;br /&gt;
Press to load or save the selected parameter set.&lt;br /&gt;
&lt;br /&gt;
Info&lt;br /&gt;
Use the info field to input information which should be later available, but not contained in any other datafile etc.&lt;br /&gt;
The contents of the info field is saved in info.cfg. Double clicking in the info field, will insert an actual time stamp.&lt;br /&gt;
&lt;br /&gt;
[[File:Clipinfo.png]]&lt;br /&gt;
&lt;br /&gt;
[[Category:stmafm_manual]]&lt;/div&gt;</summary>
		<author><name>Ltspm</name></author>	</entry>

	<entry>
		<id>http://spm-wiki.createc.de/index.php?title=Parameter</id>
		<title>Parameter</title>
		<link rel="alternate" type="text/html" href="http://spm-wiki.createc.de/index.php?title=Parameter"/>
				<updated>2016-12-21T09:08:03Z</updated>
		
		<summary type="html">&lt;p&gt;Ltspm: /* Scan */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Scan ==&lt;br /&gt;
The position of the tip (x,y,z) is controlled by three 20bit D/A converters. Range ( -524288 .. +524287 corresponding to –10V to +10V).The orientation is chosen in the following way: negative X Values are located on the left side of the image, positive Y values are located at the bottom of the image. The origin of the image is without additional offset values at point (0,0). This corresponds to the point in the Y top and X-center of the image. (The origin of the image can be changed using the setxyoffset – command, which changes the OffsetX,Y values). &lt;br /&gt;
The size of the image is defined by the distance between the image points in DAC units (Delta X,Y) and the number of image points. The corresponding size of the image is in Angström: DeltaX*NumX/(524287)*10V* GainX*XPIEZOCONST[A/V]  (similar to Y, Z). T&lt;br /&gt;
Size, Speed, Pixelnumber(with certain limitations) can be changed during scanning. Top-down and Bottom-Up scanning is supported.&lt;br /&gt;
&lt;br /&gt;
Scan operation is controlled by the following parameters:&lt;br /&gt;
&lt;br /&gt;
'''Image Size(Pixel):'''&lt;br /&gt;
Input the number of pixels of the image to be acquired. X is the value of the horizontal scan direction.&lt;br /&gt;
 &lt;br /&gt;
'''Image Size(A):'''&lt;br /&gt;
Input the size of the image [Å]. It is important that the Piezo-Sensitivity factors have been correctly chosen. The deflection sensitivity is temperature dependent!&lt;br /&gt;
&lt;br /&gt;
'''Scanning Speed[A/sec]:'''&lt;br /&gt;
Value of the scanning speed [Å/s]. Input values will be adjusted regarding to hardware restrictions. For higher speeds larger internal step sizes will be chosen. Also the time it takes for a single line (only forward direction time) and the time to take a complete image are displayed.&lt;br /&gt;
&lt;br /&gt;
'''Biasvoltage[V]:'''&lt;br /&gt;
Input of tunneling bias voltage [V]. The bias voltage value can be also changed with the Voltage - Slider. The Bias-Polarity can be switched by pressing the ''+'' or ''-'' Keys or by mouse clicking on the '+V' or '-V' - Label at the voltage - slider. &lt;br /&gt;
&lt;br /&gt;
'''Rotation[Deg]:'''&lt;br /&gt;
Rotation of the scanning direction in degree. Rotation is around the center point in the top image scan line (0,0 point)&lt;br /&gt;
&lt;br /&gt;
'''Rot_center:'''&lt;br /&gt;
If checked the rotation is done around the image center.&lt;br /&gt;
&lt;br /&gt;
'''Channels:'''&lt;br /&gt;
Select the channels which will be measured during a scan operation.&lt;br /&gt;
&lt;br /&gt;
'''I-Preamp Gain:'''&lt;br /&gt;
Select the gain of the gain switchable current preamplifier. The value is the base 10 logarithm of the gain in [Å/V].&lt;br /&gt;
&lt;br /&gt;
'''Constant Current - Constant Height:'''&lt;br /&gt;
Select either scanning in normal constant current or in constant height mode. In constant height mode the topography signal is automatically substituted by the current signal.&lt;br /&gt;
&lt;br /&gt;
'''Forward - Backward Scandirection:'''&lt;br /&gt;
Normally data is taken only when scanning from left to right. If forward+backward is selected then data is acquired in both directions. As an example if only one channel is active the uneven lines are taken from left to right and the even lines are taken from right to left.&lt;br /&gt;
&lt;br /&gt;
'''Multivoltage:'''&lt;br /&gt;
Another option is the multiple voltages mode. In this mode a series of images are taken in parallel line by line, while for each image a different bias voltage is applied. The different bias voltages are taken from the neighboring MultiVolt table. Only the voltages up to the first voltage which is equal  to zero are used up to a maximum of 6 voltages. The individual images are saved in the same file and appear in one single image window&lt;br /&gt;
&lt;br /&gt;
'''PlanDX, PlanDY:'''&lt;br /&gt;
An average tilt of the sample can be compensated by using these parameters. The user can input these parameters manually or use the automatic feature. This is done the following way. Take an image. Use the &amp;lt;Pln&amp;gt; Button and input 3 points to subtract a plane.  Then select the Set_Plan_DX_DY feature under the DSP item in the main menu. It is important to realize that thermal drift or piezo creep will significantly disturb the Plan_DY value. To improve that you could take an image rotated by 90deg and follow the above procedure. This will give you a better Plan_DY value, but less precise Plan_DX value. Combination of both allow you to both values with higher precision. Important: Check the new values, especially before you take a constant height image.&lt;br /&gt;
&lt;br /&gt;
'''Offset_X,Offset_Y:'''&lt;br /&gt;
The X,Y offset voltages of the origin of the image. Double Click the Offset_X Label to switch between [V] and [Å] units&lt;br /&gt;
&lt;br /&gt;
'''Repeat Control:'''&lt;br /&gt;
Use these parameters to acquire image series with precise timing. &lt;br /&gt;
&lt;br /&gt;
'''Count:''' The number of images to be taken.&lt;br /&gt;
&lt;br /&gt;
'''Interval:''' Select the time interval [s] when a new image scan is started. (must be larger then the time to acquire a single image)&lt;br /&gt;
&lt;br /&gt;
The files are automatically saved with the file extension R.DAT&lt;br /&gt;
&lt;br /&gt;
'''Const. Height Z-Offset, Preamp gain, Bias Voltage: '''&lt;br /&gt;
In constant height mode different values for the Preamp Gain and the Biasvoltage can be applied.&lt;br /&gt;
In constant height mode scanning Zoffset determines an additional perpendicular shift of the tip after the feedback loop has been switched off.&lt;br /&gt;
&lt;br /&gt;
'''Piezoconstants:'''&lt;br /&gt;
These are calibration constants to determine the piezo sensitivity [Å/V]. Be aware that these parameters are temperature dependant.&lt;br /&gt;
&lt;br /&gt;
'''HV_Gain:''' &lt;br /&gt;
Displays the gain of the x,y,z channels of the Createc HV Amplifier&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[file:clipscan.png]]&lt;br /&gt;
&lt;br /&gt;
== DSP ==&lt;br /&gt;
The digital feedback controller is operated by the following parameters.&lt;br /&gt;
&lt;br /&gt;
'''FB-Mode:'''&lt;br /&gt;
Select whether the current signal from the FB Channel is applied directly to the digital feedback controller (Lin(I)), or the logarithm of the signal (Log(I)) or the absolute value (Abs(I)) is calculated first.&lt;br /&gt;
&lt;br /&gt;
'''FB-Channel:'''&lt;br /&gt;
Here the value of the channel can be selected which is used as input signal of the Feedback Loop controller.&lt;br /&gt;
&lt;br /&gt;
SetPoint[A or Hz]:&lt;br /&gt;
Setpoint value of the current or df signal.&lt;br /&gt;
&lt;br /&gt;
'''Integrator-RC:'''&lt;br /&gt;
This value sets the response time of the integrator part of the PI controller. Only the integrator part is usually installed.&lt;br /&gt;
&lt;br /&gt;
'''P-Gain:'''&lt;br /&gt;
This value sets the proportional part of the PI controller. &lt;br /&gt;
&lt;br /&gt;
'''Current Low Pass[Hz]:'''&lt;br /&gt;
The current signal from ADC0 can be recorded during scanning. Before the signal is stored on the PC the signal is low pass filtered. The edge frequency of this low pass filter can be set by this parameter.&lt;br /&gt;
&lt;br /&gt;
'''Integrator and P-Gain Slider:'''&lt;br /&gt;
The Integration and P-Gain values can be continuously modified using the two sliders. The original values input manually in the text boxes can be changed by 0.1 - 10.0 by slider movement. Both values can be changed during scan operation to optimize feedback operation.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[file:clipDSP.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Tip Forming ==&lt;br /&gt;
Tip forming (controlled crashing of the tip) is similar to the vertical manipulation procedure, but uses independent parameters to simplify the intermittent use of tip forming and vertical manipulation/spectroscopy. Tip forming is performed by first pressing on the tip forming button &amp;lt;TF&amp;gt; and then marking a particular point in the image by clicking with the left mouse button. Similar to vertical manipulation the data taken during the tip formation are displayed in the vertical manipulation form. The parameters used are TipForm_Vol, which is the voltage applied to the sample during the tip forming process. Then TipForm_Z [mV] , which means that the tip is moved towards the sample by Z x Zpiezoconst for the tip forming. (The gain of the z - HV amplifier is automatically included). The preamplifier gain is always set to gain 106. &lt;br /&gt;
&lt;br /&gt;
'''Voltage[V]'''&lt;br /&gt;
Voltage applied during the tip forming manipulation process.&lt;br /&gt;
&lt;br /&gt;
'''Z-Approach'''&lt;br /&gt;
Defines how far the tip moves towards the sample during a tip forming process&lt;br /&gt;
&lt;br /&gt;
'''Pulslength[sec]'''&lt;br /&gt;
Defines how long a complete tip forming approach takes.&lt;br /&gt;
&lt;br /&gt;
'''Lateral Speed[A/sec]'''&lt;br /&gt;
Defines how fast the tip moves to the selected tip contact position&lt;br /&gt;
&lt;br /&gt;
[[file:cliptipform.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Lockin ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The new version of STMAFM has an internal lockin integrated in the DSP software. The internal lockin modulates the bias voltage directly and measures the modulated current signal on ADC0. No extra cabling has to be installed. It is still possible to switch between the internal lockin and an external one whose output has to be connected to ADC1(ADC2).&lt;br /&gt;
&lt;br /&gt;
The internal lockin measures both the signal at the modulation frequency and the second harmonic.&lt;br /&gt;
&lt;br /&gt;
[[File:Cliplockin.png]]&lt;br /&gt;
&lt;br /&gt;
The parameters:&lt;br /&gt;
&lt;br /&gt;
'''Frequency:''' &lt;br /&gt;
Modulation frequency&lt;br /&gt;
&lt;br /&gt;
'''Amplitude:'''&lt;br /&gt;
Peak to Peak modulation amplitude&lt;br /&gt;
&lt;br /&gt;
'''Ref. Amplitude:'''&lt;br /&gt;
Peak to Peak amplitude of the external reference signal supplied by DAC4. (Discontinued under AFM Operation)&lt;br /&gt;
&lt;br /&gt;
'''RC:'''&lt;br /&gt;
Time constant of the lock-in low pass filter &lt;br /&gt;
&lt;br /&gt;
'''Phase1, Phase2:'''&lt;br /&gt;
Phase value for first and second harmonic&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Lockin-Mode:'''&lt;br /&gt;
&lt;br /&gt;
[[File:Cliplockinmode.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Internal Off (External): The internal lockin is switched off. The modulation has to be taken from an external lockin. Connect the dI/dV signal to channel ADC1 and the d2I/dV2 to ADC2. &lt;br /&gt;
&lt;br /&gt;
Internal: Modulation and Signal detection done by the internal lockin. The signal is extracted from the current signal (ADC0).&lt;br /&gt;
&lt;br /&gt;
Internal + Scan off: Internal Lockin Mode but the modulation is switched off during scanning&lt;br /&gt;
&lt;br /&gt;
Internal + Spectrum only: The modulation is applied only during spectroscopy&lt;br /&gt;
&lt;br /&gt;
External + Internal Ref.on DAC 5: The modulation is done by the internal lockin, but lockin detection is performed by the external lockin. A reference signal for the external lockin is supplied by DAC 5. Connect the dI/dV signal to channel ADC1 and the d2I/dV2 to ADC2. &lt;br /&gt;
&lt;br /&gt;
Output Channel:&lt;br /&gt;
Determines the output channel of the Lockin. (BiasVoltage, PLL df and Ampl, Z)&lt;br /&gt;
&lt;br /&gt;
Lockin-Channel: Determines the input channel of the Lockin (ADC0-3, df Z(DAC0))&lt;br /&gt;
&lt;br /&gt;
2F: Enables 2nd harmonic mode&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Panel ==&lt;br /&gt;
&lt;br /&gt;
Sensors&lt;br /&gt;
On Panel additional information is available, regarding the temperature sensors etc.&lt;br /&gt;
&lt;br /&gt;
Memo&lt;br /&gt;
The memo field is used to input extra information about the current image. The memo info is stored with the image.&lt;br /&gt;
&lt;br /&gt;
[[File:Clippanel.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Info ==&lt;br /&gt;
&lt;br /&gt;
Lists all paramter sets.&lt;br /&gt;
&lt;br /&gt;
Load,Save&lt;br /&gt;
Press to load or save the selected parameter set.&lt;br /&gt;
&lt;br /&gt;
Info&lt;br /&gt;
Use the info field to input information which should be later available, but not contained in any other datafile etc.&lt;br /&gt;
The contents of the info field is saved in info.cfg. Double clicking in the info field, will insert an actual time stamp.&lt;br /&gt;
&lt;br /&gt;
[[File:Clipinfo.png]]&lt;br /&gt;
&lt;br /&gt;
[[Category:stmafm_manual]]&lt;/div&gt;</summary>
		<author><name>Ltspm</name></author>	</entry>

	<entry>
		<id>http://spm-wiki.createc.de/index.php?title=STMAFM_Main</id>
		<title>STMAFM Main</title>
		<link rel="alternate" type="text/html" href="http://spm-wiki.createc.de/index.php?title=STMAFM_Main"/>
				<updated>2016-12-21T08:55:27Z</updated>
		
		<summary type="html">&lt;p&gt;Ltspm: /* Main Buttons */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Main Form ==&lt;br /&gt;
The STMAFM form contains the main control elements of the software. Below the menu bar several control the data acquisition and analysis of the STM data.&lt;br /&gt;
&lt;br /&gt;
To take a new image press the ''START'' button. To stop press the ''STOP'' button. When a new scan is started a default filename is assigned to the image. It consists of the date and time, when the scan was started. Its extension will be '.dat'. A single letter is put in the front of the name, which is used to indicate the machine name. (Example:' A020124.190937.dat' ). To save the file either press the ''QSAVE'' button which saves the file in the current directory, indicated in the status line at the bottom of the window, or use the menu command ''Save *.dat'' under ''File''. As long as the files has not been saved a ' * ' is attached to the file. ''Copy'' copies the data in the left image to the second image on the right. &lt;br /&gt;
&lt;br /&gt;
The basic operations to display the data are done using the following buttons:&lt;br /&gt;
&lt;br /&gt;
 ''DA'':  Display the image using different line by line subtraction modes &lt;br /&gt;
 ''DX'':  Display the image using automatic plane substraction&lt;br /&gt;
 ''DP'':  Display the image using plane substraction&lt;br /&gt;
 ''LA'':  Display image in DA mode and perform automatic scaling&lt;br /&gt;
 ''LP'':  Perform a low pass filter operation&lt;br /&gt;
 ''HP'':  Perform a high pass filter operation&lt;br /&gt;
 ''Pln'': Input 3 points (with the mouse) to determine the plane for plane background subtraction&lt;br /&gt;
 ''Lin'': Calculate a linescan along a line between 2 points&lt;br /&gt;
 ''LM''  Lateral manipulation&lt;br /&gt;
 ''VM''  Vertical manipulation of I/V spectroscopy&lt;br /&gt;
 ''TF''  Tip forming&lt;br /&gt;
&lt;br /&gt;
Use ''Disp LinePlan Quad'' under ''Display'' in the menu subtract to perform an automatic line/plane subtraction using also quadratic terms&lt;br /&gt;
Below the buttons you find the Palette window, which displays the current 8bit palette. Use the left mouse button to switch between different standard palettes. Using the right mouse button will open a popup menu with additional options to create a user defined palette or to load and save externally defined palettes.&lt;br /&gt;
&lt;br /&gt;
The small list box on the right is used for communication between different instances of the STMAFM program. If the instance of the program which is in data acquisition mode saves a file then this filename is send to all other instances of the program running in analysis mode.&lt;br /&gt;
&lt;br /&gt;
Below the buttons the screen is separated in two parts, divided by an horizontaly movable slider. On the left is always the image of the current data file displayed. All the operations like scanning and image processing are done in this part on the window. On the right usually a list of all loaded files is displayed. A small icon image and some info is shown for each file. The two modes to display these data are 'Report&amp;quot; and 'Icon' view. The modes can be selected under menu item 'Display'. When in Report view pressing on the 'Image' bar will switch the way how the info is displayed. The list view can be suppressed by selecting 'Image2' under menu item 'Display' and the second image is displayed instead.&lt;br /&gt;
&lt;br /&gt;
On the bottom of the window a status bar is located. It shows the current date and time, some status info about the scanning status, the mouse position on the image,the size of  the image, the current default directory, the available space of disk storage.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[file:clipstmafm.png|600px]]&lt;br /&gt;
&lt;br /&gt;
== Menu Structure ==&lt;br /&gt;
&lt;br /&gt;
'''File'''		                         &lt;br /&gt;
 Open  *.DAT            Open STMAFM DataFile&lt;br /&gt;
 Save  *.DAT            Save STMAFM DataFile&lt;br /&gt;
 QuickSave              Save STMAFM DataFile in active directory&lt;br /&gt;
			&lt;br /&gt;
 Export File		&lt;br /&gt;
 Save  *.BMP         	Save Image as BMP-File&lt;br /&gt;
 Save *.JPG		Save as JPEG File&lt;br /&gt;
 SaveEMF *.EMF           Save Image in EMF Format&lt;br /&gt;
 SaveAscii *.ASC   	Save Image-Data in ASCII Format&lt;br /&gt;
			&lt;br /&gt;
 Import File		&lt;br /&gt;
 Load *.BMP      	Load BMP File&lt;br /&gt;
 Load *.TIF		Load TIF File&lt;br /&gt;
			&lt;br /&gt;
 Print		&lt;br /&gt;
 Print Image             Print the image&lt;br /&gt;
 Print Listview          Print the Filelist in Listview&lt;br /&gt;
 Printer Setup           Select the printer&lt;br /&gt;
			&lt;br /&gt;
 Special		&lt;br /&gt;
 Compress Files		All Files are saved using Data compression with Zlib&lt;br /&gt;
 Save Listview-Files   	Save List of Files in the Listview window&lt;br /&gt;
 Autosave  *.bak       	Save all recorded images&lt;br /&gt;
 AutoSave All		Save all images&lt;br /&gt;
 DOS-CommandLine   	Open a DOS-Window&lt;br /&gt;
 HPData			Get Data from Agilent Datalogger&lt;br /&gt;
 Get_SRS_Lockin_Val	Get External Lockin Setup Parameters&lt;br /&gt;
 &lt;br /&gt;
 STMAFM-Analysis        Start another copy of the STMAFM-Program&lt;br /&gt;
 Exit                   Exit the STMAFM-Program&lt;br /&gt;
 About                  About &lt;br /&gt;
 ReOpen                 Opens the last file&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Edit    &lt;br /&gt;
 Copy Clipbd                Copy the image to the clipboard&lt;br /&gt;
 Copy Dataimage2            Copy left image to the right&lt;br /&gt;
 Copy Clipbd EMF            Copy the image to the clipboard in EMF Format with Info&lt;br /&gt;
 Copy New Window            Copy the image into new form&lt;br /&gt;
 Copy Overview              Copy the image into the overview form&lt;br /&gt;
 Copy Palette to Clipbd     Copy the palette to the Clipboard       &lt;br /&gt;
&lt;br /&gt;
Scan   &lt;br /&gt;
 Scan Start             		Start the Scan&lt;br /&gt;
 Scan Stop              		Stop the Scan&lt;br /&gt;
 Enable/Start RepeatTimer	Start the Repeat-Timer&lt;br /&gt;
 Preamplifier                 	Select the preamplifier&lt;br /&gt;
 Preamp_Femto_LowNoise  		Select for Femto Preamp in Low Noise Mode&lt;br /&gt;
 Preamp_Femto_HighSpeed 		Select for Femto Preamp in High Speed Mode&lt;br /&gt;
 Preamp_Femto_100G		Select for Femto Preamp with fixed gain 10^11&lt;br /&gt;
 Preamp_UserType			Select for User specific Preamp &lt;br /&gt;
&lt;br /&gt;
 Autofilesave			Save every image&lt;br /&gt;
 Autorepeat			Start a new image automatically&lt;br /&gt;
 Autodispreset         		Clear the image window when starting a new scan&lt;br /&gt;
&lt;br /&gt;
 Show Scanline Marker		Display a red line at the actual scan line position&lt;br /&gt;
 Display current Scan Profile	Display the current line as a line scan in a separate window&lt;br /&gt;
 &lt;br /&gt;
 Scan_Y_Direction		Select the Scandirection (Top-Bottom,Bottom-Top,etc)&lt;br /&gt;
 ScanCoarse			Check to set scanning by Coarse Piezos otherwise the main Piezo is used&lt;br /&gt;
&lt;br /&gt;
DSP       &lt;br /&gt;
 Lateral Manip.      		Lateral Manipulation&lt;br /&gt;
 Vertical Manip.            	Vertical Manipulation&lt;br /&gt;
 Tip Forming                	Tip Forming&lt;br /&gt;
&lt;br /&gt;
 SetXYOffset - Top           	Set the xy-offset for the new top site&lt;br /&gt;
 SetXYOffset - Center        	Set the xy-offset for the new center site&lt;br /&gt;
 SetXYOffset - Zoom        	Set the xy-offset for the new center site&lt;br /&gt;
 ResetXYOffset  			Set the xy-offset to (0,0)&lt;br /&gt;
 Copy Offset from Param    	Copy the xy-offset values from the scanparameterlist&lt;br /&gt;
 1: Offsetx,y:  0 0          	Select as new Offset&lt;br /&gt;
 2: Offsetx,y   0 0          	Select as new Offset&lt;br /&gt;
 3: Offsetx,y   0 0          	Select as new Offset&lt;br /&gt;
 4: Offsetx,y   0 0          	Select as new Offset&lt;br /&gt;
 Set_Plan_Dx_Dy			Set the parameters for the plan-offset. &lt;br /&gt;
 Set_DSP_Clock 			Change the Clock-Frequency of the DSP-FeedBack-Loop&lt;br /&gt;
 &lt;br /&gt;
Image   &lt;br /&gt;
 Undo Filter                 	Undo last image operation&lt;br /&gt;
 Filter&lt;br /&gt;
  LowPass                     	Low Pass Filter the image&lt;br /&gt;
  HighPass                    	High Pass Filter the image&lt;br /&gt;
  Laplace                     	Laplace Filter the image&lt;br /&gt;
  Median				Median Filter&lt;br /&gt;
  Edge(Horz)			Edge Filter in the horizontal direction&lt;br /&gt;
  Invert                      	Invert the image&lt;br /&gt;
  Imagedata * 10			The image data is multiplied by a factor of 10&lt;br /&gt;
  Imagedata / 10			The image data is divided by a factor of 10&lt;br /&gt;
&lt;br /&gt;
 Resize&lt;br /&gt;
  Zoom_Up_Rect             	Zoom up a selected rectangle &lt;br /&gt;
  Resize   / 2                	Resize the image&lt;br /&gt;
  Resize   x 2                	Resize the image&lt;br /&gt;
  Interpolation  / 2          	Interpolate the image&lt;br /&gt;
  Interpolation  x 2          	Interpolate the image&lt;br /&gt;
       &lt;br /&gt;
 Rotate90deg&lt;br /&gt;
&lt;br /&gt;
 FFT&lt;br /&gt;
  FFT2D                       	Fast Fourier Transform&lt;br /&gt;
  FFT2D Invers                	Inverse FFT&lt;br /&gt;
  FFT2d Cutout               	Cutout a part of the FFT&lt;br /&gt;
  FFT Evaluate			Open FFT Evaluate window&lt;br /&gt;
&lt;br /&gt;
 Image Analysis&lt;br /&gt;
  Histogram                   	Show the histogram of the image&lt;br /&gt;
  Areacalculation             	Calculate the size of islands&lt;br /&gt;
  Islandsize                  	Calculate the size of islands&lt;br /&gt;
&lt;br /&gt;
Display&lt;br /&gt;
 Zoom&lt;br /&gt;
  100%&lt;br /&gt;
  200%&lt;br /&gt;
  300%&lt;br /&gt;
  400%&lt;br /&gt;
&lt;br /&gt;
 ListView&lt;br /&gt;
  Report				Show files as icons and info&lt;br /&gt;
  Icon				Show files as icons only&lt;br /&gt;
  Image2				Show Image2 and not the Listviewbox&lt;br /&gt;
  ListViewBox enabled      	Enables the ListView Box	&lt;br /&gt;
  AutoclearList                	Clear the Listviewbox before new a new list is added&lt;br /&gt;
  Largeiconsize=64-256   	Icon size of the images in the listviewbox&lt;br /&gt;
  Load Icon Plan              	Load the icons using image plan subtraction&lt;br /&gt;
  Clear Listview			Clear the ListView&lt;br /&gt;
   	&lt;br /&gt;
 DispCommands &lt;br /&gt;
  DispAuto                    	Display image using linear line background subtraction &lt;br /&gt;
  DispPlanAuto                	Display image using auto plan background subtraction &lt;br /&gt;
  DispPlan                    	Display image using plan subtraction&lt;br /&gt;
  Last Disp Autoscale		Display with automatic scaling&lt;br /&gt;
  Plan Auto Subtract		Like Displanauto + subtract plane from image data&lt;br /&gt;
  Linescan                    	Linescan in the image&lt;br /&gt;
  Plan2dinput                 	Input 3 points to select the background subtraction plane&lt;br /&gt;
  Configuration&lt;br /&gt;
   DACunits                    	Select DAC units&lt;br /&gt;
   nm-Units [A]                	Select Angström units&lt;br /&gt;
  Display Image in Lines		Select to display image in line and not gray scale mode&lt;br /&gt;
  Disp LinePlan Quad		Select to perform lin.+quad. Backgroundsubtraction&lt;br /&gt;
  Disp Plan and Subtract	If selected Disp Plan subtracts the plane from the image data&lt;br /&gt;
  Disp Automode Offset/Slope   	DA Mode subtract offset and slope line by line&lt;br /&gt;
  Disp Automode Offset   	DA Mode subtract offset line by line&lt;br /&gt;
  Disp Automode None 		DA Mode subtract offset of first line&lt;br /&gt;
  Disp Automode Diff		DA Mode differentiate image data line by line&lt;br /&gt;
	&lt;br /&gt;
Forms&lt;br /&gt;
 Parameter&lt;br /&gt;
 Lat.Manip            		Show the Latmanip window&lt;br /&gt;
 Vert.Manip           		Show the Vertmanip. window&lt;br /&gt;
 Time Spectrum			Show the Time Spectrum window&lt;br /&gt;
 AFM				Show the AFM PLL window&lt;br /&gt;
 Ramp-Controller			Start Ramp Controller&lt;br /&gt;
 New Channelform			Open another Channelform&lt;br /&gt;
 Linescan            		Show the linescan window&lt;br /&gt;
 Draw Grid			Show Grid window&lt;br /&gt;
 3dView				Show 3d View window	&lt;br /&gt;
 Memo				Show separate Memo window&lt;br /&gt;
 Overview                		Show the overview window&lt;br /&gt;
 Slider				Show the Slider window&lt;br /&gt;
 User Form			Show the User Form&lt;br /&gt;
 Reset Form Positions		Position all windows at (top,left) = (0,0)&lt;br /&gt;
 Show/Hide Old Param 		Show/Hide the old Parameter window&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Debug   &lt;br /&gt;
 Reset Scanstatus            	Enable all buttons again&lt;br /&gt;
 Remote				Open Remote window&lt;br /&gt;
 Client Server Control		Open Client Server Control&lt;br /&gt;
 FIFO_COM USB2.0                Shows whether communication is by USB2.0 Hardware&lt;br /&gt;
 Build Testimage                Build a new image without scanning&lt;br /&gt;
 STM Simulation			Run the STM Programm in Simulation Mode (with DSP) &lt;br /&gt;
 PLL Off                        Switch PLL off&lt;br /&gt;
 Debug Messages On   		Show Debug messages&lt;br /&gt;
 Block Data Transfer		Transfer Data after Acquitstion has been done&lt;br /&gt;
 ADDA DSP Connect		Manually start/stop communication between DSP and ADDA&lt;br /&gt;
 Form Memory Watch		Shows some status data&lt;br /&gt;
       &lt;br /&gt;
&lt;br /&gt;
Tools&lt;br /&gt;
 Tip-Etching			Open to etch STM tips&lt;br /&gt;
 Initialization			Open Initialization window&lt;br /&gt;
 Data Recorder			Open Datarecorder window&lt;br /&gt;
 Flash Utility			Utility to burn Flash on DSP Board with new DSP software&lt;br /&gt;
	&lt;br /&gt;
Help&lt;br /&gt;
 Show STMAFM-Manual		Show STMAFM Manual (PDF)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Main Buttons ==&lt;br /&gt;
''Start'' or 	''F1'':  	Start the scan&lt;br /&gt;
           &lt;br /&gt;
''Stop'' or   ''F2'':  	Stop the scan&lt;br /&gt;
&lt;br /&gt;
''Qsave''   or 	''F3'': 	Automatically saves an image in the actual directory&lt;br /&gt;
&lt;br /&gt;
''Copy''    or   ''F4'': 	Copy Image1 to Image2&lt;br /&gt;
&lt;br /&gt;
''LM''        or ''F5'':	Perform a lateral manipulation&lt;br /&gt;
&lt;br /&gt;
''VM''	    or 	''F6'':	Perform a vertical manipulation or spectroscopy&lt;br /&gt;
&lt;br /&gt;
''TF''	    or 	''F8'':	Perform tip forming&lt;br /&gt;
&lt;br /&gt;
''DA''	    or 	''F9'':  Display the image with automatic line by line background subtraction&lt;br /&gt;
&lt;br /&gt;
''DX''	    or 	''F10'':  Display the image with automatic plane background subtraction&lt;br /&gt;
&lt;br /&gt;
''DP''	    or 	''F11'':  Display the image with planar background subtraction with predefined parameters&lt;br /&gt;
&lt;br /&gt;
''LA''       or  ''F12'': Display the image with automatic greyscale scaling&lt;br /&gt;
&lt;br /&gt;
''LP''	or    ''Shift F9'':       Low pass filter&lt;br /&gt;
 &lt;br /&gt;
''HP'' 	or   ''Shift F10'':	High pass filter&lt;br /&gt;
&lt;br /&gt;
''PLN'' or   ''Shift F11'':	Input 3 points for the plane used in plane background subtraction&lt;br /&gt;
&lt;br /&gt;
''LIN''	or   ''Shift F12'':	Display a linear scan between two points on the image&lt;br /&gt;
&lt;br /&gt;
==  ==&lt;br /&gt;
[[category:stmafm_manual]]&lt;/div&gt;</summary>
		<author><name>Ltspm</name></author>	</entry>

	<entry>
		<id>http://spm-wiki.createc.de/index.php?title=STMAFM_Main</id>
		<title>STMAFM Main</title>
		<link rel="alternate" type="text/html" href="http://spm-wiki.createc.de/index.php?title=STMAFM_Main"/>
				<updated>2016-12-21T08:54:37Z</updated>
		
		<summary type="html">&lt;p&gt;Ltspm: /* Main Buttons */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Main Form ==&lt;br /&gt;
The STMAFM form contains the main control elements of the software. Below the menu bar several control the data acquisition and analysis of the STM data.&lt;br /&gt;
&lt;br /&gt;
To take a new image press the ''START'' button. To stop press the ''STOP'' button. When a new scan is started a default filename is assigned to the image. It consists of the date and time, when the scan was started. Its extension will be '.dat'. A single letter is put in the front of the name, which is used to indicate the machine name. (Example:' A020124.190937.dat' ). To save the file either press the ''QSAVE'' button which saves the file in the current directory, indicated in the status line at the bottom of the window, or use the menu command ''Save *.dat'' under ''File''. As long as the files has not been saved a ' * ' is attached to the file. ''Copy'' copies the data in the left image to the second image on the right. &lt;br /&gt;
&lt;br /&gt;
The basic operations to display the data are done using the following buttons:&lt;br /&gt;
&lt;br /&gt;
 ''DA'':  Display the image using different line by line subtraction modes &lt;br /&gt;
 ''DX'':  Display the image using automatic plane substraction&lt;br /&gt;
 ''DP'':  Display the image using plane substraction&lt;br /&gt;
 ''LA'':  Display image in DA mode and perform automatic scaling&lt;br /&gt;
 ''LP'':  Perform a low pass filter operation&lt;br /&gt;
 ''HP'':  Perform a high pass filter operation&lt;br /&gt;
 ''Pln'': Input 3 points (with the mouse) to determine the plane for plane background subtraction&lt;br /&gt;
 ''Lin'': Calculate a linescan along a line between 2 points&lt;br /&gt;
 ''LM''  Lateral manipulation&lt;br /&gt;
 ''VM''  Vertical manipulation of I/V spectroscopy&lt;br /&gt;
 ''TF''  Tip forming&lt;br /&gt;
&lt;br /&gt;
Use ''Disp LinePlan Quad'' under ''Display'' in the menu subtract to perform an automatic line/plane subtraction using also quadratic terms&lt;br /&gt;
Below the buttons you find the Palette window, which displays the current 8bit palette. Use the left mouse button to switch between different standard palettes. Using the right mouse button will open a popup menu with additional options to create a user defined palette or to load and save externally defined palettes.&lt;br /&gt;
&lt;br /&gt;
The small list box on the right is used for communication between different instances of the STMAFM program. If the instance of the program which is in data acquisition mode saves a file then this filename is send to all other instances of the program running in analysis mode.&lt;br /&gt;
&lt;br /&gt;
Below the buttons the screen is separated in two parts, divided by an horizontaly movable slider. On the left is always the image of the current data file displayed. All the operations like scanning and image processing are done in this part on the window. On the right usually a list of all loaded files is displayed. A small icon image and some info is shown for each file. The two modes to display these data are 'Report&amp;quot; and 'Icon' view. The modes can be selected under menu item 'Display'. When in Report view pressing on the 'Image' bar will switch the way how the info is displayed. The list view can be suppressed by selecting 'Image2' under menu item 'Display' and the second image is displayed instead.&lt;br /&gt;
&lt;br /&gt;
On the bottom of the window a status bar is located. It shows the current date and time, some status info about the scanning status, the mouse position on the image,the size of  the image, the current default directory, the available space of disk storage.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[file:clipstmafm.png|600px]]&lt;br /&gt;
&lt;br /&gt;
== Menu Structure ==&lt;br /&gt;
&lt;br /&gt;
'''File'''		                         &lt;br /&gt;
 Open  *.DAT            Open STMAFM DataFile&lt;br /&gt;
 Save  *.DAT            Save STMAFM DataFile&lt;br /&gt;
 QuickSave              Save STMAFM DataFile in active directory&lt;br /&gt;
			&lt;br /&gt;
 Export File		&lt;br /&gt;
 Save  *.BMP         	Save Image as BMP-File&lt;br /&gt;
 Save *.JPG		Save as JPEG File&lt;br /&gt;
 SaveEMF *.EMF           Save Image in EMF Format&lt;br /&gt;
 SaveAscii *.ASC   	Save Image-Data in ASCII Format&lt;br /&gt;
			&lt;br /&gt;
 Import File		&lt;br /&gt;
 Load *.BMP      	Load BMP File&lt;br /&gt;
 Load *.TIF		Load TIF File&lt;br /&gt;
			&lt;br /&gt;
 Print		&lt;br /&gt;
 Print Image             Print the image&lt;br /&gt;
 Print Listview          Print the Filelist in Listview&lt;br /&gt;
 Printer Setup           Select the printer&lt;br /&gt;
			&lt;br /&gt;
 Special		&lt;br /&gt;
 Compress Files		All Files are saved using Data compression with Zlib&lt;br /&gt;
 Save Listview-Files   	Save List of Files in the Listview window&lt;br /&gt;
 Autosave  *.bak       	Save all recorded images&lt;br /&gt;
 AutoSave All		Save all images&lt;br /&gt;
 DOS-CommandLine   	Open a DOS-Window&lt;br /&gt;
 HPData			Get Data from Agilent Datalogger&lt;br /&gt;
 Get_SRS_Lockin_Val	Get External Lockin Setup Parameters&lt;br /&gt;
 &lt;br /&gt;
 STMAFM-Analysis        Start another copy of the STMAFM-Program&lt;br /&gt;
 Exit                   Exit the STMAFM-Program&lt;br /&gt;
 About                  About &lt;br /&gt;
 ReOpen                 Opens the last file&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Edit    &lt;br /&gt;
 Copy Clipbd                Copy the image to the clipboard&lt;br /&gt;
 Copy Dataimage2            Copy left image to the right&lt;br /&gt;
 Copy Clipbd EMF            Copy the image to the clipboard in EMF Format with Info&lt;br /&gt;
 Copy New Window            Copy the image into new form&lt;br /&gt;
 Copy Overview              Copy the image into the overview form&lt;br /&gt;
 Copy Palette to Clipbd     Copy the palette to the Clipboard       &lt;br /&gt;
&lt;br /&gt;
Scan   &lt;br /&gt;
 Scan Start             		Start the Scan&lt;br /&gt;
 Scan Stop              		Stop the Scan&lt;br /&gt;
 Enable/Start RepeatTimer	Start the Repeat-Timer&lt;br /&gt;
 Preamplifier                 	Select the preamplifier&lt;br /&gt;
 Preamp_Femto_LowNoise  		Select for Femto Preamp in Low Noise Mode&lt;br /&gt;
 Preamp_Femto_HighSpeed 		Select for Femto Preamp in High Speed Mode&lt;br /&gt;
 Preamp_Femto_100G		Select for Femto Preamp with fixed gain 10^11&lt;br /&gt;
 Preamp_UserType			Select for User specific Preamp &lt;br /&gt;
&lt;br /&gt;
 Autofilesave			Save every image&lt;br /&gt;
 Autorepeat			Start a new image automatically&lt;br /&gt;
 Autodispreset         		Clear the image window when starting a new scan&lt;br /&gt;
&lt;br /&gt;
 Show Scanline Marker		Display a red line at the actual scan line position&lt;br /&gt;
 Display current Scan Profile	Display the current line as a line scan in a separate window&lt;br /&gt;
 &lt;br /&gt;
 Scan_Y_Direction		Select the Scandirection (Top-Bottom,Bottom-Top,etc)&lt;br /&gt;
 ScanCoarse			Check to set scanning by Coarse Piezos otherwise the main Piezo is used&lt;br /&gt;
&lt;br /&gt;
DSP       &lt;br /&gt;
 Lateral Manip.      		Lateral Manipulation&lt;br /&gt;
 Vertical Manip.            	Vertical Manipulation&lt;br /&gt;
 Tip Forming                	Tip Forming&lt;br /&gt;
&lt;br /&gt;
 SetXYOffset - Top           	Set the xy-offset for the new top site&lt;br /&gt;
 SetXYOffset - Center        	Set the xy-offset for the new center site&lt;br /&gt;
 SetXYOffset - Zoom        	Set the xy-offset for the new center site&lt;br /&gt;
 ResetXYOffset  			Set the xy-offset to (0,0)&lt;br /&gt;
 Copy Offset from Param    	Copy the xy-offset values from the scanparameterlist&lt;br /&gt;
 1: Offsetx,y:  0 0          	Select as new Offset&lt;br /&gt;
 2: Offsetx,y   0 0          	Select as new Offset&lt;br /&gt;
 3: Offsetx,y   0 0          	Select as new Offset&lt;br /&gt;
 4: Offsetx,y   0 0          	Select as new Offset&lt;br /&gt;
 Set_Plan_Dx_Dy			Set the parameters for the plan-offset. &lt;br /&gt;
 Set_DSP_Clock 			Change the Clock-Frequency of the DSP-FeedBack-Loop&lt;br /&gt;
 &lt;br /&gt;
Image   &lt;br /&gt;
 Undo Filter                 	Undo last image operation&lt;br /&gt;
 Filter&lt;br /&gt;
  LowPass                     	Low Pass Filter the image&lt;br /&gt;
  HighPass                    	High Pass Filter the image&lt;br /&gt;
  Laplace                     	Laplace Filter the image&lt;br /&gt;
  Median				Median Filter&lt;br /&gt;
  Edge(Horz)			Edge Filter in the horizontal direction&lt;br /&gt;
  Invert                      	Invert the image&lt;br /&gt;
  Imagedata * 10			The image data is multiplied by a factor of 10&lt;br /&gt;
  Imagedata / 10			The image data is divided by a factor of 10&lt;br /&gt;
&lt;br /&gt;
 Resize&lt;br /&gt;
  Zoom_Up_Rect             	Zoom up a selected rectangle &lt;br /&gt;
  Resize   / 2                	Resize the image&lt;br /&gt;
  Resize   x 2                	Resize the image&lt;br /&gt;
  Interpolation  / 2          	Interpolate the image&lt;br /&gt;
  Interpolation  x 2          	Interpolate the image&lt;br /&gt;
       &lt;br /&gt;
 Rotate90deg&lt;br /&gt;
&lt;br /&gt;
 FFT&lt;br /&gt;
  FFT2D                       	Fast Fourier Transform&lt;br /&gt;
  FFT2D Invers                	Inverse FFT&lt;br /&gt;
  FFT2d Cutout               	Cutout a part of the FFT&lt;br /&gt;
  FFT Evaluate			Open FFT Evaluate window&lt;br /&gt;
&lt;br /&gt;
 Image Analysis&lt;br /&gt;
  Histogram                   	Show the histogram of the image&lt;br /&gt;
  Areacalculation             	Calculate the size of islands&lt;br /&gt;
  Islandsize                  	Calculate the size of islands&lt;br /&gt;
&lt;br /&gt;
Display&lt;br /&gt;
 Zoom&lt;br /&gt;
  100%&lt;br /&gt;
  200%&lt;br /&gt;
  300%&lt;br /&gt;
  400%&lt;br /&gt;
&lt;br /&gt;
 ListView&lt;br /&gt;
  Report				Show files as icons and info&lt;br /&gt;
  Icon				Show files as icons only&lt;br /&gt;
  Image2				Show Image2 and not the Listviewbox&lt;br /&gt;
  ListViewBox enabled      	Enables the ListView Box	&lt;br /&gt;
  AutoclearList                	Clear the Listviewbox before new a new list is added&lt;br /&gt;
  Largeiconsize=64-256   	Icon size of the images in the listviewbox&lt;br /&gt;
  Load Icon Plan              	Load the icons using image plan subtraction&lt;br /&gt;
  Clear Listview			Clear the ListView&lt;br /&gt;
   	&lt;br /&gt;
 DispCommands &lt;br /&gt;
  DispAuto                    	Display image using linear line background subtraction &lt;br /&gt;
  DispPlanAuto                	Display image using auto plan background subtraction &lt;br /&gt;
  DispPlan                    	Display image using plan subtraction&lt;br /&gt;
  Last Disp Autoscale		Display with automatic scaling&lt;br /&gt;
  Plan Auto Subtract		Like Displanauto + subtract plane from image data&lt;br /&gt;
  Linescan                    	Linescan in the image&lt;br /&gt;
  Plan2dinput                 	Input 3 points to select the background subtraction plane&lt;br /&gt;
  Configuration&lt;br /&gt;
   DACunits                    	Select DAC units&lt;br /&gt;
   nm-Units [A]                	Select Angström units&lt;br /&gt;
  Display Image in Lines		Select to display image in line and not gray scale mode&lt;br /&gt;
  Disp LinePlan Quad		Select to perform lin.+quad. Backgroundsubtraction&lt;br /&gt;
  Disp Plan and Subtract	If selected Disp Plan subtracts the plane from the image data&lt;br /&gt;
  Disp Automode Offset/Slope   	DA Mode subtract offset and slope line by line&lt;br /&gt;
  Disp Automode Offset   	DA Mode subtract offset line by line&lt;br /&gt;
  Disp Automode None 		DA Mode subtract offset of first line&lt;br /&gt;
  Disp Automode Diff		DA Mode differentiate image data line by line&lt;br /&gt;
	&lt;br /&gt;
Forms&lt;br /&gt;
 Parameter&lt;br /&gt;
 Lat.Manip            		Show the Latmanip window&lt;br /&gt;
 Vert.Manip           		Show the Vertmanip. window&lt;br /&gt;
 Time Spectrum			Show the Time Spectrum window&lt;br /&gt;
 AFM				Show the AFM PLL window&lt;br /&gt;
 Ramp-Controller			Start Ramp Controller&lt;br /&gt;
 New Channelform			Open another Channelform&lt;br /&gt;
 Linescan            		Show the linescan window&lt;br /&gt;
 Draw Grid			Show Grid window&lt;br /&gt;
 3dView				Show 3d View window	&lt;br /&gt;
 Memo				Show separate Memo window&lt;br /&gt;
 Overview                		Show the overview window&lt;br /&gt;
 Slider				Show the Slider window&lt;br /&gt;
 User Form			Show the User Form&lt;br /&gt;
 Reset Form Positions		Position all windows at (top,left) = (0,0)&lt;br /&gt;
 Show/Hide Old Param 		Show/Hide the old Parameter window&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Debug   &lt;br /&gt;
 Reset Scanstatus            	Enable all buttons again&lt;br /&gt;
 Remote				Open Remote window&lt;br /&gt;
 Client Server Control		Open Client Server Control&lt;br /&gt;
 FIFO_COM USB2.0                Shows whether communication is by USB2.0 Hardware&lt;br /&gt;
 Build Testimage                Build a new image without scanning&lt;br /&gt;
 STM Simulation			Run the STM Programm in Simulation Mode (with DSP) &lt;br /&gt;
 PLL Off                        Switch PLL off&lt;br /&gt;
 Debug Messages On   		Show Debug messages&lt;br /&gt;
 Block Data Transfer		Transfer Data after Acquitstion has been done&lt;br /&gt;
 ADDA DSP Connect		Manually start/stop communication between DSP and ADDA&lt;br /&gt;
 Form Memory Watch		Shows some status data&lt;br /&gt;
       &lt;br /&gt;
&lt;br /&gt;
Tools&lt;br /&gt;
 Tip-Etching			Open to etch STM tips&lt;br /&gt;
 Initialization			Open Initialization window&lt;br /&gt;
 Data Recorder			Open Datarecorder window&lt;br /&gt;
 Flash Utility			Utility to burn Flash on DSP Board with new DSP software&lt;br /&gt;
	&lt;br /&gt;
Help&lt;br /&gt;
 Show STMAFM-Manual		Show STMAFM Manual (PDF)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Main Buttons ==&lt;br /&gt;
''Start'' or 	''F1'':  	Start the scan&lt;br /&gt;
           &lt;br /&gt;
''Stop'' or   ''F2'':  	Stop the scan&lt;br /&gt;
&lt;br /&gt;
''Qsave''   or 	''F3'': 	Automatically saves an image in the actual directory&lt;br /&gt;
&lt;br /&gt;
''Copy''    or   ''F4'': 	Copy Image1 to Image2&lt;br /&gt;
&lt;br /&gt;
''LM''        or ''F5'':	Perform a lateral manipulation&lt;br /&gt;
&lt;br /&gt;
''VM''	    or 	''F6'':	Perform a vertical manipulation or spectroscopy&lt;br /&gt;
&lt;br /&gt;
''TF''	    or 	''F8'':	Perform tip forming&lt;br /&gt;
&lt;br /&gt;
''DA''	    or 	''F9'':  Display the image with automatic line by line background subtraction&lt;br /&gt;
&lt;br /&gt;
''DX''	    or 	''F10'':  Display the image with automatic plane background subtraction&lt;br /&gt;
&lt;br /&gt;
''DP''	    or 	''F11'':  Display the image with planar background subtraction with predefined parameters&lt;br /&gt;
&lt;br /&gt;
''LA''       or  ''F12'': Display the image with automatic greyscale scaling&lt;br /&gt;
&lt;br /&gt;
''LP''	or    ''Shift F9'':       Low pass filter&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;HP&amp;gt; 	or   ''Shift F10'':	High pass filter&lt;br /&gt;
&lt;br /&gt;
&amp;lt;PLN&amp;gt; 	or   ''Shift F11'':	Input 3 points for the plane used in plane background subtraction&lt;br /&gt;
&lt;br /&gt;
&amp;lt;LIN&amp;gt; 	or   ''Shift F12'':	Display a linear scan between two points on the image&lt;br /&gt;
&lt;br /&gt;
==  ==&lt;br /&gt;
[[category:stmafm_manual]]&lt;/div&gt;</summary>
		<author><name>Ltspm</name></author>	</entry>

	<entry>
		<id>http://spm-wiki.createc.de/index.php?title=STMAFM_Main</id>
		<title>STMAFM Main</title>
		<link rel="alternate" type="text/html" href="http://spm-wiki.createc.de/index.php?title=STMAFM_Main"/>
				<updated>2016-12-21T08:49:37Z</updated>
		
		<summary type="html">&lt;p&gt;Ltspm: /* Main Form */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Main Form ==&lt;br /&gt;
The STMAFM form contains the main control elements of the software. Below the menu bar several control the data acquisition and analysis of the STM data.&lt;br /&gt;
&lt;br /&gt;
To take a new image press the ''START'' button. To stop press the ''STOP'' button. When a new scan is started a default filename is assigned to the image. It consists of the date and time, when the scan was started. Its extension will be '.dat'. A single letter is put in the front of the name, which is used to indicate the machine name. (Example:' A020124.190937.dat' ). To save the file either press the ''QSAVE'' button which saves the file in the current directory, indicated in the status line at the bottom of the window, or use the menu command ''Save *.dat'' under ''File''. As long as the files has not been saved a ' * ' is attached to the file. ''Copy'' copies the data in the left image to the second image on the right. &lt;br /&gt;
&lt;br /&gt;
The basic operations to display the data are done using the following buttons:&lt;br /&gt;
&lt;br /&gt;
 ''DA'':  Display the image using different line by line subtraction modes &lt;br /&gt;
 ''DX'':  Display the image using automatic plane substraction&lt;br /&gt;
 ''DP'':  Display the image using plane substraction&lt;br /&gt;
 ''LA'':  Display image in DA mode and perform automatic scaling&lt;br /&gt;
 ''LP'':  Perform a low pass filter operation&lt;br /&gt;
 ''HP'':  Perform a high pass filter operation&lt;br /&gt;
 ''Pln'': Input 3 points (with the mouse) to determine the plane for plane background subtraction&lt;br /&gt;
 ''Lin'': Calculate a linescan along a line between 2 points&lt;br /&gt;
 ''LM''  Lateral manipulation&lt;br /&gt;
 ''VM''  Vertical manipulation of I/V spectroscopy&lt;br /&gt;
 ''TF''  Tip forming&lt;br /&gt;
&lt;br /&gt;
Use ''Disp LinePlan Quad'' under ''Display'' in the menu subtract to perform an automatic line/plane subtraction using also quadratic terms&lt;br /&gt;
Below the buttons you find the Palette window, which displays the current 8bit palette. Use the left mouse button to switch between different standard palettes. Using the right mouse button will open a popup menu with additional options to create a user defined palette or to load and save externally defined palettes.&lt;br /&gt;
&lt;br /&gt;
The small list box on the right is used for communication between different instances of the STMAFM program. If the instance of the program which is in data acquisition mode saves a file then this filename is send to all other instances of the program running in analysis mode.&lt;br /&gt;
&lt;br /&gt;
Below the buttons the screen is separated in two parts, divided by an horizontaly movable slider. On the left is always the image of the current data file displayed. All the operations like scanning and image processing are done in this part on the window. On the right usually a list of all loaded files is displayed. A small icon image and some info is shown for each file. The two modes to display these data are 'Report&amp;quot; and 'Icon' view. The modes can be selected under menu item 'Display'. When in Report view pressing on the 'Image' bar will switch the way how the info is displayed. The list view can be suppressed by selecting 'Image2' under menu item 'Display' and the second image is displayed instead.&lt;br /&gt;
&lt;br /&gt;
On the bottom of the window a status bar is located. It shows the current date and time, some status info about the scanning status, the mouse position on the image,the size of  the image, the current default directory, the available space of disk storage.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[file:clipstmafm.png|600px]]&lt;br /&gt;
&lt;br /&gt;
== Menu Structure ==&lt;br /&gt;
&lt;br /&gt;
'''File'''		                         &lt;br /&gt;
 Open  *.DAT            Open STMAFM DataFile&lt;br /&gt;
 Save  *.DAT            Save STMAFM DataFile&lt;br /&gt;
 QuickSave              Save STMAFM DataFile in active directory&lt;br /&gt;
			&lt;br /&gt;
 Export File		&lt;br /&gt;
 Save  *.BMP         	Save Image as BMP-File&lt;br /&gt;
 Save *.JPG		Save as JPEG File&lt;br /&gt;
 SaveEMF *.EMF           Save Image in EMF Format&lt;br /&gt;
 SaveAscii *.ASC   	Save Image-Data in ASCII Format&lt;br /&gt;
			&lt;br /&gt;
 Import File		&lt;br /&gt;
 Load *.BMP      	Load BMP File&lt;br /&gt;
 Load *.TIF		Load TIF File&lt;br /&gt;
			&lt;br /&gt;
 Print		&lt;br /&gt;
 Print Image             Print the image&lt;br /&gt;
 Print Listview          Print the Filelist in Listview&lt;br /&gt;
 Printer Setup           Select the printer&lt;br /&gt;
			&lt;br /&gt;
 Special		&lt;br /&gt;
 Compress Files		All Files are saved using Data compression with Zlib&lt;br /&gt;
 Save Listview-Files   	Save List of Files in the Listview window&lt;br /&gt;
 Autosave  *.bak       	Save all recorded images&lt;br /&gt;
 AutoSave All		Save all images&lt;br /&gt;
 DOS-CommandLine   	Open a DOS-Window&lt;br /&gt;
 HPData			Get Data from Agilent Datalogger&lt;br /&gt;
 Get_SRS_Lockin_Val	Get External Lockin Setup Parameters&lt;br /&gt;
 &lt;br /&gt;
 STMAFM-Analysis        Start another copy of the STMAFM-Program&lt;br /&gt;
 Exit                   Exit the STMAFM-Program&lt;br /&gt;
 About                  About &lt;br /&gt;
 ReOpen                 Opens the last file&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Edit    &lt;br /&gt;
 Copy Clipbd                Copy the image to the clipboard&lt;br /&gt;
 Copy Dataimage2            Copy left image to the right&lt;br /&gt;
 Copy Clipbd EMF            Copy the image to the clipboard in EMF Format with Info&lt;br /&gt;
 Copy New Window            Copy the image into new form&lt;br /&gt;
 Copy Overview              Copy the image into the overview form&lt;br /&gt;
 Copy Palette to Clipbd     Copy the palette to the Clipboard       &lt;br /&gt;
&lt;br /&gt;
Scan   &lt;br /&gt;
 Scan Start             		Start the Scan&lt;br /&gt;
 Scan Stop              		Stop the Scan&lt;br /&gt;
 Enable/Start RepeatTimer	Start the Repeat-Timer&lt;br /&gt;
 Preamplifier                 	Select the preamplifier&lt;br /&gt;
 Preamp_Femto_LowNoise  		Select for Femto Preamp in Low Noise Mode&lt;br /&gt;
 Preamp_Femto_HighSpeed 		Select for Femto Preamp in High Speed Mode&lt;br /&gt;
 Preamp_Femto_100G		Select for Femto Preamp with fixed gain 10^11&lt;br /&gt;
 Preamp_UserType			Select for User specific Preamp &lt;br /&gt;
&lt;br /&gt;
 Autofilesave			Save every image&lt;br /&gt;
 Autorepeat			Start a new image automatically&lt;br /&gt;
 Autodispreset         		Clear the image window when starting a new scan&lt;br /&gt;
&lt;br /&gt;
 Show Scanline Marker		Display a red line at the actual scan line position&lt;br /&gt;
 Display current Scan Profile	Display the current line as a line scan in a separate window&lt;br /&gt;
 &lt;br /&gt;
 Scan_Y_Direction		Select the Scandirection (Top-Bottom,Bottom-Top,etc)&lt;br /&gt;
 ScanCoarse			Check to set scanning by Coarse Piezos otherwise the main Piezo is used&lt;br /&gt;
&lt;br /&gt;
DSP       &lt;br /&gt;
 Lateral Manip.      		Lateral Manipulation&lt;br /&gt;
 Vertical Manip.            	Vertical Manipulation&lt;br /&gt;
 Tip Forming                	Tip Forming&lt;br /&gt;
&lt;br /&gt;
 SetXYOffset - Top           	Set the xy-offset for the new top site&lt;br /&gt;
 SetXYOffset - Center        	Set the xy-offset for the new center site&lt;br /&gt;
 SetXYOffset - Zoom        	Set the xy-offset for the new center site&lt;br /&gt;
 ResetXYOffset  			Set the xy-offset to (0,0)&lt;br /&gt;
 Copy Offset from Param    	Copy the xy-offset values from the scanparameterlist&lt;br /&gt;
 1: Offsetx,y:  0 0          	Select as new Offset&lt;br /&gt;
 2: Offsetx,y   0 0          	Select as new Offset&lt;br /&gt;
 3: Offsetx,y   0 0          	Select as new Offset&lt;br /&gt;
 4: Offsetx,y   0 0          	Select as new Offset&lt;br /&gt;
 Set_Plan_Dx_Dy			Set the parameters for the plan-offset. &lt;br /&gt;
 Set_DSP_Clock 			Change the Clock-Frequency of the DSP-FeedBack-Loop&lt;br /&gt;
 &lt;br /&gt;
Image   &lt;br /&gt;
 Undo Filter                 	Undo last image operation&lt;br /&gt;
 Filter&lt;br /&gt;
  LowPass                     	Low Pass Filter the image&lt;br /&gt;
  HighPass                    	High Pass Filter the image&lt;br /&gt;
  Laplace                     	Laplace Filter the image&lt;br /&gt;
  Median				Median Filter&lt;br /&gt;
  Edge(Horz)			Edge Filter in the horizontal direction&lt;br /&gt;
  Invert                      	Invert the image&lt;br /&gt;
  Imagedata * 10			The image data is multiplied by a factor of 10&lt;br /&gt;
  Imagedata / 10			The image data is divided by a factor of 10&lt;br /&gt;
&lt;br /&gt;
 Resize&lt;br /&gt;
  Zoom_Up_Rect             	Zoom up a selected rectangle &lt;br /&gt;
  Resize   / 2                	Resize the image&lt;br /&gt;
  Resize   x 2                	Resize the image&lt;br /&gt;
  Interpolation  / 2          	Interpolate the image&lt;br /&gt;
  Interpolation  x 2          	Interpolate the image&lt;br /&gt;
       &lt;br /&gt;
 Rotate90deg&lt;br /&gt;
&lt;br /&gt;
 FFT&lt;br /&gt;
  FFT2D                       	Fast Fourier Transform&lt;br /&gt;
  FFT2D Invers                	Inverse FFT&lt;br /&gt;
  FFT2d Cutout               	Cutout a part of the FFT&lt;br /&gt;
  FFT Evaluate			Open FFT Evaluate window&lt;br /&gt;
&lt;br /&gt;
 Image Analysis&lt;br /&gt;
  Histogram                   	Show the histogram of the image&lt;br /&gt;
  Areacalculation             	Calculate the size of islands&lt;br /&gt;
  Islandsize                  	Calculate the size of islands&lt;br /&gt;
&lt;br /&gt;
Display&lt;br /&gt;
 Zoom&lt;br /&gt;
  100%&lt;br /&gt;
  200%&lt;br /&gt;
  300%&lt;br /&gt;
  400%&lt;br /&gt;
&lt;br /&gt;
 ListView&lt;br /&gt;
  Report				Show files as icons and info&lt;br /&gt;
  Icon				Show files as icons only&lt;br /&gt;
  Image2				Show Image2 and not the Listviewbox&lt;br /&gt;
  ListViewBox enabled      	Enables the ListView Box	&lt;br /&gt;
  AutoclearList                	Clear the Listviewbox before new a new list is added&lt;br /&gt;
  Largeiconsize=64-256   	Icon size of the images in the listviewbox&lt;br /&gt;
  Load Icon Plan              	Load the icons using image plan subtraction&lt;br /&gt;
  Clear Listview			Clear the ListView&lt;br /&gt;
   	&lt;br /&gt;
 DispCommands &lt;br /&gt;
  DispAuto                    	Display image using linear line background subtraction &lt;br /&gt;
  DispPlanAuto                	Display image using auto plan background subtraction &lt;br /&gt;
  DispPlan                    	Display image using plan subtraction&lt;br /&gt;
  Last Disp Autoscale		Display with automatic scaling&lt;br /&gt;
  Plan Auto Subtract		Like Displanauto + subtract plane from image data&lt;br /&gt;
  Linescan                    	Linescan in the image&lt;br /&gt;
  Plan2dinput                 	Input 3 points to select the background subtraction plane&lt;br /&gt;
  Configuration&lt;br /&gt;
   DACunits                    	Select DAC units&lt;br /&gt;
   nm-Units [A]                	Select Angström units&lt;br /&gt;
  Display Image in Lines		Select to display image in line and not gray scale mode&lt;br /&gt;
  Disp LinePlan Quad		Select to perform lin.+quad. Backgroundsubtraction&lt;br /&gt;
  Disp Plan and Subtract	If selected Disp Plan subtracts the plane from the image data&lt;br /&gt;
  Disp Automode Offset/Slope   	DA Mode subtract offset and slope line by line&lt;br /&gt;
  Disp Automode Offset   	DA Mode subtract offset line by line&lt;br /&gt;
  Disp Automode None 		DA Mode subtract offset of first line&lt;br /&gt;
  Disp Automode Diff		DA Mode differentiate image data line by line&lt;br /&gt;
	&lt;br /&gt;
Forms&lt;br /&gt;
 Parameter&lt;br /&gt;
 Lat.Manip            		Show the Latmanip window&lt;br /&gt;
 Vert.Manip           		Show the Vertmanip. window&lt;br /&gt;
 Time Spectrum			Show the Time Spectrum window&lt;br /&gt;
 AFM				Show the AFM PLL window&lt;br /&gt;
 Ramp-Controller			Start Ramp Controller&lt;br /&gt;
 New Channelform			Open another Channelform&lt;br /&gt;
 Linescan            		Show the linescan window&lt;br /&gt;
 Draw Grid			Show Grid window&lt;br /&gt;
 3dView				Show 3d View window	&lt;br /&gt;
 Memo				Show separate Memo window&lt;br /&gt;
 Overview                		Show the overview window&lt;br /&gt;
 Slider				Show the Slider window&lt;br /&gt;
 User Form			Show the User Form&lt;br /&gt;
 Reset Form Positions		Position all windows at (top,left) = (0,0)&lt;br /&gt;
 Show/Hide Old Param 		Show/Hide the old Parameter window&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Debug   &lt;br /&gt;
 Reset Scanstatus            	Enable all buttons again&lt;br /&gt;
 Remote				Open Remote window&lt;br /&gt;
 Client Server Control		Open Client Server Control&lt;br /&gt;
 FIFO_COM USB2.0                Shows whether communication is by USB2.0 Hardware&lt;br /&gt;
 Build Testimage                Build a new image without scanning&lt;br /&gt;
 STM Simulation			Run the STM Programm in Simulation Mode (with DSP) &lt;br /&gt;
 PLL Off                        Switch PLL off&lt;br /&gt;
 Debug Messages On   		Show Debug messages&lt;br /&gt;
 Block Data Transfer		Transfer Data after Acquitstion has been done&lt;br /&gt;
 ADDA DSP Connect		Manually start/stop communication between DSP and ADDA&lt;br /&gt;
 Form Memory Watch		Shows some status data&lt;br /&gt;
       &lt;br /&gt;
&lt;br /&gt;
Tools&lt;br /&gt;
 Tip-Etching			Open to etch STM tips&lt;br /&gt;
 Initialization			Open Initialization window&lt;br /&gt;
 Data Recorder			Open Datarecorder window&lt;br /&gt;
 Flash Utility			Utility to burn Flash on DSP Board with new DSP software&lt;br /&gt;
	&lt;br /&gt;
Help&lt;br /&gt;
 Show STMAFM-Manual		Show STMAFM Manual (PDF)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Main Buttons ==&lt;br /&gt;
&amp;lt;Start&amp;gt;     or 	&amp;lt;F1&amp;gt;:  	Start the scan&lt;br /&gt;
           &lt;br /&gt;
&amp;lt;Stop&amp;gt; 	    or 	&amp;lt;F2&amp;gt;:  	Stop the scan&lt;br /&gt;
&lt;br /&gt;
&amp;lt;Qsave&amp;gt;   or 	&amp;lt;F3&amp;gt;: 	Automatically saves an image in the actual directory&lt;br /&gt;
&lt;br /&gt;
&amp;lt;Copy&amp;gt;     or 	&amp;lt;F4&amp;gt;: 	Copy Image1 to Image2&lt;br /&gt;
&lt;br /&gt;
&amp;lt;LM&amp;gt;        or 	&amp;lt;F5&amp;gt;:	Perform a lateral manipulation&lt;br /&gt;
&lt;br /&gt;
&amp;lt;VM&amp;gt; 	    or 	&amp;lt;F6&amp;gt;:	Perform a vertical manipulation or spectroscopy&lt;br /&gt;
&lt;br /&gt;
&amp;lt;TF&amp;gt; 	    or 	&amp;lt;F8&amp;gt;:	Perform tip forming&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DA&amp;gt; 	    or 	&amp;lt;F9&amp;gt;: 	Display the image with automatic line by line background subtraction&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DX&amp;gt; 	    or 	&amp;lt;F10&amp;gt;:  Display the image with automatic plane background subtraction&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DP&amp;gt; 	    or 	&amp;lt;F11&amp;gt;: 	Display the image with planar background subtraction with predefined parameters&lt;br /&gt;
&lt;br /&gt;
&amp;lt;LA&amp;gt;        or  &amp;lt;F12&amp;gt;: Display the image with automatic greyscale scaling&lt;br /&gt;
&lt;br /&gt;
&amp;lt;LP&amp;gt; 	or    &amp;lt;Shift F9&amp;gt;:       Low pass filter&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;HP&amp;gt; 	or   &amp;lt;Shift F10&amp;gt;:	High pass filter&lt;br /&gt;
&lt;br /&gt;
&amp;lt;PLN&amp;gt; 	or   &amp;lt;Shift F11&amp;gt;:	Input 3 points for the plane used in plane background subtraction&lt;br /&gt;
&lt;br /&gt;
&amp;lt;LIN&amp;gt; 	or   &amp;lt;Shift F12&amp;gt;:	Display a linear scan between two points on the image&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==  ==&lt;br /&gt;
[[category:stmafm_manual]]&lt;/div&gt;</summary>
		<author><name>Ltspm</name></author>	</entry>

	<entry>
		<id>http://spm-wiki.createc.de/index.php?title=STMAFM_Main</id>
		<title>STMAFM Main</title>
		<link rel="alternate" type="text/html" href="http://spm-wiki.createc.de/index.php?title=STMAFM_Main"/>
				<updated>2016-12-21T08:48:00Z</updated>
		
		<summary type="html">&lt;p&gt;Ltspm: /* Main Form */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Main Form ==&lt;br /&gt;
The STMAFM form contains the main control elements of the software. Below the menu bar several control the data acquisition and analysis of the STM data.&lt;br /&gt;
&lt;br /&gt;
To take a new image press the ''START'' button. To stop press the ''STOP'' button. When a new scan is started a default filename is assigned to the image. It consists of the date and time, when the scan was started. Its extension will be '.dat'. A single letter is put in the front of the name, which is used to indicate the machine name. (Example:' A020124.190937.dat' ). To save the file either press the ''QSAVE'' button which saves the file in the current directory, indicated in the status line at the bottom of the window, or use the menu command ''Save *.dat'' under ''File''. As long as the files has not been saved a ' * ' is attached to the file. ''Copy'' copies the data in the left image to the second image on the right. &lt;br /&gt;
&lt;br /&gt;
The basic operations to display the data are done using the following buttons:&lt;br /&gt;
&lt;br /&gt;
 ''DA'':  Display the image using different line by line subtraction modes &lt;br /&gt;
 ''DX'':  Display the image using automatic plane substraction&lt;br /&gt;
 ''DP'':  Display the image using plane substraction&lt;br /&gt;
 ''LA'':  Display image in DA mode and perform automatic scaling&lt;br /&gt;
 ''LP'':  Perform a low pass filter operation&lt;br /&gt;
 ''HP'':  Perform a high pass filter operation&lt;br /&gt;
 ''Pln'': Input 3 points (with the mouse) to determine the plane for plane background subtraction&lt;br /&gt;
 ''Lin'': Calculate a linescan along a line between 2 points&lt;br /&gt;
 ''LM''  Lateral manipulation&lt;br /&gt;
 ''VM''  Vertical manipulation of I/V spectroscopy&lt;br /&gt;
 ''TF''  Tip forming&lt;br /&gt;
&lt;br /&gt;
Use &amp;lt;Disp LinePlan Quad&amp;gt; under &amp;lt;Display&amp;gt; in the menu subtract to perform an automatic line/plane subtraction using also quadratic terms&lt;br /&gt;
Below the buttons you find the Palette window, which displays the current 8bit palette. Use the left mouse button to switch between different standard palettes. Using the right mouse button will open a popup menu with additional options to create a user defined palette or to load and save externally defined palettes.&lt;br /&gt;
&lt;br /&gt;
The small list box on the right is used for communication between different instances of the STMAFM program. If the instance of the program which is in data acquisition mode saves a file then this filename is send to all other instances of the program running in analysis mode.&lt;br /&gt;
&lt;br /&gt;
Below the buttons the screen is separated in two parts, divided by an horizontaly movable slider. On the left is always the image of the current data file displayed. All the operations like scanning and image processing are done in this part on the window. On the right usually a list of all loaded files is displayed. A small icon image and some info is shown for each file. The two modes to display these data are 'Report&amp;quot; and 'Icon' view. The modes can be selected under menu item 'Display'. When in Report view pressing on the 'Image' bar will switch the way how the info is displayed. The list view can be suppressed by selecting 'Image2' under menu item 'Display' and the second image is displayed instead.&lt;br /&gt;
&lt;br /&gt;
On the bottom of the window a status bar is located. It shows the current date and time, some status info about the scanning status, the mouse position on the image,the size of  the image, the current default directory, the available space of disk storage.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[file:clipstmafm.png|600px]]&lt;br /&gt;
&lt;br /&gt;
== Menu Structure ==&lt;br /&gt;
&lt;br /&gt;
'''File'''		                         &lt;br /&gt;
 Open  *.DAT            Open STMAFM DataFile&lt;br /&gt;
 Save  *.DAT            Save STMAFM DataFile&lt;br /&gt;
 QuickSave              Save STMAFM DataFile in active directory&lt;br /&gt;
			&lt;br /&gt;
 Export File		&lt;br /&gt;
 Save  *.BMP         	Save Image as BMP-File&lt;br /&gt;
 Save *.JPG		Save as JPEG File&lt;br /&gt;
 SaveEMF *.EMF           Save Image in EMF Format&lt;br /&gt;
 SaveAscii *.ASC   	Save Image-Data in ASCII Format&lt;br /&gt;
			&lt;br /&gt;
 Import File		&lt;br /&gt;
 Load *.BMP      	Load BMP File&lt;br /&gt;
 Load *.TIF		Load TIF File&lt;br /&gt;
			&lt;br /&gt;
 Print		&lt;br /&gt;
 Print Image             Print the image&lt;br /&gt;
 Print Listview          Print the Filelist in Listview&lt;br /&gt;
 Printer Setup           Select the printer&lt;br /&gt;
			&lt;br /&gt;
 Special		&lt;br /&gt;
 Compress Files		All Files are saved using Data compression with Zlib&lt;br /&gt;
 Save Listview-Files   	Save List of Files in the Listview window&lt;br /&gt;
 Autosave  *.bak       	Save all recorded images&lt;br /&gt;
 AutoSave All		Save all images&lt;br /&gt;
 DOS-CommandLine   	Open a DOS-Window&lt;br /&gt;
 HPData			Get Data from Agilent Datalogger&lt;br /&gt;
 Get_SRS_Lockin_Val	Get External Lockin Setup Parameters&lt;br /&gt;
 &lt;br /&gt;
 STMAFM-Analysis        Start another copy of the STMAFM-Program&lt;br /&gt;
 Exit                   Exit the STMAFM-Program&lt;br /&gt;
 About                  About &lt;br /&gt;
 ReOpen                 Opens the last file&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Edit    &lt;br /&gt;
 Copy Clipbd                Copy the image to the clipboard&lt;br /&gt;
 Copy Dataimage2            Copy left image to the right&lt;br /&gt;
 Copy Clipbd EMF            Copy the image to the clipboard in EMF Format with Info&lt;br /&gt;
 Copy New Window            Copy the image into new form&lt;br /&gt;
 Copy Overview              Copy the image into the overview form&lt;br /&gt;
 Copy Palette to Clipbd     Copy the palette to the Clipboard       &lt;br /&gt;
&lt;br /&gt;
Scan   &lt;br /&gt;
 Scan Start             		Start the Scan&lt;br /&gt;
 Scan Stop              		Stop the Scan&lt;br /&gt;
 Enable/Start RepeatTimer	Start the Repeat-Timer&lt;br /&gt;
 Preamplifier                 	Select the preamplifier&lt;br /&gt;
 Preamp_Femto_LowNoise  		Select for Femto Preamp in Low Noise Mode&lt;br /&gt;
 Preamp_Femto_HighSpeed 		Select for Femto Preamp in High Speed Mode&lt;br /&gt;
 Preamp_Femto_100G		Select for Femto Preamp with fixed gain 10^11&lt;br /&gt;
 Preamp_UserType			Select for User specific Preamp &lt;br /&gt;
&lt;br /&gt;
 Autofilesave			Save every image&lt;br /&gt;
 Autorepeat			Start a new image automatically&lt;br /&gt;
 Autodispreset         		Clear the image window when starting a new scan&lt;br /&gt;
&lt;br /&gt;
 Show Scanline Marker		Display a red line at the actual scan line position&lt;br /&gt;
 Display current Scan Profile	Display the current line as a line scan in a separate window&lt;br /&gt;
 &lt;br /&gt;
 Scan_Y_Direction		Select the Scandirection (Top-Bottom,Bottom-Top,etc)&lt;br /&gt;
 ScanCoarse			Check to set scanning by Coarse Piezos otherwise the main Piezo is used&lt;br /&gt;
&lt;br /&gt;
DSP       &lt;br /&gt;
 Lateral Manip.      		Lateral Manipulation&lt;br /&gt;
 Vertical Manip.            	Vertical Manipulation&lt;br /&gt;
 Tip Forming                	Tip Forming&lt;br /&gt;
&lt;br /&gt;
 SetXYOffset - Top           	Set the xy-offset for the new top site&lt;br /&gt;
 SetXYOffset - Center        	Set the xy-offset for the new center site&lt;br /&gt;
 SetXYOffset - Zoom        	Set the xy-offset for the new center site&lt;br /&gt;
 ResetXYOffset  			Set the xy-offset to (0,0)&lt;br /&gt;
 Copy Offset from Param    	Copy the xy-offset values from the scanparameterlist&lt;br /&gt;
 1: Offsetx,y:  0 0          	Select as new Offset&lt;br /&gt;
 2: Offsetx,y   0 0          	Select as new Offset&lt;br /&gt;
 3: Offsetx,y   0 0          	Select as new Offset&lt;br /&gt;
 4: Offsetx,y   0 0          	Select as new Offset&lt;br /&gt;
 Set_Plan_Dx_Dy			Set the parameters for the plan-offset. &lt;br /&gt;
 Set_DSP_Clock 			Change the Clock-Frequency of the DSP-FeedBack-Loop&lt;br /&gt;
 &lt;br /&gt;
Image   &lt;br /&gt;
 Undo Filter                 	Undo last image operation&lt;br /&gt;
 Filter&lt;br /&gt;
  LowPass                     	Low Pass Filter the image&lt;br /&gt;
  HighPass                    	High Pass Filter the image&lt;br /&gt;
  Laplace                     	Laplace Filter the image&lt;br /&gt;
  Median				Median Filter&lt;br /&gt;
  Edge(Horz)			Edge Filter in the horizontal direction&lt;br /&gt;
  Invert                      	Invert the image&lt;br /&gt;
  Imagedata * 10			The image data is multiplied by a factor of 10&lt;br /&gt;
  Imagedata / 10			The image data is divided by a factor of 10&lt;br /&gt;
&lt;br /&gt;
 Resize&lt;br /&gt;
  Zoom_Up_Rect             	Zoom up a selected rectangle &lt;br /&gt;
  Resize   / 2                	Resize the image&lt;br /&gt;
  Resize   x 2                	Resize the image&lt;br /&gt;
  Interpolation  / 2          	Interpolate the image&lt;br /&gt;
  Interpolation  x 2          	Interpolate the image&lt;br /&gt;
       &lt;br /&gt;
 Rotate90deg&lt;br /&gt;
&lt;br /&gt;
 FFT&lt;br /&gt;
  FFT2D                       	Fast Fourier Transform&lt;br /&gt;
  FFT2D Invers                	Inverse FFT&lt;br /&gt;
  FFT2d Cutout               	Cutout a part of the FFT&lt;br /&gt;
  FFT Evaluate			Open FFT Evaluate window&lt;br /&gt;
&lt;br /&gt;
 Image Analysis&lt;br /&gt;
  Histogram                   	Show the histogram of the image&lt;br /&gt;
  Areacalculation             	Calculate the size of islands&lt;br /&gt;
  Islandsize                  	Calculate the size of islands&lt;br /&gt;
&lt;br /&gt;
Display&lt;br /&gt;
 Zoom&lt;br /&gt;
  100%&lt;br /&gt;
  200%&lt;br /&gt;
  300%&lt;br /&gt;
  400%&lt;br /&gt;
&lt;br /&gt;
 ListView&lt;br /&gt;
  Report				Show files as icons and info&lt;br /&gt;
  Icon				Show files as icons only&lt;br /&gt;
  Image2				Show Image2 and not the Listviewbox&lt;br /&gt;
  ListViewBox enabled      	Enables the ListView Box	&lt;br /&gt;
  AutoclearList                	Clear the Listviewbox before new a new list is added&lt;br /&gt;
  Largeiconsize=64-256   	Icon size of the images in the listviewbox&lt;br /&gt;
  Load Icon Plan              	Load the icons using image plan subtraction&lt;br /&gt;
  Clear Listview			Clear the ListView&lt;br /&gt;
   	&lt;br /&gt;
 DispCommands &lt;br /&gt;
  DispAuto                    	Display image using linear line background subtraction &lt;br /&gt;
  DispPlanAuto                	Display image using auto plan background subtraction &lt;br /&gt;
  DispPlan                    	Display image using plan subtraction&lt;br /&gt;
  Last Disp Autoscale		Display with automatic scaling&lt;br /&gt;
  Plan Auto Subtract		Like Displanauto + subtract plane from image data&lt;br /&gt;
  Linescan                    	Linescan in the image&lt;br /&gt;
  Plan2dinput                 	Input 3 points to select the background subtraction plane&lt;br /&gt;
  Configuration&lt;br /&gt;
   DACunits                    	Select DAC units&lt;br /&gt;
   nm-Units [A]                	Select Angström units&lt;br /&gt;
  Display Image in Lines		Select to display image in line and not gray scale mode&lt;br /&gt;
  Disp LinePlan Quad		Select to perform lin.+quad. Backgroundsubtraction&lt;br /&gt;
  Disp Plan and Subtract	If selected Disp Plan subtracts the plane from the image data&lt;br /&gt;
  Disp Automode Offset/Slope   	DA Mode subtract offset and slope line by line&lt;br /&gt;
  Disp Automode Offset   	DA Mode subtract offset line by line&lt;br /&gt;
  Disp Automode None 		DA Mode subtract offset of first line&lt;br /&gt;
  Disp Automode Diff		DA Mode differentiate image data line by line&lt;br /&gt;
	&lt;br /&gt;
Forms&lt;br /&gt;
 Parameter&lt;br /&gt;
 Lat.Manip            		Show the Latmanip window&lt;br /&gt;
 Vert.Manip           		Show the Vertmanip. window&lt;br /&gt;
 Time Spectrum			Show the Time Spectrum window&lt;br /&gt;
 AFM				Show the AFM PLL window&lt;br /&gt;
 Ramp-Controller			Start Ramp Controller&lt;br /&gt;
 New Channelform			Open another Channelform&lt;br /&gt;
 Linescan            		Show the linescan window&lt;br /&gt;
 Draw Grid			Show Grid window&lt;br /&gt;
 3dView				Show 3d View window	&lt;br /&gt;
 Memo				Show separate Memo window&lt;br /&gt;
 Overview                		Show the overview window&lt;br /&gt;
 Slider				Show the Slider window&lt;br /&gt;
 User Form			Show the User Form&lt;br /&gt;
 Reset Form Positions		Position all windows at (top,left) = (0,0)&lt;br /&gt;
 Show/Hide Old Param 		Show/Hide the old Parameter window&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Debug   &lt;br /&gt;
 Reset Scanstatus            	Enable all buttons again&lt;br /&gt;
 Remote				Open Remote window&lt;br /&gt;
 Client Server Control		Open Client Server Control&lt;br /&gt;
 FIFO_COM USB2.0                Shows whether communication is by USB2.0 Hardware&lt;br /&gt;
 Build Testimage                Build a new image without scanning&lt;br /&gt;
 STM Simulation			Run the STM Programm in Simulation Mode (with DSP) &lt;br /&gt;
 PLL Off                        Switch PLL off&lt;br /&gt;
 Debug Messages On   		Show Debug messages&lt;br /&gt;
 Block Data Transfer		Transfer Data after Acquitstion has been done&lt;br /&gt;
 ADDA DSP Connect		Manually start/stop communication between DSP and ADDA&lt;br /&gt;
 Form Memory Watch		Shows some status data&lt;br /&gt;
       &lt;br /&gt;
&lt;br /&gt;
Tools&lt;br /&gt;
 Tip-Etching			Open to etch STM tips&lt;br /&gt;
 Initialization			Open Initialization window&lt;br /&gt;
 Data Recorder			Open Datarecorder window&lt;br /&gt;
 Flash Utility			Utility to burn Flash on DSP Board with new DSP software&lt;br /&gt;
	&lt;br /&gt;
Help&lt;br /&gt;
 Show STMAFM-Manual		Show STMAFM Manual (PDF)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Main Buttons ==&lt;br /&gt;
&amp;lt;Start&amp;gt;     or 	&amp;lt;F1&amp;gt;:  	Start the scan&lt;br /&gt;
           &lt;br /&gt;
&amp;lt;Stop&amp;gt; 	    or 	&amp;lt;F2&amp;gt;:  	Stop the scan&lt;br /&gt;
&lt;br /&gt;
&amp;lt;Qsave&amp;gt;   or 	&amp;lt;F3&amp;gt;: 	Automatically saves an image in the actual directory&lt;br /&gt;
&lt;br /&gt;
&amp;lt;Copy&amp;gt;     or 	&amp;lt;F4&amp;gt;: 	Copy Image1 to Image2&lt;br /&gt;
&lt;br /&gt;
&amp;lt;LM&amp;gt;        or 	&amp;lt;F5&amp;gt;:	Perform a lateral manipulation&lt;br /&gt;
&lt;br /&gt;
&amp;lt;VM&amp;gt; 	    or 	&amp;lt;F6&amp;gt;:	Perform a vertical manipulation or spectroscopy&lt;br /&gt;
&lt;br /&gt;
&amp;lt;TF&amp;gt; 	    or 	&amp;lt;F8&amp;gt;:	Perform tip forming&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DA&amp;gt; 	    or 	&amp;lt;F9&amp;gt;: 	Display the image with automatic line by line background subtraction&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DX&amp;gt; 	    or 	&amp;lt;F10&amp;gt;:  Display the image with automatic plane background subtraction&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DP&amp;gt; 	    or 	&amp;lt;F11&amp;gt;: 	Display the image with planar background subtraction with predefined parameters&lt;br /&gt;
&lt;br /&gt;
&amp;lt;LA&amp;gt;        or  &amp;lt;F12&amp;gt;: Display the image with automatic greyscale scaling&lt;br /&gt;
&lt;br /&gt;
&amp;lt;LP&amp;gt; 	or    &amp;lt;Shift F9&amp;gt;:       Low pass filter&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;HP&amp;gt; 	or   &amp;lt;Shift F10&amp;gt;:	High pass filter&lt;br /&gt;
&lt;br /&gt;
&amp;lt;PLN&amp;gt; 	or   &amp;lt;Shift F11&amp;gt;:	Input 3 points for the plane used in plane background subtraction&lt;br /&gt;
&lt;br /&gt;
&amp;lt;LIN&amp;gt; 	or   &amp;lt;Shift F12&amp;gt;:	Display a linear scan between two points on the image&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==  ==&lt;br /&gt;
[[category:stmafm_manual]]&lt;/div&gt;</summary>
		<author><name>Ltspm</name></author>	</entry>

	<entry>
		<id>http://spm-wiki.createc.de/index.php?title=STMAFM_Main</id>
		<title>STMAFM Main</title>
		<link rel="alternate" type="text/html" href="http://spm-wiki.createc.de/index.php?title=STMAFM_Main"/>
				<updated>2016-12-21T08:45:01Z</updated>
		
		<summary type="html">&lt;p&gt;Ltspm: /* Main Form */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Main Form ==&lt;br /&gt;
The STMAFM form contains the main control elements of the software. Below the menu bar several control the data acquisition and analysis of the STM data.&lt;br /&gt;
&lt;br /&gt;
To take a new image press the ''START'' button. To stop press the ''STOP'' button. When a new scan is started a default filename is assigned to the image. It consists of the date and time, when the scan was started. Its extension will be '.dat'. A single letter is put in the front of the name, which is used to indicate the machine name. (Example:' A020124.190937.dat' ). To save the file either press the &amp;lt;QSAVE&amp;gt; button which saves the file in the current directory, indicated in the status line at the bottom of the window, or use the menu command &amp;lt;Save *.dat&amp;gt; under &amp;lt;File&amp;gt;. As long as the files has not been saved a ' * ' is attached to the file. The &amp;lt;Copy&amp;gt; copies the data in the left image to the second image on the right. &lt;br /&gt;
&lt;br /&gt;
The basic operations to display the data are done using the following buttons:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;DA&amp;gt;:  Display the image using different line by line subtraction modes &lt;br /&gt;
 &amp;lt;DX&amp;gt;:  Display the image using automatic plane substraction&lt;br /&gt;
 &amp;lt;DP&amp;gt;:  Display the image using plane substraction&lt;br /&gt;
 &amp;lt;LA&amp;gt;:  Display image in DA mode and perform automatic scaling&lt;br /&gt;
 &amp;lt;LP&amp;gt;:  Perform a low pass filter operation&lt;br /&gt;
 &amp;lt;HP&amp;gt;:  Perform a high pass filter operation&lt;br /&gt;
 &amp;lt;Pln&amp;gt;: Input 3 points (with the mouse) to determine the plane for plane background subtraction&lt;br /&gt;
 &amp;lt;Lin&amp;gt;: Calculate a linescan along a line between 2 points&lt;br /&gt;
 &amp;lt;LM&amp;gt;  Lateral manipulation&lt;br /&gt;
 &amp;lt;VM&amp;gt;  Vertical manipulation of I/V spectroscopy&lt;br /&gt;
 &amp;lt;TF&amp;gt;  Tip forming&lt;br /&gt;
&lt;br /&gt;
Use &amp;lt;Disp LinePlan Quad&amp;gt; under &amp;lt;Display&amp;gt; in the menu subtract to perform an automatic line/plane subtraction using also quadratic terms&lt;br /&gt;
Below the buttons you find the Palette window, which displays the current 8bit palette. Use the left mouse button to switch between different standard palettes. Using the right mouse button will open a popup menu with additional options to create a user defined palette or to load and save externally defined palettes.&lt;br /&gt;
&lt;br /&gt;
The small list box on the right is used for communication between different instances of the STMAFM program. If the instance of the program which is in data acquisition mode saves a file then this filename is send to all other instances of the program running in analysis mode.&lt;br /&gt;
&lt;br /&gt;
Below the buttons the screen is separated in two parts, divided by an horizontaly movable slider. On the left is always the image of the current data file displayed. All the operations like scanning and image processing are done in this part on the window. On the right usually a list of all loaded files is displayed. A small icon image and some info is shown for each file. The two modes to display these data are 'Report&amp;quot; and 'Icon' view. The modes can be selected under menu item 'Display'. When in Report view pressing on the 'Image' bar will switch the way how the info is displayed. The list view can be suppressed by selecting 'Image2' under menu item 'Display' and the second image is displayed instead.&lt;br /&gt;
&lt;br /&gt;
On the bottom of the window a status bar is located. It shows the current date and time, some status info about the scanning status, the mouse position on the image,the size of  the image, the current default directory, the available space of disk storage.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[file:clipstmafm.png|600px]]&lt;br /&gt;
&lt;br /&gt;
== Menu Structure ==&lt;br /&gt;
&lt;br /&gt;
'''File'''		                         &lt;br /&gt;
 Open  *.DAT            Open STMAFM DataFile&lt;br /&gt;
 Save  *.DAT            Save STMAFM DataFile&lt;br /&gt;
 QuickSave              Save STMAFM DataFile in active directory&lt;br /&gt;
			&lt;br /&gt;
 Export File		&lt;br /&gt;
 Save  *.BMP         	Save Image as BMP-File&lt;br /&gt;
 Save *.JPG		Save as JPEG File&lt;br /&gt;
 SaveEMF *.EMF           Save Image in EMF Format&lt;br /&gt;
 SaveAscii *.ASC   	Save Image-Data in ASCII Format&lt;br /&gt;
			&lt;br /&gt;
 Import File		&lt;br /&gt;
 Load *.BMP      	Load BMP File&lt;br /&gt;
 Load *.TIF		Load TIF File&lt;br /&gt;
			&lt;br /&gt;
 Print		&lt;br /&gt;
 Print Image             Print the image&lt;br /&gt;
 Print Listview          Print the Filelist in Listview&lt;br /&gt;
 Printer Setup           Select the printer&lt;br /&gt;
			&lt;br /&gt;
 Special		&lt;br /&gt;
 Compress Files		All Files are saved using Data compression with Zlib&lt;br /&gt;
 Save Listview-Files   	Save List of Files in the Listview window&lt;br /&gt;
 Autosave  *.bak       	Save all recorded images&lt;br /&gt;
 AutoSave All		Save all images&lt;br /&gt;
 DOS-CommandLine   	Open a DOS-Window&lt;br /&gt;
 HPData			Get Data from Agilent Datalogger&lt;br /&gt;
 Get_SRS_Lockin_Val	Get External Lockin Setup Parameters&lt;br /&gt;
 &lt;br /&gt;
 STMAFM-Analysis        Start another copy of the STMAFM-Program&lt;br /&gt;
 Exit                   Exit the STMAFM-Program&lt;br /&gt;
 About                  About &lt;br /&gt;
 ReOpen                 Opens the last file&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Edit    &lt;br /&gt;
 Copy Clipbd                Copy the image to the clipboard&lt;br /&gt;
 Copy Dataimage2            Copy left image to the right&lt;br /&gt;
 Copy Clipbd EMF            Copy the image to the clipboard in EMF Format with Info&lt;br /&gt;
 Copy New Window            Copy the image into new form&lt;br /&gt;
 Copy Overview              Copy the image into the overview form&lt;br /&gt;
 Copy Palette to Clipbd     Copy the palette to the Clipboard       &lt;br /&gt;
&lt;br /&gt;
Scan   &lt;br /&gt;
 Scan Start             		Start the Scan&lt;br /&gt;
 Scan Stop              		Stop the Scan&lt;br /&gt;
 Enable/Start RepeatTimer	Start the Repeat-Timer&lt;br /&gt;
 Preamplifier                 	Select the preamplifier&lt;br /&gt;
 Preamp_Femto_LowNoise  		Select for Femto Preamp in Low Noise Mode&lt;br /&gt;
 Preamp_Femto_HighSpeed 		Select for Femto Preamp in High Speed Mode&lt;br /&gt;
 Preamp_Femto_100G		Select for Femto Preamp with fixed gain 10^11&lt;br /&gt;
 Preamp_UserType			Select for User specific Preamp &lt;br /&gt;
&lt;br /&gt;
 Autofilesave			Save every image&lt;br /&gt;
 Autorepeat			Start a new image automatically&lt;br /&gt;
 Autodispreset         		Clear the image window when starting a new scan&lt;br /&gt;
&lt;br /&gt;
 Show Scanline Marker		Display a red line at the actual scan line position&lt;br /&gt;
 Display current Scan Profile	Display the current line as a line scan in a separate window&lt;br /&gt;
 &lt;br /&gt;
 Scan_Y_Direction		Select the Scandirection (Top-Bottom,Bottom-Top,etc)&lt;br /&gt;
 ScanCoarse			Check to set scanning by Coarse Piezos otherwise the main Piezo is used&lt;br /&gt;
&lt;br /&gt;
DSP       &lt;br /&gt;
 Lateral Manip.      		Lateral Manipulation&lt;br /&gt;
 Vertical Manip.            	Vertical Manipulation&lt;br /&gt;
 Tip Forming                	Tip Forming&lt;br /&gt;
&lt;br /&gt;
 SetXYOffset - Top           	Set the xy-offset for the new top site&lt;br /&gt;
 SetXYOffset - Center        	Set the xy-offset for the new center site&lt;br /&gt;
 SetXYOffset - Zoom        	Set the xy-offset for the new center site&lt;br /&gt;
 ResetXYOffset  			Set the xy-offset to (0,0)&lt;br /&gt;
 Copy Offset from Param    	Copy the xy-offset values from the scanparameterlist&lt;br /&gt;
 1: Offsetx,y:  0 0          	Select as new Offset&lt;br /&gt;
 2: Offsetx,y   0 0          	Select as new Offset&lt;br /&gt;
 3: Offsetx,y   0 0          	Select as new Offset&lt;br /&gt;
 4: Offsetx,y   0 0          	Select as new Offset&lt;br /&gt;
 Set_Plan_Dx_Dy			Set the parameters for the plan-offset. &lt;br /&gt;
 Set_DSP_Clock 			Change the Clock-Frequency of the DSP-FeedBack-Loop&lt;br /&gt;
 &lt;br /&gt;
Image   &lt;br /&gt;
 Undo Filter                 	Undo last image operation&lt;br /&gt;
 Filter&lt;br /&gt;
  LowPass                     	Low Pass Filter the image&lt;br /&gt;
  HighPass                    	High Pass Filter the image&lt;br /&gt;
  Laplace                     	Laplace Filter the image&lt;br /&gt;
  Median				Median Filter&lt;br /&gt;
  Edge(Horz)			Edge Filter in the horizontal direction&lt;br /&gt;
  Invert                      	Invert the image&lt;br /&gt;
  Imagedata * 10			The image data is multiplied by a factor of 10&lt;br /&gt;
  Imagedata / 10			The image data is divided by a factor of 10&lt;br /&gt;
&lt;br /&gt;
 Resize&lt;br /&gt;
  Zoom_Up_Rect             	Zoom up a selected rectangle &lt;br /&gt;
  Resize   / 2                	Resize the image&lt;br /&gt;
  Resize   x 2                	Resize the image&lt;br /&gt;
  Interpolation  / 2          	Interpolate the image&lt;br /&gt;
  Interpolation  x 2          	Interpolate the image&lt;br /&gt;
       &lt;br /&gt;
 Rotate90deg&lt;br /&gt;
&lt;br /&gt;
 FFT&lt;br /&gt;
  FFT2D                       	Fast Fourier Transform&lt;br /&gt;
  FFT2D Invers                	Inverse FFT&lt;br /&gt;
  FFT2d Cutout               	Cutout a part of the FFT&lt;br /&gt;
  FFT Evaluate			Open FFT Evaluate window&lt;br /&gt;
&lt;br /&gt;
 Image Analysis&lt;br /&gt;
  Histogram                   	Show the histogram of the image&lt;br /&gt;
  Areacalculation             	Calculate the size of islands&lt;br /&gt;
  Islandsize                  	Calculate the size of islands&lt;br /&gt;
&lt;br /&gt;
Display&lt;br /&gt;
 Zoom&lt;br /&gt;
  100%&lt;br /&gt;
  200%&lt;br /&gt;
  300%&lt;br /&gt;
  400%&lt;br /&gt;
&lt;br /&gt;
 ListView&lt;br /&gt;
  Report				Show files as icons and info&lt;br /&gt;
  Icon				Show files as icons only&lt;br /&gt;
  Image2				Show Image2 and not the Listviewbox&lt;br /&gt;
  ListViewBox enabled      	Enables the ListView Box	&lt;br /&gt;
  AutoclearList                	Clear the Listviewbox before new a new list is added&lt;br /&gt;
  Largeiconsize=64-256   	Icon size of the images in the listviewbox&lt;br /&gt;
  Load Icon Plan              	Load the icons using image plan subtraction&lt;br /&gt;
  Clear Listview			Clear the ListView&lt;br /&gt;
   	&lt;br /&gt;
 DispCommands &lt;br /&gt;
  DispAuto                    	Display image using linear line background subtraction &lt;br /&gt;
  DispPlanAuto                	Display image using auto plan background subtraction &lt;br /&gt;
  DispPlan                    	Display image using plan subtraction&lt;br /&gt;
  Last Disp Autoscale		Display with automatic scaling&lt;br /&gt;
  Plan Auto Subtract		Like Displanauto + subtract plane from image data&lt;br /&gt;
  Linescan                    	Linescan in the image&lt;br /&gt;
  Plan2dinput                 	Input 3 points to select the background subtraction plane&lt;br /&gt;
  Configuration&lt;br /&gt;
   DACunits                    	Select DAC units&lt;br /&gt;
   nm-Units [A]                	Select Angström units&lt;br /&gt;
  Display Image in Lines		Select to display image in line and not gray scale mode&lt;br /&gt;
  Disp LinePlan Quad		Select to perform lin.+quad. Backgroundsubtraction&lt;br /&gt;
  Disp Plan and Subtract	If selected Disp Plan subtracts the plane from the image data&lt;br /&gt;
  Disp Automode Offset/Slope   	DA Mode subtract offset and slope line by line&lt;br /&gt;
  Disp Automode Offset   	DA Mode subtract offset line by line&lt;br /&gt;
  Disp Automode None 		DA Mode subtract offset of first line&lt;br /&gt;
  Disp Automode Diff		DA Mode differentiate image data line by line&lt;br /&gt;
	&lt;br /&gt;
Forms&lt;br /&gt;
 Parameter&lt;br /&gt;
 Lat.Manip            		Show the Latmanip window&lt;br /&gt;
 Vert.Manip           		Show the Vertmanip. window&lt;br /&gt;
 Time Spectrum			Show the Time Spectrum window&lt;br /&gt;
 AFM				Show the AFM PLL window&lt;br /&gt;
 Ramp-Controller			Start Ramp Controller&lt;br /&gt;
 New Channelform			Open another Channelform&lt;br /&gt;
 Linescan            		Show the linescan window&lt;br /&gt;
 Draw Grid			Show Grid window&lt;br /&gt;
 3dView				Show 3d View window	&lt;br /&gt;
 Memo				Show separate Memo window&lt;br /&gt;
 Overview                		Show the overview window&lt;br /&gt;
 Slider				Show the Slider window&lt;br /&gt;
 User Form			Show the User Form&lt;br /&gt;
 Reset Form Positions		Position all windows at (top,left) = (0,0)&lt;br /&gt;
 Show/Hide Old Param 		Show/Hide the old Parameter window&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Debug   &lt;br /&gt;
 Reset Scanstatus            	Enable all buttons again&lt;br /&gt;
 Remote				Open Remote window&lt;br /&gt;
 Client Server Control		Open Client Server Control&lt;br /&gt;
 FIFO_COM USB2.0                Shows whether communication is by USB2.0 Hardware&lt;br /&gt;
 Build Testimage                Build a new image without scanning&lt;br /&gt;
 STM Simulation			Run the STM Programm in Simulation Mode (with DSP) &lt;br /&gt;
 PLL Off                        Switch PLL off&lt;br /&gt;
 Debug Messages On   		Show Debug messages&lt;br /&gt;
 Block Data Transfer		Transfer Data after Acquitstion has been done&lt;br /&gt;
 ADDA DSP Connect		Manually start/stop communication between DSP and ADDA&lt;br /&gt;
 Form Memory Watch		Shows some status data&lt;br /&gt;
       &lt;br /&gt;
&lt;br /&gt;
Tools&lt;br /&gt;
 Tip-Etching			Open to etch STM tips&lt;br /&gt;
 Initialization			Open Initialization window&lt;br /&gt;
 Data Recorder			Open Datarecorder window&lt;br /&gt;
 Flash Utility			Utility to burn Flash on DSP Board with new DSP software&lt;br /&gt;
	&lt;br /&gt;
Help&lt;br /&gt;
 Show STMAFM-Manual		Show STMAFM Manual (PDF)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Main Buttons ==&lt;br /&gt;
&amp;lt;Start&amp;gt;     or 	&amp;lt;F1&amp;gt;:  	Start the scan&lt;br /&gt;
           &lt;br /&gt;
&amp;lt;Stop&amp;gt; 	    or 	&amp;lt;F2&amp;gt;:  	Stop the scan&lt;br /&gt;
&lt;br /&gt;
&amp;lt;Qsave&amp;gt;   or 	&amp;lt;F3&amp;gt;: 	Automatically saves an image in the actual directory&lt;br /&gt;
&lt;br /&gt;
&amp;lt;Copy&amp;gt;     or 	&amp;lt;F4&amp;gt;: 	Copy Image1 to Image2&lt;br /&gt;
&lt;br /&gt;
&amp;lt;LM&amp;gt;        or 	&amp;lt;F5&amp;gt;:	Perform a lateral manipulation&lt;br /&gt;
&lt;br /&gt;
&amp;lt;VM&amp;gt; 	    or 	&amp;lt;F6&amp;gt;:	Perform a vertical manipulation or spectroscopy&lt;br /&gt;
&lt;br /&gt;
&amp;lt;TF&amp;gt; 	    or 	&amp;lt;F8&amp;gt;:	Perform tip forming&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DA&amp;gt; 	    or 	&amp;lt;F9&amp;gt;: 	Display the image with automatic line by line background subtraction&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DX&amp;gt; 	    or 	&amp;lt;F10&amp;gt;:  Display the image with automatic plane background subtraction&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DP&amp;gt; 	    or 	&amp;lt;F11&amp;gt;: 	Display the image with planar background subtraction with predefined parameters&lt;br /&gt;
&lt;br /&gt;
&amp;lt;LA&amp;gt;        or  &amp;lt;F12&amp;gt;: Display the image with automatic greyscale scaling&lt;br /&gt;
&lt;br /&gt;
&amp;lt;LP&amp;gt; 	or    &amp;lt;Shift F9&amp;gt;:       Low pass filter&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;HP&amp;gt; 	or   &amp;lt;Shift F10&amp;gt;:	High pass filter&lt;br /&gt;
&lt;br /&gt;
&amp;lt;PLN&amp;gt; 	or   &amp;lt;Shift F11&amp;gt;:	Input 3 points for the plane used in plane background subtraction&lt;br /&gt;
&lt;br /&gt;
&amp;lt;LIN&amp;gt; 	or   &amp;lt;Shift F12&amp;gt;:	Display a linear scan between two points on the image&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==  ==&lt;br /&gt;
[[category:stmafm_manual]]&lt;/div&gt;</summary>
		<author><name>Ltspm</name></author>	</entry>

	<entry>
		<id>http://spm-wiki.createc.de/index.php?title=STMAFM_Main</id>
		<title>STMAFM Main</title>
		<link rel="alternate" type="text/html" href="http://spm-wiki.createc.de/index.php?title=STMAFM_Main"/>
				<updated>2016-12-21T08:43:01Z</updated>
		
		<summary type="html">&lt;p&gt;Ltspm: /* Main Form */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Main Form ==&lt;br /&gt;
The STMAFM form contains the main control elements of the software. Below the menu bar several control the data acquisition and analysis of the STM data.&lt;br /&gt;
&lt;br /&gt;
To take a new image press the '''START''' button. To stop press the '''STOP''' button. When a new scan is started a default filename is assigned to the image. It consists of the date and time, when the scan was started. Its extension will be '.dat'. A single letter is put in the front of the name, which is used to indicate the machine name. (Example:' A020124.190937.dat' ). To save the file either press the &amp;lt;QSAVE&amp;gt; button which saves the file in the current directory, indicated in the status line at the bottom of the window, or use the menu command &amp;lt;Save *.dat&amp;gt; under &amp;lt;File&amp;gt;. As long as the files has not been saved a ' * ' is attached to the file. The &amp;lt;Copy&amp;gt; copies the data in the left image to the second image on the right. &lt;br /&gt;
&lt;br /&gt;
The basic operations to display the data are done using the following buttons:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;DA&amp;gt;:  Display the image using different line by line subtraction modes &lt;br /&gt;
 &amp;lt;DX&amp;gt;:  Display the image using automatic plane substraction&lt;br /&gt;
 &amp;lt;DP&amp;gt;:  Display the image using plane substraction&lt;br /&gt;
 &amp;lt;LA&amp;gt;:  Display image in DA mode and perform automatic scaling&lt;br /&gt;
 &amp;lt;LP&amp;gt;:  Perform a low pass filter operation&lt;br /&gt;
 &amp;lt;HP&amp;gt;:  Perform a high pass filter operation&lt;br /&gt;
 &amp;lt;Pln&amp;gt;: Input 3 points (with the mouse) to determine the plane for plane background subtraction&lt;br /&gt;
 &amp;lt;Lin&amp;gt;: Calculate a linescan along a line between 2 points&lt;br /&gt;
 &amp;lt;LM&amp;gt;  Lateral manipulation&lt;br /&gt;
 &amp;lt;VM&amp;gt;  Vertical manipulation of I/V spectroscopy&lt;br /&gt;
 &amp;lt;TF&amp;gt;  Tip forming&lt;br /&gt;
&lt;br /&gt;
Use &amp;lt;Disp LinePlan Quad&amp;gt; under &amp;lt;Display&amp;gt; in the menu subtract to perform an automatic line/plane subtraction using also quadratic terms&lt;br /&gt;
Below the buttons you find the Palette window, which displays the current 8bit palette. Use the left mouse button to switch between different standard palettes. Using the right mouse button will open a popup menu with additional options to create a user defined palette or to load and save externally defined palettes.&lt;br /&gt;
&lt;br /&gt;
The small list box on the right is used for communication between different instances of the STMAFM program. If the instance of the program which is in data acquisition mode saves a file then this filename is send to all other instances of the program running in analysis mode.&lt;br /&gt;
&lt;br /&gt;
Below the buttons the screen is separated in two parts, divided by an horizontaly movable slider. On the left is always the image of the current data file displayed. All the operations like scanning and image processing are done in this part on the window. On the right usually a list of all loaded files is displayed. A small icon image and some info is shown for each file. The two modes to display these data are 'Report&amp;quot; and 'Icon' view. The modes can be selected under menu item 'Display'. When in Report view pressing on the 'Image' bar will switch the way how the info is displayed. The list view can be suppressed by selecting 'Image2' under menu item 'Display' and the second image is displayed instead.&lt;br /&gt;
&lt;br /&gt;
On the bottom of the window a status bar is located. It shows the current date and time, some status info about the scanning status, the mouse position on the image,the size of  the image, the current default directory, the available space of disk storage.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[file:clipstmafm.png|600px]]&lt;br /&gt;
&lt;br /&gt;
== Menu Structure ==&lt;br /&gt;
&lt;br /&gt;
'''File'''		                         &lt;br /&gt;
 Open  *.DAT            Open STMAFM DataFile&lt;br /&gt;
 Save  *.DAT            Save STMAFM DataFile&lt;br /&gt;
 QuickSave              Save STMAFM DataFile in active directory&lt;br /&gt;
			&lt;br /&gt;
 Export File		&lt;br /&gt;
 Save  *.BMP         	Save Image as BMP-File&lt;br /&gt;
 Save *.JPG		Save as JPEG File&lt;br /&gt;
 SaveEMF *.EMF           Save Image in EMF Format&lt;br /&gt;
 SaveAscii *.ASC   	Save Image-Data in ASCII Format&lt;br /&gt;
			&lt;br /&gt;
 Import File		&lt;br /&gt;
 Load *.BMP      	Load BMP File&lt;br /&gt;
 Load *.TIF		Load TIF File&lt;br /&gt;
			&lt;br /&gt;
 Print		&lt;br /&gt;
 Print Image             Print the image&lt;br /&gt;
 Print Listview          Print the Filelist in Listview&lt;br /&gt;
 Printer Setup           Select the printer&lt;br /&gt;
			&lt;br /&gt;
 Special		&lt;br /&gt;
 Compress Files		All Files are saved using Data compression with Zlib&lt;br /&gt;
 Save Listview-Files   	Save List of Files in the Listview window&lt;br /&gt;
 Autosave  *.bak       	Save all recorded images&lt;br /&gt;
 AutoSave All		Save all images&lt;br /&gt;
 DOS-CommandLine   	Open a DOS-Window&lt;br /&gt;
 HPData			Get Data from Agilent Datalogger&lt;br /&gt;
 Get_SRS_Lockin_Val	Get External Lockin Setup Parameters&lt;br /&gt;
 &lt;br /&gt;
 STMAFM-Analysis        Start another copy of the STMAFM-Program&lt;br /&gt;
 Exit                   Exit the STMAFM-Program&lt;br /&gt;
 About                  About &lt;br /&gt;
 ReOpen                 Opens the last file&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Edit    &lt;br /&gt;
 Copy Clipbd                Copy the image to the clipboard&lt;br /&gt;
 Copy Dataimage2            Copy left image to the right&lt;br /&gt;
 Copy Clipbd EMF            Copy the image to the clipboard in EMF Format with Info&lt;br /&gt;
 Copy New Window            Copy the image into new form&lt;br /&gt;
 Copy Overview              Copy the image into the overview form&lt;br /&gt;
 Copy Palette to Clipbd     Copy the palette to the Clipboard       &lt;br /&gt;
&lt;br /&gt;
Scan   &lt;br /&gt;
 Scan Start             		Start the Scan&lt;br /&gt;
 Scan Stop              		Stop the Scan&lt;br /&gt;
 Enable/Start RepeatTimer	Start the Repeat-Timer&lt;br /&gt;
 Preamplifier                 	Select the preamplifier&lt;br /&gt;
 Preamp_Femto_LowNoise  		Select for Femto Preamp in Low Noise Mode&lt;br /&gt;
 Preamp_Femto_HighSpeed 		Select for Femto Preamp in High Speed Mode&lt;br /&gt;
 Preamp_Femto_100G		Select for Femto Preamp with fixed gain 10^11&lt;br /&gt;
 Preamp_UserType			Select for User specific Preamp &lt;br /&gt;
&lt;br /&gt;
 Autofilesave			Save every image&lt;br /&gt;
 Autorepeat			Start a new image automatically&lt;br /&gt;
 Autodispreset         		Clear the image window when starting a new scan&lt;br /&gt;
&lt;br /&gt;
 Show Scanline Marker		Display a red line at the actual scan line position&lt;br /&gt;
 Display current Scan Profile	Display the current line as a line scan in a separate window&lt;br /&gt;
 &lt;br /&gt;
 Scan_Y_Direction		Select the Scandirection (Top-Bottom,Bottom-Top,etc)&lt;br /&gt;
 ScanCoarse			Check to set scanning by Coarse Piezos otherwise the main Piezo is used&lt;br /&gt;
&lt;br /&gt;
DSP       &lt;br /&gt;
 Lateral Manip.      		Lateral Manipulation&lt;br /&gt;
 Vertical Manip.            	Vertical Manipulation&lt;br /&gt;
 Tip Forming                	Tip Forming&lt;br /&gt;
&lt;br /&gt;
 SetXYOffset - Top           	Set the xy-offset for the new top site&lt;br /&gt;
 SetXYOffset - Center        	Set the xy-offset for the new center site&lt;br /&gt;
 SetXYOffset - Zoom        	Set the xy-offset for the new center site&lt;br /&gt;
 ResetXYOffset  			Set the xy-offset to (0,0)&lt;br /&gt;
 Copy Offset from Param    	Copy the xy-offset values from the scanparameterlist&lt;br /&gt;
 1: Offsetx,y:  0 0          	Select as new Offset&lt;br /&gt;
 2: Offsetx,y   0 0          	Select as new Offset&lt;br /&gt;
 3: Offsetx,y   0 0          	Select as new Offset&lt;br /&gt;
 4: Offsetx,y   0 0          	Select as new Offset&lt;br /&gt;
 Set_Plan_Dx_Dy			Set the parameters for the plan-offset. &lt;br /&gt;
 Set_DSP_Clock 			Change the Clock-Frequency of the DSP-FeedBack-Loop&lt;br /&gt;
 &lt;br /&gt;
Image   &lt;br /&gt;
 Undo Filter                 	Undo last image operation&lt;br /&gt;
 Filter&lt;br /&gt;
  LowPass                     	Low Pass Filter the image&lt;br /&gt;
  HighPass                    	High Pass Filter the image&lt;br /&gt;
  Laplace                     	Laplace Filter the image&lt;br /&gt;
  Median				Median Filter&lt;br /&gt;
  Edge(Horz)			Edge Filter in the horizontal direction&lt;br /&gt;
  Invert                      	Invert the image&lt;br /&gt;
  Imagedata * 10			The image data is multiplied by a factor of 10&lt;br /&gt;
  Imagedata / 10			The image data is divided by a factor of 10&lt;br /&gt;
&lt;br /&gt;
 Resize&lt;br /&gt;
  Zoom_Up_Rect             	Zoom up a selected rectangle &lt;br /&gt;
  Resize   / 2                	Resize the image&lt;br /&gt;
  Resize   x 2                	Resize the image&lt;br /&gt;
  Interpolation  / 2          	Interpolate the image&lt;br /&gt;
  Interpolation  x 2          	Interpolate the image&lt;br /&gt;
       &lt;br /&gt;
 Rotate90deg&lt;br /&gt;
&lt;br /&gt;
 FFT&lt;br /&gt;
  FFT2D                       	Fast Fourier Transform&lt;br /&gt;
  FFT2D Invers                	Inverse FFT&lt;br /&gt;
  FFT2d Cutout               	Cutout a part of the FFT&lt;br /&gt;
  FFT Evaluate			Open FFT Evaluate window&lt;br /&gt;
&lt;br /&gt;
 Image Analysis&lt;br /&gt;
  Histogram                   	Show the histogram of the image&lt;br /&gt;
  Areacalculation             	Calculate the size of islands&lt;br /&gt;
  Islandsize                  	Calculate the size of islands&lt;br /&gt;
&lt;br /&gt;
Display&lt;br /&gt;
 Zoom&lt;br /&gt;
  100%&lt;br /&gt;
  200%&lt;br /&gt;
  300%&lt;br /&gt;
  400%&lt;br /&gt;
&lt;br /&gt;
 ListView&lt;br /&gt;
  Report				Show files as icons and info&lt;br /&gt;
  Icon				Show files as icons only&lt;br /&gt;
  Image2				Show Image2 and not the Listviewbox&lt;br /&gt;
  ListViewBox enabled      	Enables the ListView Box	&lt;br /&gt;
  AutoclearList                	Clear the Listviewbox before new a new list is added&lt;br /&gt;
  Largeiconsize=64-256   	Icon size of the images in the listviewbox&lt;br /&gt;
  Load Icon Plan              	Load the icons using image plan subtraction&lt;br /&gt;
  Clear Listview			Clear the ListView&lt;br /&gt;
   	&lt;br /&gt;
 DispCommands &lt;br /&gt;
  DispAuto                    	Display image using linear line background subtraction &lt;br /&gt;
  DispPlanAuto                	Display image using auto plan background subtraction &lt;br /&gt;
  DispPlan                    	Display image using plan subtraction&lt;br /&gt;
  Last Disp Autoscale		Display with automatic scaling&lt;br /&gt;
  Plan Auto Subtract		Like Displanauto + subtract plane from image data&lt;br /&gt;
  Linescan                    	Linescan in the image&lt;br /&gt;
  Plan2dinput                 	Input 3 points to select the background subtraction plane&lt;br /&gt;
  Configuration&lt;br /&gt;
   DACunits                    	Select DAC units&lt;br /&gt;
   nm-Units [A]                	Select Angström units&lt;br /&gt;
  Display Image in Lines		Select to display image in line and not gray scale mode&lt;br /&gt;
  Disp LinePlan Quad		Select to perform lin.+quad. Backgroundsubtraction&lt;br /&gt;
  Disp Plan and Subtract	If selected Disp Plan subtracts the plane from the image data&lt;br /&gt;
  Disp Automode Offset/Slope   	DA Mode subtract offset and slope line by line&lt;br /&gt;
  Disp Automode Offset   	DA Mode subtract offset line by line&lt;br /&gt;
  Disp Automode None 		DA Mode subtract offset of first line&lt;br /&gt;
  Disp Automode Diff		DA Mode differentiate image data line by line&lt;br /&gt;
	&lt;br /&gt;
Forms&lt;br /&gt;
 Parameter&lt;br /&gt;
 Lat.Manip            		Show the Latmanip window&lt;br /&gt;
 Vert.Manip           		Show the Vertmanip. window&lt;br /&gt;
 Time Spectrum			Show the Time Spectrum window&lt;br /&gt;
 AFM				Show the AFM PLL window&lt;br /&gt;
 Ramp-Controller			Start Ramp Controller&lt;br /&gt;
 New Channelform			Open another Channelform&lt;br /&gt;
 Linescan            		Show the linescan window&lt;br /&gt;
 Draw Grid			Show Grid window&lt;br /&gt;
 3dView				Show 3d View window	&lt;br /&gt;
 Memo				Show separate Memo window&lt;br /&gt;
 Overview                		Show the overview window&lt;br /&gt;
 Slider				Show the Slider window&lt;br /&gt;
 User Form			Show the User Form&lt;br /&gt;
 Reset Form Positions		Position all windows at (top,left) = (0,0)&lt;br /&gt;
 Show/Hide Old Param 		Show/Hide the old Parameter window&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Debug   &lt;br /&gt;
 Reset Scanstatus            	Enable all buttons again&lt;br /&gt;
 Remote				Open Remote window&lt;br /&gt;
 Client Server Control		Open Client Server Control&lt;br /&gt;
 FIFO_COM USB2.0                Shows whether communication is by USB2.0 Hardware&lt;br /&gt;
 Build Testimage                Build a new image without scanning&lt;br /&gt;
 STM Simulation			Run the STM Programm in Simulation Mode (with DSP) &lt;br /&gt;
 PLL Off                        Switch PLL off&lt;br /&gt;
 Debug Messages On   		Show Debug messages&lt;br /&gt;
 Block Data Transfer		Transfer Data after Acquitstion has been done&lt;br /&gt;
 ADDA DSP Connect		Manually start/stop communication between DSP and ADDA&lt;br /&gt;
 Form Memory Watch		Shows some status data&lt;br /&gt;
       &lt;br /&gt;
&lt;br /&gt;
Tools&lt;br /&gt;
 Tip-Etching			Open to etch STM tips&lt;br /&gt;
 Initialization			Open Initialization window&lt;br /&gt;
 Data Recorder			Open Datarecorder window&lt;br /&gt;
 Flash Utility			Utility to burn Flash on DSP Board with new DSP software&lt;br /&gt;
	&lt;br /&gt;
Help&lt;br /&gt;
 Show STMAFM-Manual		Show STMAFM Manual (PDF)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Main Buttons ==&lt;br /&gt;
&amp;lt;Start&amp;gt;     or 	&amp;lt;F1&amp;gt;:  	Start the scan&lt;br /&gt;
           &lt;br /&gt;
&amp;lt;Stop&amp;gt; 	    or 	&amp;lt;F2&amp;gt;:  	Stop the scan&lt;br /&gt;
&lt;br /&gt;
&amp;lt;Qsave&amp;gt;   or 	&amp;lt;F3&amp;gt;: 	Automatically saves an image in the actual directory&lt;br /&gt;
&lt;br /&gt;
&amp;lt;Copy&amp;gt;     or 	&amp;lt;F4&amp;gt;: 	Copy Image1 to Image2&lt;br /&gt;
&lt;br /&gt;
&amp;lt;LM&amp;gt;        or 	&amp;lt;F5&amp;gt;:	Perform a lateral manipulation&lt;br /&gt;
&lt;br /&gt;
&amp;lt;VM&amp;gt; 	    or 	&amp;lt;F6&amp;gt;:	Perform a vertical manipulation or spectroscopy&lt;br /&gt;
&lt;br /&gt;
&amp;lt;TF&amp;gt; 	    or 	&amp;lt;F8&amp;gt;:	Perform tip forming&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DA&amp;gt; 	    or 	&amp;lt;F9&amp;gt;: 	Display the image with automatic line by line background subtraction&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DX&amp;gt; 	    or 	&amp;lt;F10&amp;gt;:  Display the image with automatic plane background subtraction&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DP&amp;gt; 	    or 	&amp;lt;F11&amp;gt;: 	Display the image with planar background subtraction with predefined parameters&lt;br /&gt;
&lt;br /&gt;
&amp;lt;LA&amp;gt;        or  &amp;lt;F12&amp;gt;: Display the image with automatic greyscale scaling&lt;br /&gt;
&lt;br /&gt;
&amp;lt;LP&amp;gt; 	or    &amp;lt;Shift F9&amp;gt;:       Low pass filter&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;HP&amp;gt; 	or   &amp;lt;Shift F10&amp;gt;:	High pass filter&lt;br /&gt;
&lt;br /&gt;
&amp;lt;PLN&amp;gt; 	or   &amp;lt;Shift F11&amp;gt;:	Input 3 points for the plane used in plane background subtraction&lt;br /&gt;
&lt;br /&gt;
&amp;lt;LIN&amp;gt; 	or   &amp;lt;Shift F12&amp;gt;:	Display a linear scan between two points on the image&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==  ==&lt;br /&gt;
[[category:stmafm_manual]]&lt;/div&gt;</summary>
		<author><name>Ltspm</name></author>	</entry>

	<entry>
		<id>http://spm-wiki.createc.de/index.php?title=STMAFM_Main</id>
		<title>STMAFM Main</title>
		<link rel="alternate" type="text/html" href="http://spm-wiki.createc.de/index.php?title=STMAFM_Main"/>
				<updated>2016-12-21T08:33:55Z</updated>
		
		<summary type="html">&lt;p&gt;Ltspm: /* Main Form */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Main Form ==&lt;br /&gt;
The STMAFM form contains the main control elements of the software. Below the menu bar several control the data acquisition and analysis of the STM data.&lt;br /&gt;
&lt;br /&gt;
To take a new image press the ''START'' button. To stop press the ''STOP'' button. When a new scan is started a default filename is assigned to the image. It consists of the date and time, when the scan was started. Its extension will be '.dat'. A single letter is put in the front of the name, which is used to indicate the machine name. (Example:' A020124.190937.dat' ). To save the file either press the &amp;lt;QSAVE&amp;gt; button which saves the file in the current directory, indicated in the status line at the bottom of the window, or use the menu command &amp;lt;Save *.dat&amp;gt; under &amp;lt;File&amp;gt;. As long as the files has not been saved a ' * ' is attached to the file. The &amp;lt;Copy&amp;gt; copies the data in the left image to the second image on the right. &lt;br /&gt;
&lt;br /&gt;
The basic operations to display the data are done using the following buttons:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;DA&amp;gt;:  Display the image using different line by line subtraction modes &lt;br /&gt;
 &amp;lt;DX&amp;gt;:  Display the image using automatic plane substraction&lt;br /&gt;
 &amp;lt;DP&amp;gt;:  Display the image using plane substraction&lt;br /&gt;
 &amp;lt;LA&amp;gt;:  Display image in DA mode and perform automatic scaling&lt;br /&gt;
 &amp;lt;LP&amp;gt;:  Perform a low pass filter operation&lt;br /&gt;
 &amp;lt;HP&amp;gt;:  Perform a high pass filter operation&lt;br /&gt;
 &amp;lt;Pln&amp;gt;: Input 3 points (with the mouse) to determine the plane for plane background subtraction&lt;br /&gt;
 &amp;lt;Lin&amp;gt;: Calculate a linescan along a line between 2 points&lt;br /&gt;
 &amp;lt;LM&amp;gt;  Lateral manipulation&lt;br /&gt;
 &amp;lt;VM&amp;gt;  Vertical manipulation of I/V spectroscopy&lt;br /&gt;
 &amp;lt;TF&amp;gt;  Tip forming&lt;br /&gt;
&lt;br /&gt;
Use &amp;lt;Disp LinePlan Quad&amp;gt; under &amp;lt;Display&amp;gt; in the menu subtract to perform an automatic line/plane subtraction using also quadratic terms&lt;br /&gt;
Below the buttons you find the Palette window, which displays the current 8bit palette. Use the left mouse button to switch between different standard palettes. Using the right mouse button will open a popup menu with additional options to create a user defined palette or to load and save externally defined palettes.&lt;br /&gt;
&lt;br /&gt;
The small list box on the right is used for communication between different instances of the STMAFM program. If the instance of the program which is in data acquisition mode saves a file then this filename is send to all other instances of the program running in analysis mode.&lt;br /&gt;
&lt;br /&gt;
Below the buttons the screen is separated in two parts, divided by an horizontaly movable slider. On the left is always the image of the current data file displayed. All the operations like scanning and image processing are done in this part on the window. On the right usually a list of all loaded files is displayed. A small icon image and some info is shown for each file. The two modes to display these data are 'Report&amp;quot; and 'Icon' view. The modes can be selected under menu item 'Display'. When in Report view pressing on the 'Image' bar will switch the way how the info is displayed. The list view can be suppressed by selecting 'Image2' under menu item 'Display' and the second image is displayed instead.&lt;br /&gt;
&lt;br /&gt;
On the bottom of the window a status bar is located. It shows the current date and time, some status info about the scanning status, the mouse position on the image,the size of  the image, the current default directory, the available space of disk storage.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[file:clipstmafm.png|600px]]&lt;br /&gt;
&lt;br /&gt;
== Menu Structure ==&lt;br /&gt;
&lt;br /&gt;
'''File'''		                         &lt;br /&gt;
 Open  *.DAT            Open STMAFM DataFile&lt;br /&gt;
 Save  *.DAT            Save STMAFM DataFile&lt;br /&gt;
 QuickSave              Save STMAFM DataFile in active directory&lt;br /&gt;
			&lt;br /&gt;
 Export File		&lt;br /&gt;
 Save  *.BMP         	Save Image as BMP-File&lt;br /&gt;
 Save *.JPG		Save as JPEG File&lt;br /&gt;
 SaveEMF *.EMF           Save Image in EMF Format&lt;br /&gt;
 SaveAscii *.ASC   	Save Image-Data in ASCII Format&lt;br /&gt;
			&lt;br /&gt;
 Import File		&lt;br /&gt;
 Load *.BMP      	Load BMP File&lt;br /&gt;
 Load *.TIF		Load TIF File&lt;br /&gt;
			&lt;br /&gt;
 Print		&lt;br /&gt;
 Print Image             Print the image&lt;br /&gt;
 Print Listview          Print the Filelist in Listview&lt;br /&gt;
 Printer Setup           Select the printer&lt;br /&gt;
			&lt;br /&gt;
 Special		&lt;br /&gt;
 Compress Files		All Files are saved using Data compression with Zlib&lt;br /&gt;
 Save Listview-Files   	Save List of Files in the Listview window&lt;br /&gt;
 Autosave  *.bak       	Save all recorded images&lt;br /&gt;
 AutoSave All		Save all images&lt;br /&gt;
 DOS-CommandLine   	Open a DOS-Window&lt;br /&gt;
 HPData			Get Data from Agilent Datalogger&lt;br /&gt;
 Get_SRS_Lockin_Val	Get External Lockin Setup Parameters&lt;br /&gt;
 &lt;br /&gt;
 STMAFM-Analysis        Start another copy of the STMAFM-Program&lt;br /&gt;
 Exit                   Exit the STMAFM-Program&lt;br /&gt;
 About                  About &lt;br /&gt;
 ReOpen                 Opens the last file&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Edit    &lt;br /&gt;
 Copy Clipbd                Copy the image to the clipboard&lt;br /&gt;
 Copy Dataimage2            Copy left image to the right&lt;br /&gt;
 Copy Clipbd EMF            Copy the image to the clipboard in EMF Format with Info&lt;br /&gt;
 Copy New Window            Copy the image into new form&lt;br /&gt;
 Copy Overview              Copy the image into the overview form&lt;br /&gt;
 Copy Palette to Clipbd     Copy the palette to the Clipboard       &lt;br /&gt;
&lt;br /&gt;
Scan   &lt;br /&gt;
 Scan Start             		Start the Scan&lt;br /&gt;
 Scan Stop              		Stop the Scan&lt;br /&gt;
 Enable/Start RepeatTimer	Start the Repeat-Timer&lt;br /&gt;
 Preamplifier                 	Select the preamplifier&lt;br /&gt;
 Preamp_Femto_LowNoise  		Select for Femto Preamp in Low Noise Mode&lt;br /&gt;
 Preamp_Femto_HighSpeed 		Select for Femto Preamp in High Speed Mode&lt;br /&gt;
 Preamp_Femto_100G		Select for Femto Preamp with fixed gain 10^11&lt;br /&gt;
 Preamp_UserType			Select for User specific Preamp &lt;br /&gt;
&lt;br /&gt;
 Autofilesave			Save every image&lt;br /&gt;
 Autorepeat			Start a new image automatically&lt;br /&gt;
 Autodispreset         		Clear the image window when starting a new scan&lt;br /&gt;
&lt;br /&gt;
 Show Scanline Marker		Display a red line at the actual scan line position&lt;br /&gt;
 Display current Scan Profile	Display the current line as a line scan in a separate window&lt;br /&gt;
 &lt;br /&gt;
 Scan_Y_Direction		Select the Scandirection (Top-Bottom,Bottom-Top,etc)&lt;br /&gt;
 ScanCoarse			Check to set scanning by Coarse Piezos otherwise the main Piezo is used&lt;br /&gt;
&lt;br /&gt;
DSP       &lt;br /&gt;
 Lateral Manip.      		Lateral Manipulation&lt;br /&gt;
 Vertical Manip.            	Vertical Manipulation&lt;br /&gt;
 Tip Forming                	Tip Forming&lt;br /&gt;
&lt;br /&gt;
 SetXYOffset - Top           	Set the xy-offset for the new top site&lt;br /&gt;
 SetXYOffset - Center        	Set the xy-offset for the new center site&lt;br /&gt;
 SetXYOffset - Zoom        	Set the xy-offset for the new center site&lt;br /&gt;
 ResetXYOffset  			Set the xy-offset to (0,0)&lt;br /&gt;
 Copy Offset from Param    	Copy the xy-offset values from the scanparameterlist&lt;br /&gt;
 1: Offsetx,y:  0 0          	Select as new Offset&lt;br /&gt;
 2: Offsetx,y   0 0          	Select as new Offset&lt;br /&gt;
 3: Offsetx,y   0 0          	Select as new Offset&lt;br /&gt;
 4: Offsetx,y   0 0          	Select as new Offset&lt;br /&gt;
 Set_Plan_Dx_Dy			Set the parameters for the plan-offset. &lt;br /&gt;
 Set_DSP_Clock 			Change the Clock-Frequency of the DSP-FeedBack-Loop&lt;br /&gt;
 &lt;br /&gt;
Image   &lt;br /&gt;
 Undo Filter                 	Undo last image operation&lt;br /&gt;
 Filter&lt;br /&gt;
  LowPass                     	Low Pass Filter the image&lt;br /&gt;
  HighPass                    	High Pass Filter the image&lt;br /&gt;
  Laplace                     	Laplace Filter the image&lt;br /&gt;
  Median				Median Filter&lt;br /&gt;
  Edge(Horz)			Edge Filter in the horizontal direction&lt;br /&gt;
  Invert                      	Invert the image&lt;br /&gt;
  Imagedata * 10			The image data is multiplied by a factor of 10&lt;br /&gt;
  Imagedata / 10			The image data is divided by a factor of 10&lt;br /&gt;
&lt;br /&gt;
 Resize&lt;br /&gt;
  Zoom_Up_Rect             	Zoom up a selected rectangle &lt;br /&gt;
  Resize   / 2                	Resize the image&lt;br /&gt;
  Resize   x 2                	Resize the image&lt;br /&gt;
  Interpolation  / 2          	Interpolate the image&lt;br /&gt;
  Interpolation  x 2          	Interpolate the image&lt;br /&gt;
       &lt;br /&gt;
 Rotate90deg&lt;br /&gt;
&lt;br /&gt;
 FFT&lt;br /&gt;
  FFT2D                       	Fast Fourier Transform&lt;br /&gt;
  FFT2D Invers                	Inverse FFT&lt;br /&gt;
  FFT2d Cutout               	Cutout a part of the FFT&lt;br /&gt;
  FFT Evaluate			Open FFT Evaluate window&lt;br /&gt;
&lt;br /&gt;
 Image Analysis&lt;br /&gt;
  Histogram                   	Show the histogram of the image&lt;br /&gt;
  Areacalculation             	Calculate the size of islands&lt;br /&gt;
  Islandsize                  	Calculate the size of islands&lt;br /&gt;
&lt;br /&gt;
Display&lt;br /&gt;
 Zoom&lt;br /&gt;
  100%&lt;br /&gt;
  200%&lt;br /&gt;
  300%&lt;br /&gt;
  400%&lt;br /&gt;
&lt;br /&gt;
 ListView&lt;br /&gt;
  Report				Show files as icons and info&lt;br /&gt;
  Icon				Show files as icons only&lt;br /&gt;
  Image2				Show Image2 and not the Listviewbox&lt;br /&gt;
  ListViewBox enabled      	Enables the ListView Box	&lt;br /&gt;
  AutoclearList                	Clear the Listviewbox before new a new list is added&lt;br /&gt;
  Largeiconsize=64-256   	Icon size of the images in the listviewbox&lt;br /&gt;
  Load Icon Plan              	Load the icons using image plan subtraction&lt;br /&gt;
  Clear Listview			Clear the ListView&lt;br /&gt;
   	&lt;br /&gt;
 DispCommands &lt;br /&gt;
  DispAuto                    	Display image using linear line background subtraction &lt;br /&gt;
  DispPlanAuto                	Display image using auto plan background subtraction &lt;br /&gt;
  DispPlan                    	Display image using plan subtraction&lt;br /&gt;
  Last Disp Autoscale		Display with automatic scaling&lt;br /&gt;
  Plan Auto Subtract		Like Displanauto + subtract plane from image data&lt;br /&gt;
  Linescan                    	Linescan in the image&lt;br /&gt;
  Plan2dinput                 	Input 3 points to select the background subtraction plane&lt;br /&gt;
  Configuration&lt;br /&gt;
   DACunits                    	Select DAC units&lt;br /&gt;
   nm-Units [A]                	Select Angström units&lt;br /&gt;
  Display Image in Lines		Select to display image in line and not gray scale mode&lt;br /&gt;
  Disp LinePlan Quad		Select to perform lin.+quad. Backgroundsubtraction&lt;br /&gt;
  Disp Plan and Subtract	If selected Disp Plan subtracts the plane from the image data&lt;br /&gt;
  Disp Automode Offset/Slope   	DA Mode subtract offset and slope line by line&lt;br /&gt;
  Disp Automode Offset   	DA Mode subtract offset line by line&lt;br /&gt;
  Disp Automode None 		DA Mode subtract offset of first line&lt;br /&gt;
  Disp Automode Diff		DA Mode differentiate image data line by line&lt;br /&gt;
	&lt;br /&gt;
Forms&lt;br /&gt;
 Parameter&lt;br /&gt;
 Lat.Manip            		Show the Latmanip window&lt;br /&gt;
 Vert.Manip           		Show the Vertmanip. window&lt;br /&gt;
 Time Spectrum			Show the Time Spectrum window&lt;br /&gt;
 AFM				Show the AFM PLL window&lt;br /&gt;
 Ramp-Controller			Start Ramp Controller&lt;br /&gt;
 New Channelform			Open another Channelform&lt;br /&gt;
 Linescan            		Show the linescan window&lt;br /&gt;
 Draw Grid			Show Grid window&lt;br /&gt;
 3dView				Show 3d View window	&lt;br /&gt;
 Memo				Show separate Memo window&lt;br /&gt;
 Overview                		Show the overview window&lt;br /&gt;
 Slider				Show the Slider window&lt;br /&gt;
 User Form			Show the User Form&lt;br /&gt;
 Reset Form Positions		Position all windows at (top,left) = (0,0)&lt;br /&gt;
 Show/Hide Old Param 		Show/Hide the old Parameter window&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Debug   &lt;br /&gt;
 Reset Scanstatus            	Enable all buttons again&lt;br /&gt;
 Remote				Open Remote window&lt;br /&gt;
 Client Server Control		Open Client Server Control&lt;br /&gt;
 FIFO_COM USB2.0                Shows whether communication is by USB2.0 Hardware&lt;br /&gt;
 Build Testimage                Build a new image without scanning&lt;br /&gt;
 STM Simulation			Run the STM Programm in Simulation Mode (with DSP) &lt;br /&gt;
 PLL Off                        Switch PLL off&lt;br /&gt;
 Debug Messages On   		Show Debug messages&lt;br /&gt;
 Block Data Transfer		Transfer Data after Acquitstion has been done&lt;br /&gt;
 ADDA DSP Connect		Manually start/stop communication between DSP and ADDA&lt;br /&gt;
 Form Memory Watch		Shows some status data&lt;br /&gt;
       &lt;br /&gt;
&lt;br /&gt;
Tools&lt;br /&gt;
 Tip-Etching			Open to etch STM tips&lt;br /&gt;
 Initialization			Open Initialization window&lt;br /&gt;
 Data Recorder			Open Datarecorder window&lt;br /&gt;
 Flash Utility			Utility to burn Flash on DSP Board with new DSP software&lt;br /&gt;
	&lt;br /&gt;
Help&lt;br /&gt;
 Show STMAFM-Manual		Show STMAFM Manual (PDF)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Main Buttons ==&lt;br /&gt;
&amp;lt;Start&amp;gt;     or 	&amp;lt;F1&amp;gt;:  	Start the scan&lt;br /&gt;
           &lt;br /&gt;
&amp;lt;Stop&amp;gt; 	    or 	&amp;lt;F2&amp;gt;:  	Stop the scan&lt;br /&gt;
&lt;br /&gt;
&amp;lt;Qsave&amp;gt;   or 	&amp;lt;F3&amp;gt;: 	Automatically saves an image in the actual directory&lt;br /&gt;
&lt;br /&gt;
&amp;lt;Copy&amp;gt;     or 	&amp;lt;F4&amp;gt;: 	Copy Image1 to Image2&lt;br /&gt;
&lt;br /&gt;
&amp;lt;LM&amp;gt;        or 	&amp;lt;F5&amp;gt;:	Perform a lateral manipulation&lt;br /&gt;
&lt;br /&gt;
&amp;lt;VM&amp;gt; 	    or 	&amp;lt;F6&amp;gt;:	Perform a vertical manipulation or spectroscopy&lt;br /&gt;
&lt;br /&gt;
&amp;lt;TF&amp;gt; 	    or 	&amp;lt;F8&amp;gt;:	Perform tip forming&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DA&amp;gt; 	    or 	&amp;lt;F9&amp;gt;: 	Display the image with automatic line by line background subtraction&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DX&amp;gt; 	    or 	&amp;lt;F10&amp;gt;:  Display the image with automatic plane background subtraction&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DP&amp;gt; 	    or 	&amp;lt;F11&amp;gt;: 	Display the image with planar background subtraction with predefined parameters&lt;br /&gt;
&lt;br /&gt;
&amp;lt;LA&amp;gt;        or  &amp;lt;F12&amp;gt;: Display the image with automatic greyscale scaling&lt;br /&gt;
&lt;br /&gt;
&amp;lt;LP&amp;gt; 	or    &amp;lt;Shift F9&amp;gt;:       Low pass filter&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;HP&amp;gt; 	or   &amp;lt;Shift F10&amp;gt;:	High pass filter&lt;br /&gt;
&lt;br /&gt;
&amp;lt;PLN&amp;gt; 	or   &amp;lt;Shift F11&amp;gt;:	Input 3 points for the plane used in plane background subtraction&lt;br /&gt;
&lt;br /&gt;
&amp;lt;LIN&amp;gt; 	or   &amp;lt;Shift F12&amp;gt;:	Display a linear scan between two points on the image&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==  ==&lt;br /&gt;
[[category:stmafm_manual]]&lt;/div&gt;</summary>
		<author><name>Ltspm</name></author>	</entry>

	<entry>
		<id>http://spm-wiki.createc.de/index.php?title=STMAFM_Main</id>
		<title>STMAFM Main</title>
		<link rel="alternate" type="text/html" href="http://spm-wiki.createc.de/index.php?title=STMAFM_Main"/>
				<updated>2016-12-21T08:26:00Z</updated>
		
		<summary type="html">&lt;p&gt;Ltspm: /* Main Form */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Main Form ==&lt;br /&gt;
The STMAFM form contains the main control elements of the software. Below the menu bar several control the data acquisition and analysis of the STM data.&lt;br /&gt;
&lt;br /&gt;
To take a new image press the &amp;lt;START&amp;gt; button. To stop press the STOP button. When a new scan is started a default filename is assigned to the image. It consists of the date and time, when the scan was started. Its extension will be '.dat'. A single letter is put in the front of the name, which is used to indicate the machine name. (Example:' A020124.190937.dat' ). To save the file either press the &amp;lt;QSAVE&amp;gt; button which saves the file in the current directory, indicated in the status line at the bottom of the window, or use the menu command &amp;lt;Save *.dat&amp;gt; under &amp;lt;File&amp;gt;. As long as the files has not been saved a ' * ' is attached to the file. The &amp;lt;Copy&amp;gt; copies the data in the left image to the second image on the right. &lt;br /&gt;
&lt;br /&gt;
The basic operations to display the data are done using the following buttons:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;DA&amp;gt;:  Display the image using different line by line subtraction modes &lt;br /&gt;
 &amp;lt;DX&amp;gt;:  Display the image using automatic plane substraction&lt;br /&gt;
 &amp;lt;DP&amp;gt;:  Display the image using plane substraction&lt;br /&gt;
 &amp;lt;LA&amp;gt;:  Display image in DA mode and perform automatic scaling&lt;br /&gt;
 &amp;lt;LP&amp;gt;:  Perform a low pass filter operation&lt;br /&gt;
 &amp;lt;HP&amp;gt;:  Perform a high pass filter operation&lt;br /&gt;
 &amp;lt;Pln&amp;gt;: Input 3 points (with the mouse) to determine the plane for plane background subtraction&lt;br /&gt;
 &amp;lt;Lin&amp;gt;: Calculate a linescan along a line between 2 points&lt;br /&gt;
 &amp;lt;LM&amp;gt;  Lateral manipulation&lt;br /&gt;
 &amp;lt;VM&amp;gt;  Vertical manipulation of I/V spectroscopy&lt;br /&gt;
 &amp;lt;TF&amp;gt;  Tip forming&lt;br /&gt;
&lt;br /&gt;
Use &amp;lt;Disp LinePlan Quad&amp;gt; under &amp;lt;Display&amp;gt; in the menu subtract to perform an automatic line/plane subtraction using also quadratic terms&lt;br /&gt;
Below the buttons you find the Palette window, which displays the current 8bit palette. Use the left mouse button to switch between different standard palettes. Using the right mouse button will open a popup menu with additional options to create a user defined palette or to load and save externally defined palettes.&lt;br /&gt;
&lt;br /&gt;
The small list box on the right is used for communication between different instances of the STMAFM program. If the instance of the program which is in data acquisition mode saves a file then this filename is send to all other instances of the program running in analysis mode.&lt;br /&gt;
&lt;br /&gt;
Below the buttons the screen is separated in two parts, divided by an horizontaly movable slider. On the left is always the image of the current data file displayed. All the operations like scanning and image processing are done in this part on the window. On the right usually a list of all loaded files is displayed. A small icon image and some info is shown for each file. The two modes to display these data are 'Report&amp;quot; and 'Icon' view. The modes can be selected under menu item 'Display'. When in Report view pressing on the 'Image' bar will switch the way how the info is displayed. The list view can be suppressed by selecting 'Image2' under menu item 'Display' and the second image is displayed instead.&lt;br /&gt;
&lt;br /&gt;
On the bottom of the window a status bar is located. It shows the current date and time, some status info about the scanning status, the mouse position on the image,the size of  the image, the current default directory, the available space of disk storage.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[file:clipstmafm.png|600px]]&lt;br /&gt;
&lt;br /&gt;
== Menu Structure ==&lt;br /&gt;
&lt;br /&gt;
'''File'''		                         &lt;br /&gt;
 Open  *.DAT            Open STMAFM DataFile&lt;br /&gt;
 Save  *.DAT            Save STMAFM DataFile&lt;br /&gt;
 QuickSave              Save STMAFM DataFile in active directory&lt;br /&gt;
			&lt;br /&gt;
 Export File		&lt;br /&gt;
 Save  *.BMP         	Save Image as BMP-File&lt;br /&gt;
 Save *.JPG		Save as JPEG File&lt;br /&gt;
 SaveEMF *.EMF           Save Image in EMF Format&lt;br /&gt;
 SaveAscii *.ASC   	Save Image-Data in ASCII Format&lt;br /&gt;
			&lt;br /&gt;
 Import File		&lt;br /&gt;
 Load *.BMP      	Load BMP File&lt;br /&gt;
 Load *.TIF		Load TIF File&lt;br /&gt;
			&lt;br /&gt;
 Print		&lt;br /&gt;
 Print Image             Print the image&lt;br /&gt;
 Print Listview          Print the Filelist in Listview&lt;br /&gt;
 Printer Setup           Select the printer&lt;br /&gt;
			&lt;br /&gt;
 Special		&lt;br /&gt;
 Compress Files		All Files are saved using Data compression with Zlib&lt;br /&gt;
 Save Listview-Files   	Save List of Files in the Listview window&lt;br /&gt;
 Autosave  *.bak       	Save all recorded images&lt;br /&gt;
 AutoSave All		Save all images&lt;br /&gt;
 DOS-CommandLine   	Open a DOS-Window&lt;br /&gt;
 HPData			Get Data from Agilent Datalogger&lt;br /&gt;
 Get_SRS_Lockin_Val	Get External Lockin Setup Parameters&lt;br /&gt;
 &lt;br /&gt;
 STMAFM-Analysis        Start another copy of the STMAFM-Program&lt;br /&gt;
 Exit                   Exit the STMAFM-Program&lt;br /&gt;
 About                  About &lt;br /&gt;
 ReOpen                 Opens the last file&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Edit    &lt;br /&gt;
 Copy Clipbd                Copy the image to the clipboard&lt;br /&gt;
 Copy Dataimage2            Copy left image to the right&lt;br /&gt;
 Copy Clipbd EMF            Copy the image to the clipboard in EMF Format with Info&lt;br /&gt;
 Copy New Window            Copy the image into new form&lt;br /&gt;
 Copy Overview              Copy the image into the overview form&lt;br /&gt;
 Copy Palette to Clipbd     Copy the palette to the Clipboard       &lt;br /&gt;
&lt;br /&gt;
Scan   &lt;br /&gt;
 Scan Start             		Start the Scan&lt;br /&gt;
 Scan Stop              		Stop the Scan&lt;br /&gt;
 Enable/Start RepeatTimer	Start the Repeat-Timer&lt;br /&gt;
 Preamplifier                 	Select the preamplifier&lt;br /&gt;
 Preamp_Femto_LowNoise  		Select for Femto Preamp in Low Noise Mode&lt;br /&gt;
 Preamp_Femto_HighSpeed 		Select for Femto Preamp in High Speed Mode&lt;br /&gt;
 Preamp_Femto_100G		Select for Femto Preamp with fixed gain 10^11&lt;br /&gt;
 Preamp_UserType			Select for User specific Preamp &lt;br /&gt;
&lt;br /&gt;
 Autofilesave			Save every image&lt;br /&gt;
 Autorepeat			Start a new image automatically&lt;br /&gt;
 Autodispreset         		Clear the image window when starting a new scan&lt;br /&gt;
&lt;br /&gt;
 Show Scanline Marker		Display a red line at the actual scan line position&lt;br /&gt;
 Display current Scan Profile	Display the current line as a line scan in a separate window&lt;br /&gt;
 &lt;br /&gt;
 Scan_Y_Direction		Select the Scandirection (Top-Bottom,Bottom-Top,etc)&lt;br /&gt;
 ScanCoarse			Check to set scanning by Coarse Piezos otherwise the main Piezo is used&lt;br /&gt;
&lt;br /&gt;
DSP       &lt;br /&gt;
 Lateral Manip.      		Lateral Manipulation&lt;br /&gt;
 Vertical Manip.            	Vertical Manipulation&lt;br /&gt;
 Tip Forming                	Tip Forming&lt;br /&gt;
&lt;br /&gt;
 SetXYOffset - Top           	Set the xy-offset for the new top site&lt;br /&gt;
 SetXYOffset - Center        	Set the xy-offset for the new center site&lt;br /&gt;
 SetXYOffset - Zoom        	Set the xy-offset for the new center site&lt;br /&gt;
 ResetXYOffset  			Set the xy-offset to (0,0)&lt;br /&gt;
 Copy Offset from Param    	Copy the xy-offset values from the scanparameterlist&lt;br /&gt;
 1: Offsetx,y:  0 0          	Select as new Offset&lt;br /&gt;
 2: Offsetx,y   0 0          	Select as new Offset&lt;br /&gt;
 3: Offsetx,y   0 0          	Select as new Offset&lt;br /&gt;
 4: Offsetx,y   0 0          	Select as new Offset&lt;br /&gt;
 Set_Plan_Dx_Dy			Set the parameters for the plan-offset. &lt;br /&gt;
 Set_DSP_Clock 			Change the Clock-Frequency of the DSP-FeedBack-Loop&lt;br /&gt;
 &lt;br /&gt;
Image   &lt;br /&gt;
 Undo Filter                 	Undo last image operation&lt;br /&gt;
 Filter&lt;br /&gt;
  LowPass                     	Low Pass Filter the image&lt;br /&gt;
  HighPass                    	High Pass Filter the image&lt;br /&gt;
  Laplace                     	Laplace Filter the image&lt;br /&gt;
  Median				Median Filter&lt;br /&gt;
  Edge(Horz)			Edge Filter in the horizontal direction&lt;br /&gt;
  Invert                      	Invert the image&lt;br /&gt;
  Imagedata * 10			The image data is multiplied by a factor of 10&lt;br /&gt;
  Imagedata / 10			The image data is divided by a factor of 10&lt;br /&gt;
&lt;br /&gt;
 Resize&lt;br /&gt;
  Zoom_Up_Rect             	Zoom up a selected rectangle &lt;br /&gt;
  Resize   / 2                	Resize the image&lt;br /&gt;
  Resize   x 2                	Resize the image&lt;br /&gt;
  Interpolation  / 2          	Interpolate the image&lt;br /&gt;
  Interpolation  x 2          	Interpolate the image&lt;br /&gt;
       &lt;br /&gt;
 Rotate90deg&lt;br /&gt;
&lt;br /&gt;
 FFT&lt;br /&gt;
  FFT2D                       	Fast Fourier Transform&lt;br /&gt;
  FFT2D Invers                	Inverse FFT&lt;br /&gt;
  FFT2d Cutout               	Cutout a part of the FFT&lt;br /&gt;
  FFT Evaluate			Open FFT Evaluate window&lt;br /&gt;
&lt;br /&gt;
 Image Analysis&lt;br /&gt;
  Histogram                   	Show the histogram of the image&lt;br /&gt;
  Areacalculation             	Calculate the size of islands&lt;br /&gt;
  Islandsize                  	Calculate the size of islands&lt;br /&gt;
&lt;br /&gt;
Display&lt;br /&gt;
 Zoom&lt;br /&gt;
  100%&lt;br /&gt;
  200%&lt;br /&gt;
  300%&lt;br /&gt;
  400%&lt;br /&gt;
&lt;br /&gt;
 ListView&lt;br /&gt;
  Report				Show files as icons and info&lt;br /&gt;
  Icon				Show files as icons only&lt;br /&gt;
  Image2				Show Image2 and not the Listviewbox&lt;br /&gt;
  ListViewBox enabled      	Enables the ListView Box	&lt;br /&gt;
  AutoclearList                	Clear the Listviewbox before new a new list is added&lt;br /&gt;
  Largeiconsize=64-256   	Icon size of the images in the listviewbox&lt;br /&gt;
  Load Icon Plan              	Load the icons using image plan subtraction&lt;br /&gt;
  Clear Listview			Clear the ListView&lt;br /&gt;
   	&lt;br /&gt;
 DispCommands &lt;br /&gt;
  DispAuto                    	Display image using linear line background subtraction &lt;br /&gt;
  DispPlanAuto                	Display image using auto plan background subtraction &lt;br /&gt;
  DispPlan                    	Display image using plan subtraction&lt;br /&gt;
  Last Disp Autoscale		Display with automatic scaling&lt;br /&gt;
  Plan Auto Subtract		Like Displanauto + subtract plane from image data&lt;br /&gt;
  Linescan                    	Linescan in the image&lt;br /&gt;
  Plan2dinput                 	Input 3 points to select the background subtraction plane&lt;br /&gt;
  Configuration&lt;br /&gt;
   DACunits                    	Select DAC units&lt;br /&gt;
   nm-Units [A]                	Select Angström units&lt;br /&gt;
  Display Image in Lines		Select to display image in line and not gray scale mode&lt;br /&gt;
  Disp LinePlan Quad		Select to perform lin.+quad. Backgroundsubtraction&lt;br /&gt;
  Disp Plan and Subtract	If selected Disp Plan subtracts the plane from the image data&lt;br /&gt;
  Disp Automode Offset/Slope   	DA Mode subtract offset and slope line by line&lt;br /&gt;
  Disp Automode Offset   	DA Mode subtract offset line by line&lt;br /&gt;
  Disp Automode None 		DA Mode subtract offset of first line&lt;br /&gt;
  Disp Automode Diff		DA Mode differentiate image data line by line&lt;br /&gt;
	&lt;br /&gt;
Forms&lt;br /&gt;
 Parameter&lt;br /&gt;
 Lat.Manip            		Show the Latmanip window&lt;br /&gt;
 Vert.Manip           		Show the Vertmanip. window&lt;br /&gt;
 Time Spectrum			Show the Time Spectrum window&lt;br /&gt;
 AFM				Show the AFM PLL window&lt;br /&gt;
 Ramp-Controller			Start Ramp Controller&lt;br /&gt;
 New Channelform			Open another Channelform&lt;br /&gt;
 Linescan            		Show the linescan window&lt;br /&gt;
 Draw Grid			Show Grid window&lt;br /&gt;
 3dView				Show 3d View window	&lt;br /&gt;
 Memo				Show separate Memo window&lt;br /&gt;
 Overview                		Show the overview window&lt;br /&gt;
 Slider				Show the Slider window&lt;br /&gt;
 User Form			Show the User Form&lt;br /&gt;
 Reset Form Positions		Position all windows at (top,left) = (0,0)&lt;br /&gt;
 Show/Hide Old Param 		Show/Hide the old Parameter window&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Debug   &lt;br /&gt;
 Reset Scanstatus            	Enable all buttons again&lt;br /&gt;
 Remote				Open Remote window&lt;br /&gt;
 Client Server Control		Open Client Server Control&lt;br /&gt;
 FIFO_COM USB2.0                Shows whether communication is by USB2.0 Hardware&lt;br /&gt;
 Build Testimage                Build a new image without scanning&lt;br /&gt;
 STM Simulation			Run the STM Programm in Simulation Mode (with DSP) &lt;br /&gt;
 PLL Off                        Switch PLL off&lt;br /&gt;
 Debug Messages On   		Show Debug messages&lt;br /&gt;
 Block Data Transfer		Transfer Data after Acquitstion has been done&lt;br /&gt;
 ADDA DSP Connect		Manually start/stop communication between DSP and ADDA&lt;br /&gt;
 Form Memory Watch		Shows some status data&lt;br /&gt;
       &lt;br /&gt;
&lt;br /&gt;
Tools&lt;br /&gt;
 Tip-Etching			Open to etch STM tips&lt;br /&gt;
 Initialization			Open Initialization window&lt;br /&gt;
 Data Recorder			Open Datarecorder window&lt;br /&gt;
 Flash Utility			Utility to burn Flash on DSP Board with new DSP software&lt;br /&gt;
	&lt;br /&gt;
Help&lt;br /&gt;
 Show STMAFM-Manual		Show STMAFM Manual (PDF)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Main Buttons ==&lt;br /&gt;
&amp;lt;Start&amp;gt;     or 	&amp;lt;F1&amp;gt;:  	Start the scan&lt;br /&gt;
           &lt;br /&gt;
&amp;lt;Stop&amp;gt; 	    or 	&amp;lt;F2&amp;gt;:  	Stop the scan&lt;br /&gt;
&lt;br /&gt;
&amp;lt;Qsave&amp;gt;   or 	&amp;lt;F3&amp;gt;: 	Automatically saves an image in the actual directory&lt;br /&gt;
&lt;br /&gt;
&amp;lt;Copy&amp;gt;     or 	&amp;lt;F4&amp;gt;: 	Copy Image1 to Image2&lt;br /&gt;
&lt;br /&gt;
&amp;lt;LM&amp;gt;        or 	&amp;lt;F5&amp;gt;:	Perform a lateral manipulation&lt;br /&gt;
&lt;br /&gt;
&amp;lt;VM&amp;gt; 	    or 	&amp;lt;F6&amp;gt;:	Perform a vertical manipulation or spectroscopy&lt;br /&gt;
&lt;br /&gt;
&amp;lt;TF&amp;gt; 	    or 	&amp;lt;F8&amp;gt;:	Perform tip forming&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DA&amp;gt; 	    or 	&amp;lt;F9&amp;gt;: 	Display the image with automatic line by line background subtraction&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DX&amp;gt; 	    or 	&amp;lt;F10&amp;gt;:  Display the image with automatic plane background subtraction&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DP&amp;gt; 	    or 	&amp;lt;F11&amp;gt;: 	Display the image with planar background subtraction with predefined parameters&lt;br /&gt;
&lt;br /&gt;
&amp;lt;LA&amp;gt;        or  &amp;lt;F12&amp;gt;: Display the image with automatic greyscale scaling&lt;br /&gt;
&lt;br /&gt;
&amp;lt;LP&amp;gt; 	or    &amp;lt;Shift F9&amp;gt;:       Low pass filter&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;HP&amp;gt; 	or   &amp;lt;Shift F10&amp;gt;:	High pass filter&lt;br /&gt;
&lt;br /&gt;
&amp;lt;PLN&amp;gt; 	or   &amp;lt;Shift F11&amp;gt;:	Input 3 points for the plane used in plane background subtraction&lt;br /&gt;
&lt;br /&gt;
&amp;lt;LIN&amp;gt; 	or   &amp;lt;Shift F12&amp;gt;:	Display a linear scan between two points on the image&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==  ==&lt;br /&gt;
[[category:stmafm_manual]]&lt;/div&gt;</summary>
		<author><name>Ltspm</name></author>	</entry>

	<entry>
		<id>http://spm-wiki.createc.de/index.php?title=STMAFM_Remote_Operation</id>
		<title>STMAFM Remote Operation</title>
		<link rel="alternate" type="text/html" href="http://spm-wiki.createc.de/index.php?title=STMAFM_Remote_Operation"/>
				<updated>2015-10-06T13:17:00Z</updated>
		
		<summary type="html">&lt;p&gt;Ltspm: /* scandata */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== OLE/COM Server ==&lt;br /&gt;
&lt;br /&gt;
To register the OLE/COM sever in the stmafm program goto &amp;quot;Debug&amp;quot; and &amp;quot;Register COM Server&amp;quot;. If you are going to install a newer version of the program, please click &amp;quot;Unregister COM Server&amp;quot; before installing the new version. Both has to be done with administrative rights as it requires access to the Windows registry.&lt;br /&gt;
&lt;br /&gt;
You may also run  &amp;quot;pstmafm.exe / regserver&amp;quot; form the command prompt.&lt;br /&gt;
(Alternatively run &amp;quot;pstmafm.exe /regserverperuser&amp;quot; in case you have problems running /regserver in Windows 7)&lt;br /&gt;
Again administrator rights are required.&lt;br /&gt;
&lt;br /&gt;
There are many different software tools available to perform data analysis as well as data aquisition or remote operation of the STMAFM program via OLE/COM: &lt;br /&gt;
&lt;br /&gt;
1. Python (Freeware, please visit http://winpython.sourceforge.net/ for download) we're using WinPython 2.7.x 32bit, 64bit&lt;br /&gt;
&lt;br /&gt;
2. Commercial Software: MatLab / LabView&lt;br /&gt;
&lt;br /&gt;
3. For more specific purposes with a more elaborate user interface Createc can supply dedicated plugin programs. (Contact ltspm@createc.de to solve your specific needs)&lt;br /&gt;
&lt;br /&gt;
For simple scripting purposes, i.e. controlling the program without data analysis a scripter program is can still be used.(e.g. MAXBOX) But for people starting from scratch we recommend using the OLE/COM interface as we will drop the support via the TCPIP interface in future. &lt;br /&gt;
&lt;br /&gt;
Example software will be provided through the Createc WebSite.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Python Connection ==&lt;br /&gt;
&lt;br /&gt;
We recommend to install WinPython 2.7.x and using the IPython Notebook therein. These command will initialize the connection to the STMAFM program. Afterwards you may import / export files using filters from the program and control the complete software&lt;br /&gt;
&lt;br /&gt;
 import win32com.client&lt;br /&gt;
 stm=win32com.client.Dispatch(&amp;quot;pstmafm.stmafmrem&amp;quot;)&lt;br /&gt;
 stm.stmbeep()&lt;br /&gt;
&lt;br /&gt;
== Matlab Connection ==&lt;br /&gt;
&lt;br /&gt;
You can access the pstmafm.stmafm OLE/COM server directly from Matlab (or Freemat using a corresponding dll).&lt;br /&gt;
We recommend controlling the STMAFM program through this interface.&lt;br /&gt;
&lt;br /&gt;
 stm=actxserver('pstmafm.stmafmrem'); %Open connection to STMAFM program, see also Matlab manual.&lt;br /&gt;
 stm.stmbeep; % &lt;br /&gt;
 stm.release; % release stm program&lt;br /&gt;
&lt;br /&gt;
The STMAFM program will be started and closed automatically from Matlab. If the STMAFM program is already running just the connection will be established.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Demo Startstm.m with event capability&lt;br /&gt;
&lt;br /&gt;
 global stm&lt;br /&gt;
 global stm1&lt;br /&gt;
 global linescandata&lt;br /&gt;
 stm=actxserver('pstmafm.stmafmrem');&lt;br /&gt;
 stm1=actxserver('pstmafm.stmafmevent');&lt;br /&gt;
 stm1.registerevent('serverevents');&lt;br /&gt;
 %registerevent: register a file serverevents.m to handle events.&lt;br /&gt;
&lt;br /&gt;
Example: serverevents.m &lt;br /&gt;
&lt;br /&gt;
 function serverevents(varargin)&lt;br /&gt;
 global stmoleeventnr&lt;br /&gt;
 global linescandata&lt;br /&gt;
 global stm&lt;br /&gt;
 stmoleeventnr = cell2mat(varargin(3));&lt;br /&gt;
 linescandata = stm.linescandata; &lt;br /&gt;
 if (stmoleeventnr == 1)&lt;br /&gt;
   plot(linescandata(:,1),linescandata(:,2));&lt;br /&gt;
 end&lt;br /&gt;
&lt;br /&gt;
== Plugins ==&lt;br /&gt;
&lt;br /&gt;
Specifically developed Plugins will be available to supply specific user needs. In particular where a more elaborate graphical user interface is&lt;br /&gt;
necessary compared to a simple text based scripting control.&lt;br /&gt;
&lt;br /&gt;
== Commands ==&lt;br /&gt;
&lt;br /&gt;
=== stmbeep ===&lt;br /&gt;
&lt;br /&gt;
Parameter : None&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  STMAFM program creates a short beep sound.  Used for testing purposes.&lt;br /&gt;
&lt;br /&gt;
=== setparam ===&lt;br /&gt;
&lt;br /&gt;
Parameter : (Strings)&lt;br /&gt;
1. Name of parameter&lt;br /&gt;
2. New Value&lt;br /&gt;
&lt;br /&gt;
Return:   &lt;br /&gt;
&lt;br /&gt;
Function:  Sets a parameter to a new value. The name is the name appearing in the old parameter menue&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
stm.setparam('Rotation','90.00');&lt;br /&gt;
&lt;br /&gt;
=== getparam ===&lt;br /&gt;
&lt;br /&gt;
Parameter : &lt;br /&gt;
1. Name of parameter&lt;br /&gt;
&lt;br /&gt;
Return:   &lt;br /&gt;
1. Value of Parameter&lt;br /&gt;
&lt;br /&gt;
Function:  Gets the actual parameter value. The name is the name appearing the old parameter menue&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
a=stm.getparam('Rotation');&lt;br /&gt;
&lt;br /&gt;
=== scanstart ===&lt;br /&gt;
&lt;br /&gt;
Parameter : None&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Starts a new STM scan.  Similar to pressing the button Scanstart&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== scanwaitfinished ===&lt;br /&gt;
&lt;br /&gt;
Parameter : None&lt;br /&gt;
&lt;br /&gt;
Return:  None&lt;br /&gt;
&lt;br /&gt;
Function:  Waits until the active scan is stopped.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== scanstop ===&lt;br /&gt;
&lt;br /&gt;
Parameter : None&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Stops a running STM scan.  Similar to pressing the button Scanstop&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== scanstatus ===&lt;br /&gt;
&lt;br /&gt;
Parameter : None&lt;br /&gt;
&lt;br /&gt;
Return:    Status Number ( = ord(scanstat) see below)&lt;br /&gt;
&lt;br /&gt;
Function:  Gets the present scanstatus. &lt;br /&gt;
&lt;br /&gt;
scanstat = (scanstatreset, stop, running, start, resetting, pause, scanstatvertman, scanstatlatman, scanstattimespec, scanxyoffset,scanstatapproach);&lt;br /&gt;
&lt;br /&gt;
0, SCANSTATRESET:   		Programm is in idle state&lt;br /&gt;
1, STOP:	            	Running Scan is stopped but is not fully reset yet.&lt;br /&gt;
2, RUNNING:                 	Scan is running&lt;br /&gt;
3, START                      	New Scan is started but not yet running&lt;br /&gt;
4, PAUSE			Running Scan is paused&lt;br /&gt;
5, SCANSTATVERTMAN	VertSpectrum is running&lt;br /&gt;
6, SCANSTATLATMAN		LATManip is running&lt;br /&gt;
7, SCANSTATTIMESPEC	Timespectrum is running&lt;br /&gt;
8, SCANXYOFFSET		XYOffset is running&lt;br /&gt;
9, SCANSTATAPPROACH	Approach is running&lt;br /&gt;
&lt;br /&gt;
=== quicksave ===&lt;br /&gt;
&lt;br /&gt;
Parameter : None&lt;br /&gt;
&lt;br /&gt;
Return:  None&lt;br /&gt;
&lt;br /&gt;
Function:  Saves the current scan file using the default filename. Similar to presisng the Quicksave button&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== filesave ===&lt;br /&gt;
&lt;br /&gt;
Parameter : Filename&lt;br /&gt;
&lt;br /&gt;
Return:  None&lt;br /&gt;
&lt;br /&gt;
Function:  Saves the current scandata file using the  filename as .dat file. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== fileload ===&lt;br /&gt;
&lt;br /&gt;
Parameter : Filename&lt;br /&gt;
&lt;br /&gt;
Return:  None&lt;br /&gt;
&lt;br /&gt;
Function:  Loads a .dat file into the program.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== vertsave ===&lt;br /&gt;
&lt;br /&gt;
Parameter : None&lt;br /&gt;
&lt;br /&gt;
Return:   none&lt;br /&gt;
&lt;br /&gt;
Function:  save present vertspecdata &lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
a=stm.vertsave;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== latsave ===&lt;br /&gt;
Parameter : None&lt;br /&gt;
&lt;br /&gt;
Return:   none&lt;br /&gt;
&lt;br /&gt;
Function:  save present latmanipdata &lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
a=stm.latsave;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== savedatfilename ===&lt;br /&gt;
&lt;br /&gt;
Property String&lt;br /&gt;
&lt;br /&gt;
Parameter : None&lt;br /&gt;
&lt;br /&gt;
Return:  None&lt;br /&gt;
&lt;br /&gt;
Function:  Read and write the default savefilename of .dat files.&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
filename=stm.savedatfilename;&lt;br /&gt;
&lt;br /&gt;
stm.savefilename=filename;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===  loadfilename ===&lt;br /&gt;
&lt;br /&gt;
Property String&lt;br /&gt;
&lt;br /&gt;
Function:  Read and write the default loadfilename of .dat files.&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
filename=stm.loaddatfilename;&lt;br /&gt;
&lt;br /&gt;
stm.loadfilename=filename;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== savevertfilename ===&lt;br /&gt;
&lt;br /&gt;
Property String&lt;br /&gt;
&lt;br /&gt;
Function:  Read and write the default filename of Vertspec  files.&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
filename=stm.savevertfilename;&lt;br /&gt;
&lt;br /&gt;
stm.savevertfilename=filename;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== savelatfilename ===&lt;br /&gt;
&lt;br /&gt;
Property String&lt;br /&gt;
&lt;br /&gt;
Function:  Read and write the default filename of Latmanip  files.&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
filename=stm.savelatfilename;&lt;br /&gt;
&lt;br /&gt;
stm.savelatfilename:=filename;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== btn_vertspec ===&lt;br /&gt;
&lt;br /&gt;
Parameter : &lt;br /&gt;
1. xpos :integer&lt;br /&gt;
2. ypos :integer&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Takes a Vert.Spectrum at image point Xpos,Ypos. (Image pixel coordinates as displayed in the status line of the STMAFM main window) Control is returned after the spectrum has been completely finished&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
stm.btn_vertspec(128,128);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== btn_vertspec_line ===&lt;br /&gt;
&lt;br /&gt;
Parameter : &lt;br /&gt;
1. X coordinate in imagepixels  of start point.&lt;br /&gt;
2  Y coordinate in imagepixels  of start point&lt;br /&gt;
3. X coordinate in imagepixels  of end point&lt;br /&gt;
4. Y coordinate in imagepixels  of end point&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
Function:  Takes a series of Vert.Spectra along a line defined by the start and end image points. (Image pixel coordinates as displayed in the status line of the STMAFM main window)&lt;br /&gt;
Control is returned after the spectra have been completely finished&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
stm.btn_vertspec_line(50,50,100,100);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== btn_vertspec_mult ===&lt;br /&gt;
&lt;br /&gt;
Parameter : 2d Array of X,Y coordinates&lt;br /&gt;
1. X coordinate in imagepixels  of 1.point&lt;br /&gt;
2. Y coordinate in imagepixels  of 1.point&lt;br /&gt;
.......&lt;br /&gt;
&lt;br /&gt;
2n-1. X coordinate in imagepixels  of n.point&lt;br /&gt;
2n. Y coordinate in imagepixels  of n.point&lt;br /&gt;
&lt;br /&gt;
Return:   Ready or Error&lt;br /&gt;
&lt;br /&gt;
Function:  Takes a series of Vert.Spectra defined by a list of image points. (Image pixel coordinates as displayed in the status line of the STMAFM main window). Control is returned after the spectra have been completely finished&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
a=[10,20;50,50;100,100;19,90];&lt;br /&gt;
stm.btn_vertspec_line(a);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== btn_tipform ===&lt;br /&gt;
&lt;br /&gt;
Parameter : &lt;br /&gt;
1. xpos :integer&lt;br /&gt;
2. ypos :integer&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Does a tip forming at image point Xpos,Ypos. (Image pixel coordinates as displayed in the status line of the STMAFM main window). Control is returned after the tip forming has been completely finished&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
stm.btn_tipform(128,128);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== btn_timespec ===&lt;br /&gt;
&lt;br /&gt;
Parameter : none&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Takes a time spectrum&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
stm.btn_timespec;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== scandata ===&lt;br /&gt;
&lt;br /&gt;
Parameter : channel: integer, units: integer&lt;br /&gt;
&lt;br /&gt;
Return:   Array with Scan Channel Data&lt;br /&gt;
&lt;br /&gt;
Function:  Read single channel of Scan Data &lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
a=stm.scandata(channel,unit_volt);  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Channels:&lt;br /&gt;
1:Topography&lt;br /&gt;
2: Current(ADC0)&lt;br /&gt;
3: ADC1&lt;br /&gt;
4: ADC2&lt;br /&gt;
5: ADC3&lt;br /&gt;
6: dI/dV&lt;br /&gt;
7: d2I/dV&lt;br /&gt;
8: df&lt;br /&gt;
9: Damping&lt;br /&gt;
10: Amplitude&lt;br /&gt;
11: CP(DAC1)&lt;br /&gt;
12: AUX1&lt;br /&gt;
&lt;br /&gt;
If backward scanning channels are enabled, these channels are accessed by adding 256 as offset to the channel number above.&lt;br /&gt;
&lt;br /&gt;
=== scandatawrite ===&lt;br /&gt;
&lt;br /&gt;
Parameter : &lt;br /&gt;
1. channel: integer:integer&lt;br /&gt;
2. data: Matrix with Scan Channel Data&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Write single channel of Scan Data &lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
stm.scandatawrite(channel, data);     Presently only DAC units supported&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Channels:&lt;br /&gt;
1:Topography&lt;br /&gt;
2: Current(ADC0)&lt;br /&gt;
3: ADC1&lt;br /&gt;
4: ADC2&lt;br /&gt;
5: ADC3&lt;br /&gt;
6: dI/dV&lt;br /&gt;
7: d2I/dV&lt;br /&gt;
8: df&lt;br /&gt;
9: Damping&lt;br /&gt;
10: Amplitude&lt;br /&gt;
11: CP(DAC1)&lt;br /&gt;
12: AUX1&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== scanauxdata ===&lt;br /&gt;
&lt;br /&gt;
Property:   Matrix with Scan Aux channel Data&lt;br /&gt;
&lt;br /&gt;
Function:  Read and  write Scan AUX Data channel&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
a=stm.scanauxdata;  Presently only DAC units supported&lt;br /&gt;
stm.scanauxdata=a;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== openscanchannel ===&lt;br /&gt;
&lt;br /&gt;
Parameter : &lt;br /&gt;
1. channel integer&lt;br /&gt;
2. select :boolean&lt;br /&gt;
&lt;br /&gt;
Return:   none&lt;br /&gt;
&lt;br /&gt;
Function:  Activate specific Scan channel  &lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
a=stm.openscanchannel(channel, true);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===  linescandata ===&lt;br /&gt;
&lt;br /&gt;
Parameter : None&lt;br /&gt;
&lt;br /&gt;
Return:   Array with actual LineScan Data&lt;br /&gt;
&lt;br /&gt;
Function:  Read LineScan Data  &lt;br /&gt;
&lt;br /&gt;
Linescandata can be transferred into the Matlab workspace in a event driven manner. I.e. click the copy OLE/COM server popupmenue field in the Linescan window. This creates an event in Matlab which starts the&lt;br /&gt;
serverevents.m file which transfers the data to Matlab.    &lt;br /&gt;
&lt;br /&gt;
Columns&lt;br /&gt;
1: Distance in Angstrom&lt;br /&gt;
2: Y Values&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
a=stm.linescandata;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== timespecdata ===&lt;br /&gt;
&lt;br /&gt;
Parameter : channel: integer, units: integer&lt;br /&gt;
&lt;br /&gt;
Return:   Vector with Channel Data&lt;br /&gt;
&lt;br /&gt;
Function:  Read Channel Data&lt;br /&gt;
&lt;br /&gt;
Columns&lt;br /&gt;
1: Channel in units&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
a=stm.timespec(3,0);&lt;br /&gt;
&lt;br /&gt;
Channels:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== timespecfftdata ===&lt;br /&gt;
&lt;br /&gt;
Parameter : channel: integer, units: integer&lt;br /&gt;
&lt;br /&gt;
Return:   Vector with Channel Data&lt;br /&gt;
&lt;br /&gt;
Function:  Read Channel Data&lt;br /&gt;
&lt;br /&gt;
Columns&lt;br /&gt;
1: Channel in units&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
a=stm.timespec(3,0);&lt;br /&gt;
&lt;br /&gt;
Channels:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== latmandata ===&lt;br /&gt;
&lt;br /&gt;
Parameter : channel: integer, units: integer&lt;br /&gt;
&lt;br /&gt;
Return:   Vector with Lat manip Channel Data&lt;br /&gt;
&lt;br /&gt;
Function:  Read Lat manip Channel Data&lt;br /&gt;
&lt;br /&gt;
Columns&lt;br /&gt;
1: Channel in units&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
a=stm.latmandata(channel,units);&lt;br /&gt;
&lt;br /&gt;
Channels:&lt;br /&gt;
0: time in sec&lt;br /&gt;
1: X&lt;br /&gt;
2: Y&lt;br /&gt;
3: Current I&lt;br /&gt;
4: dI/dV&lt;br /&gt;
5: d2I/dV&lt;br /&gt;
6: ADC0&lt;br /&gt;
7: ADC1&lt;br /&gt;
8: ADC2&lt;br /&gt;
9: ADC3&lt;br /&gt;
10: df&lt;br /&gt;
11: Damping&lt;br /&gt;
12: Amplitude&lt;br /&gt;
13: di_q&lt;br /&gt;
14: di2_q&lt;br /&gt;
15: Topography(DAC0)&lt;br /&gt;
16: CP(DAC1)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Units:&lt;br /&gt;
0: Default&lt;br /&gt;
1: Volt&lt;br /&gt;
2: DAC&lt;br /&gt;
3: Ampere&lt;br /&gt;
4: nm&lt;br /&gt;
5: Hz&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== vertdata ===&lt;br /&gt;
&lt;br /&gt;
Parameter : channel: integer, units: integer&lt;br /&gt;
&lt;br /&gt;
Return:   Vector with Channel Data&lt;br /&gt;
&lt;br /&gt;
Function:  Read Channel Data&lt;br /&gt;
&lt;br /&gt;
Columns&lt;br /&gt;
1: Channel in units&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
a=stm.vertdata(3,1);&lt;br /&gt;
&lt;br /&gt;
Channels:&lt;br /&gt;
0: time in sec&lt;br /&gt;
1: V&lt;br /&gt;
2: Z&lt;br /&gt;
3: Current I&lt;br /&gt;
4: dI/dV&lt;br /&gt;
5: d2I/dV&lt;br /&gt;
6: ADC0&lt;br /&gt;
7: ADC1&lt;br /&gt;
8: ADC2&lt;br /&gt;
9: ADC3&lt;br /&gt;
10: df&lt;br /&gt;
11: Damping&lt;br /&gt;
12: Amplitude&lt;br /&gt;
13: di_q&lt;br /&gt;
14: di2_q&lt;br /&gt;
15: Topography(DAC0)&lt;br /&gt;
16: CP(DAC1)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Units:&lt;br /&gt;
0: Default&lt;br /&gt;
1: Volt&lt;br /&gt;
2: DAC&lt;br /&gt;
3: Ampere&lt;br /&gt;
4: nm&lt;br /&gt;
5: Hz&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== pllspecdata ===&lt;br /&gt;
&lt;br /&gt;
Parameter : None&lt;br /&gt;
&lt;br /&gt;
Return:   Array with PLL Spectrum Scan Data&lt;br /&gt;
&lt;br /&gt;
Function:  Read PLL Spectrum Scan Data      &lt;br /&gt;
&lt;br /&gt;
Columns&lt;br /&gt;
1: Frequency [Hz]&lt;br /&gt;
2: Amplitude [a.u.]&lt;br /&gt;
3: Phase [Deg]&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
a=stm.pllspecdata;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== strbuffer ===&lt;br /&gt;
&lt;br /&gt;
Property&lt;br /&gt;
&lt;br /&gt;
Parameter : None&lt;br /&gt;
&lt;br /&gt;
Return:   String with all parameters&lt;br /&gt;
&lt;br /&gt;
Function:  Read and write program parameter      &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
s=stm.strbuffer;&lt;br /&gt;
&lt;br /&gt;
stm.strbuffer:=s;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== pllfreqscan ===&lt;br /&gt;
&lt;br /&gt;
Parameter : None&lt;br /&gt;
&lt;br /&gt;
Return:   none&lt;br /&gt;
&lt;br /&gt;
Function:  Start a new PLL Freqeuncy Scan  &lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
a=stm.pllfreqscan;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===  vertspectrum ===&lt;br /&gt;
 &lt;br /&gt;
Parameter : None&lt;br /&gt;
&lt;br /&gt;
Return:   Ready or Error&lt;br /&gt;
&lt;br /&gt;
Function:  Takes a Vert.Spectrum at the current image point X,Y.  Control is returned after the spectrum has been completely finished&lt;br /&gt;
The tip remains at the current lateral position&lt;br /&gt;
(low level command)&lt;br /&gt;
&lt;br /&gt;
=== move_tip ===&lt;br /&gt;
&lt;br /&gt;
Parameter : &lt;br /&gt;
1. X start position in relative DAC units  &lt;br /&gt;
2. Y start position in relative DAC units&lt;br /&gt;
3. X end position in relative DAC units  &lt;br /&gt;
4. Y end position in relative DAC units  &lt;br /&gt;
5. Number steps in which the tip moves from start to endpoint&lt;br /&gt;
6 Delay in DSP cycles between each step&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Move tip to new position. Coordinates are given in relative DAC units (relative: X,Y Offset and rotation are added afterwards)&lt;br /&gt;
Control is returned after the move has been completely finished&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
stm.move_tip(50,50,100,100, 200,100);&lt;br /&gt;
&lt;br /&gt;
=== move_tip_imagecoord ===&lt;br /&gt;
&lt;br /&gt;
Parameter : &lt;br /&gt;
1. X start position in imagepixels  &lt;br /&gt;
2. Y start position in imagepixels  &lt;br /&gt;
3. X end position in imagepixels  &lt;br /&gt;
4. Y end position in imagepixels  &lt;br /&gt;
5. Number steps in which the tip moves from start to endpoint&lt;br /&gt;
6 Delay in DSP cycles between each step&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Move tip to new position (Image pixel coordinates as displayed in the status line of the STMAFM main window)&lt;br /&gt;
Control is returned after the move has been completely finished&lt;br /&gt;
&lt;br /&gt;
Relation between imagepixel coordinates (0&amp;lt;=ximage&amp;lt;nx ,  0&amp;lt;=yimage&amp;lt;ny ) and  relative DAC coordinates (xdac,ydac):&lt;br /&gt;
(Top line in image is ny=0)&lt;br /&gt;
&lt;br /&gt;
xdac:=trunc(ximage*dx - (nx div 2)*dx);&lt;br /&gt;
ydac:=trunc(yimage*dy);&lt;br /&gt;
&lt;br /&gt;
On the DSP a final coordinate transformation is done including rotation, offset and drift correction to calculate the absolute DAC coordinates:&lt;br /&gt;
Using 20bit DACS the values are internal limited to +/- 524272.&lt;br /&gt;
&lt;br /&gt;
xdacabs=  trunc ( - (xdac*rotmxx + ydac*rotmxy + rotoffx-driftxoff));&lt;br /&gt;
ydacabs=  trunc ( - (xdac*rotmyx + ydac*rotmyy + rotoffy-driftyoff));&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
stm.move_tip_imagecoord(50,50,100,100, 200,100);&lt;br /&gt;
&lt;br /&gt;
=== latmanip ===&lt;br /&gt;
&lt;br /&gt;
Parameter : &lt;br /&gt;
1. X coordinate in imagepixels  of start point.&lt;br /&gt;
2  Y coordinate in imagepixels  of start point&lt;br /&gt;
3. X coordinate in imagepixels  of end point&lt;br /&gt;
4. Y coordinate in imagepixels  of end point&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Takes a lateral manipulation along a line defined by the start and end image points. (Image pixel coordinates as displayed in the status line of the STMAFM main window)&lt;br /&gt;
Control is returned after the manipulation has been completely finished&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
stm.latmanip(50,50,100,100);&lt;br /&gt;
&lt;br /&gt;
===  latmanipxymove  ===&lt;br /&gt;
(low level command)&lt;br /&gt;
&lt;br /&gt;
Parameter : &lt;br /&gt;
1. X coordinate  of start point in rel. DAC units.&lt;br /&gt;
2  Y coordinate  of f start point in rel. DAC units.&lt;br /&gt;
3. X coordinate of end point in rel. DAC units.&lt;br /&gt;
4. Y coordinate of end point in rel. DAC units.&lt;br /&gt;
5. Number of steps &lt;br /&gt;
6. Delay between steps in DSP Cycles&lt;br /&gt;
7. Gain of Preamp during manipulation&lt;br /&gt;
8. Bias Voltage during manipulation&lt;br /&gt;
9. Current set point during manipulation in constant current mode&lt;br /&gt;
&lt;br /&gt;
Return:  None&lt;br /&gt;
Function:  &lt;br /&gt;
Takes a lateral manipulation along a line defined by the start and end image points. Coordinates are in relative DAC units.&lt;br /&gt;
Control is returned after the scan has been completely finished. &lt;br /&gt;
&lt;br /&gt;
The recorded data is saved in a file called 'manipxymove.data' placed in the active directory.&lt;br /&gt;
The file contains one line for each step. For each step the selected number of channels are recorded. (See LATMANIP form)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== latmanbufferext ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== lockinstart ===&lt;br /&gt;
&lt;br /&gt;
Parameter : None&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Starts the internal lockin amplifier&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
stm.lockinstart;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== lockinstop ===&lt;br /&gt;
&lt;br /&gt;
Parameter : None&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Stops the internal lockin amplifier&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
stm.lockinstop;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== updatedspparam ===&lt;br /&gt;
&lt;br /&gt;
Parameter: None&lt;br /&gt;
&lt;br /&gt;
Function: Updates all parameters and synchronizes the the parameters with the DSP&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
stm.updatedspparam;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== updatedspfbparam ===&lt;br /&gt;
&lt;br /&gt;
Parameter :  None&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  After changing the parameters this command allows to update/synchronize the parameters with the DSP.&lt;br /&gt;
&lt;br /&gt;
For example changing a feedback loop parameter in the old parameter window will not automatically change this parameter on the DSP.&lt;br /&gt;
Therefore this update command has to be issued afterwards. Allows to set first the new parameters and then update all at the same time on the DSP.&lt;br /&gt;
(low level command)&lt;br /&gt;
&lt;br /&gt;
=== sliderup ===&lt;br /&gt;
&lt;br /&gt;
Parameter : None&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Moves the slider one step up&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
stm.sliderup;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== sliderdown ===&lt;br /&gt;
&lt;br /&gt;
Parameter : None&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Moves the slider one step down&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
stm.sliderdown;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== slider ===&lt;br /&gt;
&lt;br /&gt;
Parameter :&lt;br /&gt;
channel&lt;br /&gt;
direction&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Moves the slider &lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
stm.slider(1,0);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== setdacval ===&lt;br /&gt;
Parameter : &lt;br /&gt;
board 1..2&lt;br /&gt;
channel  0..5&lt;br /&gt;
value   -524288 ..  524287           &lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Sets DAC value of selected channel. Units are DAC Units (20bit)&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
stm.setdacval(1,2,1000);&lt;br /&gt;
&lt;br /&gt;
                &lt;br /&gt;
=== setdacvalf === &lt;br /&gt;
Parameter : &lt;br /&gt;
board 1..2&lt;br /&gt;
channel  0..5&lt;br /&gt;
value   -10.0 .. 10.0          &lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Sets DAC value of selected channel. Units are Volt (float)&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
stm.setdacval(1,2,1.034);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== getadcval ===&lt;br /&gt;
&lt;br /&gt;
Parameter : &lt;br /&gt;
board 1..2&lt;br /&gt;
channel 0..5                &lt;br /&gt;
&lt;br /&gt;
Return:   ADC value of selected channel&lt;br /&gt;
&lt;br /&gt;
Function:  Gets the ADC value. Units are in DAC units (20bit)&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
stm.getadcval(1,2);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== getadcvalf ===&lt;br /&gt;
&lt;br /&gt;
Parameter : &lt;br /&gt;
board 1..2&lt;br /&gt;
channel  0..5               &lt;br /&gt;
&lt;br /&gt;
Return:   ADC value of selected channel&lt;br /&gt;
&lt;br /&gt;
Function:  Gets the ADC value. Units are in Volt&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
stm.getadcvalf(1,2);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== getdacvalfb ===&lt;br /&gt;
 &lt;br /&gt;
Parameter : none              &lt;br /&gt;
&lt;br /&gt;
Return:   Value of z - Dac in Angstroem&lt;br /&gt;
 &lt;br /&gt;
Function:  Gets the Feedback DAC Value &lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
a=stm.getdacvalfb;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== digoutvalue ===&lt;br /&gt;
&lt;br /&gt;
Property Integer          &lt;br /&gt;
&lt;br /&gt;
Function:  Read and write Digital Outputvalue on Board 1&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
i:=stm.digoutvalue;&lt;br /&gt;
&lt;br /&gt;
stm.digoutvalue:=i;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== sbcdigoutvalue ===&lt;br /&gt;
&lt;br /&gt;
Property Integer          &lt;br /&gt;
&lt;br /&gt;
Function:  Read and write digital outputvalue on SBC6711Board&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
i:=stm.sbcdigoutvalue;&lt;br /&gt;
&lt;br /&gt;
stm.sbcdigoutvalue:=i;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== serverneverclose ===&lt;br /&gt;
&lt;br /&gt;
Parameter: None          &lt;br /&gt;
&lt;br /&gt;
Function:  If activated makes sure that the STM Program will not close after the connection to the server is stopped, if the STM program was started by the client.&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
stm.serverneverclose;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== execmethod ===&lt;br /&gt;
&lt;br /&gt;
Parameter: &lt;br /&gt;
Objectname&lt;br /&gt;
Methodname&lt;br /&gt;
&lt;br /&gt;
Return: None&lt;br /&gt;
&lt;br /&gt;
Function:  Execute a specific function in the STM program. Specific debugging use only&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
stm.execmethod('stmafm','Formmemoclick');&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== setxyoffvolt ===&lt;br /&gt;
&lt;br /&gt;
Parameter : &lt;br /&gt;
x: Offset in Volt  Range: (-10.0, +10.0) * HVGainX&lt;br /&gt;
y: Offset in Volt  Range: (-10.0, +10.0) * HVGainY&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Sets a new X_Offset, Y_Offset Value. Units are in Volt &lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
stm.setxyoffsetvolt(12.5,-24.0);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== setxyoffpixel ===&lt;br /&gt;
Parameter : &lt;br /&gt;
x: Offset in Pixel units &lt;br /&gt;
y: Offset in Pixel Units&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Sets a new X_Offset, Y_Offset Value. The new offset is given by a pixel position in the present scanimage.&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
stm.setxypixel(100,78);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== scandatabitmap ===&lt;br /&gt;
&lt;br /&gt;
Parameter : none&lt;br /&gt;
Return:   Array with Scan Channel Bitmap Data&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Function:  Get the the scanimage data as a bitmap.&lt;br /&gt;
The bitmap data is 32bit wide. The bitmap contains all channels.&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
a=stm.scandatabitmap;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== pc32scanstatus ===&lt;br /&gt;
&lt;br /&gt;
Parameter : none&lt;br /&gt;
&lt;br /&gt;
Return:   Scanstatus value on DSP Board&lt;br /&gt;
&lt;br /&gt;
Function:  Gets the scanstatus of the DSP program&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
a=stm.pc32scanstatus;&lt;br /&gt;
&lt;br /&gt;
=== setchmodezoff ===&lt;br /&gt;
&lt;br /&gt;
Parameter : zoffset&lt;br /&gt;
&lt;br /&gt;
Return:   none&lt;br /&gt;
&lt;br /&gt;
Function:  Sets the const height Zoffset value&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
a=stm.setchmodezoff(1.0);&lt;br /&gt;
&lt;br /&gt;
=== stmready ===&lt;br /&gt;
Parameter: none&lt;br /&gt;
Return: stmready  1: ready  0 not ready&lt;br /&gt;
&lt;br /&gt;
Function:  If stmready = 1 then the initialization of the STMAFM program is finshed.&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
&lt;br /&gt;
a= stm.stmready;&lt;br /&gt;
&lt;br /&gt;
=== setrampdspparam ===&lt;br /&gt;
&lt;br /&gt;
Parameter: zheight: single -10 - + 10V, zduration: single, zburst: integer, xyheight:single, xyduration: single, xyburst: integer&lt;br /&gt;
&lt;br /&gt;
Function: Sets the corresponding parameters of the rampcontroller&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
&lt;br /&gt;
stm.setrampdspparam(1.0,0.01,100,2.0,0.02,200)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:stmafm_manual]]&lt;/div&gt;</summary>
		<author><name>Ltspm</name></author>	</entry>

	<entry>
		<id>http://spm-wiki.createc.de/index.php?title=STMAFM_Remote_Operation</id>
		<title>STMAFM Remote Operation</title>
		<link rel="alternate" type="text/html" href="http://spm-wiki.createc.de/index.php?title=STMAFM_Remote_Operation"/>
				<updated>2015-10-06T13:16:36Z</updated>
		
		<summary type="html">&lt;p&gt;Ltspm: /* scandata */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== OLE/COM Server ==&lt;br /&gt;
&lt;br /&gt;
To register the OLE/COM sever in the stmafm program goto &amp;quot;Debug&amp;quot; and &amp;quot;Register COM Server&amp;quot;. If you are going to install a newer version of the program, please click &amp;quot;Unregister COM Server&amp;quot; before installing the new version. Both has to be done with administrative rights as it requires access to the Windows registry.&lt;br /&gt;
&lt;br /&gt;
You may also run  &amp;quot;pstmafm.exe / regserver&amp;quot; form the command prompt.&lt;br /&gt;
(Alternatively run &amp;quot;pstmafm.exe /regserverperuser&amp;quot; in case you have problems running /regserver in Windows 7)&lt;br /&gt;
Again administrator rights are required.&lt;br /&gt;
&lt;br /&gt;
There are many different software tools available to perform data analysis as well as data aquisition or remote operation of the STMAFM program via OLE/COM: &lt;br /&gt;
&lt;br /&gt;
1. Python (Freeware, please visit http://winpython.sourceforge.net/ for download) we're using WinPython 2.7.x 32bit, 64bit&lt;br /&gt;
&lt;br /&gt;
2. Commercial Software: MatLab / LabView&lt;br /&gt;
&lt;br /&gt;
3. For more specific purposes with a more elaborate user interface Createc can supply dedicated plugin programs. (Contact ltspm@createc.de to solve your specific needs)&lt;br /&gt;
&lt;br /&gt;
For simple scripting purposes, i.e. controlling the program without data analysis a scripter program is can still be used.(e.g. MAXBOX) But for people starting from scratch we recommend using the OLE/COM interface as we will drop the support via the TCPIP interface in future. &lt;br /&gt;
&lt;br /&gt;
Example software will be provided through the Createc WebSite.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Python Connection ==&lt;br /&gt;
&lt;br /&gt;
We recommend to install WinPython 2.7.x and using the IPython Notebook therein. These command will initialize the connection to the STMAFM program. Afterwards you may import / export files using filters from the program and control the complete software&lt;br /&gt;
&lt;br /&gt;
 import win32com.client&lt;br /&gt;
 stm=win32com.client.Dispatch(&amp;quot;pstmafm.stmafmrem&amp;quot;)&lt;br /&gt;
 stm.stmbeep()&lt;br /&gt;
&lt;br /&gt;
== Matlab Connection ==&lt;br /&gt;
&lt;br /&gt;
You can access the pstmafm.stmafm OLE/COM server directly from Matlab (or Freemat using a corresponding dll).&lt;br /&gt;
We recommend controlling the STMAFM program through this interface.&lt;br /&gt;
&lt;br /&gt;
 stm=actxserver('pstmafm.stmafmrem'); %Open connection to STMAFM program, see also Matlab manual.&lt;br /&gt;
 stm.stmbeep; % &lt;br /&gt;
 stm.release; % release stm program&lt;br /&gt;
&lt;br /&gt;
The STMAFM program will be started and closed automatically from Matlab. If the STMAFM program is already running just the connection will be established.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Demo Startstm.m with event capability&lt;br /&gt;
&lt;br /&gt;
 global stm&lt;br /&gt;
 global stm1&lt;br /&gt;
 global linescandata&lt;br /&gt;
 stm=actxserver('pstmafm.stmafmrem');&lt;br /&gt;
 stm1=actxserver('pstmafm.stmafmevent');&lt;br /&gt;
 stm1.registerevent('serverevents');&lt;br /&gt;
 %registerevent: register a file serverevents.m to handle events.&lt;br /&gt;
&lt;br /&gt;
Example: serverevents.m &lt;br /&gt;
&lt;br /&gt;
 function serverevents(varargin)&lt;br /&gt;
 global stmoleeventnr&lt;br /&gt;
 global linescandata&lt;br /&gt;
 global stm&lt;br /&gt;
 stmoleeventnr = cell2mat(varargin(3));&lt;br /&gt;
 linescandata = stm.linescandata; &lt;br /&gt;
 if (stmoleeventnr == 1)&lt;br /&gt;
   plot(linescandata(:,1),linescandata(:,2));&lt;br /&gt;
 end&lt;br /&gt;
&lt;br /&gt;
== Plugins ==&lt;br /&gt;
&lt;br /&gt;
Specifically developed Plugins will be available to supply specific user needs. In particular where a more elaborate graphical user interface is&lt;br /&gt;
necessary compared to a simple text based scripting control.&lt;br /&gt;
&lt;br /&gt;
== Commands ==&lt;br /&gt;
&lt;br /&gt;
=== stmbeep ===&lt;br /&gt;
&lt;br /&gt;
Parameter : None&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  STMAFM program creates a short beep sound.  Used for testing purposes.&lt;br /&gt;
&lt;br /&gt;
=== setparam ===&lt;br /&gt;
&lt;br /&gt;
Parameter : (Strings)&lt;br /&gt;
1. Name of parameter&lt;br /&gt;
2. New Value&lt;br /&gt;
&lt;br /&gt;
Return:   &lt;br /&gt;
&lt;br /&gt;
Function:  Sets a parameter to a new value. The name is the name appearing in the old parameter menue&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
stm.setparam('Rotation','90.00');&lt;br /&gt;
&lt;br /&gt;
=== getparam ===&lt;br /&gt;
&lt;br /&gt;
Parameter : &lt;br /&gt;
1. Name of parameter&lt;br /&gt;
&lt;br /&gt;
Return:   &lt;br /&gt;
1. Value of Parameter&lt;br /&gt;
&lt;br /&gt;
Function:  Gets the actual parameter value. The name is the name appearing the old parameter menue&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
a=stm.getparam('Rotation');&lt;br /&gt;
&lt;br /&gt;
=== scanstart ===&lt;br /&gt;
&lt;br /&gt;
Parameter : None&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Starts a new STM scan.  Similar to pressing the button Scanstart&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== scanwaitfinished ===&lt;br /&gt;
&lt;br /&gt;
Parameter : None&lt;br /&gt;
&lt;br /&gt;
Return:  None&lt;br /&gt;
&lt;br /&gt;
Function:  Waits until the active scan is stopped.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== scanstop ===&lt;br /&gt;
&lt;br /&gt;
Parameter : None&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Stops a running STM scan.  Similar to pressing the button Scanstop&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== scanstatus ===&lt;br /&gt;
&lt;br /&gt;
Parameter : None&lt;br /&gt;
&lt;br /&gt;
Return:    Status Number ( = ord(scanstat) see below)&lt;br /&gt;
&lt;br /&gt;
Function:  Gets the present scanstatus. &lt;br /&gt;
&lt;br /&gt;
scanstat = (scanstatreset, stop, running, start, resetting, pause, scanstatvertman, scanstatlatman, scanstattimespec, scanxyoffset,scanstatapproach);&lt;br /&gt;
&lt;br /&gt;
0, SCANSTATRESET:   		Programm is in idle state&lt;br /&gt;
1, STOP:	            	Running Scan is stopped but is not fully reset yet.&lt;br /&gt;
2, RUNNING:                 	Scan is running&lt;br /&gt;
3, START                      	New Scan is started but not yet running&lt;br /&gt;
4, PAUSE			Running Scan is paused&lt;br /&gt;
5, SCANSTATVERTMAN	VertSpectrum is running&lt;br /&gt;
6, SCANSTATLATMAN		LATManip is running&lt;br /&gt;
7, SCANSTATTIMESPEC	Timespectrum is running&lt;br /&gt;
8, SCANXYOFFSET		XYOffset is running&lt;br /&gt;
9, SCANSTATAPPROACH	Approach is running&lt;br /&gt;
&lt;br /&gt;
=== quicksave ===&lt;br /&gt;
&lt;br /&gt;
Parameter : None&lt;br /&gt;
&lt;br /&gt;
Return:  None&lt;br /&gt;
&lt;br /&gt;
Function:  Saves the current scan file using the default filename. Similar to presisng the Quicksave button&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== filesave ===&lt;br /&gt;
&lt;br /&gt;
Parameter : Filename&lt;br /&gt;
&lt;br /&gt;
Return:  None&lt;br /&gt;
&lt;br /&gt;
Function:  Saves the current scandata file using the  filename as .dat file. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== fileload ===&lt;br /&gt;
&lt;br /&gt;
Parameter : Filename&lt;br /&gt;
&lt;br /&gt;
Return:  None&lt;br /&gt;
&lt;br /&gt;
Function:  Loads a .dat file into the program.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== vertsave ===&lt;br /&gt;
&lt;br /&gt;
Parameter : None&lt;br /&gt;
&lt;br /&gt;
Return:   none&lt;br /&gt;
&lt;br /&gt;
Function:  save present vertspecdata &lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
a=stm.vertsave;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== latsave ===&lt;br /&gt;
Parameter : None&lt;br /&gt;
&lt;br /&gt;
Return:   none&lt;br /&gt;
&lt;br /&gt;
Function:  save present latmanipdata &lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
a=stm.latsave;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== savedatfilename ===&lt;br /&gt;
&lt;br /&gt;
Property String&lt;br /&gt;
&lt;br /&gt;
Parameter : None&lt;br /&gt;
&lt;br /&gt;
Return:  None&lt;br /&gt;
&lt;br /&gt;
Function:  Read and write the default savefilename of .dat files.&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
filename=stm.savedatfilename;&lt;br /&gt;
&lt;br /&gt;
stm.savefilename=filename;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===  loadfilename ===&lt;br /&gt;
&lt;br /&gt;
Property String&lt;br /&gt;
&lt;br /&gt;
Function:  Read and write the default loadfilename of .dat files.&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
filename=stm.loaddatfilename;&lt;br /&gt;
&lt;br /&gt;
stm.loadfilename=filename;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== savevertfilename ===&lt;br /&gt;
&lt;br /&gt;
Property String&lt;br /&gt;
&lt;br /&gt;
Function:  Read and write the default filename of Vertspec  files.&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
filename=stm.savevertfilename;&lt;br /&gt;
&lt;br /&gt;
stm.savevertfilename=filename;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== savelatfilename ===&lt;br /&gt;
&lt;br /&gt;
Property String&lt;br /&gt;
&lt;br /&gt;
Function:  Read and write the default filename of Latmanip  files.&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
filename=stm.savelatfilename;&lt;br /&gt;
&lt;br /&gt;
stm.savelatfilename:=filename;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== btn_vertspec ===&lt;br /&gt;
&lt;br /&gt;
Parameter : &lt;br /&gt;
1. xpos :integer&lt;br /&gt;
2. ypos :integer&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Takes a Vert.Spectrum at image point Xpos,Ypos. (Image pixel coordinates as displayed in the status line of the STMAFM main window) Control is returned after the spectrum has been completely finished&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
stm.btn_vertspec(128,128);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== btn_vertspec_line ===&lt;br /&gt;
&lt;br /&gt;
Parameter : &lt;br /&gt;
1. X coordinate in imagepixels  of start point.&lt;br /&gt;
2  Y coordinate in imagepixels  of start point&lt;br /&gt;
3. X coordinate in imagepixels  of end point&lt;br /&gt;
4. Y coordinate in imagepixels  of end point&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
Function:  Takes a series of Vert.Spectra along a line defined by the start and end image points. (Image pixel coordinates as displayed in the status line of the STMAFM main window)&lt;br /&gt;
Control is returned after the spectra have been completely finished&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
stm.btn_vertspec_line(50,50,100,100);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== btn_vertspec_mult ===&lt;br /&gt;
&lt;br /&gt;
Parameter : 2d Array of X,Y coordinates&lt;br /&gt;
1. X coordinate in imagepixels  of 1.point&lt;br /&gt;
2. Y coordinate in imagepixels  of 1.point&lt;br /&gt;
.......&lt;br /&gt;
&lt;br /&gt;
2n-1. X coordinate in imagepixels  of n.point&lt;br /&gt;
2n. Y coordinate in imagepixels  of n.point&lt;br /&gt;
&lt;br /&gt;
Return:   Ready or Error&lt;br /&gt;
&lt;br /&gt;
Function:  Takes a series of Vert.Spectra defined by a list of image points. (Image pixel coordinates as displayed in the status line of the STMAFM main window). Control is returned after the spectra have been completely finished&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
a=[10,20;50,50;100,100;19,90];&lt;br /&gt;
stm.btn_vertspec_line(a);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== btn_tipform ===&lt;br /&gt;
&lt;br /&gt;
Parameter : &lt;br /&gt;
1. xpos :integer&lt;br /&gt;
2. ypos :integer&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Does a tip forming at image point Xpos,Ypos. (Image pixel coordinates as displayed in the status line of the STMAFM main window). Control is returned after the tip forming has been completely finished&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
stm.btn_tipform(128,128);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== btn_timespec ===&lt;br /&gt;
&lt;br /&gt;
Parameter : none&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Takes a time spectrum&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
stm.btn_timespec;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== scandata ===&lt;br /&gt;
&lt;br /&gt;
Parameter : channel: integer:&lt;br /&gt;
            units: integer&lt;br /&gt;
&lt;br /&gt;
Return:   Array with Scan Channel Data&lt;br /&gt;
&lt;br /&gt;
Function:  Read single channel of Scan Data &lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
a=stm.scandata(channel,unit_volt);  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Channels:&lt;br /&gt;
1:Topography&lt;br /&gt;
2: Current(ADC0)&lt;br /&gt;
3: ADC1&lt;br /&gt;
4: ADC2&lt;br /&gt;
5: ADC3&lt;br /&gt;
6: dI/dV&lt;br /&gt;
7: d2I/dV&lt;br /&gt;
8: df&lt;br /&gt;
9: Damping&lt;br /&gt;
10: Amplitude&lt;br /&gt;
11: CP(DAC1)&lt;br /&gt;
12: AUX1&lt;br /&gt;
&lt;br /&gt;
If backward scanning channels are enabled, these channels are accessed by adding 256 as offset to the channel number above.&lt;br /&gt;
&lt;br /&gt;
=== scandatawrite ===&lt;br /&gt;
&lt;br /&gt;
Parameter : &lt;br /&gt;
1. channel: integer:integer&lt;br /&gt;
2. data: Matrix with Scan Channel Data&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Write single channel of Scan Data &lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
stm.scandatawrite(channel, data);     Presently only DAC units supported&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Channels:&lt;br /&gt;
1:Topography&lt;br /&gt;
2: Current(ADC0)&lt;br /&gt;
3: ADC1&lt;br /&gt;
4: ADC2&lt;br /&gt;
5: ADC3&lt;br /&gt;
6: dI/dV&lt;br /&gt;
7: d2I/dV&lt;br /&gt;
8: df&lt;br /&gt;
9: Damping&lt;br /&gt;
10: Amplitude&lt;br /&gt;
11: CP(DAC1)&lt;br /&gt;
12: AUX1&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== scanauxdata ===&lt;br /&gt;
&lt;br /&gt;
Property:   Matrix with Scan Aux channel Data&lt;br /&gt;
&lt;br /&gt;
Function:  Read and  write Scan AUX Data channel&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
a=stm.scanauxdata;  Presently only DAC units supported&lt;br /&gt;
stm.scanauxdata=a;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== openscanchannel ===&lt;br /&gt;
&lt;br /&gt;
Parameter : &lt;br /&gt;
1. channel integer&lt;br /&gt;
2. select :boolean&lt;br /&gt;
&lt;br /&gt;
Return:   none&lt;br /&gt;
&lt;br /&gt;
Function:  Activate specific Scan channel  &lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
a=stm.openscanchannel(channel, true);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===  linescandata ===&lt;br /&gt;
&lt;br /&gt;
Parameter : None&lt;br /&gt;
&lt;br /&gt;
Return:   Array with actual LineScan Data&lt;br /&gt;
&lt;br /&gt;
Function:  Read LineScan Data  &lt;br /&gt;
&lt;br /&gt;
Linescandata can be transferred into the Matlab workspace in a event driven manner. I.e. click the copy OLE/COM server popupmenue field in the Linescan window. This creates an event in Matlab which starts the&lt;br /&gt;
serverevents.m file which transfers the data to Matlab.    &lt;br /&gt;
&lt;br /&gt;
Columns&lt;br /&gt;
1: Distance in Angstrom&lt;br /&gt;
2: Y Values&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
a=stm.linescandata;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== timespecdata ===&lt;br /&gt;
&lt;br /&gt;
Parameter : channel: integer, units: integer&lt;br /&gt;
&lt;br /&gt;
Return:   Vector with Channel Data&lt;br /&gt;
&lt;br /&gt;
Function:  Read Channel Data&lt;br /&gt;
&lt;br /&gt;
Columns&lt;br /&gt;
1: Channel in units&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
a=stm.timespec(3,0);&lt;br /&gt;
&lt;br /&gt;
Channels:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== timespecfftdata ===&lt;br /&gt;
&lt;br /&gt;
Parameter : channel: integer, units: integer&lt;br /&gt;
&lt;br /&gt;
Return:   Vector with Channel Data&lt;br /&gt;
&lt;br /&gt;
Function:  Read Channel Data&lt;br /&gt;
&lt;br /&gt;
Columns&lt;br /&gt;
1: Channel in units&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
a=stm.timespec(3,0);&lt;br /&gt;
&lt;br /&gt;
Channels:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== latmandata ===&lt;br /&gt;
&lt;br /&gt;
Parameter : channel: integer, units: integer&lt;br /&gt;
&lt;br /&gt;
Return:   Vector with Lat manip Channel Data&lt;br /&gt;
&lt;br /&gt;
Function:  Read Lat manip Channel Data&lt;br /&gt;
&lt;br /&gt;
Columns&lt;br /&gt;
1: Channel in units&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
a=stm.latmandata(channel,units);&lt;br /&gt;
&lt;br /&gt;
Channels:&lt;br /&gt;
0: time in sec&lt;br /&gt;
1: X&lt;br /&gt;
2: Y&lt;br /&gt;
3: Current I&lt;br /&gt;
4: dI/dV&lt;br /&gt;
5: d2I/dV&lt;br /&gt;
6: ADC0&lt;br /&gt;
7: ADC1&lt;br /&gt;
8: ADC2&lt;br /&gt;
9: ADC3&lt;br /&gt;
10: df&lt;br /&gt;
11: Damping&lt;br /&gt;
12: Amplitude&lt;br /&gt;
13: di_q&lt;br /&gt;
14: di2_q&lt;br /&gt;
15: Topography(DAC0)&lt;br /&gt;
16: CP(DAC1)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Units:&lt;br /&gt;
0: Default&lt;br /&gt;
1: Volt&lt;br /&gt;
2: DAC&lt;br /&gt;
3: Ampere&lt;br /&gt;
4: nm&lt;br /&gt;
5: Hz&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== vertdata ===&lt;br /&gt;
&lt;br /&gt;
Parameter : channel: integer, units: integer&lt;br /&gt;
&lt;br /&gt;
Return:   Vector with Channel Data&lt;br /&gt;
&lt;br /&gt;
Function:  Read Channel Data&lt;br /&gt;
&lt;br /&gt;
Columns&lt;br /&gt;
1: Channel in units&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
a=stm.vertdata(3,1);&lt;br /&gt;
&lt;br /&gt;
Channels:&lt;br /&gt;
0: time in sec&lt;br /&gt;
1: V&lt;br /&gt;
2: Z&lt;br /&gt;
3: Current I&lt;br /&gt;
4: dI/dV&lt;br /&gt;
5: d2I/dV&lt;br /&gt;
6: ADC0&lt;br /&gt;
7: ADC1&lt;br /&gt;
8: ADC2&lt;br /&gt;
9: ADC3&lt;br /&gt;
10: df&lt;br /&gt;
11: Damping&lt;br /&gt;
12: Amplitude&lt;br /&gt;
13: di_q&lt;br /&gt;
14: di2_q&lt;br /&gt;
15: Topography(DAC0)&lt;br /&gt;
16: CP(DAC1)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Units:&lt;br /&gt;
0: Default&lt;br /&gt;
1: Volt&lt;br /&gt;
2: DAC&lt;br /&gt;
3: Ampere&lt;br /&gt;
4: nm&lt;br /&gt;
5: Hz&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== pllspecdata ===&lt;br /&gt;
&lt;br /&gt;
Parameter : None&lt;br /&gt;
&lt;br /&gt;
Return:   Array with PLL Spectrum Scan Data&lt;br /&gt;
&lt;br /&gt;
Function:  Read PLL Spectrum Scan Data      &lt;br /&gt;
&lt;br /&gt;
Columns&lt;br /&gt;
1: Frequency [Hz]&lt;br /&gt;
2: Amplitude [a.u.]&lt;br /&gt;
3: Phase [Deg]&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
a=stm.pllspecdata;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== strbuffer ===&lt;br /&gt;
&lt;br /&gt;
Property&lt;br /&gt;
&lt;br /&gt;
Parameter : None&lt;br /&gt;
&lt;br /&gt;
Return:   String with all parameters&lt;br /&gt;
&lt;br /&gt;
Function:  Read and write program parameter      &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
s=stm.strbuffer;&lt;br /&gt;
&lt;br /&gt;
stm.strbuffer:=s;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== pllfreqscan ===&lt;br /&gt;
&lt;br /&gt;
Parameter : None&lt;br /&gt;
&lt;br /&gt;
Return:   none&lt;br /&gt;
&lt;br /&gt;
Function:  Start a new PLL Freqeuncy Scan  &lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
a=stm.pllfreqscan;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===  vertspectrum ===&lt;br /&gt;
 &lt;br /&gt;
Parameter : None&lt;br /&gt;
&lt;br /&gt;
Return:   Ready or Error&lt;br /&gt;
&lt;br /&gt;
Function:  Takes a Vert.Spectrum at the current image point X,Y.  Control is returned after the spectrum has been completely finished&lt;br /&gt;
The tip remains at the current lateral position&lt;br /&gt;
(low level command)&lt;br /&gt;
&lt;br /&gt;
=== move_tip ===&lt;br /&gt;
&lt;br /&gt;
Parameter : &lt;br /&gt;
1. X start position in relative DAC units  &lt;br /&gt;
2. Y start position in relative DAC units&lt;br /&gt;
3. X end position in relative DAC units  &lt;br /&gt;
4. Y end position in relative DAC units  &lt;br /&gt;
5. Number steps in which the tip moves from start to endpoint&lt;br /&gt;
6 Delay in DSP cycles between each step&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Move tip to new position. Coordinates are given in relative DAC units (relative: X,Y Offset and rotation are added afterwards)&lt;br /&gt;
Control is returned after the move has been completely finished&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
stm.move_tip(50,50,100,100, 200,100);&lt;br /&gt;
&lt;br /&gt;
=== move_tip_imagecoord ===&lt;br /&gt;
&lt;br /&gt;
Parameter : &lt;br /&gt;
1. X start position in imagepixels  &lt;br /&gt;
2. Y start position in imagepixels  &lt;br /&gt;
3. X end position in imagepixels  &lt;br /&gt;
4. Y end position in imagepixels  &lt;br /&gt;
5. Number steps in which the tip moves from start to endpoint&lt;br /&gt;
6 Delay in DSP cycles between each step&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Move tip to new position (Image pixel coordinates as displayed in the status line of the STMAFM main window)&lt;br /&gt;
Control is returned after the move has been completely finished&lt;br /&gt;
&lt;br /&gt;
Relation between imagepixel coordinates (0&amp;lt;=ximage&amp;lt;nx ,  0&amp;lt;=yimage&amp;lt;ny ) and  relative DAC coordinates (xdac,ydac):&lt;br /&gt;
(Top line in image is ny=0)&lt;br /&gt;
&lt;br /&gt;
xdac:=trunc(ximage*dx - (nx div 2)*dx);&lt;br /&gt;
ydac:=trunc(yimage*dy);&lt;br /&gt;
&lt;br /&gt;
On the DSP a final coordinate transformation is done including rotation, offset and drift correction to calculate the absolute DAC coordinates:&lt;br /&gt;
Using 20bit DACS the values are internal limited to +/- 524272.&lt;br /&gt;
&lt;br /&gt;
xdacabs=  trunc ( - (xdac*rotmxx + ydac*rotmxy + rotoffx-driftxoff));&lt;br /&gt;
ydacabs=  trunc ( - (xdac*rotmyx + ydac*rotmyy + rotoffy-driftyoff));&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
stm.move_tip_imagecoord(50,50,100,100, 200,100);&lt;br /&gt;
&lt;br /&gt;
=== latmanip ===&lt;br /&gt;
&lt;br /&gt;
Parameter : &lt;br /&gt;
1. X coordinate in imagepixels  of start point.&lt;br /&gt;
2  Y coordinate in imagepixels  of start point&lt;br /&gt;
3. X coordinate in imagepixels  of end point&lt;br /&gt;
4. Y coordinate in imagepixels  of end point&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Takes a lateral manipulation along a line defined by the start and end image points. (Image pixel coordinates as displayed in the status line of the STMAFM main window)&lt;br /&gt;
Control is returned after the manipulation has been completely finished&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
stm.latmanip(50,50,100,100);&lt;br /&gt;
&lt;br /&gt;
===  latmanipxymove  ===&lt;br /&gt;
(low level command)&lt;br /&gt;
&lt;br /&gt;
Parameter : &lt;br /&gt;
1. X coordinate  of start point in rel. DAC units.&lt;br /&gt;
2  Y coordinate  of f start point in rel. DAC units.&lt;br /&gt;
3. X coordinate of end point in rel. DAC units.&lt;br /&gt;
4. Y coordinate of end point in rel. DAC units.&lt;br /&gt;
5. Number of steps &lt;br /&gt;
6. Delay between steps in DSP Cycles&lt;br /&gt;
7. Gain of Preamp during manipulation&lt;br /&gt;
8. Bias Voltage during manipulation&lt;br /&gt;
9. Current set point during manipulation in constant current mode&lt;br /&gt;
&lt;br /&gt;
Return:  None&lt;br /&gt;
Function:  &lt;br /&gt;
Takes a lateral manipulation along a line defined by the start and end image points. Coordinates are in relative DAC units.&lt;br /&gt;
Control is returned after the scan has been completely finished. &lt;br /&gt;
&lt;br /&gt;
The recorded data is saved in a file called 'manipxymove.data' placed in the active directory.&lt;br /&gt;
The file contains one line for each step. For each step the selected number of channels are recorded. (See LATMANIP form)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== latmanbufferext ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== lockinstart ===&lt;br /&gt;
&lt;br /&gt;
Parameter : None&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Starts the internal lockin amplifier&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
stm.lockinstart;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== lockinstop ===&lt;br /&gt;
&lt;br /&gt;
Parameter : None&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Stops the internal lockin amplifier&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
stm.lockinstop;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== updatedspparam ===&lt;br /&gt;
&lt;br /&gt;
Parameter: None&lt;br /&gt;
&lt;br /&gt;
Function: Updates all parameters and synchronizes the the parameters with the DSP&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
stm.updatedspparam;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== updatedspfbparam ===&lt;br /&gt;
&lt;br /&gt;
Parameter :  None&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  After changing the parameters this command allows to update/synchronize the parameters with the DSP.&lt;br /&gt;
&lt;br /&gt;
For example changing a feedback loop parameter in the old parameter window will not automatically change this parameter on the DSP.&lt;br /&gt;
Therefore this update command has to be issued afterwards. Allows to set first the new parameters and then update all at the same time on the DSP.&lt;br /&gt;
(low level command)&lt;br /&gt;
&lt;br /&gt;
=== sliderup ===&lt;br /&gt;
&lt;br /&gt;
Parameter : None&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Moves the slider one step up&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
stm.sliderup;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== sliderdown ===&lt;br /&gt;
&lt;br /&gt;
Parameter : None&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Moves the slider one step down&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
stm.sliderdown;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== slider ===&lt;br /&gt;
&lt;br /&gt;
Parameter :&lt;br /&gt;
channel&lt;br /&gt;
direction&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Moves the slider &lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
stm.slider(1,0);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== setdacval ===&lt;br /&gt;
Parameter : &lt;br /&gt;
board 1..2&lt;br /&gt;
channel  0..5&lt;br /&gt;
value   -524288 ..  524287           &lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Sets DAC value of selected channel. Units are DAC Units (20bit)&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
stm.setdacval(1,2,1000);&lt;br /&gt;
&lt;br /&gt;
                &lt;br /&gt;
=== setdacvalf === &lt;br /&gt;
Parameter : &lt;br /&gt;
board 1..2&lt;br /&gt;
channel  0..5&lt;br /&gt;
value   -10.0 .. 10.0          &lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Sets DAC value of selected channel. Units are Volt (float)&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
stm.setdacval(1,2,1.034);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== getadcval ===&lt;br /&gt;
&lt;br /&gt;
Parameter : &lt;br /&gt;
board 1..2&lt;br /&gt;
channel 0..5                &lt;br /&gt;
&lt;br /&gt;
Return:   ADC value of selected channel&lt;br /&gt;
&lt;br /&gt;
Function:  Gets the ADC value. Units are in DAC units (20bit)&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
stm.getadcval(1,2);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== getadcvalf ===&lt;br /&gt;
&lt;br /&gt;
Parameter : &lt;br /&gt;
board 1..2&lt;br /&gt;
channel  0..5               &lt;br /&gt;
&lt;br /&gt;
Return:   ADC value of selected channel&lt;br /&gt;
&lt;br /&gt;
Function:  Gets the ADC value. Units are in Volt&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
stm.getadcvalf(1,2);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== getdacvalfb ===&lt;br /&gt;
 &lt;br /&gt;
Parameter : none              &lt;br /&gt;
&lt;br /&gt;
Return:   Value of z - Dac in Angstroem&lt;br /&gt;
 &lt;br /&gt;
Function:  Gets the Feedback DAC Value &lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
a=stm.getdacvalfb;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== digoutvalue ===&lt;br /&gt;
&lt;br /&gt;
Property Integer          &lt;br /&gt;
&lt;br /&gt;
Function:  Read and write Digital Outputvalue on Board 1&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
i:=stm.digoutvalue;&lt;br /&gt;
&lt;br /&gt;
stm.digoutvalue:=i;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== sbcdigoutvalue ===&lt;br /&gt;
&lt;br /&gt;
Property Integer          &lt;br /&gt;
&lt;br /&gt;
Function:  Read and write digital outputvalue on SBC6711Board&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
i:=stm.sbcdigoutvalue;&lt;br /&gt;
&lt;br /&gt;
stm.sbcdigoutvalue:=i;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== serverneverclose ===&lt;br /&gt;
&lt;br /&gt;
Parameter: None          &lt;br /&gt;
&lt;br /&gt;
Function:  If activated makes sure that the STM Program will not close after the connection to the server is stopped, if the STM program was started by the client.&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
stm.serverneverclose;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== execmethod ===&lt;br /&gt;
&lt;br /&gt;
Parameter: &lt;br /&gt;
Objectname&lt;br /&gt;
Methodname&lt;br /&gt;
&lt;br /&gt;
Return: None&lt;br /&gt;
&lt;br /&gt;
Function:  Execute a specific function in the STM program. Specific debugging use only&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
stm.execmethod('stmafm','Formmemoclick');&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== setxyoffvolt ===&lt;br /&gt;
&lt;br /&gt;
Parameter : &lt;br /&gt;
x: Offset in Volt  Range: (-10.0, +10.0) * HVGainX&lt;br /&gt;
y: Offset in Volt  Range: (-10.0, +10.0) * HVGainY&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Sets a new X_Offset, Y_Offset Value. Units are in Volt &lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
stm.setxyoffsetvolt(12.5,-24.0);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== setxyoffpixel ===&lt;br /&gt;
Parameter : &lt;br /&gt;
x: Offset in Pixel units &lt;br /&gt;
y: Offset in Pixel Units&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Sets a new X_Offset, Y_Offset Value. The new offset is given by a pixel position in the present scanimage.&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
stm.setxypixel(100,78);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== scandatabitmap ===&lt;br /&gt;
&lt;br /&gt;
Parameter : none&lt;br /&gt;
Return:   Array with Scan Channel Bitmap Data&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Function:  Get the the scanimage data as a bitmap.&lt;br /&gt;
The bitmap data is 32bit wide. The bitmap contains all channels.&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
a=stm.scandatabitmap;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== pc32scanstatus ===&lt;br /&gt;
&lt;br /&gt;
Parameter : none&lt;br /&gt;
&lt;br /&gt;
Return:   Scanstatus value on DSP Board&lt;br /&gt;
&lt;br /&gt;
Function:  Gets the scanstatus of the DSP program&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
a=stm.pc32scanstatus;&lt;br /&gt;
&lt;br /&gt;
=== setchmodezoff ===&lt;br /&gt;
&lt;br /&gt;
Parameter : zoffset&lt;br /&gt;
&lt;br /&gt;
Return:   none&lt;br /&gt;
&lt;br /&gt;
Function:  Sets the const height Zoffset value&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
a=stm.setchmodezoff(1.0);&lt;br /&gt;
&lt;br /&gt;
=== stmready ===&lt;br /&gt;
Parameter: none&lt;br /&gt;
Return: stmready  1: ready  0 not ready&lt;br /&gt;
&lt;br /&gt;
Function:  If stmready = 1 then the initialization of the STMAFM program is finshed.&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
&lt;br /&gt;
a= stm.stmready;&lt;br /&gt;
&lt;br /&gt;
=== setrampdspparam ===&lt;br /&gt;
&lt;br /&gt;
Parameter: zheight: single -10 - + 10V, zduration: single, zburst: integer, xyheight:single, xyduration: single, xyburst: integer&lt;br /&gt;
&lt;br /&gt;
Function: Sets the corresponding parameters of the rampcontroller&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
&lt;br /&gt;
stm.setrampdspparam(1.0,0.01,100,2.0,0.02,200)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:stmafm_manual]]&lt;/div&gt;</summary>
		<author><name>Ltspm</name></author>	</entry>

	<entry>
		<id>http://spm-wiki.createc.de/index.php?title=Tip_Heating</id>
		<title>Tip Heating</title>
		<link rel="alternate" type="text/html" href="http://spm-wiki.createc.de/index.php?title=Tip_Heating"/>
				<updated>2015-09-21T12:55:33Z</updated>
		
		<summary type="html">&lt;p&gt;Ltspm: Created page with &amp;quot;== Mechanically transferred tips ==  Here you use a tweezer on a magnetically coupled wobble stick to transfer the tips into and out off the STM. You may use the tip transfer ...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Mechanically transferred tips ==&lt;br /&gt;
&lt;br /&gt;
Here you use a tweezer on a magnetically coupled wobble stick to transfer the tips into and out off the STM. You may use the tip transfer plate with the tip holder inside holding it with the wobble stick above the heater while touching the heater plate with the tip transfer plate. The heater should be negativly charged (-600V) and the heater plate needs to be grounded. This way you may heat a STM tip inside a heatable tip holder until it glows orange. The CCD camera in the video automatically adjusts the brightness all the time, so you see the filament in the beginning and the tip in the end.&lt;br /&gt;
[[:File:SpitzeHeizen_1000V+50mA.mp4]]&lt;/div&gt;</summary>
		<author><name>Ltspm</name></author>	</entry>

	<entry>
		<id>http://spm-wiki.createc.de/index.php?title=File:SpitzeHeizen_1000V%2B50mA.mp4</id>
		<title>File:SpitzeHeizen 1000V+50mA.mp4</title>
		<link rel="alternate" type="text/html" href="http://spm-wiki.createc.de/index.php?title=File:SpitzeHeizen_1000V%2B50mA.mp4"/>
				<updated>2015-09-21T12:55:03Z</updated>
		
		<summary type="html">&lt;p&gt;Ltspm: MsUpload&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;MsUpload&lt;/div&gt;</summary>
		<author><name>Ltspm</name></author>	</entry>

	<entry>
		<id>http://spm-wiki.createc.de/index.php?title=Tip_Preparation</id>
		<title>Tip Preparation</title>
		<link rel="alternate" type="text/html" href="http://spm-wiki.createc.de/index.php?title=Tip_Preparation"/>
				<updated>2015-09-21T12:43:50Z</updated>
		
		<summary type="html">&lt;p&gt;Ltspm: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;#[[Tip Etching]]&lt;br /&gt;
#[[Tip Heating]]&lt;br /&gt;
#[[Tip Reshaping]]&lt;/div&gt;</summary>
		<author><name>Ltspm</name></author>	</entry>

	<entry>
		<id>http://spm-wiki.createc.de/index.php?title=STMAFM_Remote_Operation</id>
		<title>STMAFM Remote Operation</title>
		<link rel="alternate" type="text/html" href="http://spm-wiki.createc.de/index.php?title=STMAFM_Remote_Operation"/>
				<updated>2015-08-05T18:34:30Z</updated>
		
		<summary type="html">&lt;p&gt;Ltspm: /* setrampdspparam */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== OLE/COM Server ==&lt;br /&gt;
&lt;br /&gt;
To register the OLE/COM sever in the stmafm program goto &amp;quot;Debug&amp;quot; and &amp;quot;Register COM Server&amp;quot;. If you are going to install a newer version of the program, please click &amp;quot;Unregister COM Server&amp;quot; before installing the new version. Both has to be done with administrative rights as it requires access to the Windows registry.&lt;br /&gt;
&lt;br /&gt;
You may also run  &amp;quot;pstmafm.exe / regserver&amp;quot; form the command prompt.&lt;br /&gt;
(Alternatively run &amp;quot;pstmafm.exe /regserverperuser&amp;quot; in case you have problems running /regserver in Windows 7)&lt;br /&gt;
Again administrator rights are required.&lt;br /&gt;
&lt;br /&gt;
There are many different software tools available to perform data analysis as well as data aquisition or remote operation of the STMAFM program via OLE/COM: &lt;br /&gt;
&lt;br /&gt;
1. Python (Freeware, please visit http://winpython.sourceforge.net/ for download) we're using WinPython 2.7.x 32bit, 64bit&lt;br /&gt;
&lt;br /&gt;
2. Commercial Software: MatLab / LabView&lt;br /&gt;
&lt;br /&gt;
3. For more specific purposes with a more elaborate user interface Createc can supply dedicated plugin programs. (Contact ltspm@createc.de to solve your specific needs)&lt;br /&gt;
&lt;br /&gt;
For simple scripting purposes, i.e. controlling the program without data analysis a scripter program is can still be used.(e.g. MAXBOX) But for people starting from scratch we recommend using the OLE/COM interface as we will drop the support via the TCPIP interface in future. &lt;br /&gt;
&lt;br /&gt;
Example software will be provided through the Createc WebSite.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Python Connection ==&lt;br /&gt;
&lt;br /&gt;
We recommend to install WinPython 2.7.x and using the IPython Notebook therein. These command will initialize the connection to the STMAFM program. Afterwards you may import / export files using filters from the program and control the complete software&lt;br /&gt;
&lt;br /&gt;
 import win32com.client&lt;br /&gt;
 stm=win32com.client.Dispatch(&amp;quot;pstmafm.stmafmrem&amp;quot;)&lt;br /&gt;
 stm.stmbeep()&lt;br /&gt;
&lt;br /&gt;
== Matlab Connection ==&lt;br /&gt;
&lt;br /&gt;
You can access the pstmafm.stmafm OLE/COM server directly from Matlab (or Freemat using a corresponding dll).&lt;br /&gt;
We recommend controlling the STMAFM program through this interface.&lt;br /&gt;
&lt;br /&gt;
 stm=actxserver('pstmafm.stmafmrem'); %Open connection to STMAFM program, see also Matlab manual.&lt;br /&gt;
 stm.stmbeep; % &lt;br /&gt;
 stm.release; % release stm program&lt;br /&gt;
&lt;br /&gt;
The STMAFM program will be started and closed automatically from Matlab. If the STMAFM program is already running just the connection will be established.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Demo Startstm.m with event capability&lt;br /&gt;
&lt;br /&gt;
 global stm&lt;br /&gt;
 global stm1&lt;br /&gt;
 global linescandata&lt;br /&gt;
 stm=actxserver('pstmafm.stmafmrem');&lt;br /&gt;
 stm1=actxserver('pstmafm.stmafmevent');&lt;br /&gt;
 stm1.registerevent('serverevents');&lt;br /&gt;
 %registerevent: register a file serverevents.m to handle events.&lt;br /&gt;
&lt;br /&gt;
Example: serverevents.m &lt;br /&gt;
&lt;br /&gt;
 function serverevents(varargin)&lt;br /&gt;
 global stmoleeventnr&lt;br /&gt;
 global linescandata&lt;br /&gt;
 global stm&lt;br /&gt;
 stmoleeventnr = cell2mat(varargin(3));&lt;br /&gt;
 linescandata = stm.linescandata; &lt;br /&gt;
 if (stmoleeventnr == 1)&lt;br /&gt;
   plot(linescandata(:,1),linescandata(:,2));&lt;br /&gt;
 end&lt;br /&gt;
&lt;br /&gt;
== Plugins ==&lt;br /&gt;
&lt;br /&gt;
Specifically developed Plugins will be available to supply specific user needs. In particular where a more elaborate graphical user interface is&lt;br /&gt;
necessary compared to a simple text based scripting control.&lt;br /&gt;
&lt;br /&gt;
== Commands ==&lt;br /&gt;
&lt;br /&gt;
=== stmbeep ===&lt;br /&gt;
&lt;br /&gt;
Parameter : None&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  STMAFM program creates a short beep sound.  Used for testing purposes.&lt;br /&gt;
&lt;br /&gt;
=== setparam ===&lt;br /&gt;
&lt;br /&gt;
Parameter : (Strings)&lt;br /&gt;
1. Name of parameter&lt;br /&gt;
2. New Value&lt;br /&gt;
&lt;br /&gt;
Return:   &lt;br /&gt;
&lt;br /&gt;
Function:  Sets a parameter to a new value. The name is the name appearing in the old parameter menue&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
stm.setparam('Rotation','90.00');&lt;br /&gt;
&lt;br /&gt;
=== getparam ===&lt;br /&gt;
&lt;br /&gt;
Parameter : &lt;br /&gt;
1. Name of parameter&lt;br /&gt;
&lt;br /&gt;
Return:   &lt;br /&gt;
1. Value of Parameter&lt;br /&gt;
&lt;br /&gt;
Function:  Gets the actual parameter value. The name is the name appearing the old parameter menue&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
a=stm.getparam('Rotation');&lt;br /&gt;
&lt;br /&gt;
=== scanstart ===&lt;br /&gt;
&lt;br /&gt;
Parameter : None&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Starts a new STM scan.  Similar to pressing the button Scanstart&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== scanwaitfinished ===&lt;br /&gt;
&lt;br /&gt;
Parameter : None&lt;br /&gt;
&lt;br /&gt;
Return:  None&lt;br /&gt;
&lt;br /&gt;
Function:  Waits until the active scan is stopped.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== scanstop ===&lt;br /&gt;
&lt;br /&gt;
Parameter : None&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Stops a running STM scan.  Similar to pressing the button Scanstop&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== scanstatus ===&lt;br /&gt;
&lt;br /&gt;
Parameter : None&lt;br /&gt;
&lt;br /&gt;
Return:    Status Number ( = ord(scanstat) see below)&lt;br /&gt;
&lt;br /&gt;
Function:  Gets the present scanstatus. &lt;br /&gt;
&lt;br /&gt;
scanstat = (scanstatreset, stop, running, start, resetting, pause, scanstatvertman, scanstatlatman, scanstattimespec, scanxyoffset,scanstatapproach);&lt;br /&gt;
&lt;br /&gt;
0, SCANSTATRESET:   		Programm is in idle state&lt;br /&gt;
1, STOP:	            	Running Scan is stopped but is not fully reset yet.&lt;br /&gt;
2, RUNNING:                 	Scan is running&lt;br /&gt;
3, START                      	New Scan is started but not yet running&lt;br /&gt;
4, PAUSE			Running Scan is paused&lt;br /&gt;
5, SCANSTATVERTMAN	VertSpectrum is running&lt;br /&gt;
6, SCANSTATLATMAN		LATManip is running&lt;br /&gt;
7, SCANSTATTIMESPEC	Timespectrum is running&lt;br /&gt;
8, SCANXYOFFSET		XYOffset is running&lt;br /&gt;
9, SCANSTATAPPROACH	Approach is running&lt;br /&gt;
&lt;br /&gt;
=== quicksave ===&lt;br /&gt;
&lt;br /&gt;
Parameter : None&lt;br /&gt;
&lt;br /&gt;
Return:  None&lt;br /&gt;
&lt;br /&gt;
Function:  Saves the current scan file using the default filename. Similar to presisng the Quicksave button&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== filesave ===&lt;br /&gt;
&lt;br /&gt;
Parameter : Filename&lt;br /&gt;
&lt;br /&gt;
Return:  None&lt;br /&gt;
&lt;br /&gt;
Function:  Saves the current scandata file using the  filename as .dat file. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== fileload ===&lt;br /&gt;
&lt;br /&gt;
Parameter : Filename&lt;br /&gt;
&lt;br /&gt;
Return:  None&lt;br /&gt;
&lt;br /&gt;
Function:  Loads a .dat file into the program.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== vertsave ===&lt;br /&gt;
&lt;br /&gt;
Parameter : None&lt;br /&gt;
&lt;br /&gt;
Return:   none&lt;br /&gt;
&lt;br /&gt;
Function:  save present vertspecdata &lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
a=stm.vertsave;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== latsave ===&lt;br /&gt;
Parameter : None&lt;br /&gt;
&lt;br /&gt;
Return:   none&lt;br /&gt;
&lt;br /&gt;
Function:  save present latmanipdata &lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
a=stm.latsave;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== savedatfilename ===&lt;br /&gt;
&lt;br /&gt;
Property String&lt;br /&gt;
&lt;br /&gt;
Parameter : None&lt;br /&gt;
&lt;br /&gt;
Return:  None&lt;br /&gt;
&lt;br /&gt;
Function:  Read and write the default savefilename of .dat files.&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
filename=stm.savedatfilename;&lt;br /&gt;
&lt;br /&gt;
stm.savefilename=filename;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===  loadfilename ===&lt;br /&gt;
&lt;br /&gt;
Property String&lt;br /&gt;
&lt;br /&gt;
Function:  Read and write the default loadfilename of .dat files.&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
filename=stm.loaddatfilename;&lt;br /&gt;
&lt;br /&gt;
stm.loadfilename=filename;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== savevertfilename ===&lt;br /&gt;
&lt;br /&gt;
Property String&lt;br /&gt;
&lt;br /&gt;
Function:  Read and write the default filename of Vertspec  files.&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
filename=stm.savevertfilename;&lt;br /&gt;
&lt;br /&gt;
stm.savevertfilename=filename;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== savelatfilename ===&lt;br /&gt;
&lt;br /&gt;
Property String&lt;br /&gt;
&lt;br /&gt;
Function:  Read and write the default filename of Latmanip  files.&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
filename=stm.savelatfilename;&lt;br /&gt;
&lt;br /&gt;
stm.savelatfilename:=filename;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== btn_vertspec ===&lt;br /&gt;
&lt;br /&gt;
Parameter : &lt;br /&gt;
1. xpos :integer&lt;br /&gt;
2. ypos :integer&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Takes a Vert.Spectrum at image point Xpos,Ypos. (Image pixel coordinates as displayed in the status line of the STMAFM main window) Control is returned after the spectrum has been completely finished&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
stm.btn_vertspec(128,128);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== btn_vertspec_line ===&lt;br /&gt;
&lt;br /&gt;
Parameter : &lt;br /&gt;
1. X coordinate in imagepixels  of start point.&lt;br /&gt;
2  Y coordinate in imagepixels  of start point&lt;br /&gt;
3. X coordinate in imagepixels  of end point&lt;br /&gt;
4. Y coordinate in imagepixels  of end point&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
Function:  Takes a series of Vert.Spectra along a line defined by the start and end image points. (Image pixel coordinates as displayed in the status line of the STMAFM main window)&lt;br /&gt;
Control is returned after the spectra have been completely finished&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
stm.btn_vertspec_line(50,50,100,100);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== btn_vertspec_mult ===&lt;br /&gt;
&lt;br /&gt;
Parameter : 2d Array of X,Y coordinates&lt;br /&gt;
1. X coordinate in imagepixels  of 1.point&lt;br /&gt;
2. Y coordinate in imagepixels  of 1.point&lt;br /&gt;
.......&lt;br /&gt;
&lt;br /&gt;
2n-1. X coordinate in imagepixels  of n.point&lt;br /&gt;
2n. Y coordinate in imagepixels  of n.point&lt;br /&gt;
&lt;br /&gt;
Return:   Ready or Error&lt;br /&gt;
&lt;br /&gt;
Function:  Takes a series of Vert.Spectra defined by a list of image points. (Image pixel coordinates as displayed in the status line of the STMAFM main window). Control is returned after the spectra have been completely finished&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
a=[10,20;50,50;100,100;19,90];&lt;br /&gt;
stm.btn_vertspec_line(a);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== btn_tipform ===&lt;br /&gt;
&lt;br /&gt;
Parameter : &lt;br /&gt;
1. xpos :integer&lt;br /&gt;
2. ypos :integer&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Does a tip forming at image point Xpos,Ypos. (Image pixel coordinates as displayed in the status line of the STMAFM main window). Control is returned after the tip forming has been completely finished&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
stm.btn_tipform(128,128);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== btn_timespec ===&lt;br /&gt;
&lt;br /&gt;
Parameter : none&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Takes a time spectrum&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
stm.btn_timespec;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== scandata ===&lt;br /&gt;
&lt;br /&gt;
Parameter : channel: integer:integer&lt;br /&gt;
&lt;br /&gt;
Return:   Array with Scan Channel Data&lt;br /&gt;
&lt;br /&gt;
Function:  Read single channel of Scan Data &lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
a=stm.scandata(channel);  Presently only DAC units supported&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Channels:&lt;br /&gt;
1:Topography&lt;br /&gt;
2: Current(ADC0)&lt;br /&gt;
3: ADC1&lt;br /&gt;
4: ADC2&lt;br /&gt;
5: ADC3&lt;br /&gt;
6: dI/dV&lt;br /&gt;
7: d2I/dV&lt;br /&gt;
8: df&lt;br /&gt;
9: Damping&lt;br /&gt;
10: Amplitude&lt;br /&gt;
11: CP(DAC1)&lt;br /&gt;
12: AUX1&lt;br /&gt;
&lt;br /&gt;
If backward scanning channels are enabled, these channels are accessed by adding 256 as offset to the channel number above.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== scandatawrite ===&lt;br /&gt;
&lt;br /&gt;
Parameter : &lt;br /&gt;
1. channel: integer:integer&lt;br /&gt;
2. data: Matrix with Scan Channel Data&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Write single channel of Scan Data &lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
stm.scandatawrite(channel, data);     Presently only DAC units supported&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Channels:&lt;br /&gt;
1:Topography&lt;br /&gt;
2: Current(ADC0)&lt;br /&gt;
3: ADC1&lt;br /&gt;
4: ADC2&lt;br /&gt;
5: ADC3&lt;br /&gt;
6: dI/dV&lt;br /&gt;
7: d2I/dV&lt;br /&gt;
8: df&lt;br /&gt;
9: Damping&lt;br /&gt;
10: Amplitude&lt;br /&gt;
11: CP(DAC1)&lt;br /&gt;
12: AUX1&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== scanauxdata ===&lt;br /&gt;
&lt;br /&gt;
Property:   Matrix with Scan Aux channel Data&lt;br /&gt;
&lt;br /&gt;
Function:  Read and  write Scan AUX Data channel&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
a=stm.scanauxdata;  Presently only DAC units supported&lt;br /&gt;
stm.scanauxdata=a;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== openscanchannel ===&lt;br /&gt;
&lt;br /&gt;
Parameter : &lt;br /&gt;
1. channel integer&lt;br /&gt;
2. select :boolean&lt;br /&gt;
&lt;br /&gt;
Return:   none&lt;br /&gt;
&lt;br /&gt;
Function:  Activate specific Scan channel  &lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
a=stm.openscanchannel(channel, true);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===  linescandata ===&lt;br /&gt;
&lt;br /&gt;
Parameter : None&lt;br /&gt;
&lt;br /&gt;
Return:   Array with actual LineScan Data&lt;br /&gt;
&lt;br /&gt;
Function:  Read LineScan Data  &lt;br /&gt;
&lt;br /&gt;
Linescandata can be transferred into the Matlab workspace in a event driven manner. I.e. click the copy OLE/COM server popupmenue field in the Linescan window. This creates an event in Matlab which starts the&lt;br /&gt;
serverevents.m file which transfers the data to Matlab.    &lt;br /&gt;
&lt;br /&gt;
Columns&lt;br /&gt;
1: Distance in Angstrom&lt;br /&gt;
2: Y Values&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
a=stm.linescandata;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== timespecdata ===&lt;br /&gt;
&lt;br /&gt;
Parameter : channel: integer, units: integer&lt;br /&gt;
&lt;br /&gt;
Return:   Vector with Channel Data&lt;br /&gt;
&lt;br /&gt;
Function:  Read Channel Data&lt;br /&gt;
&lt;br /&gt;
Columns&lt;br /&gt;
1: Channel in units&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
a=stm.timespec(3,0);&lt;br /&gt;
&lt;br /&gt;
Channels:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== timespecfftdata ===&lt;br /&gt;
&lt;br /&gt;
Parameter : channel: integer, units: integer&lt;br /&gt;
&lt;br /&gt;
Return:   Vector with Channel Data&lt;br /&gt;
&lt;br /&gt;
Function:  Read Channel Data&lt;br /&gt;
&lt;br /&gt;
Columns&lt;br /&gt;
1: Channel in units&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
a=stm.timespec(3,0);&lt;br /&gt;
&lt;br /&gt;
Channels:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== latmandata ===&lt;br /&gt;
&lt;br /&gt;
Parameter : channel: integer, units: integer&lt;br /&gt;
&lt;br /&gt;
Return:   Vector with Lat manip Channel Data&lt;br /&gt;
&lt;br /&gt;
Function:  Read Lat manip Channel Data&lt;br /&gt;
&lt;br /&gt;
Columns&lt;br /&gt;
1: Channel in units&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
a=stm.latmandata(channel,units);&lt;br /&gt;
&lt;br /&gt;
Channels:&lt;br /&gt;
0: time in sec&lt;br /&gt;
1: X&lt;br /&gt;
2: Y&lt;br /&gt;
3: Current I&lt;br /&gt;
4: dI/dV&lt;br /&gt;
5: d2I/dV&lt;br /&gt;
6: ADC0&lt;br /&gt;
7: ADC1&lt;br /&gt;
8: ADC2&lt;br /&gt;
9: ADC3&lt;br /&gt;
10: df&lt;br /&gt;
11: Damping&lt;br /&gt;
12: Amplitude&lt;br /&gt;
13: di_q&lt;br /&gt;
14: di2_q&lt;br /&gt;
15: Topography(DAC0)&lt;br /&gt;
16: CP(DAC1)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Units:&lt;br /&gt;
0: Default&lt;br /&gt;
1: Volt&lt;br /&gt;
2: DAC&lt;br /&gt;
3: Ampere&lt;br /&gt;
4: nm&lt;br /&gt;
5: Hz&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== vertdata ===&lt;br /&gt;
&lt;br /&gt;
Parameter : channel: integer, units: integer&lt;br /&gt;
&lt;br /&gt;
Return:   Vector with Channel Data&lt;br /&gt;
&lt;br /&gt;
Function:  Read Channel Data&lt;br /&gt;
&lt;br /&gt;
Columns&lt;br /&gt;
1: Channel in units&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
a=stm.vertdata(3,1);&lt;br /&gt;
&lt;br /&gt;
Channels:&lt;br /&gt;
0: time in sec&lt;br /&gt;
1: V&lt;br /&gt;
2: Z&lt;br /&gt;
3: Current I&lt;br /&gt;
4: dI/dV&lt;br /&gt;
5: d2I/dV&lt;br /&gt;
6: ADC0&lt;br /&gt;
7: ADC1&lt;br /&gt;
8: ADC2&lt;br /&gt;
9: ADC3&lt;br /&gt;
10: df&lt;br /&gt;
11: Damping&lt;br /&gt;
12: Amplitude&lt;br /&gt;
13: di_q&lt;br /&gt;
14: di2_q&lt;br /&gt;
15: Topography(DAC0)&lt;br /&gt;
16: CP(DAC1)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Units:&lt;br /&gt;
0: Default&lt;br /&gt;
1: Volt&lt;br /&gt;
2: DAC&lt;br /&gt;
3: Ampere&lt;br /&gt;
4: nm&lt;br /&gt;
5: Hz&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== pllspecdata ===&lt;br /&gt;
&lt;br /&gt;
Parameter : None&lt;br /&gt;
&lt;br /&gt;
Return:   Array with PLL Spectrum Scan Data&lt;br /&gt;
&lt;br /&gt;
Function:  Read PLL Spectrum Scan Data      &lt;br /&gt;
&lt;br /&gt;
Columns&lt;br /&gt;
1: Frequency [Hz]&lt;br /&gt;
2: Amplitude [a.u.]&lt;br /&gt;
3: Phase [Deg]&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
a=stm.pllspecdata;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== strbuffer ===&lt;br /&gt;
&lt;br /&gt;
Property&lt;br /&gt;
&lt;br /&gt;
Parameter : None&lt;br /&gt;
&lt;br /&gt;
Return:   String with all parameters&lt;br /&gt;
&lt;br /&gt;
Function:  Read and write program parameter      &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
s=stm.strbuffer;&lt;br /&gt;
&lt;br /&gt;
stm.strbuffer:=s;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== pllfreqscan ===&lt;br /&gt;
&lt;br /&gt;
Parameter : None&lt;br /&gt;
&lt;br /&gt;
Return:   none&lt;br /&gt;
&lt;br /&gt;
Function:  Start a new PLL Freqeuncy Scan  &lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
a=stm.pllfreqscan;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===  vertspectrum ===&lt;br /&gt;
 &lt;br /&gt;
Parameter : None&lt;br /&gt;
&lt;br /&gt;
Return:   Ready or Error&lt;br /&gt;
&lt;br /&gt;
Function:  Takes a Vert.Spectrum at the current image point X,Y.  Control is returned after the spectrum has been completely finished&lt;br /&gt;
The tip remains at the current lateral position&lt;br /&gt;
(low level command)&lt;br /&gt;
&lt;br /&gt;
=== move_tip ===&lt;br /&gt;
&lt;br /&gt;
Parameter : &lt;br /&gt;
1. X start position in relative DAC units  &lt;br /&gt;
2. Y start position in relative DAC units&lt;br /&gt;
3. X end position in relative DAC units  &lt;br /&gt;
4. Y end position in relative DAC units  &lt;br /&gt;
5. Number steps in which the tip moves from start to endpoint&lt;br /&gt;
6 Delay in DSP cycles between each step&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Move tip to new position. Coordinates are given in relative DAC units (relative: X,Y Offset and rotation are added afterwards)&lt;br /&gt;
Control is returned after the move has been completely finished&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
stm.move_tip(50,50,100,100, 200,100);&lt;br /&gt;
&lt;br /&gt;
=== move_tip_imagecoord ===&lt;br /&gt;
&lt;br /&gt;
Parameter : &lt;br /&gt;
1. X start position in imagepixels  &lt;br /&gt;
2. Y start position in imagepixels  &lt;br /&gt;
3. X end position in imagepixels  &lt;br /&gt;
4. Y end position in imagepixels  &lt;br /&gt;
5. Number steps in which the tip moves from start to endpoint&lt;br /&gt;
6 Delay in DSP cycles between each step&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Move tip to new position (Image pixel coordinates as displayed in the status line of the STMAFM main window)&lt;br /&gt;
Control is returned after the move has been completely finished&lt;br /&gt;
&lt;br /&gt;
Relation between imagepixel coordinates (0&amp;lt;=ximage&amp;lt;nx ,  0&amp;lt;=yimage&amp;lt;ny ) and  relative DAC coordinates (xdac,ydac):&lt;br /&gt;
(Top line in image is ny=0)&lt;br /&gt;
&lt;br /&gt;
xdac:=trunc(ximage*dx - (nx div 2)*dx);&lt;br /&gt;
ydac:=trunc(yimage*dy);&lt;br /&gt;
&lt;br /&gt;
On the DSP a final coordinate transformation is done including rotation, offset and drift correction to calculate the absolute DAC coordinates:&lt;br /&gt;
Using 20bit DACS the values are internal limited to +/- 524272.&lt;br /&gt;
&lt;br /&gt;
xdacabs=  trunc ( - (xdac*rotmxx + ydac*rotmxy + rotoffx-driftxoff));&lt;br /&gt;
ydacabs=  trunc ( - (xdac*rotmyx + ydac*rotmyy + rotoffy-driftyoff));&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
stm.move_tip_imagecoord(50,50,100,100, 200,100);&lt;br /&gt;
&lt;br /&gt;
=== latmanip ===&lt;br /&gt;
&lt;br /&gt;
Parameter : &lt;br /&gt;
1. X coordinate in imagepixels  of start point.&lt;br /&gt;
2  Y coordinate in imagepixels  of start point&lt;br /&gt;
3. X coordinate in imagepixels  of end point&lt;br /&gt;
4. Y coordinate in imagepixels  of end point&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Takes a lateral manipulation along a line defined by the start and end image points. (Image pixel coordinates as displayed in the status line of the STMAFM main window)&lt;br /&gt;
Control is returned after the manipulation has been completely finished&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
stm.latmanip(50,50,100,100);&lt;br /&gt;
&lt;br /&gt;
===  latmanipxymove  ===&lt;br /&gt;
(low level command)&lt;br /&gt;
&lt;br /&gt;
Parameter : &lt;br /&gt;
1. X coordinate  of start point in rel. DAC units.&lt;br /&gt;
2  Y coordinate  of f start point in rel. DAC units.&lt;br /&gt;
3. X coordinate of end point in rel. DAC units.&lt;br /&gt;
4. Y coordinate of end point in rel. DAC units.&lt;br /&gt;
5. Number of steps &lt;br /&gt;
6. Delay between steps in DSP Cycles&lt;br /&gt;
7. Gain of Preamp during manipulation&lt;br /&gt;
8. Bias Voltage during manipulation&lt;br /&gt;
9. Current set point during manipulation in constant current mode&lt;br /&gt;
&lt;br /&gt;
Return:  None&lt;br /&gt;
Function:  &lt;br /&gt;
Takes a lateral manipulation along a line defined by the start and end image points. Coordinates are in relative DAC units.&lt;br /&gt;
Control is returned after the scan has been completely finished. &lt;br /&gt;
&lt;br /&gt;
The recorded data is saved in a file called 'manipxymove.data' placed in the active directory.&lt;br /&gt;
The file contains one line for each step. For each step the selected number of channels are recorded. (See LATMANIP form)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== latmanbufferext ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== lockinstart ===&lt;br /&gt;
&lt;br /&gt;
Parameter : None&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Starts the internal lockin amplifier&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
stm.lockinstart;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== lockinstop ===&lt;br /&gt;
&lt;br /&gt;
Parameter : None&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Stops the internal lockin amplifier&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
stm.lockinstop;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== updatedspparam ===&lt;br /&gt;
&lt;br /&gt;
Parameter: None&lt;br /&gt;
&lt;br /&gt;
Function: Updates all parameters and synchronizes the the parameters with the DSP&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
stm.updatedspparam;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== updatedspfbparam ===&lt;br /&gt;
&lt;br /&gt;
Parameter :  None&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  After changing the parameters this command allows to update/synchronize the parameters with the DSP.&lt;br /&gt;
&lt;br /&gt;
For example changing a feedback loop parameter in the old parameter window will not automatically change this parameter on the DSP.&lt;br /&gt;
Therefore this update command has to be issued afterwards. Allows to set first the new parameters and then update all at the same time on the DSP.&lt;br /&gt;
(low level command)&lt;br /&gt;
&lt;br /&gt;
=== sliderup ===&lt;br /&gt;
&lt;br /&gt;
Parameter : None&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Moves the slider one step up&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
stm.sliderup;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== sliderdown ===&lt;br /&gt;
&lt;br /&gt;
Parameter : None&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Moves the slider one step down&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
stm.sliderdown;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== slider ===&lt;br /&gt;
&lt;br /&gt;
Parameter :&lt;br /&gt;
channel&lt;br /&gt;
direction&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Moves the slider &lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
stm.slider(1,0);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== setdacval ===&lt;br /&gt;
Parameter : &lt;br /&gt;
board 1..2&lt;br /&gt;
channel  0..5&lt;br /&gt;
value   -524288 ..  524287           &lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Sets DAC value of selected channel. Units are DAC Units (20bit)&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
stm.setdacval(1,2,1000);&lt;br /&gt;
&lt;br /&gt;
                &lt;br /&gt;
=== setdacvalf === &lt;br /&gt;
Parameter : &lt;br /&gt;
board 1..2&lt;br /&gt;
channel  0..5&lt;br /&gt;
value   -10.0 .. 10.0          &lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Sets DAC value of selected channel. Units are Volt (float)&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
stm.setdacval(1,2,1.034);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== getadcval ===&lt;br /&gt;
&lt;br /&gt;
Parameter : &lt;br /&gt;
board 1..2&lt;br /&gt;
channel 0..5                &lt;br /&gt;
&lt;br /&gt;
Return:   ADC value of selected channel&lt;br /&gt;
&lt;br /&gt;
Function:  Gets the ADC value. Units are in DAC units (20bit)&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
stm.getadcval(1,2);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== getadcvalf ===&lt;br /&gt;
&lt;br /&gt;
Parameter : &lt;br /&gt;
board 1..2&lt;br /&gt;
channel  0..5               &lt;br /&gt;
&lt;br /&gt;
Return:   ADC value of selected channel&lt;br /&gt;
&lt;br /&gt;
Function:  Gets the ADC value. Units are in Volt&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
stm.getadcvalf(1,2);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== getdacvalfb ===&lt;br /&gt;
 &lt;br /&gt;
Parameter : none              &lt;br /&gt;
&lt;br /&gt;
Return:   Value of z - Dac in Angstroem&lt;br /&gt;
 &lt;br /&gt;
Function:  Gets the Feedback DAC Value &lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
a=stm.getdacvalfb;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== digoutvalue ===&lt;br /&gt;
&lt;br /&gt;
Property Integer          &lt;br /&gt;
&lt;br /&gt;
Function:  Read and write Digital Outputvalue on Board 1&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
i:=stm.digoutvalue;&lt;br /&gt;
&lt;br /&gt;
stm.digoutvalue:=i;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== sbcdigoutvalue ===&lt;br /&gt;
&lt;br /&gt;
Property Integer          &lt;br /&gt;
&lt;br /&gt;
Function:  Read and write digital outputvalue on SBC6711Board&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
i:=stm.sbcdigoutvalue;&lt;br /&gt;
&lt;br /&gt;
stm.sbcdigoutvalue:=i;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== serverneverclose ===&lt;br /&gt;
&lt;br /&gt;
Parameter: None          &lt;br /&gt;
&lt;br /&gt;
Function:  If activated makes sure that the STM Program will not close after the connection to the server is stopped, if the STM program was started by the client.&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
stm.serverneverclose;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== execmethod ===&lt;br /&gt;
&lt;br /&gt;
Parameter: &lt;br /&gt;
Objectname&lt;br /&gt;
Methodname&lt;br /&gt;
&lt;br /&gt;
Return: None&lt;br /&gt;
&lt;br /&gt;
Function:  Execute a specific function in the STM program. Specific debugging use only&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
stm.execmethod('stmafm','Formmemoclick');&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== setxyoffvolt ===&lt;br /&gt;
&lt;br /&gt;
Parameter : &lt;br /&gt;
x: Offset in Volt  Range: (-10.0, +10.0) * HVGainX&lt;br /&gt;
y: Offset in Volt  Range: (-10.0, +10.0) * HVGainY&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Sets a new X_Offset, Y_Offset Value. Units are in Volt &lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
stm.setxyoffsetvolt(12.5,-24.0);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== setxyoffpixel ===&lt;br /&gt;
Parameter : &lt;br /&gt;
x: Offset in Pixel units &lt;br /&gt;
y: Offset in Pixel Units&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Sets a new X_Offset, Y_Offset Value. The new offset is given by a pixel position in the present scanimage.&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
stm.setxypixel(100,78);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== scandatabitmap ===&lt;br /&gt;
&lt;br /&gt;
Parameter : none&lt;br /&gt;
Return:   Array with Scan Channel Bitmap Data&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Function:  Get the the scanimage data as a bitmap.&lt;br /&gt;
The bitmap data is 32bit wide. The bitmap contains all channels.&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
a=stm.scandatabitmap;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== pc32scanstatus ===&lt;br /&gt;
&lt;br /&gt;
Parameter : none&lt;br /&gt;
&lt;br /&gt;
Return:   Scanstatus value on DSP Board&lt;br /&gt;
&lt;br /&gt;
Function:  Gets the scanstatus of the DSP program&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
a=stm.pc32scanstatus;&lt;br /&gt;
&lt;br /&gt;
=== setchmodezoff ===&lt;br /&gt;
&lt;br /&gt;
Parameter : zoffset&lt;br /&gt;
&lt;br /&gt;
Return:   none&lt;br /&gt;
&lt;br /&gt;
Function:  Sets the const height Zoffset value&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
a=stm.setchmodezoff(1.0);&lt;br /&gt;
&lt;br /&gt;
=== stmready ===&lt;br /&gt;
Parameter: none&lt;br /&gt;
Return: stmready  1: ready  0 not ready&lt;br /&gt;
&lt;br /&gt;
Function:  If stmready = 1 then the initialization of the STMAFM program is finshed.&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
&lt;br /&gt;
a= stm.stmready;&lt;br /&gt;
&lt;br /&gt;
=== setrampdspparam ===&lt;br /&gt;
&lt;br /&gt;
Parameter: zheight: single -10 - + 10V, zduration: single, zburst: integer, xyheight:single, xyduration: single, xyburst: integer&lt;br /&gt;
&lt;br /&gt;
Function: Sets the corresponding parameters of the rampcontroller&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
&lt;br /&gt;
stm.setrampdspparam(1.0,0.01,100,2.0,0.02,200)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:stmafm_manual]]&lt;/div&gt;</summary>
		<author><name>Ltspm</name></author>	</entry>

	<entry>
		<id>http://spm-wiki.createc.de/index.php?title=STMAFM_Remote_Operation</id>
		<title>STMAFM Remote Operation</title>
		<link rel="alternate" type="text/html" href="http://spm-wiki.createc.de/index.php?title=STMAFM_Remote_Operation"/>
				<updated>2015-08-05T18:33:20Z</updated>
		
		<summary type="html">&lt;p&gt;Ltspm: /* setrampdspparam */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== OLE/COM Server ==&lt;br /&gt;
&lt;br /&gt;
To register the OLE/COM sever in the stmafm program goto &amp;quot;Debug&amp;quot; and &amp;quot;Register COM Server&amp;quot;. If you are going to install a newer version of the program, please click &amp;quot;Unregister COM Server&amp;quot; before installing the new version. Both has to be done with administrative rights as it requires access to the Windows registry.&lt;br /&gt;
&lt;br /&gt;
You may also run  &amp;quot;pstmafm.exe / regserver&amp;quot; form the command prompt.&lt;br /&gt;
(Alternatively run &amp;quot;pstmafm.exe /regserverperuser&amp;quot; in case you have problems running /regserver in Windows 7)&lt;br /&gt;
Again administrator rights are required.&lt;br /&gt;
&lt;br /&gt;
There are many different software tools available to perform data analysis as well as data aquisition or remote operation of the STMAFM program via OLE/COM: &lt;br /&gt;
&lt;br /&gt;
1. Python (Freeware, please visit http://winpython.sourceforge.net/ for download) we're using WinPython 2.7.x 32bit, 64bit&lt;br /&gt;
&lt;br /&gt;
2. Commercial Software: MatLab / LabView&lt;br /&gt;
&lt;br /&gt;
3. For more specific purposes with a more elaborate user interface Createc can supply dedicated plugin programs. (Contact ltspm@createc.de to solve your specific needs)&lt;br /&gt;
&lt;br /&gt;
For simple scripting purposes, i.e. controlling the program without data analysis a scripter program is can still be used.(e.g. MAXBOX) But for people starting from scratch we recommend using the OLE/COM interface as we will drop the support via the TCPIP interface in future. &lt;br /&gt;
&lt;br /&gt;
Example software will be provided through the Createc WebSite.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Python Connection ==&lt;br /&gt;
&lt;br /&gt;
We recommend to install WinPython 2.7.x and using the IPython Notebook therein. These command will initialize the connection to the STMAFM program. Afterwards you may import / export files using filters from the program and control the complete software&lt;br /&gt;
&lt;br /&gt;
 import win32com.client&lt;br /&gt;
 stm=win32com.client.Dispatch(&amp;quot;pstmafm.stmafmrem&amp;quot;)&lt;br /&gt;
 stm.stmbeep()&lt;br /&gt;
&lt;br /&gt;
== Matlab Connection ==&lt;br /&gt;
&lt;br /&gt;
You can access the pstmafm.stmafm OLE/COM server directly from Matlab (or Freemat using a corresponding dll).&lt;br /&gt;
We recommend controlling the STMAFM program through this interface.&lt;br /&gt;
&lt;br /&gt;
 stm=actxserver('pstmafm.stmafmrem'); %Open connection to STMAFM program, see also Matlab manual.&lt;br /&gt;
 stm.stmbeep; % &lt;br /&gt;
 stm.release; % release stm program&lt;br /&gt;
&lt;br /&gt;
The STMAFM program will be started and closed automatically from Matlab. If the STMAFM program is already running just the connection will be established.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Demo Startstm.m with event capability&lt;br /&gt;
&lt;br /&gt;
 global stm&lt;br /&gt;
 global stm1&lt;br /&gt;
 global linescandata&lt;br /&gt;
 stm=actxserver('pstmafm.stmafmrem');&lt;br /&gt;
 stm1=actxserver('pstmafm.stmafmevent');&lt;br /&gt;
 stm1.registerevent('serverevents');&lt;br /&gt;
 %registerevent: register a file serverevents.m to handle events.&lt;br /&gt;
&lt;br /&gt;
Example: serverevents.m &lt;br /&gt;
&lt;br /&gt;
 function serverevents(varargin)&lt;br /&gt;
 global stmoleeventnr&lt;br /&gt;
 global linescandata&lt;br /&gt;
 global stm&lt;br /&gt;
 stmoleeventnr = cell2mat(varargin(3));&lt;br /&gt;
 linescandata = stm.linescandata; &lt;br /&gt;
 if (stmoleeventnr == 1)&lt;br /&gt;
   plot(linescandata(:,1),linescandata(:,2));&lt;br /&gt;
 end&lt;br /&gt;
&lt;br /&gt;
== Plugins ==&lt;br /&gt;
&lt;br /&gt;
Specifically developed Plugins will be available to supply specific user needs. In particular where a more elaborate graphical user interface is&lt;br /&gt;
necessary compared to a simple text based scripting control.&lt;br /&gt;
&lt;br /&gt;
== Commands ==&lt;br /&gt;
&lt;br /&gt;
=== stmbeep ===&lt;br /&gt;
&lt;br /&gt;
Parameter : None&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  STMAFM program creates a short beep sound.  Used for testing purposes.&lt;br /&gt;
&lt;br /&gt;
=== setparam ===&lt;br /&gt;
&lt;br /&gt;
Parameter : (Strings)&lt;br /&gt;
1. Name of parameter&lt;br /&gt;
2. New Value&lt;br /&gt;
&lt;br /&gt;
Return:   &lt;br /&gt;
&lt;br /&gt;
Function:  Sets a parameter to a new value. The name is the name appearing in the old parameter menue&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
stm.setparam('Rotation','90.00');&lt;br /&gt;
&lt;br /&gt;
=== getparam ===&lt;br /&gt;
&lt;br /&gt;
Parameter : &lt;br /&gt;
1. Name of parameter&lt;br /&gt;
&lt;br /&gt;
Return:   &lt;br /&gt;
1. Value of Parameter&lt;br /&gt;
&lt;br /&gt;
Function:  Gets the actual parameter value. The name is the name appearing the old parameter menue&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
a=stm.getparam('Rotation');&lt;br /&gt;
&lt;br /&gt;
=== scanstart ===&lt;br /&gt;
&lt;br /&gt;
Parameter : None&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Starts a new STM scan.  Similar to pressing the button Scanstart&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== scanwaitfinished ===&lt;br /&gt;
&lt;br /&gt;
Parameter : None&lt;br /&gt;
&lt;br /&gt;
Return:  None&lt;br /&gt;
&lt;br /&gt;
Function:  Waits until the active scan is stopped.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== scanstop ===&lt;br /&gt;
&lt;br /&gt;
Parameter : None&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Stops a running STM scan.  Similar to pressing the button Scanstop&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== scanstatus ===&lt;br /&gt;
&lt;br /&gt;
Parameter : None&lt;br /&gt;
&lt;br /&gt;
Return:    Status Number ( = ord(scanstat) see below)&lt;br /&gt;
&lt;br /&gt;
Function:  Gets the present scanstatus. &lt;br /&gt;
&lt;br /&gt;
scanstat = (scanstatreset, stop, running, start, resetting, pause, scanstatvertman, scanstatlatman, scanstattimespec, scanxyoffset,scanstatapproach);&lt;br /&gt;
&lt;br /&gt;
0, SCANSTATRESET:   		Programm is in idle state&lt;br /&gt;
1, STOP:	            	Running Scan is stopped but is not fully reset yet.&lt;br /&gt;
2, RUNNING:                 	Scan is running&lt;br /&gt;
3, START                      	New Scan is started but not yet running&lt;br /&gt;
4, PAUSE			Running Scan is paused&lt;br /&gt;
5, SCANSTATVERTMAN	VertSpectrum is running&lt;br /&gt;
6, SCANSTATLATMAN		LATManip is running&lt;br /&gt;
7, SCANSTATTIMESPEC	Timespectrum is running&lt;br /&gt;
8, SCANXYOFFSET		XYOffset is running&lt;br /&gt;
9, SCANSTATAPPROACH	Approach is running&lt;br /&gt;
&lt;br /&gt;
=== quicksave ===&lt;br /&gt;
&lt;br /&gt;
Parameter : None&lt;br /&gt;
&lt;br /&gt;
Return:  None&lt;br /&gt;
&lt;br /&gt;
Function:  Saves the current scan file using the default filename. Similar to presisng the Quicksave button&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== filesave ===&lt;br /&gt;
&lt;br /&gt;
Parameter : Filename&lt;br /&gt;
&lt;br /&gt;
Return:  None&lt;br /&gt;
&lt;br /&gt;
Function:  Saves the current scandata file using the  filename as .dat file. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== fileload ===&lt;br /&gt;
&lt;br /&gt;
Parameter : Filename&lt;br /&gt;
&lt;br /&gt;
Return:  None&lt;br /&gt;
&lt;br /&gt;
Function:  Loads a .dat file into the program.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== vertsave ===&lt;br /&gt;
&lt;br /&gt;
Parameter : None&lt;br /&gt;
&lt;br /&gt;
Return:   none&lt;br /&gt;
&lt;br /&gt;
Function:  save present vertspecdata &lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
a=stm.vertsave;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== latsave ===&lt;br /&gt;
Parameter : None&lt;br /&gt;
&lt;br /&gt;
Return:   none&lt;br /&gt;
&lt;br /&gt;
Function:  save present latmanipdata &lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
a=stm.latsave;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== savedatfilename ===&lt;br /&gt;
&lt;br /&gt;
Property String&lt;br /&gt;
&lt;br /&gt;
Parameter : None&lt;br /&gt;
&lt;br /&gt;
Return:  None&lt;br /&gt;
&lt;br /&gt;
Function:  Read and write the default savefilename of .dat files.&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
filename=stm.savedatfilename;&lt;br /&gt;
&lt;br /&gt;
stm.savefilename=filename;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===  loadfilename ===&lt;br /&gt;
&lt;br /&gt;
Property String&lt;br /&gt;
&lt;br /&gt;
Function:  Read and write the default loadfilename of .dat files.&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
filename=stm.loaddatfilename;&lt;br /&gt;
&lt;br /&gt;
stm.loadfilename=filename;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== savevertfilename ===&lt;br /&gt;
&lt;br /&gt;
Property String&lt;br /&gt;
&lt;br /&gt;
Function:  Read and write the default filename of Vertspec  files.&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
filename=stm.savevertfilename;&lt;br /&gt;
&lt;br /&gt;
stm.savevertfilename=filename;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== savelatfilename ===&lt;br /&gt;
&lt;br /&gt;
Property String&lt;br /&gt;
&lt;br /&gt;
Function:  Read and write the default filename of Latmanip  files.&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
filename=stm.savelatfilename;&lt;br /&gt;
&lt;br /&gt;
stm.savelatfilename:=filename;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== btn_vertspec ===&lt;br /&gt;
&lt;br /&gt;
Parameter : &lt;br /&gt;
1. xpos :integer&lt;br /&gt;
2. ypos :integer&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Takes a Vert.Spectrum at image point Xpos,Ypos. (Image pixel coordinates as displayed in the status line of the STMAFM main window) Control is returned after the spectrum has been completely finished&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
stm.btn_vertspec(128,128);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== btn_vertspec_line ===&lt;br /&gt;
&lt;br /&gt;
Parameter : &lt;br /&gt;
1. X coordinate in imagepixels  of start point.&lt;br /&gt;
2  Y coordinate in imagepixels  of start point&lt;br /&gt;
3. X coordinate in imagepixels  of end point&lt;br /&gt;
4. Y coordinate in imagepixels  of end point&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
Function:  Takes a series of Vert.Spectra along a line defined by the start and end image points. (Image pixel coordinates as displayed in the status line of the STMAFM main window)&lt;br /&gt;
Control is returned after the spectra have been completely finished&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
stm.btn_vertspec_line(50,50,100,100);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== btn_vertspec_mult ===&lt;br /&gt;
&lt;br /&gt;
Parameter : 2d Array of X,Y coordinates&lt;br /&gt;
1. X coordinate in imagepixels  of 1.point&lt;br /&gt;
2. Y coordinate in imagepixels  of 1.point&lt;br /&gt;
.......&lt;br /&gt;
&lt;br /&gt;
2n-1. X coordinate in imagepixels  of n.point&lt;br /&gt;
2n. Y coordinate in imagepixels  of n.point&lt;br /&gt;
&lt;br /&gt;
Return:   Ready or Error&lt;br /&gt;
&lt;br /&gt;
Function:  Takes a series of Vert.Spectra defined by a list of image points. (Image pixel coordinates as displayed in the status line of the STMAFM main window). Control is returned after the spectra have been completely finished&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
a=[10,20;50,50;100,100;19,90];&lt;br /&gt;
stm.btn_vertspec_line(a);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== btn_tipform ===&lt;br /&gt;
&lt;br /&gt;
Parameter : &lt;br /&gt;
1. xpos :integer&lt;br /&gt;
2. ypos :integer&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Does a tip forming at image point Xpos,Ypos. (Image pixel coordinates as displayed in the status line of the STMAFM main window). Control is returned after the tip forming has been completely finished&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
stm.btn_tipform(128,128);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== btn_timespec ===&lt;br /&gt;
&lt;br /&gt;
Parameter : none&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Takes a time spectrum&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
stm.btn_timespec;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== scandata ===&lt;br /&gt;
&lt;br /&gt;
Parameter : channel: integer:integer&lt;br /&gt;
&lt;br /&gt;
Return:   Array with Scan Channel Data&lt;br /&gt;
&lt;br /&gt;
Function:  Read single channel of Scan Data &lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
a=stm.scandata(channel);  Presently only DAC units supported&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Channels:&lt;br /&gt;
1:Topography&lt;br /&gt;
2: Current(ADC0)&lt;br /&gt;
3: ADC1&lt;br /&gt;
4: ADC2&lt;br /&gt;
5: ADC3&lt;br /&gt;
6: dI/dV&lt;br /&gt;
7: d2I/dV&lt;br /&gt;
8: df&lt;br /&gt;
9: Damping&lt;br /&gt;
10: Amplitude&lt;br /&gt;
11: CP(DAC1)&lt;br /&gt;
12: AUX1&lt;br /&gt;
&lt;br /&gt;
If backward scanning channels are enabled, these channels are accessed by adding 256 as offset to the channel number above.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== scandatawrite ===&lt;br /&gt;
&lt;br /&gt;
Parameter : &lt;br /&gt;
1. channel: integer:integer&lt;br /&gt;
2. data: Matrix with Scan Channel Data&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Write single channel of Scan Data &lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
stm.scandatawrite(channel, data);     Presently only DAC units supported&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Channels:&lt;br /&gt;
1:Topography&lt;br /&gt;
2: Current(ADC0)&lt;br /&gt;
3: ADC1&lt;br /&gt;
4: ADC2&lt;br /&gt;
5: ADC3&lt;br /&gt;
6: dI/dV&lt;br /&gt;
7: d2I/dV&lt;br /&gt;
8: df&lt;br /&gt;
9: Damping&lt;br /&gt;
10: Amplitude&lt;br /&gt;
11: CP(DAC1)&lt;br /&gt;
12: AUX1&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== scanauxdata ===&lt;br /&gt;
&lt;br /&gt;
Property:   Matrix with Scan Aux channel Data&lt;br /&gt;
&lt;br /&gt;
Function:  Read and  write Scan AUX Data channel&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
a=stm.scanauxdata;  Presently only DAC units supported&lt;br /&gt;
stm.scanauxdata=a;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== openscanchannel ===&lt;br /&gt;
&lt;br /&gt;
Parameter : &lt;br /&gt;
1. channel integer&lt;br /&gt;
2. select :boolean&lt;br /&gt;
&lt;br /&gt;
Return:   none&lt;br /&gt;
&lt;br /&gt;
Function:  Activate specific Scan channel  &lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
a=stm.openscanchannel(channel, true);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===  linescandata ===&lt;br /&gt;
&lt;br /&gt;
Parameter : None&lt;br /&gt;
&lt;br /&gt;
Return:   Array with actual LineScan Data&lt;br /&gt;
&lt;br /&gt;
Function:  Read LineScan Data  &lt;br /&gt;
&lt;br /&gt;
Linescandata can be transferred into the Matlab workspace in a event driven manner. I.e. click the copy OLE/COM server popupmenue field in the Linescan window. This creates an event in Matlab which starts the&lt;br /&gt;
serverevents.m file which transfers the data to Matlab.    &lt;br /&gt;
&lt;br /&gt;
Columns&lt;br /&gt;
1: Distance in Angstrom&lt;br /&gt;
2: Y Values&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
a=stm.linescandata;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== timespecdata ===&lt;br /&gt;
&lt;br /&gt;
Parameter : channel: integer, units: integer&lt;br /&gt;
&lt;br /&gt;
Return:   Vector with Channel Data&lt;br /&gt;
&lt;br /&gt;
Function:  Read Channel Data&lt;br /&gt;
&lt;br /&gt;
Columns&lt;br /&gt;
1: Channel in units&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
a=stm.timespec(3,0);&lt;br /&gt;
&lt;br /&gt;
Channels:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== timespecfftdata ===&lt;br /&gt;
&lt;br /&gt;
Parameter : channel: integer, units: integer&lt;br /&gt;
&lt;br /&gt;
Return:   Vector with Channel Data&lt;br /&gt;
&lt;br /&gt;
Function:  Read Channel Data&lt;br /&gt;
&lt;br /&gt;
Columns&lt;br /&gt;
1: Channel in units&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
a=stm.timespec(3,0);&lt;br /&gt;
&lt;br /&gt;
Channels:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== latmandata ===&lt;br /&gt;
&lt;br /&gt;
Parameter : channel: integer, units: integer&lt;br /&gt;
&lt;br /&gt;
Return:   Vector with Lat manip Channel Data&lt;br /&gt;
&lt;br /&gt;
Function:  Read Lat manip Channel Data&lt;br /&gt;
&lt;br /&gt;
Columns&lt;br /&gt;
1: Channel in units&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
a=stm.latmandata(channel,units);&lt;br /&gt;
&lt;br /&gt;
Channels:&lt;br /&gt;
0: time in sec&lt;br /&gt;
1: X&lt;br /&gt;
2: Y&lt;br /&gt;
3: Current I&lt;br /&gt;
4: dI/dV&lt;br /&gt;
5: d2I/dV&lt;br /&gt;
6: ADC0&lt;br /&gt;
7: ADC1&lt;br /&gt;
8: ADC2&lt;br /&gt;
9: ADC3&lt;br /&gt;
10: df&lt;br /&gt;
11: Damping&lt;br /&gt;
12: Amplitude&lt;br /&gt;
13: di_q&lt;br /&gt;
14: di2_q&lt;br /&gt;
15: Topography(DAC0)&lt;br /&gt;
16: CP(DAC1)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Units:&lt;br /&gt;
0: Default&lt;br /&gt;
1: Volt&lt;br /&gt;
2: DAC&lt;br /&gt;
3: Ampere&lt;br /&gt;
4: nm&lt;br /&gt;
5: Hz&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== vertdata ===&lt;br /&gt;
&lt;br /&gt;
Parameter : channel: integer, units: integer&lt;br /&gt;
&lt;br /&gt;
Return:   Vector with Channel Data&lt;br /&gt;
&lt;br /&gt;
Function:  Read Channel Data&lt;br /&gt;
&lt;br /&gt;
Columns&lt;br /&gt;
1: Channel in units&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
a=stm.vertdata(3,1);&lt;br /&gt;
&lt;br /&gt;
Channels:&lt;br /&gt;
0: time in sec&lt;br /&gt;
1: V&lt;br /&gt;
2: Z&lt;br /&gt;
3: Current I&lt;br /&gt;
4: dI/dV&lt;br /&gt;
5: d2I/dV&lt;br /&gt;
6: ADC0&lt;br /&gt;
7: ADC1&lt;br /&gt;
8: ADC2&lt;br /&gt;
9: ADC3&lt;br /&gt;
10: df&lt;br /&gt;
11: Damping&lt;br /&gt;
12: Amplitude&lt;br /&gt;
13: di_q&lt;br /&gt;
14: di2_q&lt;br /&gt;
15: Topography(DAC0)&lt;br /&gt;
16: CP(DAC1)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Units:&lt;br /&gt;
0: Default&lt;br /&gt;
1: Volt&lt;br /&gt;
2: DAC&lt;br /&gt;
3: Ampere&lt;br /&gt;
4: nm&lt;br /&gt;
5: Hz&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== pllspecdata ===&lt;br /&gt;
&lt;br /&gt;
Parameter : None&lt;br /&gt;
&lt;br /&gt;
Return:   Array with PLL Spectrum Scan Data&lt;br /&gt;
&lt;br /&gt;
Function:  Read PLL Spectrum Scan Data      &lt;br /&gt;
&lt;br /&gt;
Columns&lt;br /&gt;
1: Frequency [Hz]&lt;br /&gt;
2: Amplitude [a.u.]&lt;br /&gt;
3: Phase [Deg]&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
a=stm.pllspecdata;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== strbuffer ===&lt;br /&gt;
&lt;br /&gt;
Property&lt;br /&gt;
&lt;br /&gt;
Parameter : None&lt;br /&gt;
&lt;br /&gt;
Return:   String with all parameters&lt;br /&gt;
&lt;br /&gt;
Function:  Read and write program parameter      &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
s=stm.strbuffer;&lt;br /&gt;
&lt;br /&gt;
stm.strbuffer:=s;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== pllfreqscan ===&lt;br /&gt;
&lt;br /&gt;
Parameter : None&lt;br /&gt;
&lt;br /&gt;
Return:   none&lt;br /&gt;
&lt;br /&gt;
Function:  Start a new PLL Freqeuncy Scan  &lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
a=stm.pllfreqscan;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===  vertspectrum ===&lt;br /&gt;
 &lt;br /&gt;
Parameter : None&lt;br /&gt;
&lt;br /&gt;
Return:   Ready or Error&lt;br /&gt;
&lt;br /&gt;
Function:  Takes a Vert.Spectrum at the current image point X,Y.  Control is returned after the spectrum has been completely finished&lt;br /&gt;
The tip remains at the current lateral position&lt;br /&gt;
(low level command)&lt;br /&gt;
&lt;br /&gt;
=== move_tip ===&lt;br /&gt;
&lt;br /&gt;
Parameter : &lt;br /&gt;
1. X start position in relative DAC units  &lt;br /&gt;
2. Y start position in relative DAC units&lt;br /&gt;
3. X end position in relative DAC units  &lt;br /&gt;
4. Y end position in relative DAC units  &lt;br /&gt;
5. Number steps in which the tip moves from start to endpoint&lt;br /&gt;
6 Delay in DSP cycles between each step&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Move tip to new position. Coordinates are given in relative DAC units (relative: X,Y Offset and rotation are added afterwards)&lt;br /&gt;
Control is returned after the move has been completely finished&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
stm.move_tip(50,50,100,100, 200,100);&lt;br /&gt;
&lt;br /&gt;
=== move_tip_imagecoord ===&lt;br /&gt;
&lt;br /&gt;
Parameter : &lt;br /&gt;
1. X start position in imagepixels  &lt;br /&gt;
2. Y start position in imagepixels  &lt;br /&gt;
3. X end position in imagepixels  &lt;br /&gt;
4. Y end position in imagepixels  &lt;br /&gt;
5. Number steps in which the tip moves from start to endpoint&lt;br /&gt;
6 Delay in DSP cycles between each step&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Move tip to new position (Image pixel coordinates as displayed in the status line of the STMAFM main window)&lt;br /&gt;
Control is returned after the move has been completely finished&lt;br /&gt;
&lt;br /&gt;
Relation between imagepixel coordinates (0&amp;lt;=ximage&amp;lt;nx ,  0&amp;lt;=yimage&amp;lt;ny ) and  relative DAC coordinates (xdac,ydac):&lt;br /&gt;
(Top line in image is ny=0)&lt;br /&gt;
&lt;br /&gt;
xdac:=trunc(ximage*dx - (nx div 2)*dx);&lt;br /&gt;
ydac:=trunc(yimage*dy);&lt;br /&gt;
&lt;br /&gt;
On the DSP a final coordinate transformation is done including rotation, offset and drift correction to calculate the absolute DAC coordinates:&lt;br /&gt;
Using 20bit DACS the values are internal limited to +/- 524272.&lt;br /&gt;
&lt;br /&gt;
xdacabs=  trunc ( - (xdac*rotmxx + ydac*rotmxy + rotoffx-driftxoff));&lt;br /&gt;
ydacabs=  trunc ( - (xdac*rotmyx + ydac*rotmyy + rotoffy-driftyoff));&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
stm.move_tip_imagecoord(50,50,100,100, 200,100);&lt;br /&gt;
&lt;br /&gt;
=== latmanip ===&lt;br /&gt;
&lt;br /&gt;
Parameter : &lt;br /&gt;
1. X coordinate in imagepixels  of start point.&lt;br /&gt;
2  Y coordinate in imagepixels  of start point&lt;br /&gt;
3. X coordinate in imagepixels  of end point&lt;br /&gt;
4. Y coordinate in imagepixels  of end point&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Takes a lateral manipulation along a line defined by the start and end image points. (Image pixel coordinates as displayed in the status line of the STMAFM main window)&lt;br /&gt;
Control is returned after the manipulation has been completely finished&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
stm.latmanip(50,50,100,100);&lt;br /&gt;
&lt;br /&gt;
===  latmanipxymove  ===&lt;br /&gt;
(low level command)&lt;br /&gt;
&lt;br /&gt;
Parameter : &lt;br /&gt;
1. X coordinate  of start point in rel. DAC units.&lt;br /&gt;
2  Y coordinate  of f start point in rel. DAC units.&lt;br /&gt;
3. X coordinate of end point in rel. DAC units.&lt;br /&gt;
4. Y coordinate of end point in rel. DAC units.&lt;br /&gt;
5. Number of steps &lt;br /&gt;
6. Delay between steps in DSP Cycles&lt;br /&gt;
7. Gain of Preamp during manipulation&lt;br /&gt;
8. Bias Voltage during manipulation&lt;br /&gt;
9. Current set point during manipulation in constant current mode&lt;br /&gt;
&lt;br /&gt;
Return:  None&lt;br /&gt;
Function:  &lt;br /&gt;
Takes a lateral manipulation along a line defined by the start and end image points. Coordinates are in relative DAC units.&lt;br /&gt;
Control is returned after the scan has been completely finished. &lt;br /&gt;
&lt;br /&gt;
The recorded data is saved in a file called 'manipxymove.data' placed in the active directory.&lt;br /&gt;
The file contains one line for each step. For each step the selected number of channels are recorded. (See LATMANIP form)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== latmanbufferext ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== lockinstart ===&lt;br /&gt;
&lt;br /&gt;
Parameter : None&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Starts the internal lockin amplifier&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
stm.lockinstart;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== lockinstop ===&lt;br /&gt;
&lt;br /&gt;
Parameter : None&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Stops the internal lockin amplifier&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
stm.lockinstop;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== updatedspparam ===&lt;br /&gt;
&lt;br /&gt;
Parameter: None&lt;br /&gt;
&lt;br /&gt;
Function: Updates all parameters and synchronizes the the parameters with the DSP&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
stm.updatedspparam;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== updatedspfbparam ===&lt;br /&gt;
&lt;br /&gt;
Parameter :  None&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  After changing the parameters this command allows to update/synchronize the parameters with the DSP.&lt;br /&gt;
&lt;br /&gt;
For example changing a feedback loop parameter in the old parameter window will not automatically change this parameter on the DSP.&lt;br /&gt;
Therefore this update command has to be issued afterwards. Allows to set first the new parameters and then update all at the same time on the DSP.&lt;br /&gt;
(low level command)&lt;br /&gt;
&lt;br /&gt;
=== sliderup ===&lt;br /&gt;
&lt;br /&gt;
Parameter : None&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Moves the slider one step up&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
stm.sliderup;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== sliderdown ===&lt;br /&gt;
&lt;br /&gt;
Parameter : None&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Moves the slider one step down&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
stm.sliderdown;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== slider ===&lt;br /&gt;
&lt;br /&gt;
Parameter :&lt;br /&gt;
channel&lt;br /&gt;
direction&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Moves the slider &lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
stm.slider(1,0);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== setdacval ===&lt;br /&gt;
Parameter : &lt;br /&gt;
board 1..2&lt;br /&gt;
channel  0..5&lt;br /&gt;
value   -524288 ..  524287           &lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Sets DAC value of selected channel. Units are DAC Units (20bit)&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
stm.setdacval(1,2,1000);&lt;br /&gt;
&lt;br /&gt;
                &lt;br /&gt;
=== setdacvalf === &lt;br /&gt;
Parameter : &lt;br /&gt;
board 1..2&lt;br /&gt;
channel  0..5&lt;br /&gt;
value   -10.0 .. 10.0          &lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Sets DAC value of selected channel. Units are Volt (float)&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
stm.setdacval(1,2,1.034);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== getadcval ===&lt;br /&gt;
&lt;br /&gt;
Parameter : &lt;br /&gt;
board 1..2&lt;br /&gt;
channel 0..5                &lt;br /&gt;
&lt;br /&gt;
Return:   ADC value of selected channel&lt;br /&gt;
&lt;br /&gt;
Function:  Gets the ADC value. Units are in DAC units (20bit)&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
stm.getadcval(1,2);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== getadcvalf ===&lt;br /&gt;
&lt;br /&gt;
Parameter : &lt;br /&gt;
board 1..2&lt;br /&gt;
channel  0..5               &lt;br /&gt;
&lt;br /&gt;
Return:   ADC value of selected channel&lt;br /&gt;
&lt;br /&gt;
Function:  Gets the ADC value. Units are in Volt&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
stm.getadcvalf(1,2);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== getdacvalfb ===&lt;br /&gt;
 &lt;br /&gt;
Parameter : none              &lt;br /&gt;
&lt;br /&gt;
Return:   Value of z - Dac in Angstroem&lt;br /&gt;
 &lt;br /&gt;
Function:  Gets the Feedback DAC Value &lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
a=stm.getdacvalfb;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== digoutvalue ===&lt;br /&gt;
&lt;br /&gt;
Property Integer          &lt;br /&gt;
&lt;br /&gt;
Function:  Read and write Digital Outputvalue on Board 1&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
i:=stm.digoutvalue;&lt;br /&gt;
&lt;br /&gt;
stm.digoutvalue:=i;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== sbcdigoutvalue ===&lt;br /&gt;
&lt;br /&gt;
Property Integer          &lt;br /&gt;
&lt;br /&gt;
Function:  Read and write digital outputvalue on SBC6711Board&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
i:=stm.sbcdigoutvalue;&lt;br /&gt;
&lt;br /&gt;
stm.sbcdigoutvalue:=i;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== serverneverclose ===&lt;br /&gt;
&lt;br /&gt;
Parameter: None          &lt;br /&gt;
&lt;br /&gt;
Function:  If activated makes sure that the STM Program will not close after the connection to the server is stopped, if the STM program was started by the client.&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
stm.serverneverclose;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== execmethod ===&lt;br /&gt;
&lt;br /&gt;
Parameter: &lt;br /&gt;
Objectname&lt;br /&gt;
Methodname&lt;br /&gt;
&lt;br /&gt;
Return: None&lt;br /&gt;
&lt;br /&gt;
Function:  Execute a specific function in the STM program. Specific debugging use only&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
stm.execmethod('stmafm','Formmemoclick');&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== setxyoffvolt ===&lt;br /&gt;
&lt;br /&gt;
Parameter : &lt;br /&gt;
x: Offset in Volt  Range: (-10.0, +10.0) * HVGainX&lt;br /&gt;
y: Offset in Volt  Range: (-10.0, +10.0) * HVGainY&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Sets a new X_Offset, Y_Offset Value. Units are in Volt &lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
stm.setxyoffsetvolt(12.5,-24.0);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== setxyoffpixel ===&lt;br /&gt;
Parameter : &lt;br /&gt;
x: Offset in Pixel units &lt;br /&gt;
y: Offset in Pixel Units&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Sets a new X_Offset, Y_Offset Value. The new offset is given by a pixel position in the present scanimage.&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
stm.setxypixel(100,78);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== scandatabitmap ===&lt;br /&gt;
&lt;br /&gt;
Parameter : none&lt;br /&gt;
Return:   Array with Scan Channel Bitmap Data&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Function:  Get the the scanimage data as a bitmap.&lt;br /&gt;
The bitmap data is 32bit wide. The bitmap contains all channels.&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
a=stm.scandatabitmap;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== pc32scanstatus ===&lt;br /&gt;
&lt;br /&gt;
Parameter : none&lt;br /&gt;
&lt;br /&gt;
Return:   Scanstatus value on DSP Board&lt;br /&gt;
&lt;br /&gt;
Function:  Gets the scanstatus of the DSP program&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
a=stm.pc32scanstatus;&lt;br /&gt;
&lt;br /&gt;
=== setchmodezoff ===&lt;br /&gt;
&lt;br /&gt;
Parameter : zoffset&lt;br /&gt;
&lt;br /&gt;
Return:   none&lt;br /&gt;
&lt;br /&gt;
Function:  Sets the const height Zoffset value&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
a=stm.setchmodezoff(1.0);&lt;br /&gt;
&lt;br /&gt;
=== stmready ===&lt;br /&gt;
Parameter: none&lt;br /&gt;
Return: stmready  1: ready  0 not ready&lt;br /&gt;
&lt;br /&gt;
Function:  If stmready = 1 then the initialization of the STMAFM program is finshed.&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
&lt;br /&gt;
a= stm.stmready;&lt;br /&gt;
&lt;br /&gt;
=== setrampdspparam ===&lt;br /&gt;
&lt;br /&gt;
Parameter: zheight: single -10 - + 10V&lt;br /&gt;
&lt;br /&gt;
zduration: single&lt;br /&gt;
           zburst: integer&lt;br /&gt;
           xyheight:single&lt;br /&gt;
           xyduration: single&lt;br /&gt;
           xyburst: integer&lt;br /&gt;
&lt;br /&gt;
Function: Sets the corresponding parameters of the rampcontroller&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
&lt;br /&gt;
stm.setrampdspparam(1.0,0.01,100,2.0,0.02,200)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:stmafm_manual]]&lt;/div&gt;</summary>
		<author><name>Ltspm</name></author>	</entry>

	<entry>
		<id>http://spm-wiki.createc.de/index.php?title=STMAFM_Remote_Operation</id>
		<title>STMAFM Remote Operation</title>
		<link rel="alternate" type="text/html" href="http://spm-wiki.createc.de/index.php?title=STMAFM_Remote_Operation"/>
				<updated>2015-08-05T18:33:01Z</updated>
		
		<summary type="html">&lt;p&gt;Ltspm: /* setrampdspparam */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== OLE/COM Server ==&lt;br /&gt;
&lt;br /&gt;
To register the OLE/COM sever in the stmafm program goto &amp;quot;Debug&amp;quot; and &amp;quot;Register COM Server&amp;quot;. If you are going to install a newer version of the program, please click &amp;quot;Unregister COM Server&amp;quot; before installing the new version. Both has to be done with administrative rights as it requires access to the Windows registry.&lt;br /&gt;
&lt;br /&gt;
You may also run  &amp;quot;pstmafm.exe / regserver&amp;quot; form the command prompt.&lt;br /&gt;
(Alternatively run &amp;quot;pstmafm.exe /regserverperuser&amp;quot; in case you have problems running /regserver in Windows 7)&lt;br /&gt;
Again administrator rights are required.&lt;br /&gt;
&lt;br /&gt;
There are many different software tools available to perform data analysis as well as data aquisition or remote operation of the STMAFM program via OLE/COM: &lt;br /&gt;
&lt;br /&gt;
1. Python (Freeware, please visit http://winpython.sourceforge.net/ for download) we're using WinPython 2.7.x 32bit, 64bit&lt;br /&gt;
&lt;br /&gt;
2. Commercial Software: MatLab / LabView&lt;br /&gt;
&lt;br /&gt;
3. For more specific purposes with a more elaborate user interface Createc can supply dedicated plugin programs. (Contact ltspm@createc.de to solve your specific needs)&lt;br /&gt;
&lt;br /&gt;
For simple scripting purposes, i.e. controlling the program without data analysis a scripter program is can still be used.(e.g. MAXBOX) But for people starting from scratch we recommend using the OLE/COM interface as we will drop the support via the TCPIP interface in future. &lt;br /&gt;
&lt;br /&gt;
Example software will be provided through the Createc WebSite.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Python Connection ==&lt;br /&gt;
&lt;br /&gt;
We recommend to install WinPython 2.7.x and using the IPython Notebook therein. These command will initialize the connection to the STMAFM program. Afterwards you may import / export files using filters from the program and control the complete software&lt;br /&gt;
&lt;br /&gt;
 import win32com.client&lt;br /&gt;
 stm=win32com.client.Dispatch(&amp;quot;pstmafm.stmafmrem&amp;quot;)&lt;br /&gt;
 stm.stmbeep()&lt;br /&gt;
&lt;br /&gt;
== Matlab Connection ==&lt;br /&gt;
&lt;br /&gt;
You can access the pstmafm.stmafm OLE/COM server directly from Matlab (or Freemat using a corresponding dll).&lt;br /&gt;
We recommend controlling the STMAFM program through this interface.&lt;br /&gt;
&lt;br /&gt;
 stm=actxserver('pstmafm.stmafmrem'); %Open connection to STMAFM program, see also Matlab manual.&lt;br /&gt;
 stm.stmbeep; % &lt;br /&gt;
 stm.release; % release stm program&lt;br /&gt;
&lt;br /&gt;
The STMAFM program will be started and closed automatically from Matlab. If the STMAFM program is already running just the connection will be established.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Demo Startstm.m with event capability&lt;br /&gt;
&lt;br /&gt;
 global stm&lt;br /&gt;
 global stm1&lt;br /&gt;
 global linescandata&lt;br /&gt;
 stm=actxserver('pstmafm.stmafmrem');&lt;br /&gt;
 stm1=actxserver('pstmafm.stmafmevent');&lt;br /&gt;
 stm1.registerevent('serverevents');&lt;br /&gt;
 %registerevent: register a file serverevents.m to handle events.&lt;br /&gt;
&lt;br /&gt;
Example: serverevents.m &lt;br /&gt;
&lt;br /&gt;
 function serverevents(varargin)&lt;br /&gt;
 global stmoleeventnr&lt;br /&gt;
 global linescandata&lt;br /&gt;
 global stm&lt;br /&gt;
 stmoleeventnr = cell2mat(varargin(3));&lt;br /&gt;
 linescandata = stm.linescandata; &lt;br /&gt;
 if (stmoleeventnr == 1)&lt;br /&gt;
   plot(linescandata(:,1),linescandata(:,2));&lt;br /&gt;
 end&lt;br /&gt;
&lt;br /&gt;
== Plugins ==&lt;br /&gt;
&lt;br /&gt;
Specifically developed Plugins will be available to supply specific user needs. In particular where a more elaborate graphical user interface is&lt;br /&gt;
necessary compared to a simple text based scripting control.&lt;br /&gt;
&lt;br /&gt;
== Commands ==&lt;br /&gt;
&lt;br /&gt;
=== stmbeep ===&lt;br /&gt;
&lt;br /&gt;
Parameter : None&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  STMAFM program creates a short beep sound.  Used for testing purposes.&lt;br /&gt;
&lt;br /&gt;
=== setparam ===&lt;br /&gt;
&lt;br /&gt;
Parameter : (Strings)&lt;br /&gt;
1. Name of parameter&lt;br /&gt;
2. New Value&lt;br /&gt;
&lt;br /&gt;
Return:   &lt;br /&gt;
&lt;br /&gt;
Function:  Sets a parameter to a new value. The name is the name appearing in the old parameter menue&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
stm.setparam('Rotation','90.00');&lt;br /&gt;
&lt;br /&gt;
=== getparam ===&lt;br /&gt;
&lt;br /&gt;
Parameter : &lt;br /&gt;
1. Name of parameter&lt;br /&gt;
&lt;br /&gt;
Return:   &lt;br /&gt;
1. Value of Parameter&lt;br /&gt;
&lt;br /&gt;
Function:  Gets the actual parameter value. The name is the name appearing the old parameter menue&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
a=stm.getparam('Rotation');&lt;br /&gt;
&lt;br /&gt;
=== scanstart ===&lt;br /&gt;
&lt;br /&gt;
Parameter : None&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Starts a new STM scan.  Similar to pressing the button Scanstart&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== scanwaitfinished ===&lt;br /&gt;
&lt;br /&gt;
Parameter : None&lt;br /&gt;
&lt;br /&gt;
Return:  None&lt;br /&gt;
&lt;br /&gt;
Function:  Waits until the active scan is stopped.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== scanstop ===&lt;br /&gt;
&lt;br /&gt;
Parameter : None&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Stops a running STM scan.  Similar to pressing the button Scanstop&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== scanstatus ===&lt;br /&gt;
&lt;br /&gt;
Parameter : None&lt;br /&gt;
&lt;br /&gt;
Return:    Status Number ( = ord(scanstat) see below)&lt;br /&gt;
&lt;br /&gt;
Function:  Gets the present scanstatus. &lt;br /&gt;
&lt;br /&gt;
scanstat = (scanstatreset, stop, running, start, resetting, pause, scanstatvertman, scanstatlatman, scanstattimespec, scanxyoffset,scanstatapproach);&lt;br /&gt;
&lt;br /&gt;
0, SCANSTATRESET:   		Programm is in idle state&lt;br /&gt;
1, STOP:	            	Running Scan is stopped but is not fully reset yet.&lt;br /&gt;
2, RUNNING:                 	Scan is running&lt;br /&gt;
3, START                      	New Scan is started but not yet running&lt;br /&gt;
4, PAUSE			Running Scan is paused&lt;br /&gt;
5, SCANSTATVERTMAN	VertSpectrum is running&lt;br /&gt;
6, SCANSTATLATMAN		LATManip is running&lt;br /&gt;
7, SCANSTATTIMESPEC	Timespectrum is running&lt;br /&gt;
8, SCANXYOFFSET		XYOffset is running&lt;br /&gt;
9, SCANSTATAPPROACH	Approach is running&lt;br /&gt;
&lt;br /&gt;
=== quicksave ===&lt;br /&gt;
&lt;br /&gt;
Parameter : None&lt;br /&gt;
&lt;br /&gt;
Return:  None&lt;br /&gt;
&lt;br /&gt;
Function:  Saves the current scan file using the default filename. Similar to presisng the Quicksave button&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== filesave ===&lt;br /&gt;
&lt;br /&gt;
Parameter : Filename&lt;br /&gt;
&lt;br /&gt;
Return:  None&lt;br /&gt;
&lt;br /&gt;
Function:  Saves the current scandata file using the  filename as .dat file. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== fileload ===&lt;br /&gt;
&lt;br /&gt;
Parameter : Filename&lt;br /&gt;
&lt;br /&gt;
Return:  None&lt;br /&gt;
&lt;br /&gt;
Function:  Loads a .dat file into the program.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== vertsave ===&lt;br /&gt;
&lt;br /&gt;
Parameter : None&lt;br /&gt;
&lt;br /&gt;
Return:   none&lt;br /&gt;
&lt;br /&gt;
Function:  save present vertspecdata &lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
a=stm.vertsave;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== latsave ===&lt;br /&gt;
Parameter : None&lt;br /&gt;
&lt;br /&gt;
Return:   none&lt;br /&gt;
&lt;br /&gt;
Function:  save present latmanipdata &lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
a=stm.latsave;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== savedatfilename ===&lt;br /&gt;
&lt;br /&gt;
Property String&lt;br /&gt;
&lt;br /&gt;
Parameter : None&lt;br /&gt;
&lt;br /&gt;
Return:  None&lt;br /&gt;
&lt;br /&gt;
Function:  Read and write the default savefilename of .dat files.&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
filename=stm.savedatfilename;&lt;br /&gt;
&lt;br /&gt;
stm.savefilename=filename;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===  loadfilename ===&lt;br /&gt;
&lt;br /&gt;
Property String&lt;br /&gt;
&lt;br /&gt;
Function:  Read and write the default loadfilename of .dat files.&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
filename=stm.loaddatfilename;&lt;br /&gt;
&lt;br /&gt;
stm.loadfilename=filename;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== savevertfilename ===&lt;br /&gt;
&lt;br /&gt;
Property String&lt;br /&gt;
&lt;br /&gt;
Function:  Read and write the default filename of Vertspec  files.&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
filename=stm.savevertfilename;&lt;br /&gt;
&lt;br /&gt;
stm.savevertfilename=filename;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== savelatfilename ===&lt;br /&gt;
&lt;br /&gt;
Property String&lt;br /&gt;
&lt;br /&gt;
Function:  Read and write the default filename of Latmanip  files.&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
filename=stm.savelatfilename;&lt;br /&gt;
&lt;br /&gt;
stm.savelatfilename:=filename;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== btn_vertspec ===&lt;br /&gt;
&lt;br /&gt;
Parameter : &lt;br /&gt;
1. xpos :integer&lt;br /&gt;
2. ypos :integer&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Takes a Vert.Spectrum at image point Xpos,Ypos. (Image pixel coordinates as displayed in the status line of the STMAFM main window) Control is returned after the spectrum has been completely finished&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
stm.btn_vertspec(128,128);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== btn_vertspec_line ===&lt;br /&gt;
&lt;br /&gt;
Parameter : &lt;br /&gt;
1. X coordinate in imagepixels  of start point.&lt;br /&gt;
2  Y coordinate in imagepixels  of start point&lt;br /&gt;
3. X coordinate in imagepixels  of end point&lt;br /&gt;
4. Y coordinate in imagepixels  of end point&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
Function:  Takes a series of Vert.Spectra along a line defined by the start and end image points. (Image pixel coordinates as displayed in the status line of the STMAFM main window)&lt;br /&gt;
Control is returned after the spectra have been completely finished&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
stm.btn_vertspec_line(50,50,100,100);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== btn_vertspec_mult ===&lt;br /&gt;
&lt;br /&gt;
Parameter : 2d Array of X,Y coordinates&lt;br /&gt;
1. X coordinate in imagepixels  of 1.point&lt;br /&gt;
2. Y coordinate in imagepixels  of 1.point&lt;br /&gt;
.......&lt;br /&gt;
&lt;br /&gt;
2n-1. X coordinate in imagepixels  of n.point&lt;br /&gt;
2n. Y coordinate in imagepixels  of n.point&lt;br /&gt;
&lt;br /&gt;
Return:   Ready or Error&lt;br /&gt;
&lt;br /&gt;
Function:  Takes a series of Vert.Spectra defined by a list of image points. (Image pixel coordinates as displayed in the status line of the STMAFM main window). Control is returned after the spectra have been completely finished&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
a=[10,20;50,50;100,100;19,90];&lt;br /&gt;
stm.btn_vertspec_line(a);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== btn_tipform ===&lt;br /&gt;
&lt;br /&gt;
Parameter : &lt;br /&gt;
1. xpos :integer&lt;br /&gt;
2. ypos :integer&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Does a tip forming at image point Xpos,Ypos. (Image pixel coordinates as displayed in the status line of the STMAFM main window). Control is returned after the tip forming has been completely finished&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
stm.btn_tipform(128,128);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== btn_timespec ===&lt;br /&gt;
&lt;br /&gt;
Parameter : none&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Takes a time spectrum&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
stm.btn_timespec;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== scandata ===&lt;br /&gt;
&lt;br /&gt;
Parameter : channel: integer:integer&lt;br /&gt;
&lt;br /&gt;
Return:   Array with Scan Channel Data&lt;br /&gt;
&lt;br /&gt;
Function:  Read single channel of Scan Data &lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
a=stm.scandata(channel);  Presently only DAC units supported&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Channels:&lt;br /&gt;
1:Topography&lt;br /&gt;
2: Current(ADC0)&lt;br /&gt;
3: ADC1&lt;br /&gt;
4: ADC2&lt;br /&gt;
5: ADC3&lt;br /&gt;
6: dI/dV&lt;br /&gt;
7: d2I/dV&lt;br /&gt;
8: df&lt;br /&gt;
9: Damping&lt;br /&gt;
10: Amplitude&lt;br /&gt;
11: CP(DAC1)&lt;br /&gt;
12: AUX1&lt;br /&gt;
&lt;br /&gt;
If backward scanning channels are enabled, these channels are accessed by adding 256 as offset to the channel number above.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== scandatawrite ===&lt;br /&gt;
&lt;br /&gt;
Parameter : &lt;br /&gt;
1. channel: integer:integer&lt;br /&gt;
2. data: Matrix with Scan Channel Data&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Write single channel of Scan Data &lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
stm.scandatawrite(channel, data);     Presently only DAC units supported&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Channels:&lt;br /&gt;
1:Topography&lt;br /&gt;
2: Current(ADC0)&lt;br /&gt;
3: ADC1&lt;br /&gt;
4: ADC2&lt;br /&gt;
5: ADC3&lt;br /&gt;
6: dI/dV&lt;br /&gt;
7: d2I/dV&lt;br /&gt;
8: df&lt;br /&gt;
9: Damping&lt;br /&gt;
10: Amplitude&lt;br /&gt;
11: CP(DAC1)&lt;br /&gt;
12: AUX1&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== scanauxdata ===&lt;br /&gt;
&lt;br /&gt;
Property:   Matrix with Scan Aux channel Data&lt;br /&gt;
&lt;br /&gt;
Function:  Read and  write Scan AUX Data channel&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
a=stm.scanauxdata;  Presently only DAC units supported&lt;br /&gt;
stm.scanauxdata=a;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== openscanchannel ===&lt;br /&gt;
&lt;br /&gt;
Parameter : &lt;br /&gt;
1. channel integer&lt;br /&gt;
2. select :boolean&lt;br /&gt;
&lt;br /&gt;
Return:   none&lt;br /&gt;
&lt;br /&gt;
Function:  Activate specific Scan channel  &lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
a=stm.openscanchannel(channel, true);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===  linescandata ===&lt;br /&gt;
&lt;br /&gt;
Parameter : None&lt;br /&gt;
&lt;br /&gt;
Return:   Array with actual LineScan Data&lt;br /&gt;
&lt;br /&gt;
Function:  Read LineScan Data  &lt;br /&gt;
&lt;br /&gt;
Linescandata can be transferred into the Matlab workspace in a event driven manner. I.e. click the copy OLE/COM server popupmenue field in the Linescan window. This creates an event in Matlab which starts the&lt;br /&gt;
serverevents.m file which transfers the data to Matlab.    &lt;br /&gt;
&lt;br /&gt;
Columns&lt;br /&gt;
1: Distance in Angstrom&lt;br /&gt;
2: Y Values&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
a=stm.linescandata;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== timespecdata ===&lt;br /&gt;
&lt;br /&gt;
Parameter : channel: integer, units: integer&lt;br /&gt;
&lt;br /&gt;
Return:   Vector with Channel Data&lt;br /&gt;
&lt;br /&gt;
Function:  Read Channel Data&lt;br /&gt;
&lt;br /&gt;
Columns&lt;br /&gt;
1: Channel in units&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
a=stm.timespec(3,0);&lt;br /&gt;
&lt;br /&gt;
Channels:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== timespecfftdata ===&lt;br /&gt;
&lt;br /&gt;
Parameter : channel: integer, units: integer&lt;br /&gt;
&lt;br /&gt;
Return:   Vector with Channel Data&lt;br /&gt;
&lt;br /&gt;
Function:  Read Channel Data&lt;br /&gt;
&lt;br /&gt;
Columns&lt;br /&gt;
1: Channel in units&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
a=stm.timespec(3,0);&lt;br /&gt;
&lt;br /&gt;
Channels:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== latmandata ===&lt;br /&gt;
&lt;br /&gt;
Parameter : channel: integer, units: integer&lt;br /&gt;
&lt;br /&gt;
Return:   Vector with Lat manip Channel Data&lt;br /&gt;
&lt;br /&gt;
Function:  Read Lat manip Channel Data&lt;br /&gt;
&lt;br /&gt;
Columns&lt;br /&gt;
1: Channel in units&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
a=stm.latmandata(channel,units);&lt;br /&gt;
&lt;br /&gt;
Channels:&lt;br /&gt;
0: time in sec&lt;br /&gt;
1: X&lt;br /&gt;
2: Y&lt;br /&gt;
3: Current I&lt;br /&gt;
4: dI/dV&lt;br /&gt;
5: d2I/dV&lt;br /&gt;
6: ADC0&lt;br /&gt;
7: ADC1&lt;br /&gt;
8: ADC2&lt;br /&gt;
9: ADC3&lt;br /&gt;
10: df&lt;br /&gt;
11: Damping&lt;br /&gt;
12: Amplitude&lt;br /&gt;
13: di_q&lt;br /&gt;
14: di2_q&lt;br /&gt;
15: Topography(DAC0)&lt;br /&gt;
16: CP(DAC1)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Units:&lt;br /&gt;
0: Default&lt;br /&gt;
1: Volt&lt;br /&gt;
2: DAC&lt;br /&gt;
3: Ampere&lt;br /&gt;
4: nm&lt;br /&gt;
5: Hz&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== vertdata ===&lt;br /&gt;
&lt;br /&gt;
Parameter : channel: integer, units: integer&lt;br /&gt;
&lt;br /&gt;
Return:   Vector with Channel Data&lt;br /&gt;
&lt;br /&gt;
Function:  Read Channel Data&lt;br /&gt;
&lt;br /&gt;
Columns&lt;br /&gt;
1: Channel in units&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
a=stm.vertdata(3,1);&lt;br /&gt;
&lt;br /&gt;
Channels:&lt;br /&gt;
0: time in sec&lt;br /&gt;
1: V&lt;br /&gt;
2: Z&lt;br /&gt;
3: Current I&lt;br /&gt;
4: dI/dV&lt;br /&gt;
5: d2I/dV&lt;br /&gt;
6: ADC0&lt;br /&gt;
7: ADC1&lt;br /&gt;
8: ADC2&lt;br /&gt;
9: ADC3&lt;br /&gt;
10: df&lt;br /&gt;
11: Damping&lt;br /&gt;
12: Amplitude&lt;br /&gt;
13: di_q&lt;br /&gt;
14: di2_q&lt;br /&gt;
15: Topography(DAC0)&lt;br /&gt;
16: CP(DAC1)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Units:&lt;br /&gt;
0: Default&lt;br /&gt;
1: Volt&lt;br /&gt;
2: DAC&lt;br /&gt;
3: Ampere&lt;br /&gt;
4: nm&lt;br /&gt;
5: Hz&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== pllspecdata ===&lt;br /&gt;
&lt;br /&gt;
Parameter : None&lt;br /&gt;
&lt;br /&gt;
Return:   Array with PLL Spectrum Scan Data&lt;br /&gt;
&lt;br /&gt;
Function:  Read PLL Spectrum Scan Data      &lt;br /&gt;
&lt;br /&gt;
Columns&lt;br /&gt;
1: Frequency [Hz]&lt;br /&gt;
2: Amplitude [a.u.]&lt;br /&gt;
3: Phase [Deg]&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
a=stm.pllspecdata;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== strbuffer ===&lt;br /&gt;
&lt;br /&gt;
Property&lt;br /&gt;
&lt;br /&gt;
Parameter : None&lt;br /&gt;
&lt;br /&gt;
Return:   String with all parameters&lt;br /&gt;
&lt;br /&gt;
Function:  Read and write program parameter      &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
s=stm.strbuffer;&lt;br /&gt;
&lt;br /&gt;
stm.strbuffer:=s;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== pllfreqscan ===&lt;br /&gt;
&lt;br /&gt;
Parameter : None&lt;br /&gt;
&lt;br /&gt;
Return:   none&lt;br /&gt;
&lt;br /&gt;
Function:  Start a new PLL Freqeuncy Scan  &lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
a=stm.pllfreqscan;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===  vertspectrum ===&lt;br /&gt;
 &lt;br /&gt;
Parameter : None&lt;br /&gt;
&lt;br /&gt;
Return:   Ready or Error&lt;br /&gt;
&lt;br /&gt;
Function:  Takes a Vert.Spectrum at the current image point X,Y.  Control is returned after the spectrum has been completely finished&lt;br /&gt;
The tip remains at the current lateral position&lt;br /&gt;
(low level command)&lt;br /&gt;
&lt;br /&gt;
=== move_tip ===&lt;br /&gt;
&lt;br /&gt;
Parameter : &lt;br /&gt;
1. X start position in relative DAC units  &lt;br /&gt;
2. Y start position in relative DAC units&lt;br /&gt;
3. X end position in relative DAC units  &lt;br /&gt;
4. Y end position in relative DAC units  &lt;br /&gt;
5. Number steps in which the tip moves from start to endpoint&lt;br /&gt;
6 Delay in DSP cycles between each step&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Move tip to new position. Coordinates are given in relative DAC units (relative: X,Y Offset and rotation are added afterwards)&lt;br /&gt;
Control is returned after the move has been completely finished&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
stm.move_tip(50,50,100,100, 200,100);&lt;br /&gt;
&lt;br /&gt;
=== move_tip_imagecoord ===&lt;br /&gt;
&lt;br /&gt;
Parameter : &lt;br /&gt;
1. X start position in imagepixels  &lt;br /&gt;
2. Y start position in imagepixels  &lt;br /&gt;
3. X end position in imagepixels  &lt;br /&gt;
4. Y end position in imagepixels  &lt;br /&gt;
5. Number steps in which the tip moves from start to endpoint&lt;br /&gt;
6 Delay in DSP cycles between each step&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Move tip to new position (Image pixel coordinates as displayed in the status line of the STMAFM main window)&lt;br /&gt;
Control is returned after the move has been completely finished&lt;br /&gt;
&lt;br /&gt;
Relation between imagepixel coordinates (0&amp;lt;=ximage&amp;lt;nx ,  0&amp;lt;=yimage&amp;lt;ny ) and  relative DAC coordinates (xdac,ydac):&lt;br /&gt;
(Top line in image is ny=0)&lt;br /&gt;
&lt;br /&gt;
xdac:=trunc(ximage*dx - (nx div 2)*dx);&lt;br /&gt;
ydac:=trunc(yimage*dy);&lt;br /&gt;
&lt;br /&gt;
On the DSP a final coordinate transformation is done including rotation, offset and drift correction to calculate the absolute DAC coordinates:&lt;br /&gt;
Using 20bit DACS the values are internal limited to +/- 524272.&lt;br /&gt;
&lt;br /&gt;
xdacabs=  trunc ( - (xdac*rotmxx + ydac*rotmxy + rotoffx-driftxoff));&lt;br /&gt;
ydacabs=  trunc ( - (xdac*rotmyx + ydac*rotmyy + rotoffy-driftyoff));&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
stm.move_tip_imagecoord(50,50,100,100, 200,100);&lt;br /&gt;
&lt;br /&gt;
=== latmanip ===&lt;br /&gt;
&lt;br /&gt;
Parameter : &lt;br /&gt;
1. X coordinate in imagepixels  of start point.&lt;br /&gt;
2  Y coordinate in imagepixels  of start point&lt;br /&gt;
3. X coordinate in imagepixels  of end point&lt;br /&gt;
4. Y coordinate in imagepixels  of end point&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Takes a lateral manipulation along a line defined by the start and end image points. (Image pixel coordinates as displayed in the status line of the STMAFM main window)&lt;br /&gt;
Control is returned after the manipulation has been completely finished&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
stm.latmanip(50,50,100,100);&lt;br /&gt;
&lt;br /&gt;
===  latmanipxymove  ===&lt;br /&gt;
(low level command)&lt;br /&gt;
&lt;br /&gt;
Parameter : &lt;br /&gt;
1. X coordinate  of start point in rel. DAC units.&lt;br /&gt;
2  Y coordinate  of f start point in rel. DAC units.&lt;br /&gt;
3. X coordinate of end point in rel. DAC units.&lt;br /&gt;
4. Y coordinate of end point in rel. DAC units.&lt;br /&gt;
5. Number of steps &lt;br /&gt;
6. Delay between steps in DSP Cycles&lt;br /&gt;
7. Gain of Preamp during manipulation&lt;br /&gt;
8. Bias Voltage during manipulation&lt;br /&gt;
9. Current set point during manipulation in constant current mode&lt;br /&gt;
&lt;br /&gt;
Return:  None&lt;br /&gt;
Function:  &lt;br /&gt;
Takes a lateral manipulation along a line defined by the start and end image points. Coordinates are in relative DAC units.&lt;br /&gt;
Control is returned after the scan has been completely finished. &lt;br /&gt;
&lt;br /&gt;
The recorded data is saved in a file called 'manipxymove.data' placed in the active directory.&lt;br /&gt;
The file contains one line for each step. For each step the selected number of channels are recorded. (See LATMANIP form)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== latmanbufferext ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== lockinstart ===&lt;br /&gt;
&lt;br /&gt;
Parameter : None&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Starts the internal lockin amplifier&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
stm.lockinstart;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== lockinstop ===&lt;br /&gt;
&lt;br /&gt;
Parameter : None&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Stops the internal lockin amplifier&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
stm.lockinstop;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== updatedspparam ===&lt;br /&gt;
&lt;br /&gt;
Parameter: None&lt;br /&gt;
&lt;br /&gt;
Function: Updates all parameters and synchronizes the the parameters with the DSP&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
stm.updatedspparam;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== updatedspfbparam ===&lt;br /&gt;
&lt;br /&gt;
Parameter :  None&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  After changing the parameters this command allows to update/synchronize the parameters with the DSP.&lt;br /&gt;
&lt;br /&gt;
For example changing a feedback loop parameter in the old parameter window will not automatically change this parameter on the DSP.&lt;br /&gt;
Therefore this update command has to be issued afterwards. Allows to set first the new parameters and then update all at the same time on the DSP.&lt;br /&gt;
(low level command)&lt;br /&gt;
&lt;br /&gt;
=== sliderup ===&lt;br /&gt;
&lt;br /&gt;
Parameter : None&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Moves the slider one step up&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
stm.sliderup;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== sliderdown ===&lt;br /&gt;
&lt;br /&gt;
Parameter : None&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Moves the slider one step down&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
stm.sliderdown;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== slider ===&lt;br /&gt;
&lt;br /&gt;
Parameter :&lt;br /&gt;
channel&lt;br /&gt;
direction&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Moves the slider &lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
stm.slider(1,0);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== setdacval ===&lt;br /&gt;
Parameter : &lt;br /&gt;
board 1..2&lt;br /&gt;
channel  0..5&lt;br /&gt;
value   -524288 ..  524287           &lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Sets DAC value of selected channel. Units are DAC Units (20bit)&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
stm.setdacval(1,2,1000);&lt;br /&gt;
&lt;br /&gt;
                &lt;br /&gt;
=== setdacvalf === &lt;br /&gt;
Parameter : &lt;br /&gt;
board 1..2&lt;br /&gt;
channel  0..5&lt;br /&gt;
value   -10.0 .. 10.0          &lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Sets DAC value of selected channel. Units are Volt (float)&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
stm.setdacval(1,2,1.034);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== getadcval ===&lt;br /&gt;
&lt;br /&gt;
Parameter : &lt;br /&gt;
board 1..2&lt;br /&gt;
channel 0..5                &lt;br /&gt;
&lt;br /&gt;
Return:   ADC value of selected channel&lt;br /&gt;
&lt;br /&gt;
Function:  Gets the ADC value. Units are in DAC units (20bit)&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
stm.getadcval(1,2);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== getadcvalf ===&lt;br /&gt;
&lt;br /&gt;
Parameter : &lt;br /&gt;
board 1..2&lt;br /&gt;
channel  0..5               &lt;br /&gt;
&lt;br /&gt;
Return:   ADC value of selected channel&lt;br /&gt;
&lt;br /&gt;
Function:  Gets the ADC value. Units are in Volt&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
stm.getadcvalf(1,2);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== getdacvalfb ===&lt;br /&gt;
 &lt;br /&gt;
Parameter : none              &lt;br /&gt;
&lt;br /&gt;
Return:   Value of z - Dac in Angstroem&lt;br /&gt;
 &lt;br /&gt;
Function:  Gets the Feedback DAC Value &lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
a=stm.getdacvalfb;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== digoutvalue ===&lt;br /&gt;
&lt;br /&gt;
Property Integer          &lt;br /&gt;
&lt;br /&gt;
Function:  Read and write Digital Outputvalue on Board 1&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
i:=stm.digoutvalue;&lt;br /&gt;
&lt;br /&gt;
stm.digoutvalue:=i;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== sbcdigoutvalue ===&lt;br /&gt;
&lt;br /&gt;
Property Integer          &lt;br /&gt;
&lt;br /&gt;
Function:  Read and write digital outputvalue on SBC6711Board&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
i:=stm.sbcdigoutvalue;&lt;br /&gt;
&lt;br /&gt;
stm.sbcdigoutvalue:=i;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== serverneverclose ===&lt;br /&gt;
&lt;br /&gt;
Parameter: None          &lt;br /&gt;
&lt;br /&gt;
Function:  If activated makes sure that the STM Program will not close after the connection to the server is stopped, if the STM program was started by the client.&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
stm.serverneverclose;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== execmethod ===&lt;br /&gt;
&lt;br /&gt;
Parameter: &lt;br /&gt;
Objectname&lt;br /&gt;
Methodname&lt;br /&gt;
&lt;br /&gt;
Return: None&lt;br /&gt;
&lt;br /&gt;
Function:  Execute a specific function in the STM program. Specific debugging use only&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
stm.execmethod('stmafm','Formmemoclick');&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== setxyoffvolt ===&lt;br /&gt;
&lt;br /&gt;
Parameter : &lt;br /&gt;
x: Offset in Volt  Range: (-10.0, +10.0) * HVGainX&lt;br /&gt;
y: Offset in Volt  Range: (-10.0, +10.0) * HVGainY&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Sets a new X_Offset, Y_Offset Value. Units are in Volt &lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
stm.setxyoffsetvolt(12.5,-24.0);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== setxyoffpixel ===&lt;br /&gt;
Parameter : &lt;br /&gt;
x: Offset in Pixel units &lt;br /&gt;
y: Offset in Pixel Units&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Sets a new X_Offset, Y_Offset Value. The new offset is given by a pixel position in the present scanimage.&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
stm.setxypixel(100,78);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== scandatabitmap ===&lt;br /&gt;
&lt;br /&gt;
Parameter : none&lt;br /&gt;
Return:   Array with Scan Channel Bitmap Data&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Function:  Get the the scanimage data as a bitmap.&lt;br /&gt;
The bitmap data is 32bit wide. The bitmap contains all channels.&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
a=stm.scandatabitmap;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== pc32scanstatus ===&lt;br /&gt;
&lt;br /&gt;
Parameter : none&lt;br /&gt;
&lt;br /&gt;
Return:   Scanstatus value on DSP Board&lt;br /&gt;
&lt;br /&gt;
Function:  Gets the scanstatus of the DSP program&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
a=stm.pc32scanstatus;&lt;br /&gt;
&lt;br /&gt;
=== setchmodezoff ===&lt;br /&gt;
&lt;br /&gt;
Parameter : zoffset&lt;br /&gt;
&lt;br /&gt;
Return:   none&lt;br /&gt;
&lt;br /&gt;
Function:  Sets the const height Zoffset value&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
a=stm.setchmodezoff(1.0);&lt;br /&gt;
&lt;br /&gt;
=== stmready ===&lt;br /&gt;
Parameter: none&lt;br /&gt;
Return: stmready  1: ready  0 not ready&lt;br /&gt;
&lt;br /&gt;
Function:  If stmready = 1 then the initialization of the STMAFM program is finshed.&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
&lt;br /&gt;
a= stm.stmready;&lt;br /&gt;
&lt;br /&gt;
=== setrampdspparam ===&lt;br /&gt;
&lt;br /&gt;
Parameter: zheight: single -10 - + 10V&lt;br /&gt;
zduration: single&lt;br /&gt;
           zburst: integer&lt;br /&gt;
           xyheight:single&lt;br /&gt;
           xyduration: single&lt;br /&gt;
           xyburst: integer&lt;br /&gt;
&lt;br /&gt;
Function: Sets the corresponding parameters of the rampcontroller&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
&lt;br /&gt;
stm.setrampdspparam(1.0,0.01,100,2.0,0.02,200)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:stmafm_manual]]&lt;/div&gt;</summary>
		<author><name>Ltspm</name></author>	</entry>

	<entry>
		<id>http://spm-wiki.createc.de/index.php?title=STMAFM_Remote_Operation</id>
		<title>STMAFM Remote Operation</title>
		<link rel="alternate" type="text/html" href="http://spm-wiki.createc.de/index.php?title=STMAFM_Remote_Operation"/>
				<updated>2015-08-05T18:32:22Z</updated>
		
		<summary type="html">&lt;p&gt;Ltspm: /* setchmodezoff */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== OLE/COM Server ==&lt;br /&gt;
&lt;br /&gt;
To register the OLE/COM sever in the stmafm program goto &amp;quot;Debug&amp;quot; and &amp;quot;Register COM Server&amp;quot;. If you are going to install a newer version of the program, please click &amp;quot;Unregister COM Server&amp;quot; before installing the new version. Both has to be done with administrative rights as it requires access to the Windows registry.&lt;br /&gt;
&lt;br /&gt;
You may also run  &amp;quot;pstmafm.exe / regserver&amp;quot; form the command prompt.&lt;br /&gt;
(Alternatively run &amp;quot;pstmafm.exe /regserverperuser&amp;quot; in case you have problems running /regserver in Windows 7)&lt;br /&gt;
Again administrator rights are required.&lt;br /&gt;
&lt;br /&gt;
There are many different software tools available to perform data analysis as well as data aquisition or remote operation of the STMAFM program via OLE/COM: &lt;br /&gt;
&lt;br /&gt;
1. Python (Freeware, please visit http://winpython.sourceforge.net/ for download) we're using WinPython 2.7.x 32bit, 64bit&lt;br /&gt;
&lt;br /&gt;
2. Commercial Software: MatLab / LabView&lt;br /&gt;
&lt;br /&gt;
3. For more specific purposes with a more elaborate user interface Createc can supply dedicated plugin programs. (Contact ltspm@createc.de to solve your specific needs)&lt;br /&gt;
&lt;br /&gt;
For simple scripting purposes, i.e. controlling the program without data analysis a scripter program is can still be used.(e.g. MAXBOX) But for people starting from scratch we recommend using the OLE/COM interface as we will drop the support via the TCPIP interface in future. &lt;br /&gt;
&lt;br /&gt;
Example software will be provided through the Createc WebSite.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Python Connection ==&lt;br /&gt;
&lt;br /&gt;
We recommend to install WinPython 2.7.x and using the IPython Notebook therein. These command will initialize the connection to the STMAFM program. Afterwards you may import / export files using filters from the program and control the complete software&lt;br /&gt;
&lt;br /&gt;
 import win32com.client&lt;br /&gt;
 stm=win32com.client.Dispatch(&amp;quot;pstmafm.stmafmrem&amp;quot;)&lt;br /&gt;
 stm.stmbeep()&lt;br /&gt;
&lt;br /&gt;
== Matlab Connection ==&lt;br /&gt;
&lt;br /&gt;
You can access the pstmafm.stmafm OLE/COM server directly from Matlab (or Freemat using a corresponding dll).&lt;br /&gt;
We recommend controlling the STMAFM program through this interface.&lt;br /&gt;
&lt;br /&gt;
 stm=actxserver('pstmafm.stmafmrem'); %Open connection to STMAFM program, see also Matlab manual.&lt;br /&gt;
 stm.stmbeep; % &lt;br /&gt;
 stm.release; % release stm program&lt;br /&gt;
&lt;br /&gt;
The STMAFM program will be started and closed automatically from Matlab. If the STMAFM program is already running just the connection will be established.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Demo Startstm.m with event capability&lt;br /&gt;
&lt;br /&gt;
 global stm&lt;br /&gt;
 global stm1&lt;br /&gt;
 global linescandata&lt;br /&gt;
 stm=actxserver('pstmafm.stmafmrem');&lt;br /&gt;
 stm1=actxserver('pstmafm.stmafmevent');&lt;br /&gt;
 stm1.registerevent('serverevents');&lt;br /&gt;
 %registerevent: register a file serverevents.m to handle events.&lt;br /&gt;
&lt;br /&gt;
Example: serverevents.m &lt;br /&gt;
&lt;br /&gt;
 function serverevents(varargin)&lt;br /&gt;
 global stmoleeventnr&lt;br /&gt;
 global linescandata&lt;br /&gt;
 global stm&lt;br /&gt;
 stmoleeventnr = cell2mat(varargin(3));&lt;br /&gt;
 linescandata = stm.linescandata; &lt;br /&gt;
 if (stmoleeventnr == 1)&lt;br /&gt;
   plot(linescandata(:,1),linescandata(:,2));&lt;br /&gt;
 end&lt;br /&gt;
&lt;br /&gt;
== Plugins ==&lt;br /&gt;
&lt;br /&gt;
Specifically developed Plugins will be available to supply specific user needs. In particular where a more elaborate graphical user interface is&lt;br /&gt;
necessary compared to a simple text based scripting control.&lt;br /&gt;
&lt;br /&gt;
== Commands ==&lt;br /&gt;
&lt;br /&gt;
=== stmbeep ===&lt;br /&gt;
&lt;br /&gt;
Parameter : None&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  STMAFM program creates a short beep sound.  Used for testing purposes.&lt;br /&gt;
&lt;br /&gt;
=== setparam ===&lt;br /&gt;
&lt;br /&gt;
Parameter : (Strings)&lt;br /&gt;
1. Name of parameter&lt;br /&gt;
2. New Value&lt;br /&gt;
&lt;br /&gt;
Return:   &lt;br /&gt;
&lt;br /&gt;
Function:  Sets a parameter to a new value. The name is the name appearing in the old parameter menue&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
stm.setparam('Rotation','90.00');&lt;br /&gt;
&lt;br /&gt;
=== getparam ===&lt;br /&gt;
&lt;br /&gt;
Parameter : &lt;br /&gt;
1. Name of parameter&lt;br /&gt;
&lt;br /&gt;
Return:   &lt;br /&gt;
1. Value of Parameter&lt;br /&gt;
&lt;br /&gt;
Function:  Gets the actual parameter value. The name is the name appearing the old parameter menue&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
a=stm.getparam('Rotation');&lt;br /&gt;
&lt;br /&gt;
=== scanstart ===&lt;br /&gt;
&lt;br /&gt;
Parameter : None&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Starts a new STM scan.  Similar to pressing the button Scanstart&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== scanwaitfinished ===&lt;br /&gt;
&lt;br /&gt;
Parameter : None&lt;br /&gt;
&lt;br /&gt;
Return:  None&lt;br /&gt;
&lt;br /&gt;
Function:  Waits until the active scan is stopped.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== scanstop ===&lt;br /&gt;
&lt;br /&gt;
Parameter : None&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Stops a running STM scan.  Similar to pressing the button Scanstop&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== scanstatus ===&lt;br /&gt;
&lt;br /&gt;
Parameter : None&lt;br /&gt;
&lt;br /&gt;
Return:    Status Number ( = ord(scanstat) see below)&lt;br /&gt;
&lt;br /&gt;
Function:  Gets the present scanstatus. &lt;br /&gt;
&lt;br /&gt;
scanstat = (scanstatreset, stop, running, start, resetting, pause, scanstatvertman, scanstatlatman, scanstattimespec, scanxyoffset,scanstatapproach);&lt;br /&gt;
&lt;br /&gt;
0, SCANSTATRESET:   		Programm is in idle state&lt;br /&gt;
1, STOP:	            	Running Scan is stopped but is not fully reset yet.&lt;br /&gt;
2, RUNNING:                 	Scan is running&lt;br /&gt;
3, START                      	New Scan is started but not yet running&lt;br /&gt;
4, PAUSE			Running Scan is paused&lt;br /&gt;
5, SCANSTATVERTMAN	VertSpectrum is running&lt;br /&gt;
6, SCANSTATLATMAN		LATManip is running&lt;br /&gt;
7, SCANSTATTIMESPEC	Timespectrum is running&lt;br /&gt;
8, SCANXYOFFSET		XYOffset is running&lt;br /&gt;
9, SCANSTATAPPROACH	Approach is running&lt;br /&gt;
&lt;br /&gt;
=== quicksave ===&lt;br /&gt;
&lt;br /&gt;
Parameter : None&lt;br /&gt;
&lt;br /&gt;
Return:  None&lt;br /&gt;
&lt;br /&gt;
Function:  Saves the current scan file using the default filename. Similar to presisng the Quicksave button&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== filesave ===&lt;br /&gt;
&lt;br /&gt;
Parameter : Filename&lt;br /&gt;
&lt;br /&gt;
Return:  None&lt;br /&gt;
&lt;br /&gt;
Function:  Saves the current scandata file using the  filename as .dat file. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== fileload ===&lt;br /&gt;
&lt;br /&gt;
Parameter : Filename&lt;br /&gt;
&lt;br /&gt;
Return:  None&lt;br /&gt;
&lt;br /&gt;
Function:  Loads a .dat file into the program.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== vertsave ===&lt;br /&gt;
&lt;br /&gt;
Parameter : None&lt;br /&gt;
&lt;br /&gt;
Return:   none&lt;br /&gt;
&lt;br /&gt;
Function:  save present vertspecdata &lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
a=stm.vertsave;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== latsave ===&lt;br /&gt;
Parameter : None&lt;br /&gt;
&lt;br /&gt;
Return:   none&lt;br /&gt;
&lt;br /&gt;
Function:  save present latmanipdata &lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
a=stm.latsave;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== savedatfilename ===&lt;br /&gt;
&lt;br /&gt;
Property String&lt;br /&gt;
&lt;br /&gt;
Parameter : None&lt;br /&gt;
&lt;br /&gt;
Return:  None&lt;br /&gt;
&lt;br /&gt;
Function:  Read and write the default savefilename of .dat files.&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
filename=stm.savedatfilename;&lt;br /&gt;
&lt;br /&gt;
stm.savefilename=filename;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===  loadfilename ===&lt;br /&gt;
&lt;br /&gt;
Property String&lt;br /&gt;
&lt;br /&gt;
Function:  Read and write the default loadfilename of .dat files.&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
filename=stm.loaddatfilename;&lt;br /&gt;
&lt;br /&gt;
stm.loadfilename=filename;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== savevertfilename ===&lt;br /&gt;
&lt;br /&gt;
Property String&lt;br /&gt;
&lt;br /&gt;
Function:  Read and write the default filename of Vertspec  files.&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
filename=stm.savevertfilename;&lt;br /&gt;
&lt;br /&gt;
stm.savevertfilename=filename;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== savelatfilename ===&lt;br /&gt;
&lt;br /&gt;
Property String&lt;br /&gt;
&lt;br /&gt;
Function:  Read and write the default filename of Latmanip  files.&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
filename=stm.savelatfilename;&lt;br /&gt;
&lt;br /&gt;
stm.savelatfilename:=filename;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== btn_vertspec ===&lt;br /&gt;
&lt;br /&gt;
Parameter : &lt;br /&gt;
1. xpos :integer&lt;br /&gt;
2. ypos :integer&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Takes a Vert.Spectrum at image point Xpos,Ypos. (Image pixel coordinates as displayed in the status line of the STMAFM main window) Control is returned after the spectrum has been completely finished&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
stm.btn_vertspec(128,128);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== btn_vertspec_line ===&lt;br /&gt;
&lt;br /&gt;
Parameter : &lt;br /&gt;
1. X coordinate in imagepixels  of start point.&lt;br /&gt;
2  Y coordinate in imagepixels  of start point&lt;br /&gt;
3. X coordinate in imagepixels  of end point&lt;br /&gt;
4. Y coordinate in imagepixels  of end point&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
Function:  Takes a series of Vert.Spectra along a line defined by the start and end image points. (Image pixel coordinates as displayed in the status line of the STMAFM main window)&lt;br /&gt;
Control is returned after the spectra have been completely finished&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
stm.btn_vertspec_line(50,50,100,100);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== btn_vertspec_mult ===&lt;br /&gt;
&lt;br /&gt;
Parameter : 2d Array of X,Y coordinates&lt;br /&gt;
1. X coordinate in imagepixels  of 1.point&lt;br /&gt;
2. Y coordinate in imagepixels  of 1.point&lt;br /&gt;
.......&lt;br /&gt;
&lt;br /&gt;
2n-1. X coordinate in imagepixels  of n.point&lt;br /&gt;
2n. Y coordinate in imagepixels  of n.point&lt;br /&gt;
&lt;br /&gt;
Return:   Ready or Error&lt;br /&gt;
&lt;br /&gt;
Function:  Takes a series of Vert.Spectra defined by a list of image points. (Image pixel coordinates as displayed in the status line of the STMAFM main window). Control is returned after the spectra have been completely finished&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
a=[10,20;50,50;100,100;19,90];&lt;br /&gt;
stm.btn_vertspec_line(a);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== btn_tipform ===&lt;br /&gt;
&lt;br /&gt;
Parameter : &lt;br /&gt;
1. xpos :integer&lt;br /&gt;
2. ypos :integer&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Does a tip forming at image point Xpos,Ypos. (Image pixel coordinates as displayed in the status line of the STMAFM main window). Control is returned after the tip forming has been completely finished&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
stm.btn_tipform(128,128);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== btn_timespec ===&lt;br /&gt;
&lt;br /&gt;
Parameter : none&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Takes a time spectrum&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
stm.btn_timespec;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== scandata ===&lt;br /&gt;
&lt;br /&gt;
Parameter : channel: integer:integer&lt;br /&gt;
&lt;br /&gt;
Return:   Array with Scan Channel Data&lt;br /&gt;
&lt;br /&gt;
Function:  Read single channel of Scan Data &lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
a=stm.scandata(channel);  Presently only DAC units supported&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Channels:&lt;br /&gt;
1:Topography&lt;br /&gt;
2: Current(ADC0)&lt;br /&gt;
3: ADC1&lt;br /&gt;
4: ADC2&lt;br /&gt;
5: ADC3&lt;br /&gt;
6: dI/dV&lt;br /&gt;
7: d2I/dV&lt;br /&gt;
8: df&lt;br /&gt;
9: Damping&lt;br /&gt;
10: Amplitude&lt;br /&gt;
11: CP(DAC1)&lt;br /&gt;
12: AUX1&lt;br /&gt;
&lt;br /&gt;
If backward scanning channels are enabled, these channels are accessed by adding 256 as offset to the channel number above.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== scandatawrite ===&lt;br /&gt;
&lt;br /&gt;
Parameter : &lt;br /&gt;
1. channel: integer:integer&lt;br /&gt;
2. data: Matrix with Scan Channel Data&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Write single channel of Scan Data &lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
stm.scandatawrite(channel, data);     Presently only DAC units supported&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Channels:&lt;br /&gt;
1:Topography&lt;br /&gt;
2: Current(ADC0)&lt;br /&gt;
3: ADC1&lt;br /&gt;
4: ADC2&lt;br /&gt;
5: ADC3&lt;br /&gt;
6: dI/dV&lt;br /&gt;
7: d2I/dV&lt;br /&gt;
8: df&lt;br /&gt;
9: Damping&lt;br /&gt;
10: Amplitude&lt;br /&gt;
11: CP(DAC1)&lt;br /&gt;
12: AUX1&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== scanauxdata ===&lt;br /&gt;
&lt;br /&gt;
Property:   Matrix with Scan Aux channel Data&lt;br /&gt;
&lt;br /&gt;
Function:  Read and  write Scan AUX Data channel&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
a=stm.scanauxdata;  Presently only DAC units supported&lt;br /&gt;
stm.scanauxdata=a;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== openscanchannel ===&lt;br /&gt;
&lt;br /&gt;
Parameter : &lt;br /&gt;
1. channel integer&lt;br /&gt;
2. select :boolean&lt;br /&gt;
&lt;br /&gt;
Return:   none&lt;br /&gt;
&lt;br /&gt;
Function:  Activate specific Scan channel  &lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
a=stm.openscanchannel(channel, true);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===  linescandata ===&lt;br /&gt;
&lt;br /&gt;
Parameter : None&lt;br /&gt;
&lt;br /&gt;
Return:   Array with actual LineScan Data&lt;br /&gt;
&lt;br /&gt;
Function:  Read LineScan Data  &lt;br /&gt;
&lt;br /&gt;
Linescandata can be transferred into the Matlab workspace in a event driven manner. I.e. click the copy OLE/COM server popupmenue field in the Linescan window. This creates an event in Matlab which starts the&lt;br /&gt;
serverevents.m file which transfers the data to Matlab.    &lt;br /&gt;
&lt;br /&gt;
Columns&lt;br /&gt;
1: Distance in Angstrom&lt;br /&gt;
2: Y Values&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
a=stm.linescandata;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== timespecdata ===&lt;br /&gt;
&lt;br /&gt;
Parameter : channel: integer, units: integer&lt;br /&gt;
&lt;br /&gt;
Return:   Vector with Channel Data&lt;br /&gt;
&lt;br /&gt;
Function:  Read Channel Data&lt;br /&gt;
&lt;br /&gt;
Columns&lt;br /&gt;
1: Channel in units&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
a=stm.timespec(3,0);&lt;br /&gt;
&lt;br /&gt;
Channels:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== timespecfftdata ===&lt;br /&gt;
&lt;br /&gt;
Parameter : channel: integer, units: integer&lt;br /&gt;
&lt;br /&gt;
Return:   Vector with Channel Data&lt;br /&gt;
&lt;br /&gt;
Function:  Read Channel Data&lt;br /&gt;
&lt;br /&gt;
Columns&lt;br /&gt;
1: Channel in units&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
a=stm.timespec(3,0);&lt;br /&gt;
&lt;br /&gt;
Channels:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== latmandata ===&lt;br /&gt;
&lt;br /&gt;
Parameter : channel: integer, units: integer&lt;br /&gt;
&lt;br /&gt;
Return:   Vector with Lat manip Channel Data&lt;br /&gt;
&lt;br /&gt;
Function:  Read Lat manip Channel Data&lt;br /&gt;
&lt;br /&gt;
Columns&lt;br /&gt;
1: Channel in units&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
a=stm.latmandata(channel,units);&lt;br /&gt;
&lt;br /&gt;
Channels:&lt;br /&gt;
0: time in sec&lt;br /&gt;
1: X&lt;br /&gt;
2: Y&lt;br /&gt;
3: Current I&lt;br /&gt;
4: dI/dV&lt;br /&gt;
5: d2I/dV&lt;br /&gt;
6: ADC0&lt;br /&gt;
7: ADC1&lt;br /&gt;
8: ADC2&lt;br /&gt;
9: ADC3&lt;br /&gt;
10: df&lt;br /&gt;
11: Damping&lt;br /&gt;
12: Amplitude&lt;br /&gt;
13: di_q&lt;br /&gt;
14: di2_q&lt;br /&gt;
15: Topography(DAC0)&lt;br /&gt;
16: CP(DAC1)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Units:&lt;br /&gt;
0: Default&lt;br /&gt;
1: Volt&lt;br /&gt;
2: DAC&lt;br /&gt;
3: Ampere&lt;br /&gt;
4: nm&lt;br /&gt;
5: Hz&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== vertdata ===&lt;br /&gt;
&lt;br /&gt;
Parameter : channel: integer, units: integer&lt;br /&gt;
&lt;br /&gt;
Return:   Vector with Channel Data&lt;br /&gt;
&lt;br /&gt;
Function:  Read Channel Data&lt;br /&gt;
&lt;br /&gt;
Columns&lt;br /&gt;
1: Channel in units&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
a=stm.vertdata(3,1);&lt;br /&gt;
&lt;br /&gt;
Channels:&lt;br /&gt;
0: time in sec&lt;br /&gt;
1: V&lt;br /&gt;
2: Z&lt;br /&gt;
3: Current I&lt;br /&gt;
4: dI/dV&lt;br /&gt;
5: d2I/dV&lt;br /&gt;
6: ADC0&lt;br /&gt;
7: ADC1&lt;br /&gt;
8: ADC2&lt;br /&gt;
9: ADC3&lt;br /&gt;
10: df&lt;br /&gt;
11: Damping&lt;br /&gt;
12: Amplitude&lt;br /&gt;
13: di_q&lt;br /&gt;
14: di2_q&lt;br /&gt;
15: Topography(DAC0)&lt;br /&gt;
16: CP(DAC1)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Units:&lt;br /&gt;
0: Default&lt;br /&gt;
1: Volt&lt;br /&gt;
2: DAC&lt;br /&gt;
3: Ampere&lt;br /&gt;
4: nm&lt;br /&gt;
5: Hz&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== pllspecdata ===&lt;br /&gt;
&lt;br /&gt;
Parameter : None&lt;br /&gt;
&lt;br /&gt;
Return:   Array with PLL Spectrum Scan Data&lt;br /&gt;
&lt;br /&gt;
Function:  Read PLL Spectrum Scan Data      &lt;br /&gt;
&lt;br /&gt;
Columns&lt;br /&gt;
1: Frequency [Hz]&lt;br /&gt;
2: Amplitude [a.u.]&lt;br /&gt;
3: Phase [Deg]&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
a=stm.pllspecdata;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== strbuffer ===&lt;br /&gt;
&lt;br /&gt;
Property&lt;br /&gt;
&lt;br /&gt;
Parameter : None&lt;br /&gt;
&lt;br /&gt;
Return:   String with all parameters&lt;br /&gt;
&lt;br /&gt;
Function:  Read and write program parameter      &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
s=stm.strbuffer;&lt;br /&gt;
&lt;br /&gt;
stm.strbuffer:=s;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== pllfreqscan ===&lt;br /&gt;
&lt;br /&gt;
Parameter : None&lt;br /&gt;
&lt;br /&gt;
Return:   none&lt;br /&gt;
&lt;br /&gt;
Function:  Start a new PLL Freqeuncy Scan  &lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
a=stm.pllfreqscan;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===  vertspectrum ===&lt;br /&gt;
 &lt;br /&gt;
Parameter : None&lt;br /&gt;
&lt;br /&gt;
Return:   Ready or Error&lt;br /&gt;
&lt;br /&gt;
Function:  Takes a Vert.Spectrum at the current image point X,Y.  Control is returned after the spectrum has been completely finished&lt;br /&gt;
The tip remains at the current lateral position&lt;br /&gt;
(low level command)&lt;br /&gt;
&lt;br /&gt;
=== move_tip ===&lt;br /&gt;
&lt;br /&gt;
Parameter : &lt;br /&gt;
1. X start position in relative DAC units  &lt;br /&gt;
2. Y start position in relative DAC units&lt;br /&gt;
3. X end position in relative DAC units  &lt;br /&gt;
4. Y end position in relative DAC units  &lt;br /&gt;
5. Number steps in which the tip moves from start to endpoint&lt;br /&gt;
6 Delay in DSP cycles between each step&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Move tip to new position. Coordinates are given in relative DAC units (relative: X,Y Offset and rotation are added afterwards)&lt;br /&gt;
Control is returned after the move has been completely finished&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
stm.move_tip(50,50,100,100, 200,100);&lt;br /&gt;
&lt;br /&gt;
=== move_tip_imagecoord ===&lt;br /&gt;
&lt;br /&gt;
Parameter : &lt;br /&gt;
1. X start position in imagepixels  &lt;br /&gt;
2. Y start position in imagepixels  &lt;br /&gt;
3. X end position in imagepixels  &lt;br /&gt;
4. Y end position in imagepixels  &lt;br /&gt;
5. Number steps in which the tip moves from start to endpoint&lt;br /&gt;
6 Delay in DSP cycles between each step&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Move tip to new position (Image pixel coordinates as displayed in the status line of the STMAFM main window)&lt;br /&gt;
Control is returned after the move has been completely finished&lt;br /&gt;
&lt;br /&gt;
Relation between imagepixel coordinates (0&amp;lt;=ximage&amp;lt;nx ,  0&amp;lt;=yimage&amp;lt;ny ) and  relative DAC coordinates (xdac,ydac):&lt;br /&gt;
(Top line in image is ny=0)&lt;br /&gt;
&lt;br /&gt;
xdac:=trunc(ximage*dx - (nx div 2)*dx);&lt;br /&gt;
ydac:=trunc(yimage*dy);&lt;br /&gt;
&lt;br /&gt;
On the DSP a final coordinate transformation is done including rotation, offset and drift correction to calculate the absolute DAC coordinates:&lt;br /&gt;
Using 20bit DACS the values are internal limited to +/- 524272.&lt;br /&gt;
&lt;br /&gt;
xdacabs=  trunc ( - (xdac*rotmxx + ydac*rotmxy + rotoffx-driftxoff));&lt;br /&gt;
ydacabs=  trunc ( - (xdac*rotmyx + ydac*rotmyy + rotoffy-driftyoff));&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
stm.move_tip_imagecoord(50,50,100,100, 200,100);&lt;br /&gt;
&lt;br /&gt;
=== latmanip ===&lt;br /&gt;
&lt;br /&gt;
Parameter : &lt;br /&gt;
1. X coordinate in imagepixels  of start point.&lt;br /&gt;
2  Y coordinate in imagepixels  of start point&lt;br /&gt;
3. X coordinate in imagepixels  of end point&lt;br /&gt;
4. Y coordinate in imagepixels  of end point&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Takes a lateral manipulation along a line defined by the start and end image points. (Image pixel coordinates as displayed in the status line of the STMAFM main window)&lt;br /&gt;
Control is returned after the manipulation has been completely finished&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
stm.latmanip(50,50,100,100);&lt;br /&gt;
&lt;br /&gt;
===  latmanipxymove  ===&lt;br /&gt;
(low level command)&lt;br /&gt;
&lt;br /&gt;
Parameter : &lt;br /&gt;
1. X coordinate  of start point in rel. DAC units.&lt;br /&gt;
2  Y coordinate  of f start point in rel. DAC units.&lt;br /&gt;
3. X coordinate of end point in rel. DAC units.&lt;br /&gt;
4. Y coordinate of end point in rel. DAC units.&lt;br /&gt;
5. Number of steps &lt;br /&gt;
6. Delay between steps in DSP Cycles&lt;br /&gt;
7. Gain of Preamp during manipulation&lt;br /&gt;
8. Bias Voltage during manipulation&lt;br /&gt;
9. Current set point during manipulation in constant current mode&lt;br /&gt;
&lt;br /&gt;
Return:  None&lt;br /&gt;
Function:  &lt;br /&gt;
Takes a lateral manipulation along a line defined by the start and end image points. Coordinates are in relative DAC units.&lt;br /&gt;
Control is returned after the scan has been completely finished. &lt;br /&gt;
&lt;br /&gt;
The recorded data is saved in a file called 'manipxymove.data' placed in the active directory.&lt;br /&gt;
The file contains one line for each step. For each step the selected number of channels are recorded. (See LATMANIP form)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== latmanbufferext ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== lockinstart ===&lt;br /&gt;
&lt;br /&gt;
Parameter : None&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Starts the internal lockin amplifier&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
stm.lockinstart;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== lockinstop ===&lt;br /&gt;
&lt;br /&gt;
Parameter : None&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Stops the internal lockin amplifier&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
stm.lockinstop;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== updatedspparam ===&lt;br /&gt;
&lt;br /&gt;
Parameter: None&lt;br /&gt;
&lt;br /&gt;
Function: Updates all parameters and synchronizes the the parameters with the DSP&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
stm.updatedspparam;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== updatedspfbparam ===&lt;br /&gt;
&lt;br /&gt;
Parameter :  None&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  After changing the parameters this command allows to update/synchronize the parameters with the DSP.&lt;br /&gt;
&lt;br /&gt;
For example changing a feedback loop parameter in the old parameter window will not automatically change this parameter on the DSP.&lt;br /&gt;
Therefore this update command has to be issued afterwards. Allows to set first the new parameters and then update all at the same time on the DSP.&lt;br /&gt;
(low level command)&lt;br /&gt;
&lt;br /&gt;
=== sliderup ===&lt;br /&gt;
&lt;br /&gt;
Parameter : None&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Moves the slider one step up&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
stm.sliderup;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== sliderdown ===&lt;br /&gt;
&lt;br /&gt;
Parameter : None&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Moves the slider one step down&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
stm.sliderdown;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== slider ===&lt;br /&gt;
&lt;br /&gt;
Parameter :&lt;br /&gt;
channel&lt;br /&gt;
direction&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Moves the slider &lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
stm.slider(1,0);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== setdacval ===&lt;br /&gt;
Parameter : &lt;br /&gt;
board 1..2&lt;br /&gt;
channel  0..5&lt;br /&gt;
value   -524288 ..  524287           &lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Sets DAC value of selected channel. Units are DAC Units (20bit)&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
stm.setdacval(1,2,1000);&lt;br /&gt;
&lt;br /&gt;
                &lt;br /&gt;
=== setdacvalf === &lt;br /&gt;
Parameter : &lt;br /&gt;
board 1..2&lt;br /&gt;
channel  0..5&lt;br /&gt;
value   -10.0 .. 10.0          &lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Sets DAC value of selected channel. Units are Volt (float)&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
stm.setdacval(1,2,1.034);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== getadcval ===&lt;br /&gt;
&lt;br /&gt;
Parameter : &lt;br /&gt;
board 1..2&lt;br /&gt;
channel 0..5                &lt;br /&gt;
&lt;br /&gt;
Return:   ADC value of selected channel&lt;br /&gt;
&lt;br /&gt;
Function:  Gets the ADC value. Units are in DAC units (20bit)&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
stm.getadcval(1,2);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== getadcvalf ===&lt;br /&gt;
&lt;br /&gt;
Parameter : &lt;br /&gt;
board 1..2&lt;br /&gt;
channel  0..5               &lt;br /&gt;
&lt;br /&gt;
Return:   ADC value of selected channel&lt;br /&gt;
&lt;br /&gt;
Function:  Gets the ADC value. Units are in Volt&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
stm.getadcvalf(1,2);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== getdacvalfb ===&lt;br /&gt;
 &lt;br /&gt;
Parameter : none              &lt;br /&gt;
&lt;br /&gt;
Return:   Value of z - Dac in Angstroem&lt;br /&gt;
 &lt;br /&gt;
Function:  Gets the Feedback DAC Value &lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
a=stm.getdacvalfb;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== digoutvalue ===&lt;br /&gt;
&lt;br /&gt;
Property Integer          &lt;br /&gt;
&lt;br /&gt;
Function:  Read and write Digital Outputvalue on Board 1&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
i:=stm.digoutvalue;&lt;br /&gt;
&lt;br /&gt;
stm.digoutvalue:=i;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== sbcdigoutvalue ===&lt;br /&gt;
&lt;br /&gt;
Property Integer          &lt;br /&gt;
&lt;br /&gt;
Function:  Read and write digital outputvalue on SBC6711Board&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
i:=stm.sbcdigoutvalue;&lt;br /&gt;
&lt;br /&gt;
stm.sbcdigoutvalue:=i;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== serverneverclose ===&lt;br /&gt;
&lt;br /&gt;
Parameter: None          &lt;br /&gt;
&lt;br /&gt;
Function:  If activated makes sure that the STM Program will not close after the connection to the server is stopped, if the STM program was started by the client.&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
stm.serverneverclose;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== execmethod ===&lt;br /&gt;
&lt;br /&gt;
Parameter: &lt;br /&gt;
Objectname&lt;br /&gt;
Methodname&lt;br /&gt;
&lt;br /&gt;
Return: None&lt;br /&gt;
&lt;br /&gt;
Function:  Execute a specific function in the STM program. Specific debugging use only&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
stm.execmethod('stmafm','Formmemoclick');&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== setxyoffvolt ===&lt;br /&gt;
&lt;br /&gt;
Parameter : &lt;br /&gt;
x: Offset in Volt  Range: (-10.0, +10.0) * HVGainX&lt;br /&gt;
y: Offset in Volt  Range: (-10.0, +10.0) * HVGainY&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Sets a new X_Offset, Y_Offset Value. Units are in Volt &lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
stm.setxyoffsetvolt(12.5,-24.0);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== setxyoffpixel ===&lt;br /&gt;
Parameter : &lt;br /&gt;
x: Offset in Pixel units &lt;br /&gt;
y: Offset in Pixel Units&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Sets a new X_Offset, Y_Offset Value. The new offset is given by a pixel position in the present scanimage.&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
stm.setxypixel(100,78);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== scandatabitmap ===&lt;br /&gt;
&lt;br /&gt;
Parameter : none&lt;br /&gt;
Return:   Array with Scan Channel Bitmap Data&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Function:  Get the the scanimage data as a bitmap.&lt;br /&gt;
The bitmap data is 32bit wide. The bitmap contains all channels.&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
a=stm.scandatabitmap;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== pc32scanstatus ===&lt;br /&gt;
&lt;br /&gt;
Parameter : none&lt;br /&gt;
&lt;br /&gt;
Return:   Scanstatus value on DSP Board&lt;br /&gt;
&lt;br /&gt;
Function:  Gets the scanstatus of the DSP program&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
a=stm.pc32scanstatus;&lt;br /&gt;
&lt;br /&gt;
=== setchmodezoff ===&lt;br /&gt;
&lt;br /&gt;
Parameter : zoffset&lt;br /&gt;
&lt;br /&gt;
Return:   none&lt;br /&gt;
&lt;br /&gt;
Function:  Sets the const height Zoffset value&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
a=stm.setchmodezoff(1.0);&lt;br /&gt;
&lt;br /&gt;
=== stmready ===&lt;br /&gt;
Parameter: none&lt;br /&gt;
Return: stmready  1: ready  0 not ready&lt;br /&gt;
&lt;br /&gt;
Function:  If stmready = 1 then the initialization of the STMAFM program is finshed.&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
&lt;br /&gt;
a= stm.stmready;&lt;br /&gt;
&lt;br /&gt;
=== setrampdspparam ===&lt;br /&gt;
&lt;br /&gt;
Parameter: zheight: single -10 - + 10V&lt;br /&gt;
           zduration: single&lt;br /&gt;
           zburst: integer&lt;br /&gt;
           xyheight:single&lt;br /&gt;
           xyduration: single&lt;br /&gt;
           xyburst: integer&lt;br /&gt;
&lt;br /&gt;
Function: Sets the corresponding parameters of the rampcontroller&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
&lt;br /&gt;
stm.setrampdspparam(1.0,0.01,100,2.0,0.02,200)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:stmafm_manual]]&lt;/div&gt;</summary>
		<author><name>Ltspm</name></author>	</entry>

	<entry>
		<id>http://spm-wiki.createc.de/index.php?title=STMAFM_Remote_Operation</id>
		<title>STMAFM Remote Operation</title>
		<link rel="alternate" type="text/html" href="http://spm-wiki.createc.de/index.php?title=STMAFM_Remote_Operation"/>
				<updated>2015-08-05T18:30:36Z</updated>
		
		<summary type="html">&lt;p&gt;Ltspm: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== OLE/COM Server ==&lt;br /&gt;
&lt;br /&gt;
To register the OLE/COM sever in the stmafm program goto &amp;quot;Debug&amp;quot; and &amp;quot;Register COM Server&amp;quot;. If you are going to install a newer version of the program, please click &amp;quot;Unregister COM Server&amp;quot; before installing the new version. Both has to be done with administrative rights as it requires access to the Windows registry.&lt;br /&gt;
&lt;br /&gt;
You may also run  &amp;quot;pstmafm.exe / regserver&amp;quot; form the command prompt.&lt;br /&gt;
(Alternatively run &amp;quot;pstmafm.exe /regserverperuser&amp;quot; in case you have problems running /regserver in Windows 7)&lt;br /&gt;
Again administrator rights are required.&lt;br /&gt;
&lt;br /&gt;
There are many different software tools available to perform data analysis as well as data aquisition or remote operation of the STMAFM program via OLE/COM: &lt;br /&gt;
&lt;br /&gt;
1. Python (Freeware, please visit http://winpython.sourceforge.net/ for download) we're using WinPython 2.7.x 32bit, 64bit&lt;br /&gt;
&lt;br /&gt;
2. Commercial Software: MatLab / LabView&lt;br /&gt;
&lt;br /&gt;
3. For more specific purposes with a more elaborate user interface Createc can supply dedicated plugin programs. (Contact ltspm@createc.de to solve your specific needs)&lt;br /&gt;
&lt;br /&gt;
For simple scripting purposes, i.e. controlling the program without data analysis a scripter program is can still be used.(e.g. MAXBOX) But for people starting from scratch we recommend using the OLE/COM interface as we will drop the support via the TCPIP interface in future. &lt;br /&gt;
&lt;br /&gt;
Example software will be provided through the Createc WebSite.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Python Connection ==&lt;br /&gt;
&lt;br /&gt;
We recommend to install WinPython 2.7.x and using the IPython Notebook therein. These command will initialize the connection to the STMAFM program. Afterwards you may import / export files using filters from the program and control the complete software&lt;br /&gt;
&lt;br /&gt;
 import win32com.client&lt;br /&gt;
 stm=win32com.client.Dispatch(&amp;quot;pstmafm.stmafmrem&amp;quot;)&lt;br /&gt;
 stm.stmbeep()&lt;br /&gt;
&lt;br /&gt;
== Matlab Connection ==&lt;br /&gt;
&lt;br /&gt;
You can access the pstmafm.stmafm OLE/COM server directly from Matlab (or Freemat using a corresponding dll).&lt;br /&gt;
We recommend controlling the STMAFM program through this interface.&lt;br /&gt;
&lt;br /&gt;
 stm=actxserver('pstmafm.stmafmrem'); %Open connection to STMAFM program, see also Matlab manual.&lt;br /&gt;
 stm.stmbeep; % &lt;br /&gt;
 stm.release; % release stm program&lt;br /&gt;
&lt;br /&gt;
The STMAFM program will be started and closed automatically from Matlab. If the STMAFM program is already running just the connection will be established.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Demo Startstm.m with event capability&lt;br /&gt;
&lt;br /&gt;
 global stm&lt;br /&gt;
 global stm1&lt;br /&gt;
 global linescandata&lt;br /&gt;
 stm=actxserver('pstmafm.stmafmrem');&lt;br /&gt;
 stm1=actxserver('pstmafm.stmafmevent');&lt;br /&gt;
 stm1.registerevent('serverevents');&lt;br /&gt;
 %registerevent: register a file serverevents.m to handle events.&lt;br /&gt;
&lt;br /&gt;
Example: serverevents.m &lt;br /&gt;
&lt;br /&gt;
 function serverevents(varargin)&lt;br /&gt;
 global stmoleeventnr&lt;br /&gt;
 global linescandata&lt;br /&gt;
 global stm&lt;br /&gt;
 stmoleeventnr = cell2mat(varargin(3));&lt;br /&gt;
 linescandata = stm.linescandata; &lt;br /&gt;
 if (stmoleeventnr == 1)&lt;br /&gt;
   plot(linescandata(:,1),linescandata(:,2));&lt;br /&gt;
 end&lt;br /&gt;
&lt;br /&gt;
== Plugins ==&lt;br /&gt;
&lt;br /&gt;
Specifically developed Plugins will be available to supply specific user needs. In particular where a more elaborate graphical user interface is&lt;br /&gt;
necessary compared to a simple text based scripting control.&lt;br /&gt;
&lt;br /&gt;
== Commands ==&lt;br /&gt;
&lt;br /&gt;
=== stmbeep ===&lt;br /&gt;
&lt;br /&gt;
Parameter : None&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  STMAFM program creates a short beep sound.  Used for testing purposes.&lt;br /&gt;
&lt;br /&gt;
=== setparam ===&lt;br /&gt;
&lt;br /&gt;
Parameter : (Strings)&lt;br /&gt;
1. Name of parameter&lt;br /&gt;
2. New Value&lt;br /&gt;
&lt;br /&gt;
Return:   &lt;br /&gt;
&lt;br /&gt;
Function:  Sets a parameter to a new value. The name is the name appearing in the old parameter menue&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
stm.setparam('Rotation','90.00');&lt;br /&gt;
&lt;br /&gt;
=== getparam ===&lt;br /&gt;
&lt;br /&gt;
Parameter : &lt;br /&gt;
1. Name of parameter&lt;br /&gt;
&lt;br /&gt;
Return:   &lt;br /&gt;
1. Value of Parameter&lt;br /&gt;
&lt;br /&gt;
Function:  Gets the actual parameter value. The name is the name appearing the old parameter menue&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
a=stm.getparam('Rotation');&lt;br /&gt;
&lt;br /&gt;
=== scanstart ===&lt;br /&gt;
&lt;br /&gt;
Parameter : None&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Starts a new STM scan.  Similar to pressing the button Scanstart&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== scanwaitfinished ===&lt;br /&gt;
&lt;br /&gt;
Parameter : None&lt;br /&gt;
&lt;br /&gt;
Return:  None&lt;br /&gt;
&lt;br /&gt;
Function:  Waits until the active scan is stopped.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== scanstop ===&lt;br /&gt;
&lt;br /&gt;
Parameter : None&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Stops a running STM scan.  Similar to pressing the button Scanstop&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== scanstatus ===&lt;br /&gt;
&lt;br /&gt;
Parameter : None&lt;br /&gt;
&lt;br /&gt;
Return:    Status Number ( = ord(scanstat) see below)&lt;br /&gt;
&lt;br /&gt;
Function:  Gets the present scanstatus. &lt;br /&gt;
&lt;br /&gt;
scanstat = (scanstatreset, stop, running, start, resetting, pause, scanstatvertman, scanstatlatman, scanstattimespec, scanxyoffset,scanstatapproach);&lt;br /&gt;
&lt;br /&gt;
0, SCANSTATRESET:   		Programm is in idle state&lt;br /&gt;
1, STOP:	            	Running Scan is stopped but is not fully reset yet.&lt;br /&gt;
2, RUNNING:                 	Scan is running&lt;br /&gt;
3, START                      	New Scan is started but not yet running&lt;br /&gt;
4, PAUSE			Running Scan is paused&lt;br /&gt;
5, SCANSTATVERTMAN	VertSpectrum is running&lt;br /&gt;
6, SCANSTATLATMAN		LATManip is running&lt;br /&gt;
7, SCANSTATTIMESPEC	Timespectrum is running&lt;br /&gt;
8, SCANXYOFFSET		XYOffset is running&lt;br /&gt;
9, SCANSTATAPPROACH	Approach is running&lt;br /&gt;
&lt;br /&gt;
=== quicksave ===&lt;br /&gt;
&lt;br /&gt;
Parameter : None&lt;br /&gt;
&lt;br /&gt;
Return:  None&lt;br /&gt;
&lt;br /&gt;
Function:  Saves the current scan file using the default filename. Similar to presisng the Quicksave button&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== filesave ===&lt;br /&gt;
&lt;br /&gt;
Parameter : Filename&lt;br /&gt;
&lt;br /&gt;
Return:  None&lt;br /&gt;
&lt;br /&gt;
Function:  Saves the current scandata file using the  filename as .dat file. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== fileload ===&lt;br /&gt;
&lt;br /&gt;
Parameter : Filename&lt;br /&gt;
&lt;br /&gt;
Return:  None&lt;br /&gt;
&lt;br /&gt;
Function:  Loads a .dat file into the program.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== vertsave ===&lt;br /&gt;
&lt;br /&gt;
Parameter : None&lt;br /&gt;
&lt;br /&gt;
Return:   none&lt;br /&gt;
&lt;br /&gt;
Function:  save present vertspecdata &lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
a=stm.vertsave;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== latsave ===&lt;br /&gt;
Parameter : None&lt;br /&gt;
&lt;br /&gt;
Return:   none&lt;br /&gt;
&lt;br /&gt;
Function:  save present latmanipdata &lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
a=stm.latsave;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== savedatfilename ===&lt;br /&gt;
&lt;br /&gt;
Property String&lt;br /&gt;
&lt;br /&gt;
Parameter : None&lt;br /&gt;
&lt;br /&gt;
Return:  None&lt;br /&gt;
&lt;br /&gt;
Function:  Read and write the default savefilename of .dat files.&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
filename=stm.savedatfilename;&lt;br /&gt;
&lt;br /&gt;
stm.savefilename=filename;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===  loadfilename ===&lt;br /&gt;
&lt;br /&gt;
Property String&lt;br /&gt;
&lt;br /&gt;
Function:  Read and write the default loadfilename of .dat files.&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
filename=stm.loaddatfilename;&lt;br /&gt;
&lt;br /&gt;
stm.loadfilename=filename;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== savevertfilename ===&lt;br /&gt;
&lt;br /&gt;
Property String&lt;br /&gt;
&lt;br /&gt;
Function:  Read and write the default filename of Vertspec  files.&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
filename=stm.savevertfilename;&lt;br /&gt;
&lt;br /&gt;
stm.savevertfilename=filename;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== savelatfilename ===&lt;br /&gt;
&lt;br /&gt;
Property String&lt;br /&gt;
&lt;br /&gt;
Function:  Read and write the default filename of Latmanip  files.&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
filename=stm.savelatfilename;&lt;br /&gt;
&lt;br /&gt;
stm.savelatfilename:=filename;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== btn_vertspec ===&lt;br /&gt;
&lt;br /&gt;
Parameter : &lt;br /&gt;
1. xpos :integer&lt;br /&gt;
2. ypos :integer&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Takes a Vert.Spectrum at image point Xpos,Ypos. (Image pixel coordinates as displayed in the status line of the STMAFM main window) Control is returned after the spectrum has been completely finished&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
stm.btn_vertspec(128,128);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== btn_vertspec_line ===&lt;br /&gt;
&lt;br /&gt;
Parameter : &lt;br /&gt;
1. X coordinate in imagepixels  of start point.&lt;br /&gt;
2  Y coordinate in imagepixels  of start point&lt;br /&gt;
3. X coordinate in imagepixels  of end point&lt;br /&gt;
4. Y coordinate in imagepixels  of end point&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
Function:  Takes a series of Vert.Spectra along a line defined by the start and end image points. (Image pixel coordinates as displayed in the status line of the STMAFM main window)&lt;br /&gt;
Control is returned after the spectra have been completely finished&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
stm.btn_vertspec_line(50,50,100,100);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== btn_vertspec_mult ===&lt;br /&gt;
&lt;br /&gt;
Parameter : 2d Array of X,Y coordinates&lt;br /&gt;
1. X coordinate in imagepixels  of 1.point&lt;br /&gt;
2. Y coordinate in imagepixels  of 1.point&lt;br /&gt;
.......&lt;br /&gt;
&lt;br /&gt;
2n-1. X coordinate in imagepixels  of n.point&lt;br /&gt;
2n. Y coordinate in imagepixels  of n.point&lt;br /&gt;
&lt;br /&gt;
Return:   Ready or Error&lt;br /&gt;
&lt;br /&gt;
Function:  Takes a series of Vert.Spectra defined by a list of image points. (Image pixel coordinates as displayed in the status line of the STMAFM main window). Control is returned after the spectra have been completely finished&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
a=[10,20;50,50;100,100;19,90];&lt;br /&gt;
stm.btn_vertspec_line(a);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== btn_tipform ===&lt;br /&gt;
&lt;br /&gt;
Parameter : &lt;br /&gt;
1. xpos :integer&lt;br /&gt;
2. ypos :integer&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Does a tip forming at image point Xpos,Ypos. (Image pixel coordinates as displayed in the status line of the STMAFM main window). Control is returned after the tip forming has been completely finished&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
stm.btn_tipform(128,128);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== btn_timespec ===&lt;br /&gt;
&lt;br /&gt;
Parameter : none&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Takes a time spectrum&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
stm.btn_timespec;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== scandata ===&lt;br /&gt;
&lt;br /&gt;
Parameter : channel: integer:integer&lt;br /&gt;
&lt;br /&gt;
Return:   Array with Scan Channel Data&lt;br /&gt;
&lt;br /&gt;
Function:  Read single channel of Scan Data &lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
a=stm.scandata(channel);  Presently only DAC units supported&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Channels:&lt;br /&gt;
1:Topography&lt;br /&gt;
2: Current(ADC0)&lt;br /&gt;
3: ADC1&lt;br /&gt;
4: ADC2&lt;br /&gt;
5: ADC3&lt;br /&gt;
6: dI/dV&lt;br /&gt;
7: d2I/dV&lt;br /&gt;
8: df&lt;br /&gt;
9: Damping&lt;br /&gt;
10: Amplitude&lt;br /&gt;
11: CP(DAC1)&lt;br /&gt;
12: AUX1&lt;br /&gt;
&lt;br /&gt;
If backward scanning channels are enabled, these channels are accessed by adding 256 as offset to the channel number above.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== scandatawrite ===&lt;br /&gt;
&lt;br /&gt;
Parameter : &lt;br /&gt;
1. channel: integer:integer&lt;br /&gt;
2. data: Matrix with Scan Channel Data&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Write single channel of Scan Data &lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
stm.scandatawrite(channel, data);     Presently only DAC units supported&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Channels:&lt;br /&gt;
1:Topography&lt;br /&gt;
2: Current(ADC0)&lt;br /&gt;
3: ADC1&lt;br /&gt;
4: ADC2&lt;br /&gt;
5: ADC3&lt;br /&gt;
6: dI/dV&lt;br /&gt;
7: d2I/dV&lt;br /&gt;
8: df&lt;br /&gt;
9: Damping&lt;br /&gt;
10: Amplitude&lt;br /&gt;
11: CP(DAC1)&lt;br /&gt;
12: AUX1&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== scanauxdata ===&lt;br /&gt;
&lt;br /&gt;
Property:   Matrix with Scan Aux channel Data&lt;br /&gt;
&lt;br /&gt;
Function:  Read and  write Scan AUX Data channel&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
a=stm.scanauxdata;  Presently only DAC units supported&lt;br /&gt;
stm.scanauxdata=a;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== openscanchannel ===&lt;br /&gt;
&lt;br /&gt;
Parameter : &lt;br /&gt;
1. channel integer&lt;br /&gt;
2. select :boolean&lt;br /&gt;
&lt;br /&gt;
Return:   none&lt;br /&gt;
&lt;br /&gt;
Function:  Activate specific Scan channel  &lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
a=stm.openscanchannel(channel, true);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===  linescandata ===&lt;br /&gt;
&lt;br /&gt;
Parameter : None&lt;br /&gt;
&lt;br /&gt;
Return:   Array with actual LineScan Data&lt;br /&gt;
&lt;br /&gt;
Function:  Read LineScan Data  &lt;br /&gt;
&lt;br /&gt;
Linescandata can be transferred into the Matlab workspace in a event driven manner. I.e. click the copy OLE/COM server popupmenue field in the Linescan window. This creates an event in Matlab which starts the&lt;br /&gt;
serverevents.m file which transfers the data to Matlab.    &lt;br /&gt;
&lt;br /&gt;
Columns&lt;br /&gt;
1: Distance in Angstrom&lt;br /&gt;
2: Y Values&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
a=stm.linescandata;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== timespecdata ===&lt;br /&gt;
&lt;br /&gt;
Parameter : channel: integer, units: integer&lt;br /&gt;
&lt;br /&gt;
Return:   Vector with Channel Data&lt;br /&gt;
&lt;br /&gt;
Function:  Read Channel Data&lt;br /&gt;
&lt;br /&gt;
Columns&lt;br /&gt;
1: Channel in units&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
a=stm.timespec(3,0);&lt;br /&gt;
&lt;br /&gt;
Channels:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== timespecfftdata ===&lt;br /&gt;
&lt;br /&gt;
Parameter : channel: integer, units: integer&lt;br /&gt;
&lt;br /&gt;
Return:   Vector with Channel Data&lt;br /&gt;
&lt;br /&gt;
Function:  Read Channel Data&lt;br /&gt;
&lt;br /&gt;
Columns&lt;br /&gt;
1: Channel in units&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
a=stm.timespec(3,0);&lt;br /&gt;
&lt;br /&gt;
Channels:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== latmandata ===&lt;br /&gt;
&lt;br /&gt;
Parameter : channel: integer, units: integer&lt;br /&gt;
&lt;br /&gt;
Return:   Vector with Lat manip Channel Data&lt;br /&gt;
&lt;br /&gt;
Function:  Read Lat manip Channel Data&lt;br /&gt;
&lt;br /&gt;
Columns&lt;br /&gt;
1: Channel in units&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
a=stm.latmandata(channel,units);&lt;br /&gt;
&lt;br /&gt;
Channels:&lt;br /&gt;
0: time in sec&lt;br /&gt;
1: X&lt;br /&gt;
2: Y&lt;br /&gt;
3: Current I&lt;br /&gt;
4: dI/dV&lt;br /&gt;
5: d2I/dV&lt;br /&gt;
6: ADC0&lt;br /&gt;
7: ADC1&lt;br /&gt;
8: ADC2&lt;br /&gt;
9: ADC3&lt;br /&gt;
10: df&lt;br /&gt;
11: Damping&lt;br /&gt;
12: Amplitude&lt;br /&gt;
13: di_q&lt;br /&gt;
14: di2_q&lt;br /&gt;
15: Topography(DAC0)&lt;br /&gt;
16: CP(DAC1)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Units:&lt;br /&gt;
0: Default&lt;br /&gt;
1: Volt&lt;br /&gt;
2: DAC&lt;br /&gt;
3: Ampere&lt;br /&gt;
4: nm&lt;br /&gt;
5: Hz&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== vertdata ===&lt;br /&gt;
&lt;br /&gt;
Parameter : channel: integer, units: integer&lt;br /&gt;
&lt;br /&gt;
Return:   Vector with Channel Data&lt;br /&gt;
&lt;br /&gt;
Function:  Read Channel Data&lt;br /&gt;
&lt;br /&gt;
Columns&lt;br /&gt;
1: Channel in units&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
a=stm.vertdata(3,1);&lt;br /&gt;
&lt;br /&gt;
Channels:&lt;br /&gt;
0: time in sec&lt;br /&gt;
1: V&lt;br /&gt;
2: Z&lt;br /&gt;
3: Current I&lt;br /&gt;
4: dI/dV&lt;br /&gt;
5: d2I/dV&lt;br /&gt;
6: ADC0&lt;br /&gt;
7: ADC1&lt;br /&gt;
8: ADC2&lt;br /&gt;
9: ADC3&lt;br /&gt;
10: df&lt;br /&gt;
11: Damping&lt;br /&gt;
12: Amplitude&lt;br /&gt;
13: di_q&lt;br /&gt;
14: di2_q&lt;br /&gt;
15: Topography(DAC0)&lt;br /&gt;
16: CP(DAC1)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Units:&lt;br /&gt;
0: Default&lt;br /&gt;
1: Volt&lt;br /&gt;
2: DAC&lt;br /&gt;
3: Ampere&lt;br /&gt;
4: nm&lt;br /&gt;
5: Hz&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== pllspecdata ===&lt;br /&gt;
&lt;br /&gt;
Parameter : None&lt;br /&gt;
&lt;br /&gt;
Return:   Array with PLL Spectrum Scan Data&lt;br /&gt;
&lt;br /&gt;
Function:  Read PLL Spectrum Scan Data      &lt;br /&gt;
&lt;br /&gt;
Columns&lt;br /&gt;
1: Frequency [Hz]&lt;br /&gt;
2: Amplitude [a.u.]&lt;br /&gt;
3: Phase [Deg]&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
a=stm.pllspecdata;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== strbuffer ===&lt;br /&gt;
&lt;br /&gt;
Property&lt;br /&gt;
&lt;br /&gt;
Parameter : None&lt;br /&gt;
&lt;br /&gt;
Return:   String with all parameters&lt;br /&gt;
&lt;br /&gt;
Function:  Read and write program parameter      &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
s=stm.strbuffer;&lt;br /&gt;
&lt;br /&gt;
stm.strbuffer:=s;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== pllfreqscan ===&lt;br /&gt;
&lt;br /&gt;
Parameter : None&lt;br /&gt;
&lt;br /&gt;
Return:   none&lt;br /&gt;
&lt;br /&gt;
Function:  Start a new PLL Freqeuncy Scan  &lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
a=stm.pllfreqscan;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===  vertspectrum ===&lt;br /&gt;
 &lt;br /&gt;
Parameter : None&lt;br /&gt;
&lt;br /&gt;
Return:   Ready or Error&lt;br /&gt;
&lt;br /&gt;
Function:  Takes a Vert.Spectrum at the current image point X,Y.  Control is returned after the spectrum has been completely finished&lt;br /&gt;
The tip remains at the current lateral position&lt;br /&gt;
(low level command)&lt;br /&gt;
&lt;br /&gt;
=== move_tip ===&lt;br /&gt;
&lt;br /&gt;
Parameter : &lt;br /&gt;
1. X start position in relative DAC units  &lt;br /&gt;
2. Y start position in relative DAC units&lt;br /&gt;
3. X end position in relative DAC units  &lt;br /&gt;
4. Y end position in relative DAC units  &lt;br /&gt;
5. Number steps in which the tip moves from start to endpoint&lt;br /&gt;
6 Delay in DSP cycles between each step&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Move tip to new position. Coordinates are given in relative DAC units (relative: X,Y Offset and rotation are added afterwards)&lt;br /&gt;
Control is returned after the move has been completely finished&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
stm.move_tip(50,50,100,100, 200,100);&lt;br /&gt;
&lt;br /&gt;
=== move_tip_imagecoord ===&lt;br /&gt;
&lt;br /&gt;
Parameter : &lt;br /&gt;
1. X start position in imagepixels  &lt;br /&gt;
2. Y start position in imagepixels  &lt;br /&gt;
3. X end position in imagepixels  &lt;br /&gt;
4. Y end position in imagepixels  &lt;br /&gt;
5. Number steps in which the tip moves from start to endpoint&lt;br /&gt;
6 Delay in DSP cycles between each step&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Move tip to new position (Image pixel coordinates as displayed in the status line of the STMAFM main window)&lt;br /&gt;
Control is returned after the move has been completely finished&lt;br /&gt;
&lt;br /&gt;
Relation between imagepixel coordinates (0&amp;lt;=ximage&amp;lt;nx ,  0&amp;lt;=yimage&amp;lt;ny ) and  relative DAC coordinates (xdac,ydac):&lt;br /&gt;
(Top line in image is ny=0)&lt;br /&gt;
&lt;br /&gt;
xdac:=trunc(ximage*dx - (nx div 2)*dx);&lt;br /&gt;
ydac:=trunc(yimage*dy);&lt;br /&gt;
&lt;br /&gt;
On the DSP a final coordinate transformation is done including rotation, offset and drift correction to calculate the absolute DAC coordinates:&lt;br /&gt;
Using 20bit DACS the values are internal limited to +/- 524272.&lt;br /&gt;
&lt;br /&gt;
xdacabs=  trunc ( - (xdac*rotmxx + ydac*rotmxy + rotoffx-driftxoff));&lt;br /&gt;
ydacabs=  trunc ( - (xdac*rotmyx + ydac*rotmyy + rotoffy-driftyoff));&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
stm.move_tip_imagecoord(50,50,100,100, 200,100);&lt;br /&gt;
&lt;br /&gt;
=== latmanip ===&lt;br /&gt;
&lt;br /&gt;
Parameter : &lt;br /&gt;
1. X coordinate in imagepixels  of start point.&lt;br /&gt;
2  Y coordinate in imagepixels  of start point&lt;br /&gt;
3. X coordinate in imagepixels  of end point&lt;br /&gt;
4. Y coordinate in imagepixels  of end point&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Takes a lateral manipulation along a line defined by the start and end image points. (Image pixel coordinates as displayed in the status line of the STMAFM main window)&lt;br /&gt;
Control is returned after the manipulation has been completely finished&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
stm.latmanip(50,50,100,100);&lt;br /&gt;
&lt;br /&gt;
===  latmanipxymove  ===&lt;br /&gt;
(low level command)&lt;br /&gt;
&lt;br /&gt;
Parameter : &lt;br /&gt;
1. X coordinate  of start point in rel. DAC units.&lt;br /&gt;
2  Y coordinate  of f start point in rel. DAC units.&lt;br /&gt;
3. X coordinate of end point in rel. DAC units.&lt;br /&gt;
4. Y coordinate of end point in rel. DAC units.&lt;br /&gt;
5. Number of steps &lt;br /&gt;
6. Delay between steps in DSP Cycles&lt;br /&gt;
7. Gain of Preamp during manipulation&lt;br /&gt;
8. Bias Voltage during manipulation&lt;br /&gt;
9. Current set point during manipulation in constant current mode&lt;br /&gt;
&lt;br /&gt;
Return:  None&lt;br /&gt;
Function:  &lt;br /&gt;
Takes a lateral manipulation along a line defined by the start and end image points. Coordinates are in relative DAC units.&lt;br /&gt;
Control is returned after the scan has been completely finished. &lt;br /&gt;
&lt;br /&gt;
The recorded data is saved in a file called 'manipxymove.data' placed in the active directory.&lt;br /&gt;
The file contains one line for each step. For each step the selected number of channels are recorded. (See LATMANIP form)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== latmanbufferext ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== lockinstart ===&lt;br /&gt;
&lt;br /&gt;
Parameter : None&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Starts the internal lockin amplifier&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
stm.lockinstart;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== lockinstop ===&lt;br /&gt;
&lt;br /&gt;
Parameter : None&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Stops the internal lockin amplifier&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
stm.lockinstop;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== updatedspparam ===&lt;br /&gt;
&lt;br /&gt;
Parameter: None&lt;br /&gt;
&lt;br /&gt;
Function: Updates all parameters and synchronizes the the parameters with the DSP&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
stm.updatedspparam;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== updatedspfbparam ===&lt;br /&gt;
&lt;br /&gt;
Parameter :  None&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  After changing the parameters this command allows to update/synchronize the parameters with the DSP.&lt;br /&gt;
&lt;br /&gt;
For example changing a feedback loop parameter in the old parameter window will not automatically change this parameter on the DSP.&lt;br /&gt;
Therefore this update command has to be issued afterwards. Allows to set first the new parameters and then update all at the same time on the DSP.&lt;br /&gt;
(low level command)&lt;br /&gt;
&lt;br /&gt;
=== sliderup ===&lt;br /&gt;
&lt;br /&gt;
Parameter : None&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Moves the slider one step up&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
stm.sliderup;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== sliderdown ===&lt;br /&gt;
&lt;br /&gt;
Parameter : None&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Moves the slider one step down&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
stm.sliderdown;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== slider ===&lt;br /&gt;
&lt;br /&gt;
Parameter :&lt;br /&gt;
channel&lt;br /&gt;
direction&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Moves the slider &lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
stm.slider(1,0);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== setdacval ===&lt;br /&gt;
Parameter : &lt;br /&gt;
board 1..2&lt;br /&gt;
channel  0..5&lt;br /&gt;
value   -524288 ..  524287           &lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Sets DAC value of selected channel. Units are DAC Units (20bit)&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
stm.setdacval(1,2,1000);&lt;br /&gt;
&lt;br /&gt;
                &lt;br /&gt;
=== setdacvalf === &lt;br /&gt;
Parameter : &lt;br /&gt;
board 1..2&lt;br /&gt;
channel  0..5&lt;br /&gt;
value   -10.0 .. 10.0          &lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Sets DAC value of selected channel. Units are Volt (float)&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
stm.setdacval(1,2,1.034);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== getadcval ===&lt;br /&gt;
&lt;br /&gt;
Parameter : &lt;br /&gt;
board 1..2&lt;br /&gt;
channel 0..5                &lt;br /&gt;
&lt;br /&gt;
Return:   ADC value of selected channel&lt;br /&gt;
&lt;br /&gt;
Function:  Gets the ADC value. Units are in DAC units (20bit)&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
stm.getadcval(1,2);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== getadcvalf ===&lt;br /&gt;
&lt;br /&gt;
Parameter : &lt;br /&gt;
board 1..2&lt;br /&gt;
channel  0..5               &lt;br /&gt;
&lt;br /&gt;
Return:   ADC value of selected channel&lt;br /&gt;
&lt;br /&gt;
Function:  Gets the ADC value. Units are in Volt&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
stm.getadcvalf(1,2);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== getdacvalfb ===&lt;br /&gt;
 &lt;br /&gt;
Parameter : none              &lt;br /&gt;
&lt;br /&gt;
Return:   Value of z - Dac in Angstroem&lt;br /&gt;
 &lt;br /&gt;
Function:  Gets the Feedback DAC Value &lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
a=stm.getdacvalfb;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== digoutvalue ===&lt;br /&gt;
&lt;br /&gt;
Property Integer          &lt;br /&gt;
&lt;br /&gt;
Function:  Read and write Digital Outputvalue on Board 1&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
i:=stm.digoutvalue;&lt;br /&gt;
&lt;br /&gt;
stm.digoutvalue:=i;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== sbcdigoutvalue ===&lt;br /&gt;
&lt;br /&gt;
Property Integer          &lt;br /&gt;
&lt;br /&gt;
Function:  Read and write digital outputvalue on SBC6711Board&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
i:=stm.sbcdigoutvalue;&lt;br /&gt;
&lt;br /&gt;
stm.sbcdigoutvalue:=i;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== serverneverclose ===&lt;br /&gt;
&lt;br /&gt;
Parameter: None          &lt;br /&gt;
&lt;br /&gt;
Function:  If activated makes sure that the STM Program will not close after the connection to the server is stopped, if the STM program was started by the client.&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
stm.serverneverclose;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== execmethod ===&lt;br /&gt;
&lt;br /&gt;
Parameter: &lt;br /&gt;
Objectname&lt;br /&gt;
Methodname&lt;br /&gt;
&lt;br /&gt;
Return: None&lt;br /&gt;
&lt;br /&gt;
Function:  Execute a specific function in the STM program. Specific debugging use only&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
stm.execmethod('stmafm','Formmemoclick');&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== setxyoffvolt ===&lt;br /&gt;
&lt;br /&gt;
Parameter : &lt;br /&gt;
x: Offset in Volt  Range: (-10.0, +10.0) * HVGainX&lt;br /&gt;
y: Offset in Volt  Range: (-10.0, +10.0) * HVGainY&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Sets a new X_Offset, Y_Offset Value. Units are in Volt &lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
stm.setxyoffsetvolt(12.5,-24.0);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== setxyoffpixel ===&lt;br /&gt;
Parameter : &lt;br /&gt;
x: Offset in Pixel units &lt;br /&gt;
y: Offset in Pixel Units&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Sets a new X_Offset, Y_Offset Value. The new offset is given by a pixel position in the present scanimage.&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
stm.setxypixel(100,78);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== scandatabitmap ===&lt;br /&gt;
&lt;br /&gt;
Parameter : none&lt;br /&gt;
Return:   Array with Scan Channel Bitmap Data&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Function:  Get the the scanimage data as a bitmap.&lt;br /&gt;
The bitmap data is 32bit wide. The bitmap contains all channels.&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
a=stm.scandatabitmap;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== pc32scanstatus ===&lt;br /&gt;
&lt;br /&gt;
Parameter : none&lt;br /&gt;
&lt;br /&gt;
Return:   Scanstatus value on DSP Board&lt;br /&gt;
&lt;br /&gt;
Function:  Gets the scanstatus of the DSP program&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
a=stm.pc32scanstatus;&lt;br /&gt;
&lt;br /&gt;
=== setchmodezoff ===&lt;br /&gt;
&lt;br /&gt;
Parameter : zoffset&lt;br /&gt;
&lt;br /&gt;
Return:   none&lt;br /&gt;
&lt;br /&gt;
Function:  Sets the const height Zoffset value&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
a=stm.setchmodezoff(1.0);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== stmready ===&lt;br /&gt;
Parameter: none&lt;br /&gt;
Return: stmready  1: ready  0 not ready&lt;br /&gt;
&lt;br /&gt;
Function:  If stmready = 1 then the initialization of the STMAFM program is finshed.&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
&lt;br /&gt;
a= stm.stmready;&lt;br /&gt;
&lt;br /&gt;
=== setrampdspparam ===&lt;br /&gt;
&lt;br /&gt;
Parameter: zheight: single -10 - + 10V&lt;br /&gt;
           zduration: single&lt;br /&gt;
           zburst: integer&lt;br /&gt;
           xyheight:single&lt;br /&gt;
           xyduration: single&lt;br /&gt;
           xyburst: integer&lt;br /&gt;
&lt;br /&gt;
Function: Sets the corresponding parameters of the rampcontroller&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
&lt;br /&gt;
stm.setrampdspparam(1.0,0.01,100,2.0,0.02,200)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:stmafm_manual]]&lt;/div&gt;</summary>
		<author><name>Ltspm</name></author>	</entry>

	<entry>
		<id>http://spm-wiki.createc.de/index.php?title=Service_and_Installation</id>
		<title>Service and Installation</title>
		<link rel="alternate" type="text/html" href="http://spm-wiki.createc.de/index.php?title=Service_and_Installation"/>
				<updated>2015-06-18T15:07:33Z</updated>
		
		<summary type="html">&lt;p&gt;Ltspm: /* Preparation for Service */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
== Preparation for Service ==&lt;br /&gt;
&lt;br /&gt;
Retract the tip&lt;/div&gt;</summary>
		<author><name>Ltspm</name></author>	</entry>

	<entry>
		<id>http://spm-wiki.createc.de/index.php?title=Service_and_Installation</id>
		<title>Service and Installation</title>
		<link rel="alternate" type="text/html" href="http://spm-wiki.createc.de/index.php?title=Service_and_Installation"/>
				<updated>2015-06-18T15:07:04Z</updated>
		
		<summary type="html">&lt;p&gt;Ltspm: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
== Preparation for Service ==&lt;/div&gt;</summary>
		<author><name>Ltspm</name></author>	</entry>

	<entry>
		<id>http://spm-wiki.createc.de/index.php?title=Service_and_Installation</id>
		<title>Service and Installation</title>
		<link rel="alternate" type="text/html" href="http://spm-wiki.createc.de/index.php?title=Service_and_Installation"/>
				<updated>2015-06-18T15:02:52Z</updated>
		
		<summary type="html">&lt;p&gt;Ltspm: Created page with &amp;quot;Preparation for Service&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Preparation for Service&lt;/div&gt;</summary>
		<author><name>Ltspm</name></author>	</entry>

	<entry>
		<id>http://spm-wiki.createc.de/index.php?title=Main_Page</id>
		<title>Main Page</title>
		<link rel="alternate" type="text/html" href="http://spm-wiki.createc.de/index.php?title=Main_Page"/>
				<updated>2015-06-18T14:59:44Z</updated>
		
		<summary type="html">&lt;p&gt;Ltspm: /* STM/AFM Hardware Online Manual */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== STMAFM Software Online Manual==&lt;br /&gt;
#[[Installation]]&lt;br /&gt;
#[[STMAFM Main]]&lt;br /&gt;
#[[Parameter]]&lt;br /&gt;
#[[Forms]]&lt;br /&gt;
#[[Tools]]&lt;br /&gt;
#[[Contacts]]&lt;br /&gt;
#[[STMAFM Remote Operation]]&lt;br /&gt;
#[[Hardware Driver Installation]]&lt;br /&gt;
#[[Hardware 2.0]]&lt;br /&gt;
#[[Additional Information]]&lt;br /&gt;
#[[Legacy Commands]]&lt;br /&gt;
&lt;br /&gt;
== STM/AFM Hardware Online Manual==&lt;br /&gt;
#[[Besocke Type STM Head]]&lt;br /&gt;
#[[Slider Type STM Head]]&lt;br /&gt;
#[[Sample Holders]]&lt;br /&gt;
#[[qPlus Sensors]]&lt;br /&gt;
#[[Tip Preparation]]&lt;br /&gt;
#[[Service and Installation]]&lt;/div&gt;</summary>
		<author><name>Ltspm</name></author>	</entry>

	<entry>
		<id>http://spm-wiki.createc.de/index.php?title=Slider_Type_STM_Head</id>
		<title>Slider Type STM Head</title>
		<link rel="alternate" type="text/html" href="http://spm-wiki.createc.de/index.php?title=Slider_Type_STM_Head"/>
				<updated>2015-04-27T09:10:01Z</updated>
		
		<summary type="html">&lt;p&gt;Ltspm: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[File:Slider_Head_CAD.jpg|400px]]&lt;br /&gt;
[[File:Slider_Head_large.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Sample transfer to STM head ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
file1&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Sample transfer to cooling station ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
file2&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Tip transfer to STM head ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
file3&lt;/div&gt;</summary>
		<author><name>Ltspm</name></author>	</entry>

	<entry>
		<id>http://spm-wiki.createc.de/index.php?title=STMAFM_Remote_Operation</id>
		<title>STMAFM Remote Operation</title>
		<link rel="alternate" type="text/html" href="http://spm-wiki.createc.de/index.php?title=STMAFM_Remote_Operation"/>
				<updated>2015-01-05T14:03:28Z</updated>
		
		<summary type="html">&lt;p&gt;Ltspm: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== OLE/COM Server ==&lt;br /&gt;
&lt;br /&gt;
To register the OLE/COM sever in the stmafm program goto &amp;quot;Debug&amp;quot; and &amp;quot;Register COM Server&amp;quot;. If you are going to install a newer version of the program, please click &amp;quot;Unregister COM Server&amp;quot; before installing the new version. Both has to be done with administrative rights as it requires access to the Windows registry.&lt;br /&gt;
&lt;br /&gt;
You may also run  &amp;quot;pstmafm.exe / regserver&amp;quot; form the command prompt.&lt;br /&gt;
(Alternatively run &amp;quot;pstmafm.exe /regserverperuser&amp;quot; in case you have problems running /regserver in Windows 7)&lt;br /&gt;
Again administrator rights are required.&lt;br /&gt;
&lt;br /&gt;
There are many different software tools available to perform data analysis as well as data aquisition or remote operation of the STMAFM program via OLE/COM: &lt;br /&gt;
&lt;br /&gt;
1. Python (Freeware, please visit http://winpython.sourceforge.net/ for download) we're using WinPython 2.7.x 32bit, 64bit&lt;br /&gt;
&lt;br /&gt;
2. Commercial Software: MatLab / LabView&lt;br /&gt;
&lt;br /&gt;
3. For more specific purposes with a more elaborate user interface Createc can supply dedicated plugin programs. (Contact ltspm@createc.de to solve your specific needs)&lt;br /&gt;
&lt;br /&gt;
For simple scripting purposes, i.e. controlling the program without data analysis a scripter program is can still be used.(e.g. MAXBOX) But for people starting from scratch we recommend using the OLE/COM interface as we will drop the support via the TCPIP interface in future. &lt;br /&gt;
&lt;br /&gt;
Example software will be provided through the Createc WebSite.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Python Connection ==&lt;br /&gt;
&lt;br /&gt;
We recommend to install WinPython 2.7.x and using the IPython Notebook therein. These command will initialize the connection to the STMAFM program. Afterwards you may import / export files using filters from the program and control the complete software&lt;br /&gt;
&lt;br /&gt;
 import win32com.client&lt;br /&gt;
 stm=win32com.client.Dispatch(&amp;quot;pstmafm.stmafmrem&amp;quot;)&lt;br /&gt;
 stm.stmbeep()&lt;br /&gt;
&lt;br /&gt;
== Matlab Connection ==&lt;br /&gt;
&lt;br /&gt;
You can access the pstmafm.stmafm OLE/COM server directly from Matlab (or Freemat using a corresponding dll).&lt;br /&gt;
We recommend controlling the STMAFM program through this interface.&lt;br /&gt;
&lt;br /&gt;
 stm=actxserver('pstmafm.stmafmrem'); %Open connection to STMAFM program, see also Matlab manual.&lt;br /&gt;
 stm.stmbeep; % &lt;br /&gt;
 stm.release; % release stm program&lt;br /&gt;
&lt;br /&gt;
The STMAFM program will be started and closed automatically from Matlab. If the STMAFM program is already running just the connection will be established.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Demo Startstm.m with event capability&lt;br /&gt;
&lt;br /&gt;
 global stm&lt;br /&gt;
 global stm1&lt;br /&gt;
 global linescandata&lt;br /&gt;
 stm=actxserver('pstmafm.stmafmrem');&lt;br /&gt;
 stm1=actxserver('pstmafm.stmafmevent');&lt;br /&gt;
 stm1.registerevent('serverevents');&lt;br /&gt;
 %registerevent: register a file serverevents.m to handle events.&lt;br /&gt;
&lt;br /&gt;
Example: serverevents.m &lt;br /&gt;
&lt;br /&gt;
 function serverevents(varargin)&lt;br /&gt;
 global stmoleeventnr&lt;br /&gt;
 global linescandata&lt;br /&gt;
 global stm&lt;br /&gt;
 stmoleeventnr = cell2mat(varargin(3));&lt;br /&gt;
 linescandata = stm.linescandata; &lt;br /&gt;
 if (stmoleeventnr == 1)&lt;br /&gt;
   plot(linescandata(:,1),linescandata(:,2));&lt;br /&gt;
 end&lt;br /&gt;
&lt;br /&gt;
== Plugins ==&lt;br /&gt;
&lt;br /&gt;
Specifically developed Plugins will be available to supply specific user needs. In particular where a more elaborate graphical user interface is&lt;br /&gt;
necessary compared to a simple text based scripting control.&lt;br /&gt;
&lt;br /&gt;
== Commands ==&lt;br /&gt;
&lt;br /&gt;
=== stmbeep ===&lt;br /&gt;
&lt;br /&gt;
Parameter : None&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  STMAFM program creates a short beep sound.  Used for testing purposes.&lt;br /&gt;
&lt;br /&gt;
=== setparam ===&lt;br /&gt;
&lt;br /&gt;
Parameter : (Strings)&lt;br /&gt;
1. Name of parameter&lt;br /&gt;
2. New Value&lt;br /&gt;
&lt;br /&gt;
Return:   &lt;br /&gt;
&lt;br /&gt;
Function:  Sets a parameter to a new value. The name is the name appearing in the old parameter menue&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
stm.setparam('Rotation','90.00');&lt;br /&gt;
&lt;br /&gt;
=== getparam ===&lt;br /&gt;
&lt;br /&gt;
Parameter : &lt;br /&gt;
1. Name of parameter&lt;br /&gt;
&lt;br /&gt;
Return:   &lt;br /&gt;
1. Value of Parameter&lt;br /&gt;
&lt;br /&gt;
Function:  Gets the actual parameter value. The name is the name appearing the old parameter menue&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
a=stm.getparam('Rotation');&lt;br /&gt;
&lt;br /&gt;
=== scanstart ===&lt;br /&gt;
&lt;br /&gt;
Parameter : None&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Starts a new STM scan.  Similar to pressing the button Scanstart&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== scanwaitfinished ===&lt;br /&gt;
&lt;br /&gt;
Parameter : None&lt;br /&gt;
&lt;br /&gt;
Return:  None&lt;br /&gt;
&lt;br /&gt;
Function:  Waits until the active scan is stopped.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== scanstop ===&lt;br /&gt;
&lt;br /&gt;
Parameter : None&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Stops a running STM scan.  Similar to pressing the button Scanstop&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== scanstatus ===&lt;br /&gt;
&lt;br /&gt;
Parameter : None&lt;br /&gt;
&lt;br /&gt;
Return:    Status Number ( = ord(scanstat) see below)&lt;br /&gt;
&lt;br /&gt;
Function:  Gets the present scanstatus. &lt;br /&gt;
&lt;br /&gt;
scanstat = (scanstatreset, stop, running, start, resetting, pause, scanstatvertman, scanstatlatman, scanstattimespec, scanxyoffset,scanstatapproach);&lt;br /&gt;
&lt;br /&gt;
0, SCANSTATRESET:   		Programm is in idle state&lt;br /&gt;
1, STOP:	            	Running Scan is stopped but is not fully reset yet.&lt;br /&gt;
2, RUNNING:                 	Scan is running&lt;br /&gt;
3, START                      	New Scan is started but not yet running&lt;br /&gt;
4, PAUSE			Running Scan is paused&lt;br /&gt;
5, SCANSTATVERTMAN	VertSpectrum is running&lt;br /&gt;
6, SCANSTATLATMAN		LATManip is running&lt;br /&gt;
7, SCANSTATTIMESPEC	Timespectrum is running&lt;br /&gt;
8, SCANXYOFFSET		XYOffset is running&lt;br /&gt;
9, SCANSTATAPPROACH	Approach is running&lt;br /&gt;
&lt;br /&gt;
=== quicksave ===&lt;br /&gt;
&lt;br /&gt;
Parameter : None&lt;br /&gt;
&lt;br /&gt;
Return:  None&lt;br /&gt;
&lt;br /&gt;
Function:  Saves the current scan file using the default filename. Similar to presisng the Quicksave button&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== filesave ===&lt;br /&gt;
&lt;br /&gt;
Parameter : Filename&lt;br /&gt;
&lt;br /&gt;
Return:  None&lt;br /&gt;
&lt;br /&gt;
Function:  Saves the current scandata file using the  filename as .dat file. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== fileload ===&lt;br /&gt;
&lt;br /&gt;
Parameter : Filename&lt;br /&gt;
&lt;br /&gt;
Return:  None&lt;br /&gt;
&lt;br /&gt;
Function:  Loads a .dat file into the program.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== vertsave ===&lt;br /&gt;
&lt;br /&gt;
Parameter : None&lt;br /&gt;
&lt;br /&gt;
Return:   none&lt;br /&gt;
&lt;br /&gt;
Function:  save present vertspecdata &lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
a=stm.vertsave;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== latsave ===&lt;br /&gt;
Parameter : None&lt;br /&gt;
&lt;br /&gt;
Return:   none&lt;br /&gt;
&lt;br /&gt;
Function:  save present latmanipdata &lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
a=stm.latsave;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== savedatfilename ===&lt;br /&gt;
&lt;br /&gt;
Property String&lt;br /&gt;
&lt;br /&gt;
Parameter : None&lt;br /&gt;
&lt;br /&gt;
Return:  None&lt;br /&gt;
&lt;br /&gt;
Function:  Read and write the default savefilename of .dat files.&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
filename=stm.savedatfilename;&lt;br /&gt;
&lt;br /&gt;
stm.savefilename=filename;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===  loadfilename ===&lt;br /&gt;
&lt;br /&gt;
Property String&lt;br /&gt;
&lt;br /&gt;
Function:  Read and write the default loadfilename of .dat files.&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
filename=stm.loaddatfilename;&lt;br /&gt;
&lt;br /&gt;
stm.loadfilename=filename;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== savevertfilename ===&lt;br /&gt;
&lt;br /&gt;
Property String&lt;br /&gt;
&lt;br /&gt;
Function:  Read and write the default filename of Vertspec  files.&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
filename=stm.savevertfilename;&lt;br /&gt;
&lt;br /&gt;
stm.savevertfilename=filename;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== savelatfilename ===&lt;br /&gt;
&lt;br /&gt;
Property String&lt;br /&gt;
&lt;br /&gt;
Function:  Read and write the default filename of Latmanip  files.&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
filename=stm.savelatfilename;&lt;br /&gt;
&lt;br /&gt;
stm.savelatfilename:=filename;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== btn_vertspec ===&lt;br /&gt;
&lt;br /&gt;
Parameter : &lt;br /&gt;
1. xpos :integer&lt;br /&gt;
2. ypos :integer&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Takes a Vert.Spectrum at image point Xpos,Ypos. (Image pixel coordinates as displayed in the status line of the STMAFM main window) Control is returned after the spectrum has been completely finished&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
stm.btn_vertspec(128,128);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== btn_vertspec_line ===&lt;br /&gt;
&lt;br /&gt;
Parameter : &lt;br /&gt;
1. X coordinate in imagepixels  of start point.&lt;br /&gt;
2  Y coordinate in imagepixels  of start point&lt;br /&gt;
3. X coordinate in imagepixels  of end point&lt;br /&gt;
4. Y coordinate in imagepixels  of end point&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
Function:  Takes a series of Vert.Spectra along a line defined by the start and end image points. (Image pixel coordinates as displayed in the status line of the STMAFM main window)&lt;br /&gt;
Control is returned after the spectra have been completely finished&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
stm.btn_vertspec_line(50,50,100,100);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== btn_vertspec_mult ===&lt;br /&gt;
&lt;br /&gt;
Parameter : 2d Array of X,Y coordinates&lt;br /&gt;
1. X coordinate in imagepixels  of 1.point&lt;br /&gt;
2. Y coordinate in imagepixels  of 1.point&lt;br /&gt;
.......&lt;br /&gt;
&lt;br /&gt;
2n-1. X coordinate in imagepixels  of n.point&lt;br /&gt;
2n. Y coordinate in imagepixels  of n.point&lt;br /&gt;
&lt;br /&gt;
Return:   Ready or Error&lt;br /&gt;
&lt;br /&gt;
Function:  Takes a series of Vert.Spectra defined by a list of image points. (Image pixel coordinates as displayed in the status line of the STMAFM main window). Control is returned after the spectra have been completely finished&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
a=[10,20;50,50;100,100;19,90];&lt;br /&gt;
stm.btn_vertspec_line(a);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== btn_tipform ===&lt;br /&gt;
&lt;br /&gt;
Parameter : &lt;br /&gt;
1. xpos :integer&lt;br /&gt;
2. ypos :integer&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Does a tip forming at image point Xpos,Ypos. (Image pixel coordinates as displayed in the status line of the STMAFM main window). Control is returned after the tip forming has been completely finished&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
stm.btn_tipform(128,128);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== btn_timespec ===&lt;br /&gt;
&lt;br /&gt;
Parameter : none&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Takes a time spectrum&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
stm.btn_timespec;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== scandata ===&lt;br /&gt;
&lt;br /&gt;
Parameter : channel: integer:integer&lt;br /&gt;
&lt;br /&gt;
Return:   Array with Scan Channel Data&lt;br /&gt;
&lt;br /&gt;
Function:  Read single channel of Scan Data &lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
a=stm.scandata(channel);  Presently only DAC units supported&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Channels:&lt;br /&gt;
1:Topography&lt;br /&gt;
2: Current(ADC0)&lt;br /&gt;
3: ADC1&lt;br /&gt;
4: ADC2&lt;br /&gt;
5: ADC3&lt;br /&gt;
6: dI/dV&lt;br /&gt;
7: d2I/dV&lt;br /&gt;
8: df&lt;br /&gt;
9: Damping&lt;br /&gt;
10: Amplitude&lt;br /&gt;
11: CP(DAC1)&lt;br /&gt;
12: AUX1&lt;br /&gt;
&lt;br /&gt;
If backward scanning channels are enabled, these channels are accessed by adding 256 as offset to the channel number above.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== scandatawrite ===&lt;br /&gt;
&lt;br /&gt;
Parameter : &lt;br /&gt;
1. channel: integer:integer&lt;br /&gt;
2. data: Matrix with Scan Channel Data&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Write single channel of Scan Data &lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
stm.scandatawrite(channel, data);     Presently only DAC units supported&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Channels:&lt;br /&gt;
1:Topography&lt;br /&gt;
2: Current(ADC0)&lt;br /&gt;
3: ADC1&lt;br /&gt;
4: ADC2&lt;br /&gt;
5: ADC3&lt;br /&gt;
6: dI/dV&lt;br /&gt;
7: d2I/dV&lt;br /&gt;
8: df&lt;br /&gt;
9: Damping&lt;br /&gt;
10: Amplitude&lt;br /&gt;
11: CP(DAC1)&lt;br /&gt;
12: AUX1&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== scanauxdata ===&lt;br /&gt;
&lt;br /&gt;
Property:   Matrix with Scan Aux channel Data&lt;br /&gt;
&lt;br /&gt;
Function:  Read and  write Scan AUX Data channel&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
a=stm.scanauxdata;  Presently only DAC units supported&lt;br /&gt;
stm.scanauxdata=a;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== openscanchannel ===&lt;br /&gt;
&lt;br /&gt;
Parameter : &lt;br /&gt;
1. channel integer&lt;br /&gt;
2. select :boolean&lt;br /&gt;
&lt;br /&gt;
Return:   none&lt;br /&gt;
&lt;br /&gt;
Function:  Activate specific Scan channel  &lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
a=stm.openscanchannel(channel, true);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===  linescandata ===&lt;br /&gt;
&lt;br /&gt;
Parameter : None&lt;br /&gt;
&lt;br /&gt;
Return:   Array with actual LineScan Data&lt;br /&gt;
&lt;br /&gt;
Function:  Read LineScan Data  &lt;br /&gt;
&lt;br /&gt;
Linescandata can be transferred into the Matlab workspace in a event driven manner. I.e. click the copy OLE/COM server popupmenue field in the Linescan window. This creates an event in Matlab which starts the&lt;br /&gt;
serverevents.m file which transfers the data to Matlab.    &lt;br /&gt;
&lt;br /&gt;
Columns&lt;br /&gt;
1: Distance in Angstrom&lt;br /&gt;
2: Y Values&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
a=stm.linescandata;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== timespecdata ===&lt;br /&gt;
&lt;br /&gt;
Parameter : channel: integer, units: integer&lt;br /&gt;
&lt;br /&gt;
Return:   Vector with Channel Data&lt;br /&gt;
&lt;br /&gt;
Function:  Read Channel Data&lt;br /&gt;
&lt;br /&gt;
Columns&lt;br /&gt;
1: Channel in units&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
a=stm.timespec(3,0);&lt;br /&gt;
&lt;br /&gt;
Channels:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== timespecfftdata ===&lt;br /&gt;
&lt;br /&gt;
Parameter : channel: integer, units: integer&lt;br /&gt;
&lt;br /&gt;
Return:   Vector with Channel Data&lt;br /&gt;
&lt;br /&gt;
Function:  Read Channel Data&lt;br /&gt;
&lt;br /&gt;
Columns&lt;br /&gt;
1: Channel in units&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
a=stm.timespec(3,0);&lt;br /&gt;
&lt;br /&gt;
Channels:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== latmandata ===&lt;br /&gt;
&lt;br /&gt;
Parameter : channel: integer, units: integer&lt;br /&gt;
&lt;br /&gt;
Return:   Vector with Lat manip Channel Data&lt;br /&gt;
&lt;br /&gt;
Function:  Read Lat manip Channel Data&lt;br /&gt;
&lt;br /&gt;
Columns&lt;br /&gt;
1: Channel in units&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
a=stm.latmandata(channel,units);&lt;br /&gt;
&lt;br /&gt;
Channels:&lt;br /&gt;
0: time in sec&lt;br /&gt;
1: X&lt;br /&gt;
2: Y&lt;br /&gt;
3: Current I&lt;br /&gt;
4: dI/dV&lt;br /&gt;
5: d2I/dV&lt;br /&gt;
6: ADC0&lt;br /&gt;
7: ADC1&lt;br /&gt;
8: ADC2&lt;br /&gt;
9: ADC3&lt;br /&gt;
10: df&lt;br /&gt;
11: Damping&lt;br /&gt;
12: Amplitude&lt;br /&gt;
13: di_q&lt;br /&gt;
14: di2_q&lt;br /&gt;
15: Topography(DAC0)&lt;br /&gt;
16: CP(DAC1)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Units:&lt;br /&gt;
0: Default&lt;br /&gt;
1: Volt&lt;br /&gt;
2: DAC&lt;br /&gt;
3: Ampere&lt;br /&gt;
4: nm&lt;br /&gt;
5: Hz&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== vertdata ===&lt;br /&gt;
&lt;br /&gt;
Parameter : channel: integer, units: integer&lt;br /&gt;
&lt;br /&gt;
Return:   Vector with Channel Data&lt;br /&gt;
&lt;br /&gt;
Function:  Read Channel Data&lt;br /&gt;
&lt;br /&gt;
Columns&lt;br /&gt;
1: Channel in units&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
a=stm.vertdata(3,1);&lt;br /&gt;
&lt;br /&gt;
Channels:&lt;br /&gt;
0: time in sec&lt;br /&gt;
1: V&lt;br /&gt;
2: Z&lt;br /&gt;
3: Current I&lt;br /&gt;
4: dI/dV&lt;br /&gt;
5: d2I/dV&lt;br /&gt;
6: ADC0&lt;br /&gt;
7: ADC1&lt;br /&gt;
8: ADC2&lt;br /&gt;
9: ADC3&lt;br /&gt;
10: df&lt;br /&gt;
11: Damping&lt;br /&gt;
12: Amplitude&lt;br /&gt;
13: di_q&lt;br /&gt;
14: di2_q&lt;br /&gt;
15: Topography(DAC0)&lt;br /&gt;
16: CP(DAC1)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Units:&lt;br /&gt;
0: Default&lt;br /&gt;
1: Volt&lt;br /&gt;
2: DAC&lt;br /&gt;
3: Ampere&lt;br /&gt;
4: nm&lt;br /&gt;
5: Hz&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== pllspecdata ===&lt;br /&gt;
&lt;br /&gt;
Parameter : None&lt;br /&gt;
&lt;br /&gt;
Return:   Array with PLL Spectrum Scan Data&lt;br /&gt;
&lt;br /&gt;
Function:  Read PLL Spectrum Scan Data      &lt;br /&gt;
&lt;br /&gt;
Columns&lt;br /&gt;
1: Frequency [Hz]&lt;br /&gt;
2: Amplitude [a.u.]&lt;br /&gt;
3: Phase [Deg]&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
a=stm.pllspecdata;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== strbuffer ===&lt;br /&gt;
&lt;br /&gt;
Property&lt;br /&gt;
&lt;br /&gt;
Parameter : None&lt;br /&gt;
&lt;br /&gt;
Return:   String with all parameters&lt;br /&gt;
&lt;br /&gt;
Function:  Read and write program parameter      &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
s=stm.strbuffer;&lt;br /&gt;
&lt;br /&gt;
stm.strbuffer:=s;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== pllfreqscan ===&lt;br /&gt;
&lt;br /&gt;
Parameter : None&lt;br /&gt;
&lt;br /&gt;
Return:   none&lt;br /&gt;
&lt;br /&gt;
Function:  Start a new PLL Freqeuncy Scan  &lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
a=stm.pllfreqscan;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===  vertspectrum ===&lt;br /&gt;
 &lt;br /&gt;
Parameter : None&lt;br /&gt;
&lt;br /&gt;
Return:   Ready or Error&lt;br /&gt;
&lt;br /&gt;
Function:  Takes a Vert.Spectrum at the current image point X,Y.  Control is returned after the spectrum has been completely finished&lt;br /&gt;
The tip remains at the current lateral position&lt;br /&gt;
(low level command)&lt;br /&gt;
&lt;br /&gt;
=== move_tip ===&lt;br /&gt;
&lt;br /&gt;
Parameter : &lt;br /&gt;
1. X start position in relative DAC units  &lt;br /&gt;
2. Y start position in relative DAC units&lt;br /&gt;
3. X end position in relative DAC units  &lt;br /&gt;
4. Y end position in relative DAC units  &lt;br /&gt;
5. Number steps in which the tip moves from start to endpoint&lt;br /&gt;
6 Delay in DSP cycles between each step&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Move tip to new position. Coordinates are given in relative DAC units (relative: X,Y Offset and rotation are added afterwards)&lt;br /&gt;
Control is returned after the move has been completely finished&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
stm.move_tip(50,50,100,100, 200,100);&lt;br /&gt;
&lt;br /&gt;
=== move_tip_imagecoord ===&lt;br /&gt;
&lt;br /&gt;
Parameter : &lt;br /&gt;
1. X start position in imagepixels  &lt;br /&gt;
2. Y start position in imagepixels  &lt;br /&gt;
3. X end position in imagepixels  &lt;br /&gt;
4. Y end position in imagepixels  &lt;br /&gt;
5. Number steps in which the tip moves from start to endpoint&lt;br /&gt;
6 Delay in DSP cycles between each step&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Move tip to new position (Image pixel coordinates as displayed in the status line of the STMAFM main window)&lt;br /&gt;
Control is returned after the move has been completely finished&lt;br /&gt;
&lt;br /&gt;
Relation between imagepixel coordinates (0&amp;lt;=ximage&amp;lt;nx ,  0&amp;lt;=yimage&amp;lt;ny ) and  relative DAC coordinates (xdac,ydac):&lt;br /&gt;
(Top line in image is ny=0)&lt;br /&gt;
&lt;br /&gt;
xdac:=trunc(ximage*dx - (nx div 2)*dx);&lt;br /&gt;
ydac:=trunc(yimage*dy);&lt;br /&gt;
&lt;br /&gt;
On the DSP a final coordinate transformation is done including rotation, offset and drift correction to calculate the absolute DAC coordinates:&lt;br /&gt;
Using 20bit DACS the values are internal limited to +/- 524272.&lt;br /&gt;
&lt;br /&gt;
xdacabs=  trunc ( - (xdac*rotmxx + ydac*rotmxy + rotoffx-driftxoff));&lt;br /&gt;
ydacabs=  trunc ( - (xdac*rotmyx + ydac*rotmyy + rotoffy-driftyoff));&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
stm.move_tip_imagecoord(50,50,100,100, 200,100);&lt;br /&gt;
&lt;br /&gt;
=== latmanip ===&lt;br /&gt;
&lt;br /&gt;
Parameter : &lt;br /&gt;
1. X coordinate in imagepixels  of start point.&lt;br /&gt;
2  Y coordinate in imagepixels  of start point&lt;br /&gt;
3. X coordinate in imagepixels  of end point&lt;br /&gt;
4. Y coordinate in imagepixels  of end point&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Takes a lateral manipulation along a line defined by the start and end image points. (Image pixel coordinates as displayed in the status line of the STMAFM main window)&lt;br /&gt;
Control is returned after the manipulation has been completely finished&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
stm.latmanip(50,50,100,100);&lt;br /&gt;
&lt;br /&gt;
===  latmanipxymove  ===&lt;br /&gt;
(low level command)&lt;br /&gt;
&lt;br /&gt;
Parameter : &lt;br /&gt;
1. X coordinate  of start point in rel. DAC units.&lt;br /&gt;
2  Y coordinate  of f start point in rel. DAC units.&lt;br /&gt;
3. X coordinate of end point in rel. DAC units.&lt;br /&gt;
4. Y coordinate of end point in rel. DAC units.&lt;br /&gt;
5. Number of steps &lt;br /&gt;
6. Delay between steps in DSP Cycles&lt;br /&gt;
7. Gain of Preamp during manipulation&lt;br /&gt;
8. Bias Voltage during manipulation&lt;br /&gt;
9. Current set point during manipulation in constant current mode&lt;br /&gt;
&lt;br /&gt;
Return:  None&lt;br /&gt;
Function:  &lt;br /&gt;
Takes a lateral manipulation along a line defined by the start and end image points. Coordinates are in relative DAC units.&lt;br /&gt;
Control is returned after the scan has been completely finished. &lt;br /&gt;
&lt;br /&gt;
The recorded data is saved in a file called 'manipxymove.data' placed in the active directory.&lt;br /&gt;
The file contains one line for each step. For each step the selected number of channels are recorded. (See LATMANIP form)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== latmanbufferext ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== lockinstart ===&lt;br /&gt;
&lt;br /&gt;
Parameter : None&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Starts the internal lockin amplifier&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
stm.lockinstart;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== lockinstop ===&lt;br /&gt;
&lt;br /&gt;
Parameter : None&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Stops the internal lockin amplifier&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
stm.lockinstop;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== updatedspparam ===&lt;br /&gt;
&lt;br /&gt;
Parameter: None&lt;br /&gt;
&lt;br /&gt;
Function: Updates all parameters and synchronizes the the parameters with the DSP&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
stm.updatedspparam;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== updatedspfbparam ===&lt;br /&gt;
&lt;br /&gt;
Parameter :  None&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  After changing the parameters this command allows to update/synchronize the parameters with the DSP.&lt;br /&gt;
&lt;br /&gt;
For example changing a feedback loop parameter in the old parameter window will not automatically change this parameter on the DSP.&lt;br /&gt;
Therefore this update command has to be issued afterwards. Allows to set first the new parameters and then update all at the same time on the DSP.&lt;br /&gt;
(low level command)&lt;br /&gt;
&lt;br /&gt;
=== sliderup ===&lt;br /&gt;
&lt;br /&gt;
Parameter : None&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Moves the slider one step up&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
stm.sliderup;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== sliderdown ===&lt;br /&gt;
&lt;br /&gt;
Parameter : None&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Moves the slider one step down&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
stm.sliderdown;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== slider ===&lt;br /&gt;
&lt;br /&gt;
Parameter :&lt;br /&gt;
channel&lt;br /&gt;
direction&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Moves the slider &lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
stm.slider(1,0);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== setdacval ===&lt;br /&gt;
Parameter : &lt;br /&gt;
board 1..2&lt;br /&gt;
channel  0..5&lt;br /&gt;
value   -524288 ..  524287           &lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Sets DAC value of selected channel. Units are DAC Units (20bit)&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
stm.setdacval(1,2,1000);&lt;br /&gt;
&lt;br /&gt;
                &lt;br /&gt;
=== setdacvalf === &lt;br /&gt;
Parameter : &lt;br /&gt;
board 1..2&lt;br /&gt;
channel  0..5&lt;br /&gt;
value   -10.0 .. 10.0          &lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Sets DAC value of selected channel. Units are Volt (float)&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
stm.setdacval(1,2,1.034);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== getadcval ===&lt;br /&gt;
&lt;br /&gt;
Parameter : &lt;br /&gt;
board 1..2&lt;br /&gt;
channel 0..5                &lt;br /&gt;
&lt;br /&gt;
Return:   ADC value of selected channel&lt;br /&gt;
&lt;br /&gt;
Function:  Gets the ADC value. Units are in DAC units (20bit)&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
stm.getadcval(1,2);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== getadcvalf ===&lt;br /&gt;
&lt;br /&gt;
Parameter : &lt;br /&gt;
board 1..2&lt;br /&gt;
channel  0..5               &lt;br /&gt;
&lt;br /&gt;
Return:   ADC value of selected channel&lt;br /&gt;
&lt;br /&gt;
Function:  Gets the ADC value. Units are in Volt&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
stm.getadcvalf(1,2);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== getdacvalfb ===&lt;br /&gt;
 &lt;br /&gt;
Parameter : none              &lt;br /&gt;
&lt;br /&gt;
Return:   Value of z - Dac in Angstroem&lt;br /&gt;
 &lt;br /&gt;
Function:  Gets the Feedback DAC Value &lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
a=stm.getdacvalfb;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== digoutvalue ===&lt;br /&gt;
&lt;br /&gt;
Property Integer          &lt;br /&gt;
&lt;br /&gt;
Function:  Read and write Digital Outputvalue on Board 1&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
i:=stm.digoutvalue;&lt;br /&gt;
&lt;br /&gt;
stm.digoutvalue:=i;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== sbcdigoutvalue ===&lt;br /&gt;
&lt;br /&gt;
Property Integer          &lt;br /&gt;
&lt;br /&gt;
Function:  Read and write digital outputvalue on SBC6711Board&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
i:=stm.sbcdigoutvalue;&lt;br /&gt;
&lt;br /&gt;
stm.sbcdigoutvalue:=i;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== serverneverclose ===&lt;br /&gt;
&lt;br /&gt;
Parameter: None          &lt;br /&gt;
&lt;br /&gt;
Function:  If activated makes sure that the STM Program will not close after the connection to the server is stopped, if the STM program was started by the client.&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
stm.serverneverclose;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== execmethod ===&lt;br /&gt;
&lt;br /&gt;
Parameter: &lt;br /&gt;
Objectname&lt;br /&gt;
Methodname&lt;br /&gt;
&lt;br /&gt;
Return: None&lt;br /&gt;
&lt;br /&gt;
Function:  Execute a specific function in the STM program. Specific debugging use only&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
stm.execmethod('stmafm','Formmemoclick');&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== setxyoffvolt ===&lt;br /&gt;
&lt;br /&gt;
Parameter : &lt;br /&gt;
x: Offset in Volt  Range: (-10.0, +10.0) * HVGainX&lt;br /&gt;
y: Offset in Volt  Range: (-10.0, +10.0) * HVGainY&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Sets a new X_Offset, Y_Offset Value. Units are in Volt &lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
stm.setxyoffsetvolt(12.5,-24.0);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== setxyoffpixel ===&lt;br /&gt;
Parameter : &lt;br /&gt;
x: Offset in Pixel units &lt;br /&gt;
y: Offset in Pixel Units&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Sets a new X_Offset, Y_Offset Value. The new offset is given by a pixel position in the present scanimage.&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
stm.setxypixel(100,78);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== scandatabitmap ===&lt;br /&gt;
&lt;br /&gt;
Parameter : none&lt;br /&gt;
Return:   Array with Scan Channel Bitmap Data&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Function:  Get the the scanimage data as a bitmap.&lt;br /&gt;
The bitmap data is 32bit wide. The bitmap contains all channels.&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
a=stm.scandatabitmap;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== pc32scanstatus ===&lt;br /&gt;
&lt;br /&gt;
Parameter : none&lt;br /&gt;
&lt;br /&gt;
Return:   Scanstatus value on DSP Board&lt;br /&gt;
&lt;br /&gt;
Function:  Gets the scanstatus of the DSP program&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
a=stm.pc32scanstatus;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== stmready ===&lt;br /&gt;
Parameter: none&lt;br /&gt;
Return: stmready  1: ready  0 not ready&lt;br /&gt;
&lt;br /&gt;
Function:  If stmready = 1 then the initialization of the STMAFM program is finshed.&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
&lt;br /&gt;
a= stm.stmready;&lt;br /&gt;
&lt;br /&gt;
=== setrampdspparam ===&lt;br /&gt;
&lt;br /&gt;
Parameter: zheight: single -10 - + 10V&lt;br /&gt;
           zduration: single&lt;br /&gt;
           zburst: integer&lt;br /&gt;
           xyheight:single&lt;br /&gt;
           xyduration: single&lt;br /&gt;
           xyburst: integer&lt;br /&gt;
&lt;br /&gt;
Function: Sets the corresponding parameters of the rampcontroller&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
&lt;br /&gt;
stm.setrampdspparam(1.0,0.01,100,2.0,0.02,200)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:stmafm_manual]]&lt;/div&gt;</summary>
		<author><name>Ltspm</name></author>	</entry>

	<entry>
		<id>http://spm-wiki.createc.de/index.php?title=STMAFM_Remote_Operation</id>
		<title>STMAFM Remote Operation</title>
		<link rel="alternate" type="text/html" href="http://spm-wiki.createc.de/index.php?title=STMAFM_Remote_Operation"/>
				<updated>2015-01-05T13:42:05Z</updated>
		
		<summary type="html">&lt;p&gt;Ltspm: /* Python Connection */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== OLE/COM Server ==&lt;br /&gt;
&lt;br /&gt;
To register the OLE/COM sever in the stmafm program goto &amp;quot;Debug&amp;quot; and &amp;quot;Register COM Server&amp;quot;. If you are going to install a newer version of the program, please click &amp;quot;Unregister COM Server&amp;quot; before installing the new version. Both has to be done with administrative rights as it requires access to the Windows registry.&lt;br /&gt;
&lt;br /&gt;
You may also run  &amp;quot;pstmafm.exe / regserver&amp;quot; form the command prompt.&lt;br /&gt;
(Alternatively run &amp;quot;pstmafm.exe /regserverperuser&amp;quot; in case you have problems running /regserver in Windows 7)&lt;br /&gt;
Again administrator rights are required.&lt;br /&gt;
&lt;br /&gt;
There are many different software tools available to perform data analysis as well as data aquisition or remote operation of the STMAFM program via OLE/COM: &lt;br /&gt;
&lt;br /&gt;
1. Python (Freeware, please visit http://winpython.sourceforge.net/ for download) we're using WinPython 2.7.x 32bit, 64bit&lt;br /&gt;
&lt;br /&gt;
2. Commercial Software: MatLab / LabView&lt;br /&gt;
&lt;br /&gt;
3. For more specific purposes with a more elaborate user interface Createc can supply dedicated plugin programs. (Contact ltspm@createc.de to solve your specific needs)&lt;br /&gt;
&lt;br /&gt;
For simple scripting purposes, i.e. controlling the program without data analysis a scripter program is can still be used.(e.g. MAXBOX) But for people starting from scratch we recommend using the OLE/COM interface as we will drop the support via the TCPIP interface in future. &lt;br /&gt;
&lt;br /&gt;
Example software will be provided through the Createc WebSite.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Python Connection ==&lt;br /&gt;
&lt;br /&gt;
We recommend to install WinPython 2.7.x and using the IPython Notebook therein. These command will initialize the connection to the STMAFM program. Afterwards you may import / export files using filters from the program and control the complete software&lt;br /&gt;
&lt;br /&gt;
import win32com.client&lt;br /&gt;
&lt;br /&gt;
stm=win32com.client.Dispatch(&amp;quot;pstmafm.stmafmrem&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
stm.stmbeep()&lt;br /&gt;
&lt;br /&gt;
== Matlab Connection ==&lt;br /&gt;
&lt;br /&gt;
You can access the pstmafm.stmafm OLE/COM server directly from Matlab. (or Freemat using a corresponding dll)&lt;br /&gt;
We recommend controlling the STMAFM Program through this interface.&lt;br /&gt;
&lt;br /&gt;
stm=actxserver('pstmafm.stmafmrem'); %Open connection to STM Program, see also Matlab manual.&lt;br /&gt;
stm.stmbeep; % &lt;br /&gt;
stm.release; % release stm program&lt;br /&gt;
&lt;br /&gt;
The STM program will be started and closed automatically from Matlab. If the STM program is already running just the connection will be established.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Demo Startstm.m with event capability&lt;br /&gt;
&lt;br /&gt;
 global stm&lt;br /&gt;
 global stm1&lt;br /&gt;
 global linescandata&lt;br /&gt;
 stm=actxserver('pstmafm.stmafmrem');&lt;br /&gt;
 stm1=actxserver('pstmafm.stmafmevent');&lt;br /&gt;
 stm1.registerevent('serverevents');&lt;br /&gt;
 %registerevent: register a file serverevents.m to handle events.&lt;br /&gt;
&lt;br /&gt;
Example: serverevents.m &lt;br /&gt;
&lt;br /&gt;
 function serverevents(varargin)&lt;br /&gt;
 global stmoleeventnr&lt;br /&gt;
 global linescandata&lt;br /&gt;
 global stm&lt;br /&gt;
 stmoleeventnr = cell2mat(varargin(3));&lt;br /&gt;
 linescandata = stm.linescandata; &lt;br /&gt;
 if (stmoleeventnr == 1)&lt;br /&gt;
   plot(linescandata(:,1),linescandata(:,2));&lt;br /&gt;
 end&lt;br /&gt;
&lt;br /&gt;
== Plugins ==&lt;br /&gt;
&lt;br /&gt;
Specifically developed Plugins will be available to supply specific user needs. In particular where a more elaborate graphical user interface is&lt;br /&gt;
necessary compared to a simple text based scripting control.&lt;br /&gt;
&lt;br /&gt;
== Commands ==&lt;br /&gt;
&lt;br /&gt;
=== stmbeep ===&lt;br /&gt;
&lt;br /&gt;
Parameter : None&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  STMAFM Programm creates a short beep sound.  Used for testing purposes&lt;br /&gt;
&lt;br /&gt;
=== setparam ===&lt;br /&gt;
&lt;br /&gt;
Parameter : (Strings)&lt;br /&gt;
1. Name of parameter&lt;br /&gt;
2. New Value&lt;br /&gt;
&lt;br /&gt;
Return:   &lt;br /&gt;
&lt;br /&gt;
Function:  Sets a parameter to a new value. The name is the name appearing in the old parameter menue&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
stm.setparam('Rotation','90.00');&lt;br /&gt;
&lt;br /&gt;
=== getparam ===&lt;br /&gt;
&lt;br /&gt;
Parameter : &lt;br /&gt;
1. Name of parameter&lt;br /&gt;
&lt;br /&gt;
Return:   &lt;br /&gt;
1. Value of Parameter&lt;br /&gt;
&lt;br /&gt;
Function:  Gets the actual parameter value. The name is the name appearing the old parameter menue&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
a=stm.getparam('Rotation');&lt;br /&gt;
&lt;br /&gt;
=== scanstart ===&lt;br /&gt;
&lt;br /&gt;
Parameter : None&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Starts a new STM scan.  Similar to pressing the button Scanstart&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== scanwaitfinished ===&lt;br /&gt;
&lt;br /&gt;
Parameter : None&lt;br /&gt;
&lt;br /&gt;
Return:  None&lt;br /&gt;
&lt;br /&gt;
Function:  Waits until the active scan is stopped.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== scanstop ===&lt;br /&gt;
&lt;br /&gt;
Parameter : None&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Stops a running STM scan.  Similar to pressing the button Scanstop&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== scanstatus ===&lt;br /&gt;
&lt;br /&gt;
Parameter : None&lt;br /&gt;
&lt;br /&gt;
Return:    Status Number ( = ord(scanstat) see below)&lt;br /&gt;
&lt;br /&gt;
Function:  Gets the present scanstatus. &lt;br /&gt;
&lt;br /&gt;
scanstat = (scanstatreset, stop, running, start, resetting, pause, scanstatvertman, scanstatlatman, scanstattimespec, scanxyoffset,scanstatapproach);&lt;br /&gt;
&lt;br /&gt;
0, SCANSTATRESET:   		Programm is in idle state&lt;br /&gt;
1, STOP:	            	Running Scan is stopped but is not fully reset yet.&lt;br /&gt;
2, RUNNING:                 	Scan is running&lt;br /&gt;
3, START                      	New Scan is started but not yet running&lt;br /&gt;
4, PAUSE			Running Scan is paused&lt;br /&gt;
5, SCANSTATVERTMAN	VertSpectrum is running&lt;br /&gt;
6, SCANSTATLATMAN		LATManip is running&lt;br /&gt;
7, SCANSTATTIMESPEC	Timespectrum is running&lt;br /&gt;
8, SCANXYOFFSET		XYOffset is running&lt;br /&gt;
9, SCANSTATAPPROACH	Approach is running&lt;br /&gt;
&lt;br /&gt;
=== quicksave ===&lt;br /&gt;
&lt;br /&gt;
Parameter : None&lt;br /&gt;
&lt;br /&gt;
Return:  None&lt;br /&gt;
&lt;br /&gt;
Function:  Saves the current scan file using the default filename. Similar to presisng the Quicksave button&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== filesave ===&lt;br /&gt;
&lt;br /&gt;
Parameter : Filename&lt;br /&gt;
&lt;br /&gt;
Return:  None&lt;br /&gt;
&lt;br /&gt;
Function:  Saves the current scandata file using the  filename as .dat file. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== fileload ===&lt;br /&gt;
&lt;br /&gt;
Parameter : Filename&lt;br /&gt;
&lt;br /&gt;
Return:  None&lt;br /&gt;
&lt;br /&gt;
Function:  Loads a .dat file into the program.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== vertsave ===&lt;br /&gt;
&lt;br /&gt;
Parameter : None&lt;br /&gt;
&lt;br /&gt;
Return:   none&lt;br /&gt;
&lt;br /&gt;
Function:  save present vertspecdata &lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
a=stm.vertsave;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== latsave ===&lt;br /&gt;
Parameter : None&lt;br /&gt;
&lt;br /&gt;
Return:   none&lt;br /&gt;
&lt;br /&gt;
Function:  save present latmanipdata &lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
a=stm.latsave;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== savedatfilename ===&lt;br /&gt;
&lt;br /&gt;
Property String&lt;br /&gt;
&lt;br /&gt;
Parameter : None&lt;br /&gt;
&lt;br /&gt;
Return:  None&lt;br /&gt;
&lt;br /&gt;
Function:  Read and write the default savefilename of .dat files.&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
filename=stm.savedatfilename;&lt;br /&gt;
&lt;br /&gt;
stm.savefilename=filename;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===  loadfilename ===&lt;br /&gt;
&lt;br /&gt;
Property String&lt;br /&gt;
&lt;br /&gt;
Function:  Read and write the default loadfilename of .dat files.&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
filename=stm.loaddatfilename;&lt;br /&gt;
&lt;br /&gt;
stm.loadfilename=filename;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== savevertfilename ===&lt;br /&gt;
&lt;br /&gt;
Property String&lt;br /&gt;
&lt;br /&gt;
Function:  Read and write the default filename of Vertspec  files.&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
filename=stm.savevertfilename;&lt;br /&gt;
&lt;br /&gt;
stm.savevertfilename=filename;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== savelatfilename ===&lt;br /&gt;
&lt;br /&gt;
Property String&lt;br /&gt;
&lt;br /&gt;
Function:  Read and write the default filename of Latmanip  files.&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
filename=stm.savelatfilename;&lt;br /&gt;
&lt;br /&gt;
stm.savelatfilename:=filename;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== btn_vertspec ===&lt;br /&gt;
&lt;br /&gt;
Parameter : &lt;br /&gt;
1. xpos :integer&lt;br /&gt;
2. ypos :integer&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Takes a Vert.Spectrum at image point Xpos,Ypos. (Image pixel coordinates as displayed in the status line of the STMAFM main window) Control is returned after the spectrum has been completely finished&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
stm.btn_vertspec(128,128);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== btn_vertspec_line ===&lt;br /&gt;
&lt;br /&gt;
Parameter : &lt;br /&gt;
1. X coordinate in imagepixels  of start point.&lt;br /&gt;
2  Y coordinate in imagepixels  of start point&lt;br /&gt;
3. X coordinate in imagepixels  of end point&lt;br /&gt;
4. Y coordinate in imagepixels  of end point&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
Function:  Takes a series of Vert.Spectra along a line defined by the start and end image points. (Image pixel coordinates as displayed in the status line of the STMAFM main window)&lt;br /&gt;
Control is returned after the spectra have been completely finished&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
stm.btn_vertspec_line(50,50,100,100);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== btn_vertspec_mult ===&lt;br /&gt;
&lt;br /&gt;
Parameter : 2d Array of X,Y coordinates&lt;br /&gt;
1. X coordinate in imagepixels  of 1.point&lt;br /&gt;
2. Y coordinate in imagepixels  of 1.point&lt;br /&gt;
.......&lt;br /&gt;
&lt;br /&gt;
2n-1. X coordinate in imagepixels  of n.point&lt;br /&gt;
2n. Y coordinate in imagepixels  of n.point&lt;br /&gt;
&lt;br /&gt;
Return:   Ready or Error&lt;br /&gt;
&lt;br /&gt;
Function:  Takes a series of Vert.Spectra defined by a list of image points. (Image pixel coordinates as displayed in the status line of the STMAFM main window). Control is returned after the spectra have been completely finished&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
a=[10,20;50,50;100,100;19,90];&lt;br /&gt;
stm.btn_vertspec_line(a);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== btn_tipform ===&lt;br /&gt;
&lt;br /&gt;
Parameter : &lt;br /&gt;
1. xpos :integer&lt;br /&gt;
2. ypos :integer&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Does a tip forming at image point Xpos,Ypos. (Image pixel coordinates as displayed in the status line of the STMAFM main window). Control is returned after the tip forming has been completely finished&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
stm.btn_tipform(128,128);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== btn_timespec ===&lt;br /&gt;
&lt;br /&gt;
Parameter : none&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Takes a time spectrum&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
stm.btn_timespec;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== scandata ===&lt;br /&gt;
&lt;br /&gt;
Parameter : channel: integer:integer&lt;br /&gt;
&lt;br /&gt;
Return:   Array with Scan Channel Data&lt;br /&gt;
&lt;br /&gt;
Function:  Read single channel of Scan Data &lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
a=stm.scandata(channel);  Presently only DAC units supported&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Channels:&lt;br /&gt;
1:Topography&lt;br /&gt;
2: Current(ADC0)&lt;br /&gt;
3: ADC1&lt;br /&gt;
4: ADC2&lt;br /&gt;
5: ADC3&lt;br /&gt;
6: dI/dV&lt;br /&gt;
7: d2I/dV&lt;br /&gt;
8: df&lt;br /&gt;
9: Damping&lt;br /&gt;
10: Amplitude&lt;br /&gt;
11: CP(DAC1)&lt;br /&gt;
12: AUX1&lt;br /&gt;
&lt;br /&gt;
If backward scanning channels are enabled, these channels are accessed by adding 256 as offset to the channel number above.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== scandatawrite ===&lt;br /&gt;
&lt;br /&gt;
Parameter : &lt;br /&gt;
1. channel: integer:integer&lt;br /&gt;
2. data: Matrix with Scan Channel Data&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Write single channel of Scan Data &lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
stm.scandatawrite(channel, data);     Presently only DAC units supported&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Channels:&lt;br /&gt;
1:Topography&lt;br /&gt;
2: Current(ADC0)&lt;br /&gt;
3: ADC1&lt;br /&gt;
4: ADC2&lt;br /&gt;
5: ADC3&lt;br /&gt;
6: dI/dV&lt;br /&gt;
7: d2I/dV&lt;br /&gt;
8: df&lt;br /&gt;
9: Damping&lt;br /&gt;
10: Amplitude&lt;br /&gt;
11: CP(DAC1)&lt;br /&gt;
12: AUX1&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== scanauxdata ===&lt;br /&gt;
&lt;br /&gt;
Property:   Matrix with Scan Aux channel Data&lt;br /&gt;
&lt;br /&gt;
Function:  Read and  write Scan AUX Data channel&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
a=stm.scanauxdata;  Presently only DAC units supported&lt;br /&gt;
stm.scanauxdata=a;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== openscanchannel ===&lt;br /&gt;
&lt;br /&gt;
Parameter : &lt;br /&gt;
1. channel integer&lt;br /&gt;
2. select :boolean&lt;br /&gt;
&lt;br /&gt;
Return:   none&lt;br /&gt;
&lt;br /&gt;
Function:  Activate specific Scan channel  &lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
a=stm.openscanchannel(channel, true);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===  linescandata ===&lt;br /&gt;
&lt;br /&gt;
Parameter : None&lt;br /&gt;
&lt;br /&gt;
Return:   Array with actual LineScan Data&lt;br /&gt;
&lt;br /&gt;
Function:  Read LineScan Data  &lt;br /&gt;
&lt;br /&gt;
Linescandata can be transferred into the Matlab workspace in a event driven manner. I.e. click the copy OLE/COM server popupmenue field in the Linescan window. This creates an event in Matlab which starts the&lt;br /&gt;
serverevents.m file which transfers the data to Matlab.    &lt;br /&gt;
&lt;br /&gt;
Columns&lt;br /&gt;
1: Distance in Angstrom&lt;br /&gt;
2: Y Values&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
a=stm.linescandata;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== timespecdata ===&lt;br /&gt;
&lt;br /&gt;
Parameter : channel: integer, units: integer&lt;br /&gt;
&lt;br /&gt;
Return:   Vector with Channel Data&lt;br /&gt;
&lt;br /&gt;
Function:  Read Channel Data&lt;br /&gt;
&lt;br /&gt;
Columns&lt;br /&gt;
1: Channel in units&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
a=stm.timespec(3,0);&lt;br /&gt;
&lt;br /&gt;
Channels:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== timespecfftdata ===&lt;br /&gt;
&lt;br /&gt;
Parameter : channel: integer, units: integer&lt;br /&gt;
&lt;br /&gt;
Return:   Vector with Channel Data&lt;br /&gt;
&lt;br /&gt;
Function:  Read Channel Data&lt;br /&gt;
&lt;br /&gt;
Columns&lt;br /&gt;
1: Channel in units&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
a=stm.timespec(3,0);&lt;br /&gt;
&lt;br /&gt;
Channels:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== latmandata ===&lt;br /&gt;
&lt;br /&gt;
Parameter : channel: integer, units: integer&lt;br /&gt;
&lt;br /&gt;
Return:   Vector with Lat manip Channel Data&lt;br /&gt;
&lt;br /&gt;
Function:  Read Lat manip Channel Data&lt;br /&gt;
&lt;br /&gt;
Columns&lt;br /&gt;
1: Channel in units&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
a=stm.latmandata(channel,units);&lt;br /&gt;
&lt;br /&gt;
Channels:&lt;br /&gt;
0: time in sec&lt;br /&gt;
1: X&lt;br /&gt;
2: Y&lt;br /&gt;
3: Current I&lt;br /&gt;
4: dI/dV&lt;br /&gt;
5: d2I/dV&lt;br /&gt;
6: ADC0&lt;br /&gt;
7: ADC1&lt;br /&gt;
8: ADC2&lt;br /&gt;
9: ADC3&lt;br /&gt;
10: df&lt;br /&gt;
11: Damping&lt;br /&gt;
12: Amplitude&lt;br /&gt;
13: di_q&lt;br /&gt;
14: di2_q&lt;br /&gt;
15: Topography(DAC0)&lt;br /&gt;
16: CP(DAC1)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Units:&lt;br /&gt;
0: Default&lt;br /&gt;
1: Volt&lt;br /&gt;
2: DAC&lt;br /&gt;
3: Ampere&lt;br /&gt;
4: nm&lt;br /&gt;
5: Hz&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== vertdata ===&lt;br /&gt;
&lt;br /&gt;
Parameter : channel: integer, units: integer&lt;br /&gt;
&lt;br /&gt;
Return:   Vector with Channel Data&lt;br /&gt;
&lt;br /&gt;
Function:  Read Channel Data&lt;br /&gt;
&lt;br /&gt;
Columns&lt;br /&gt;
1: Channel in units&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
a=stm.vertdata(3,1);&lt;br /&gt;
&lt;br /&gt;
Channels:&lt;br /&gt;
0: time in sec&lt;br /&gt;
1: V&lt;br /&gt;
2: Z&lt;br /&gt;
3: Current I&lt;br /&gt;
4: dI/dV&lt;br /&gt;
5: d2I/dV&lt;br /&gt;
6: ADC0&lt;br /&gt;
7: ADC1&lt;br /&gt;
8: ADC2&lt;br /&gt;
9: ADC3&lt;br /&gt;
10: df&lt;br /&gt;
11: Damping&lt;br /&gt;
12: Amplitude&lt;br /&gt;
13: di_q&lt;br /&gt;
14: di2_q&lt;br /&gt;
15: Topography(DAC0)&lt;br /&gt;
16: CP(DAC1)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Units:&lt;br /&gt;
0: Default&lt;br /&gt;
1: Volt&lt;br /&gt;
2: DAC&lt;br /&gt;
3: Ampere&lt;br /&gt;
4: nm&lt;br /&gt;
5: Hz&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== pllspecdata ===&lt;br /&gt;
&lt;br /&gt;
Parameter : None&lt;br /&gt;
&lt;br /&gt;
Return:   Array with PLL Spectrum Scan Data&lt;br /&gt;
&lt;br /&gt;
Function:  Read PLL Spectrum Scan Data      &lt;br /&gt;
&lt;br /&gt;
Columns&lt;br /&gt;
1: Frequency [Hz]&lt;br /&gt;
2: Amplitude [a.u.]&lt;br /&gt;
3: Phase [Deg]&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
a=stm.pllspecdata;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== strbuffer ===&lt;br /&gt;
&lt;br /&gt;
Property&lt;br /&gt;
&lt;br /&gt;
Parameter : None&lt;br /&gt;
&lt;br /&gt;
Return:   String with all parameters&lt;br /&gt;
&lt;br /&gt;
Function:  Read and write program parameter      &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
s=stm.strbuffer;&lt;br /&gt;
&lt;br /&gt;
stm.strbuffer:=s;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== pllfreqscan ===&lt;br /&gt;
&lt;br /&gt;
Parameter : None&lt;br /&gt;
&lt;br /&gt;
Return:   none&lt;br /&gt;
&lt;br /&gt;
Function:  Start a new PLL Freqeuncy Scan  &lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
a=stm.pllfreqscan;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===  vertspectrum ===&lt;br /&gt;
 &lt;br /&gt;
Parameter : None&lt;br /&gt;
&lt;br /&gt;
Return:   Ready or Error&lt;br /&gt;
&lt;br /&gt;
Function:  Takes a Vert.Spectrum at the current image point X,Y.  Control is returned after the spectrum has been completely finished&lt;br /&gt;
The tip remains at the current lateral position&lt;br /&gt;
(low level command)&lt;br /&gt;
&lt;br /&gt;
=== move_tip ===&lt;br /&gt;
&lt;br /&gt;
Parameter : &lt;br /&gt;
1. X start position in relative DAC units  &lt;br /&gt;
2. Y start position in relative DAC units&lt;br /&gt;
3. X end position in relative DAC units  &lt;br /&gt;
4. Y end position in relative DAC units  &lt;br /&gt;
5. Number steps in which the tip moves from start to endpoint&lt;br /&gt;
6 Delay in DSP cycles between each step&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Move tip to new position. Coordinates are given in relative DAC units (relative: X,Y Offset and rotation are added afterwards)&lt;br /&gt;
Control is returned after the move has been completely finished&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
stm.move_tip(50,50,100,100, 200,100);&lt;br /&gt;
&lt;br /&gt;
=== move_tip_imagecoord ===&lt;br /&gt;
&lt;br /&gt;
Parameter : &lt;br /&gt;
1. X start position in imagepixels  &lt;br /&gt;
2. Y start position in imagepixels  &lt;br /&gt;
3. X end position in imagepixels  &lt;br /&gt;
4. Y end position in imagepixels  &lt;br /&gt;
5. Number steps in which the tip moves from start to endpoint&lt;br /&gt;
6 Delay in DSP cycles between each step&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Move tip to new position (Image pixel coordinates as displayed in the status line of the STMAFM main window)&lt;br /&gt;
Control is returned after the move has been completely finished&lt;br /&gt;
&lt;br /&gt;
Relation between imagepixel coordinates (0&amp;lt;=ximage&amp;lt;nx ,  0&amp;lt;=yimage&amp;lt;ny ) and  relative DAC coordinates (xdac,ydac):&lt;br /&gt;
(Top line in image is ny=0)&lt;br /&gt;
&lt;br /&gt;
xdac:=trunc(ximage*dx - (nx div 2)*dx);&lt;br /&gt;
ydac:=trunc(yimage*dy);&lt;br /&gt;
&lt;br /&gt;
On the DSP a final coordinate transformation is done including rotation, offset and drift correction to calculate the absolute DAC coordinates:&lt;br /&gt;
Using 20bit DACS the values are internal limited to +/- 524272.&lt;br /&gt;
&lt;br /&gt;
xdacabs=  trunc ( - (xdac*rotmxx + ydac*rotmxy + rotoffx-driftxoff));&lt;br /&gt;
ydacabs=  trunc ( - (xdac*rotmyx + ydac*rotmyy + rotoffy-driftyoff));&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
stm.move_tip_imagecoord(50,50,100,100, 200,100);&lt;br /&gt;
&lt;br /&gt;
=== latmanip ===&lt;br /&gt;
&lt;br /&gt;
Parameter : &lt;br /&gt;
1. X coordinate in imagepixels  of start point.&lt;br /&gt;
2  Y coordinate in imagepixels  of start point&lt;br /&gt;
3. X coordinate in imagepixels  of end point&lt;br /&gt;
4. Y coordinate in imagepixels  of end point&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Takes a lateral manipulation along a line defined by the start and end image points. (Image pixel coordinates as displayed in the status line of the STMAFM main window)&lt;br /&gt;
Control is returned after the manipulation has been completely finished&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
stm.latmanip(50,50,100,100);&lt;br /&gt;
&lt;br /&gt;
===  latmanipxymove  ===&lt;br /&gt;
(low level command)&lt;br /&gt;
&lt;br /&gt;
Parameter : &lt;br /&gt;
1. X coordinate  of start point in rel. DAC units.&lt;br /&gt;
2  Y coordinate  of f start point in rel. DAC units.&lt;br /&gt;
3. X coordinate of end point in rel. DAC units.&lt;br /&gt;
4. Y coordinate of end point in rel. DAC units.&lt;br /&gt;
5. Number of steps &lt;br /&gt;
6. Delay between steps in DSP Cycles&lt;br /&gt;
7. Gain of Preamp during manipulation&lt;br /&gt;
8. Bias Voltage during manipulation&lt;br /&gt;
9. Current set point during manipulation in constant current mode&lt;br /&gt;
&lt;br /&gt;
Return:  None&lt;br /&gt;
Function:  &lt;br /&gt;
Takes a lateral manipulation along a line defined by the start and end image points. Coordinates are in relative DAC units.&lt;br /&gt;
Control is returned after the scan has been completely finished. &lt;br /&gt;
&lt;br /&gt;
The recorded data is saved in a file called 'manipxymove.data' placed in the active directory.&lt;br /&gt;
The file contains one line for each step. For each step the selected number of channels are recorded. (See LATMANIP form)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== latmanbufferext ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== lockinstart ===&lt;br /&gt;
&lt;br /&gt;
Parameter : None&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Starts the internal lockin amplifier&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
stm.lockinstart;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== lockinstop ===&lt;br /&gt;
&lt;br /&gt;
Parameter : None&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Stops the internal lockin amplifier&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
stm.lockinstop;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== updatedspparam ===&lt;br /&gt;
&lt;br /&gt;
Parameter: None&lt;br /&gt;
&lt;br /&gt;
Function: Updates all parameters and synchronizes the the parameters with the DSP&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
stm.updatedspparam;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== updatedspfbparam ===&lt;br /&gt;
&lt;br /&gt;
Parameter :  None&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  After changing the parameters this command allows to update/synchronize the parameters with the DSP.&lt;br /&gt;
&lt;br /&gt;
For example changing a feedback loop parameter in the old parameter window will not automatically change this parameter on the DSP.&lt;br /&gt;
Therefore this update command has to be issued afterwards. Allows to set first the new parameters and then update all at the same time on the DSP.&lt;br /&gt;
(low level command)&lt;br /&gt;
&lt;br /&gt;
=== sliderup ===&lt;br /&gt;
&lt;br /&gt;
Parameter : None&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Moves the slider one step up&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
stm.sliderup;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== sliderdown ===&lt;br /&gt;
&lt;br /&gt;
Parameter : None&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Moves the slider one step down&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
stm.sliderdown;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== slider ===&lt;br /&gt;
&lt;br /&gt;
Parameter :&lt;br /&gt;
channel&lt;br /&gt;
direction&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Moves the slider &lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
stm.slider(1,0);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== setdacval ===&lt;br /&gt;
Parameter : &lt;br /&gt;
board 1..2&lt;br /&gt;
channel  0..5&lt;br /&gt;
value   -524288 ..  524287           &lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Sets DAC value of selected channel. Units are DAC Units (20bit)&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
stm.setdacval(1,2,1000);&lt;br /&gt;
&lt;br /&gt;
                &lt;br /&gt;
=== setdacvalf === &lt;br /&gt;
Parameter : &lt;br /&gt;
board 1..2&lt;br /&gt;
channel  0..5&lt;br /&gt;
value   -10.0 .. 10.0          &lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Sets DAC value of selected channel. Units are Volt (float)&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
stm.setdacval(1,2,1.034);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== getadcval ===&lt;br /&gt;
&lt;br /&gt;
Parameter : &lt;br /&gt;
board 1..2&lt;br /&gt;
channel 0..5                &lt;br /&gt;
&lt;br /&gt;
Return:   ADC value of selected channel&lt;br /&gt;
&lt;br /&gt;
Function:  Gets the ADC value. Units are in DAC units (20bit)&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
stm.getadcval(1,2);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== getadcvalf ===&lt;br /&gt;
&lt;br /&gt;
Parameter : &lt;br /&gt;
board 1..2&lt;br /&gt;
channel  0..5               &lt;br /&gt;
&lt;br /&gt;
Return:   ADC value of selected channel&lt;br /&gt;
&lt;br /&gt;
Function:  Gets the ADC value. Units are in Volt&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
stm.getadcvalf(1,2);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== getdacvalfb ===&lt;br /&gt;
 &lt;br /&gt;
Parameter : none              &lt;br /&gt;
&lt;br /&gt;
Return:   Value of z - Dac in Angstroem&lt;br /&gt;
 &lt;br /&gt;
Function:  Gets the Feedback DAC Value &lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
a=stm.getdacvalfb;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== digoutvalue ===&lt;br /&gt;
&lt;br /&gt;
Property Integer          &lt;br /&gt;
&lt;br /&gt;
Function:  Read and write Digital Outputvalue on Board 1&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
i:=stm.digoutvalue;&lt;br /&gt;
&lt;br /&gt;
stm.digoutvalue:=i;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== sbcdigoutvalue ===&lt;br /&gt;
&lt;br /&gt;
Property Integer          &lt;br /&gt;
&lt;br /&gt;
Function:  Read and write digital outputvalue on SBC6711Board&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
i:=stm.sbcdigoutvalue;&lt;br /&gt;
&lt;br /&gt;
stm.sbcdigoutvalue:=i;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== serverneverclose ===&lt;br /&gt;
&lt;br /&gt;
Parameter: None          &lt;br /&gt;
&lt;br /&gt;
Function:  If activated makes sure that the STM Program will not close after the connection to the server is stopped, if the STM program was started by the client.&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
stm.serverneverclose;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== execmethod ===&lt;br /&gt;
&lt;br /&gt;
Parameter: &lt;br /&gt;
Objectname&lt;br /&gt;
Methodname&lt;br /&gt;
&lt;br /&gt;
Return: None&lt;br /&gt;
&lt;br /&gt;
Function:  Execute a specific function in the STM program. Specific debugging use only&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
stm.execmethod('stmafm','Formmemoclick');&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== setxyoffvolt ===&lt;br /&gt;
&lt;br /&gt;
Parameter : &lt;br /&gt;
x: Offset in Volt  Range: (-10.0, +10.0) * HVGainX&lt;br /&gt;
y: Offset in Volt  Range: (-10.0, +10.0) * HVGainY&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Sets a new X_Offset, Y_Offset Value. Units are in Volt &lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
stm.setxyoffsetvolt(12.5,-24.0);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== setxyoffpixel ===&lt;br /&gt;
Parameter : &lt;br /&gt;
x: Offset in Pixel units &lt;br /&gt;
y: Offset in Pixel Units&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Sets a new X_Offset, Y_Offset Value. The new offset is given by a pixel position in the present scanimage.&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
stm.setxypixel(100,78);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== scandatabitmap ===&lt;br /&gt;
&lt;br /&gt;
Parameter : none&lt;br /&gt;
Return:   Array with Scan Channel Bitmap Data&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Function:  Get the the scanimage data as a bitmap.&lt;br /&gt;
The bitmap data is 32bit wide. The bitmap contains all channels.&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
a=stm.scandatabitmap;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== pc32scanstatus ===&lt;br /&gt;
&lt;br /&gt;
Parameter : none&lt;br /&gt;
&lt;br /&gt;
Return:   Scanstatus value on DSP Board&lt;br /&gt;
&lt;br /&gt;
Function:  Gets the scanstatus of the DSP program&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
a=stm.pc32scanstatus;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== stmready ===&lt;br /&gt;
Parameter: none&lt;br /&gt;
Return: stmready  1: ready  0 not ready&lt;br /&gt;
&lt;br /&gt;
Function:  If stmready = 1 then the initialization of the STMAFM program is finshed.&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
&lt;br /&gt;
a= stm.stmready;&lt;br /&gt;
&lt;br /&gt;
=== setrampdspparam ===&lt;br /&gt;
&lt;br /&gt;
Parameter: zheight: single -10 - + 10V&lt;br /&gt;
           zduration: single&lt;br /&gt;
           zburst: integer&lt;br /&gt;
           xyheight:single&lt;br /&gt;
           xyduration: single&lt;br /&gt;
           xyburst: integer&lt;br /&gt;
&lt;br /&gt;
Function: Sets the corresponding parameters of the rampcontroller&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
&lt;br /&gt;
stm.setrampdspparam(1.0,0.01,100,2.0,0.02,200)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:stmafm_manual]]&lt;/div&gt;</summary>
		<author><name>Ltspm</name></author>	</entry>

	<entry>
		<id>http://spm-wiki.createc.de/index.php?title=STMAFM_Remote_Operation</id>
		<title>STMAFM Remote Operation</title>
		<link rel="alternate" type="text/html" href="http://spm-wiki.createc.de/index.php?title=STMAFM_Remote_Operation"/>
				<updated>2015-01-05T13:41:15Z</updated>
		
		<summary type="html">&lt;p&gt;Ltspm: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== OLE/COM Server ==&lt;br /&gt;
&lt;br /&gt;
To register the OLE/COM sever in the stmafm program goto &amp;quot;Debug&amp;quot; and &amp;quot;Register COM Server&amp;quot;. If you are going to install a newer version of the program, please click &amp;quot;Unregister COM Server&amp;quot; before installing the new version. Both has to be done with administrative rights as it requires access to the Windows registry.&lt;br /&gt;
&lt;br /&gt;
You may also run  &amp;quot;pstmafm.exe / regserver&amp;quot; form the command prompt.&lt;br /&gt;
(Alternatively run &amp;quot;pstmafm.exe /regserverperuser&amp;quot; in case you have problems running /regserver in Windows 7)&lt;br /&gt;
Again administrator rights are required.&lt;br /&gt;
&lt;br /&gt;
There are many different software tools available to perform data analysis as well as data aquisition or remote operation of the STMAFM program via OLE/COM: &lt;br /&gt;
&lt;br /&gt;
1. Python (Freeware, please visit http://winpython.sourceforge.net/ for download) we're using WinPython 2.7.x 32bit, 64bit&lt;br /&gt;
&lt;br /&gt;
2. Commercial Software: MatLab / LabView&lt;br /&gt;
&lt;br /&gt;
3. For more specific purposes with a more elaborate user interface Createc can supply dedicated plugin programs. (Contact ltspm@createc.de to solve your specific needs)&lt;br /&gt;
&lt;br /&gt;
For simple scripting purposes, i.e. controlling the program without data analysis a scripter program is can still be used.(e.g. MAXBOX) But for people starting from scratch we recommend using the OLE/COM interface as we will drop the support via the TCPIP interface in future. &lt;br /&gt;
&lt;br /&gt;
Example software will be provided through the Createc WebSite.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Python Connection ==&lt;br /&gt;
&lt;br /&gt;
We recommend to install WinPython 2.7.x and using the IPython Notebook therein. These command will initialize the connection to the STMAFM program. Afterwards you may import / export files using filters from the program and control the complete software&lt;br /&gt;
import win32com.client&lt;br /&gt;
stm=win32com.client.Dispatch(&amp;quot;pstmafm.stmafmrem&amp;quot;)&lt;br /&gt;
stm.stmbeep()&lt;br /&gt;
&lt;br /&gt;
== Matlab Connection ==&lt;br /&gt;
&lt;br /&gt;
You can access the pstmafm.stmafm OLE/COM server directly from Matlab. (or Freemat using a corresponding dll)&lt;br /&gt;
We recommend controlling the STMAFM Program through this interface.&lt;br /&gt;
&lt;br /&gt;
stm=actxserver('pstmafm.stmafmrem'); %Open connection to STM Program, see also Matlab manual.&lt;br /&gt;
stm.stmbeep; % &lt;br /&gt;
stm.release; % release stm program&lt;br /&gt;
&lt;br /&gt;
The STM program will be started and closed automatically from Matlab. If the STM program is already running just the connection will be established.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Demo Startstm.m with event capability&lt;br /&gt;
&lt;br /&gt;
 global stm&lt;br /&gt;
 global stm1&lt;br /&gt;
 global linescandata&lt;br /&gt;
 stm=actxserver('pstmafm.stmafmrem');&lt;br /&gt;
 stm1=actxserver('pstmafm.stmafmevent');&lt;br /&gt;
 stm1.registerevent('serverevents');&lt;br /&gt;
 %registerevent: register a file serverevents.m to handle events.&lt;br /&gt;
&lt;br /&gt;
Example: serverevents.m &lt;br /&gt;
&lt;br /&gt;
 function serverevents(varargin)&lt;br /&gt;
 global stmoleeventnr&lt;br /&gt;
 global linescandata&lt;br /&gt;
 global stm&lt;br /&gt;
 stmoleeventnr = cell2mat(varargin(3));&lt;br /&gt;
 linescandata = stm.linescandata; &lt;br /&gt;
 if (stmoleeventnr == 1)&lt;br /&gt;
   plot(linescandata(:,1),linescandata(:,2));&lt;br /&gt;
 end&lt;br /&gt;
&lt;br /&gt;
== Plugins ==&lt;br /&gt;
&lt;br /&gt;
Specifically developed Plugins will be available to supply specific user needs. In particular where a more elaborate graphical user interface is&lt;br /&gt;
necessary compared to a simple text based scripting control.&lt;br /&gt;
&lt;br /&gt;
== Commands ==&lt;br /&gt;
&lt;br /&gt;
=== stmbeep ===&lt;br /&gt;
&lt;br /&gt;
Parameter : None&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  STMAFM Programm creates a short beep sound.  Used for testing purposes&lt;br /&gt;
&lt;br /&gt;
=== setparam ===&lt;br /&gt;
&lt;br /&gt;
Parameter : (Strings)&lt;br /&gt;
1. Name of parameter&lt;br /&gt;
2. New Value&lt;br /&gt;
&lt;br /&gt;
Return:   &lt;br /&gt;
&lt;br /&gt;
Function:  Sets a parameter to a new value. The name is the name appearing in the old parameter menue&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
stm.setparam('Rotation','90.00');&lt;br /&gt;
&lt;br /&gt;
=== getparam ===&lt;br /&gt;
&lt;br /&gt;
Parameter : &lt;br /&gt;
1. Name of parameter&lt;br /&gt;
&lt;br /&gt;
Return:   &lt;br /&gt;
1. Value of Parameter&lt;br /&gt;
&lt;br /&gt;
Function:  Gets the actual parameter value. The name is the name appearing the old parameter menue&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
a=stm.getparam('Rotation');&lt;br /&gt;
&lt;br /&gt;
=== scanstart ===&lt;br /&gt;
&lt;br /&gt;
Parameter : None&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Starts a new STM scan.  Similar to pressing the button Scanstart&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== scanwaitfinished ===&lt;br /&gt;
&lt;br /&gt;
Parameter : None&lt;br /&gt;
&lt;br /&gt;
Return:  None&lt;br /&gt;
&lt;br /&gt;
Function:  Waits until the active scan is stopped.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== scanstop ===&lt;br /&gt;
&lt;br /&gt;
Parameter : None&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Stops a running STM scan.  Similar to pressing the button Scanstop&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== scanstatus ===&lt;br /&gt;
&lt;br /&gt;
Parameter : None&lt;br /&gt;
&lt;br /&gt;
Return:    Status Number ( = ord(scanstat) see below)&lt;br /&gt;
&lt;br /&gt;
Function:  Gets the present scanstatus. &lt;br /&gt;
&lt;br /&gt;
scanstat = (scanstatreset, stop, running, start, resetting, pause, scanstatvertman, scanstatlatman, scanstattimespec, scanxyoffset,scanstatapproach);&lt;br /&gt;
&lt;br /&gt;
0, SCANSTATRESET:   		Programm is in idle state&lt;br /&gt;
1, STOP:	            	Running Scan is stopped but is not fully reset yet.&lt;br /&gt;
2, RUNNING:                 	Scan is running&lt;br /&gt;
3, START                      	New Scan is started but not yet running&lt;br /&gt;
4, PAUSE			Running Scan is paused&lt;br /&gt;
5, SCANSTATVERTMAN	VertSpectrum is running&lt;br /&gt;
6, SCANSTATLATMAN		LATManip is running&lt;br /&gt;
7, SCANSTATTIMESPEC	Timespectrum is running&lt;br /&gt;
8, SCANXYOFFSET		XYOffset is running&lt;br /&gt;
9, SCANSTATAPPROACH	Approach is running&lt;br /&gt;
&lt;br /&gt;
=== quicksave ===&lt;br /&gt;
&lt;br /&gt;
Parameter : None&lt;br /&gt;
&lt;br /&gt;
Return:  None&lt;br /&gt;
&lt;br /&gt;
Function:  Saves the current scan file using the default filename. Similar to presisng the Quicksave button&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== filesave ===&lt;br /&gt;
&lt;br /&gt;
Parameter : Filename&lt;br /&gt;
&lt;br /&gt;
Return:  None&lt;br /&gt;
&lt;br /&gt;
Function:  Saves the current scandata file using the  filename as .dat file. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== fileload ===&lt;br /&gt;
&lt;br /&gt;
Parameter : Filename&lt;br /&gt;
&lt;br /&gt;
Return:  None&lt;br /&gt;
&lt;br /&gt;
Function:  Loads a .dat file into the program.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== vertsave ===&lt;br /&gt;
&lt;br /&gt;
Parameter : None&lt;br /&gt;
&lt;br /&gt;
Return:   none&lt;br /&gt;
&lt;br /&gt;
Function:  save present vertspecdata &lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
a=stm.vertsave;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== latsave ===&lt;br /&gt;
Parameter : None&lt;br /&gt;
&lt;br /&gt;
Return:   none&lt;br /&gt;
&lt;br /&gt;
Function:  save present latmanipdata &lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
a=stm.latsave;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== savedatfilename ===&lt;br /&gt;
&lt;br /&gt;
Property String&lt;br /&gt;
&lt;br /&gt;
Parameter : None&lt;br /&gt;
&lt;br /&gt;
Return:  None&lt;br /&gt;
&lt;br /&gt;
Function:  Read and write the default savefilename of .dat files.&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
filename=stm.savedatfilename;&lt;br /&gt;
&lt;br /&gt;
stm.savefilename=filename;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===  loadfilename ===&lt;br /&gt;
&lt;br /&gt;
Property String&lt;br /&gt;
&lt;br /&gt;
Function:  Read and write the default loadfilename of .dat files.&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
filename=stm.loaddatfilename;&lt;br /&gt;
&lt;br /&gt;
stm.loadfilename=filename;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== savevertfilename ===&lt;br /&gt;
&lt;br /&gt;
Property String&lt;br /&gt;
&lt;br /&gt;
Function:  Read and write the default filename of Vertspec  files.&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
filename=stm.savevertfilename;&lt;br /&gt;
&lt;br /&gt;
stm.savevertfilename=filename;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== savelatfilename ===&lt;br /&gt;
&lt;br /&gt;
Property String&lt;br /&gt;
&lt;br /&gt;
Function:  Read and write the default filename of Latmanip  files.&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
filename=stm.savelatfilename;&lt;br /&gt;
&lt;br /&gt;
stm.savelatfilename:=filename;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== btn_vertspec ===&lt;br /&gt;
&lt;br /&gt;
Parameter : &lt;br /&gt;
1. xpos :integer&lt;br /&gt;
2. ypos :integer&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Takes a Vert.Spectrum at image point Xpos,Ypos. (Image pixel coordinates as displayed in the status line of the STMAFM main window) Control is returned after the spectrum has been completely finished&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
stm.btn_vertspec(128,128);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== btn_vertspec_line ===&lt;br /&gt;
&lt;br /&gt;
Parameter : &lt;br /&gt;
1. X coordinate in imagepixels  of start point.&lt;br /&gt;
2  Y coordinate in imagepixels  of start point&lt;br /&gt;
3. X coordinate in imagepixels  of end point&lt;br /&gt;
4. Y coordinate in imagepixels  of end point&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
Function:  Takes a series of Vert.Spectra along a line defined by the start and end image points. (Image pixel coordinates as displayed in the status line of the STMAFM main window)&lt;br /&gt;
Control is returned after the spectra have been completely finished&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
stm.btn_vertspec_line(50,50,100,100);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== btn_vertspec_mult ===&lt;br /&gt;
&lt;br /&gt;
Parameter : 2d Array of X,Y coordinates&lt;br /&gt;
1. X coordinate in imagepixels  of 1.point&lt;br /&gt;
2. Y coordinate in imagepixels  of 1.point&lt;br /&gt;
.......&lt;br /&gt;
&lt;br /&gt;
2n-1. X coordinate in imagepixels  of n.point&lt;br /&gt;
2n. Y coordinate in imagepixels  of n.point&lt;br /&gt;
&lt;br /&gt;
Return:   Ready or Error&lt;br /&gt;
&lt;br /&gt;
Function:  Takes a series of Vert.Spectra defined by a list of image points. (Image pixel coordinates as displayed in the status line of the STMAFM main window). Control is returned after the spectra have been completely finished&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
a=[10,20;50,50;100,100;19,90];&lt;br /&gt;
stm.btn_vertspec_line(a);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== btn_tipform ===&lt;br /&gt;
&lt;br /&gt;
Parameter : &lt;br /&gt;
1. xpos :integer&lt;br /&gt;
2. ypos :integer&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Does a tip forming at image point Xpos,Ypos. (Image pixel coordinates as displayed in the status line of the STMAFM main window). Control is returned after the tip forming has been completely finished&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
stm.btn_tipform(128,128);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== btn_timespec ===&lt;br /&gt;
&lt;br /&gt;
Parameter : none&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Takes a time spectrum&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
stm.btn_timespec;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== scandata ===&lt;br /&gt;
&lt;br /&gt;
Parameter : channel: integer:integer&lt;br /&gt;
&lt;br /&gt;
Return:   Array with Scan Channel Data&lt;br /&gt;
&lt;br /&gt;
Function:  Read single channel of Scan Data &lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
a=stm.scandata(channel);  Presently only DAC units supported&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Channels:&lt;br /&gt;
1:Topography&lt;br /&gt;
2: Current(ADC0)&lt;br /&gt;
3: ADC1&lt;br /&gt;
4: ADC2&lt;br /&gt;
5: ADC3&lt;br /&gt;
6: dI/dV&lt;br /&gt;
7: d2I/dV&lt;br /&gt;
8: df&lt;br /&gt;
9: Damping&lt;br /&gt;
10: Amplitude&lt;br /&gt;
11: CP(DAC1)&lt;br /&gt;
12: AUX1&lt;br /&gt;
&lt;br /&gt;
If backward scanning channels are enabled, these channels are accessed by adding 256 as offset to the channel number above.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== scandatawrite ===&lt;br /&gt;
&lt;br /&gt;
Parameter : &lt;br /&gt;
1. channel: integer:integer&lt;br /&gt;
2. data: Matrix with Scan Channel Data&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Write single channel of Scan Data &lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
stm.scandatawrite(channel, data);     Presently only DAC units supported&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Channels:&lt;br /&gt;
1:Topography&lt;br /&gt;
2: Current(ADC0)&lt;br /&gt;
3: ADC1&lt;br /&gt;
4: ADC2&lt;br /&gt;
5: ADC3&lt;br /&gt;
6: dI/dV&lt;br /&gt;
7: d2I/dV&lt;br /&gt;
8: df&lt;br /&gt;
9: Damping&lt;br /&gt;
10: Amplitude&lt;br /&gt;
11: CP(DAC1)&lt;br /&gt;
12: AUX1&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== scanauxdata ===&lt;br /&gt;
&lt;br /&gt;
Property:   Matrix with Scan Aux channel Data&lt;br /&gt;
&lt;br /&gt;
Function:  Read and  write Scan AUX Data channel&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
a=stm.scanauxdata;  Presently only DAC units supported&lt;br /&gt;
stm.scanauxdata=a;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== openscanchannel ===&lt;br /&gt;
&lt;br /&gt;
Parameter : &lt;br /&gt;
1. channel integer&lt;br /&gt;
2. select :boolean&lt;br /&gt;
&lt;br /&gt;
Return:   none&lt;br /&gt;
&lt;br /&gt;
Function:  Activate specific Scan channel  &lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
a=stm.openscanchannel(channel, true);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===  linescandata ===&lt;br /&gt;
&lt;br /&gt;
Parameter : None&lt;br /&gt;
&lt;br /&gt;
Return:   Array with actual LineScan Data&lt;br /&gt;
&lt;br /&gt;
Function:  Read LineScan Data  &lt;br /&gt;
&lt;br /&gt;
Linescandata can be transferred into the Matlab workspace in a event driven manner. I.e. click the copy OLE/COM server popupmenue field in the Linescan window. This creates an event in Matlab which starts the&lt;br /&gt;
serverevents.m file which transfers the data to Matlab.    &lt;br /&gt;
&lt;br /&gt;
Columns&lt;br /&gt;
1: Distance in Angstrom&lt;br /&gt;
2: Y Values&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
a=stm.linescandata;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== timespecdata ===&lt;br /&gt;
&lt;br /&gt;
Parameter : channel: integer, units: integer&lt;br /&gt;
&lt;br /&gt;
Return:   Vector with Channel Data&lt;br /&gt;
&lt;br /&gt;
Function:  Read Channel Data&lt;br /&gt;
&lt;br /&gt;
Columns&lt;br /&gt;
1: Channel in units&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
a=stm.timespec(3,0);&lt;br /&gt;
&lt;br /&gt;
Channels:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== timespecfftdata ===&lt;br /&gt;
&lt;br /&gt;
Parameter : channel: integer, units: integer&lt;br /&gt;
&lt;br /&gt;
Return:   Vector with Channel Data&lt;br /&gt;
&lt;br /&gt;
Function:  Read Channel Data&lt;br /&gt;
&lt;br /&gt;
Columns&lt;br /&gt;
1: Channel in units&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
a=stm.timespec(3,0);&lt;br /&gt;
&lt;br /&gt;
Channels:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== latmandata ===&lt;br /&gt;
&lt;br /&gt;
Parameter : channel: integer, units: integer&lt;br /&gt;
&lt;br /&gt;
Return:   Vector with Lat manip Channel Data&lt;br /&gt;
&lt;br /&gt;
Function:  Read Lat manip Channel Data&lt;br /&gt;
&lt;br /&gt;
Columns&lt;br /&gt;
1: Channel in units&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
a=stm.latmandata(channel,units);&lt;br /&gt;
&lt;br /&gt;
Channels:&lt;br /&gt;
0: time in sec&lt;br /&gt;
1: X&lt;br /&gt;
2: Y&lt;br /&gt;
3: Current I&lt;br /&gt;
4: dI/dV&lt;br /&gt;
5: d2I/dV&lt;br /&gt;
6: ADC0&lt;br /&gt;
7: ADC1&lt;br /&gt;
8: ADC2&lt;br /&gt;
9: ADC3&lt;br /&gt;
10: df&lt;br /&gt;
11: Damping&lt;br /&gt;
12: Amplitude&lt;br /&gt;
13: di_q&lt;br /&gt;
14: di2_q&lt;br /&gt;
15: Topography(DAC0)&lt;br /&gt;
16: CP(DAC1)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Units:&lt;br /&gt;
0: Default&lt;br /&gt;
1: Volt&lt;br /&gt;
2: DAC&lt;br /&gt;
3: Ampere&lt;br /&gt;
4: nm&lt;br /&gt;
5: Hz&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== vertdata ===&lt;br /&gt;
&lt;br /&gt;
Parameter : channel: integer, units: integer&lt;br /&gt;
&lt;br /&gt;
Return:   Vector with Channel Data&lt;br /&gt;
&lt;br /&gt;
Function:  Read Channel Data&lt;br /&gt;
&lt;br /&gt;
Columns&lt;br /&gt;
1: Channel in units&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
a=stm.vertdata(3,1);&lt;br /&gt;
&lt;br /&gt;
Channels:&lt;br /&gt;
0: time in sec&lt;br /&gt;
1: V&lt;br /&gt;
2: Z&lt;br /&gt;
3: Current I&lt;br /&gt;
4: dI/dV&lt;br /&gt;
5: d2I/dV&lt;br /&gt;
6: ADC0&lt;br /&gt;
7: ADC1&lt;br /&gt;
8: ADC2&lt;br /&gt;
9: ADC3&lt;br /&gt;
10: df&lt;br /&gt;
11: Damping&lt;br /&gt;
12: Amplitude&lt;br /&gt;
13: di_q&lt;br /&gt;
14: di2_q&lt;br /&gt;
15: Topography(DAC0)&lt;br /&gt;
16: CP(DAC1)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Units:&lt;br /&gt;
0: Default&lt;br /&gt;
1: Volt&lt;br /&gt;
2: DAC&lt;br /&gt;
3: Ampere&lt;br /&gt;
4: nm&lt;br /&gt;
5: Hz&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== pllspecdata ===&lt;br /&gt;
&lt;br /&gt;
Parameter : None&lt;br /&gt;
&lt;br /&gt;
Return:   Array with PLL Spectrum Scan Data&lt;br /&gt;
&lt;br /&gt;
Function:  Read PLL Spectrum Scan Data      &lt;br /&gt;
&lt;br /&gt;
Columns&lt;br /&gt;
1: Frequency [Hz]&lt;br /&gt;
2: Amplitude [a.u.]&lt;br /&gt;
3: Phase [Deg]&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
a=stm.pllspecdata;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== strbuffer ===&lt;br /&gt;
&lt;br /&gt;
Property&lt;br /&gt;
&lt;br /&gt;
Parameter : None&lt;br /&gt;
&lt;br /&gt;
Return:   String with all parameters&lt;br /&gt;
&lt;br /&gt;
Function:  Read and write program parameter      &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
s=stm.strbuffer;&lt;br /&gt;
&lt;br /&gt;
stm.strbuffer:=s;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== pllfreqscan ===&lt;br /&gt;
&lt;br /&gt;
Parameter : None&lt;br /&gt;
&lt;br /&gt;
Return:   none&lt;br /&gt;
&lt;br /&gt;
Function:  Start a new PLL Freqeuncy Scan  &lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
a=stm.pllfreqscan;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===  vertspectrum ===&lt;br /&gt;
 &lt;br /&gt;
Parameter : None&lt;br /&gt;
&lt;br /&gt;
Return:   Ready or Error&lt;br /&gt;
&lt;br /&gt;
Function:  Takes a Vert.Spectrum at the current image point X,Y.  Control is returned after the spectrum has been completely finished&lt;br /&gt;
The tip remains at the current lateral position&lt;br /&gt;
(low level command)&lt;br /&gt;
&lt;br /&gt;
=== move_tip ===&lt;br /&gt;
&lt;br /&gt;
Parameter : &lt;br /&gt;
1. X start position in relative DAC units  &lt;br /&gt;
2. Y start position in relative DAC units&lt;br /&gt;
3. X end position in relative DAC units  &lt;br /&gt;
4. Y end position in relative DAC units  &lt;br /&gt;
5. Number steps in which the tip moves from start to endpoint&lt;br /&gt;
6 Delay in DSP cycles between each step&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Move tip to new position. Coordinates are given in relative DAC units (relative: X,Y Offset and rotation are added afterwards)&lt;br /&gt;
Control is returned after the move has been completely finished&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
stm.move_tip(50,50,100,100, 200,100);&lt;br /&gt;
&lt;br /&gt;
=== move_tip_imagecoord ===&lt;br /&gt;
&lt;br /&gt;
Parameter : &lt;br /&gt;
1. X start position in imagepixels  &lt;br /&gt;
2. Y start position in imagepixels  &lt;br /&gt;
3. X end position in imagepixels  &lt;br /&gt;
4. Y end position in imagepixels  &lt;br /&gt;
5. Number steps in which the tip moves from start to endpoint&lt;br /&gt;
6 Delay in DSP cycles between each step&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Move tip to new position (Image pixel coordinates as displayed in the status line of the STMAFM main window)&lt;br /&gt;
Control is returned after the move has been completely finished&lt;br /&gt;
&lt;br /&gt;
Relation between imagepixel coordinates (0&amp;lt;=ximage&amp;lt;nx ,  0&amp;lt;=yimage&amp;lt;ny ) and  relative DAC coordinates (xdac,ydac):&lt;br /&gt;
(Top line in image is ny=0)&lt;br /&gt;
&lt;br /&gt;
xdac:=trunc(ximage*dx - (nx div 2)*dx);&lt;br /&gt;
ydac:=trunc(yimage*dy);&lt;br /&gt;
&lt;br /&gt;
On the DSP a final coordinate transformation is done including rotation, offset and drift correction to calculate the absolute DAC coordinates:&lt;br /&gt;
Using 20bit DACS the values are internal limited to +/- 524272.&lt;br /&gt;
&lt;br /&gt;
xdacabs=  trunc ( - (xdac*rotmxx + ydac*rotmxy + rotoffx-driftxoff));&lt;br /&gt;
ydacabs=  trunc ( - (xdac*rotmyx + ydac*rotmyy + rotoffy-driftyoff));&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
stm.move_tip_imagecoord(50,50,100,100, 200,100);&lt;br /&gt;
&lt;br /&gt;
=== latmanip ===&lt;br /&gt;
&lt;br /&gt;
Parameter : &lt;br /&gt;
1. X coordinate in imagepixels  of start point.&lt;br /&gt;
2  Y coordinate in imagepixels  of start point&lt;br /&gt;
3. X coordinate in imagepixels  of end point&lt;br /&gt;
4. Y coordinate in imagepixels  of end point&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Takes a lateral manipulation along a line defined by the start and end image points. (Image pixel coordinates as displayed in the status line of the STMAFM main window)&lt;br /&gt;
Control is returned after the manipulation has been completely finished&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
stm.latmanip(50,50,100,100);&lt;br /&gt;
&lt;br /&gt;
===  latmanipxymove  ===&lt;br /&gt;
(low level command)&lt;br /&gt;
&lt;br /&gt;
Parameter : &lt;br /&gt;
1. X coordinate  of start point in rel. DAC units.&lt;br /&gt;
2  Y coordinate  of f start point in rel. DAC units.&lt;br /&gt;
3. X coordinate of end point in rel. DAC units.&lt;br /&gt;
4. Y coordinate of end point in rel. DAC units.&lt;br /&gt;
5. Number of steps &lt;br /&gt;
6. Delay between steps in DSP Cycles&lt;br /&gt;
7. Gain of Preamp during manipulation&lt;br /&gt;
8. Bias Voltage during manipulation&lt;br /&gt;
9. Current set point during manipulation in constant current mode&lt;br /&gt;
&lt;br /&gt;
Return:  None&lt;br /&gt;
Function:  &lt;br /&gt;
Takes a lateral manipulation along a line defined by the start and end image points. Coordinates are in relative DAC units.&lt;br /&gt;
Control is returned after the scan has been completely finished. &lt;br /&gt;
&lt;br /&gt;
The recorded data is saved in a file called 'manipxymove.data' placed in the active directory.&lt;br /&gt;
The file contains one line for each step. For each step the selected number of channels are recorded. (See LATMANIP form)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== latmanbufferext ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== lockinstart ===&lt;br /&gt;
&lt;br /&gt;
Parameter : None&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Starts the internal lockin amplifier&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
stm.lockinstart;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== lockinstop ===&lt;br /&gt;
&lt;br /&gt;
Parameter : None&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Stops the internal lockin amplifier&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
stm.lockinstop;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== updatedspparam ===&lt;br /&gt;
&lt;br /&gt;
Parameter: None&lt;br /&gt;
&lt;br /&gt;
Function: Updates all parameters and synchronizes the the parameters with the DSP&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
stm.updatedspparam;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== updatedspfbparam ===&lt;br /&gt;
&lt;br /&gt;
Parameter :  None&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  After changing the parameters this command allows to update/synchronize the parameters with the DSP.&lt;br /&gt;
&lt;br /&gt;
For example changing a feedback loop parameter in the old parameter window will not automatically change this parameter on the DSP.&lt;br /&gt;
Therefore this update command has to be issued afterwards. Allows to set first the new parameters and then update all at the same time on the DSP.&lt;br /&gt;
(low level command)&lt;br /&gt;
&lt;br /&gt;
=== sliderup ===&lt;br /&gt;
&lt;br /&gt;
Parameter : None&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Moves the slider one step up&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
stm.sliderup;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== sliderdown ===&lt;br /&gt;
&lt;br /&gt;
Parameter : None&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Moves the slider one step down&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
stm.sliderdown;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== slider ===&lt;br /&gt;
&lt;br /&gt;
Parameter :&lt;br /&gt;
channel&lt;br /&gt;
direction&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Moves the slider &lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
stm.slider(1,0);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== setdacval ===&lt;br /&gt;
Parameter : &lt;br /&gt;
board 1..2&lt;br /&gt;
channel  0..5&lt;br /&gt;
value   -524288 ..  524287           &lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Sets DAC value of selected channel. Units are DAC Units (20bit)&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
stm.setdacval(1,2,1000);&lt;br /&gt;
&lt;br /&gt;
                &lt;br /&gt;
=== setdacvalf === &lt;br /&gt;
Parameter : &lt;br /&gt;
board 1..2&lt;br /&gt;
channel  0..5&lt;br /&gt;
value   -10.0 .. 10.0          &lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Sets DAC value of selected channel. Units are Volt (float)&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
stm.setdacval(1,2,1.034);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== getadcval ===&lt;br /&gt;
&lt;br /&gt;
Parameter : &lt;br /&gt;
board 1..2&lt;br /&gt;
channel 0..5                &lt;br /&gt;
&lt;br /&gt;
Return:   ADC value of selected channel&lt;br /&gt;
&lt;br /&gt;
Function:  Gets the ADC value. Units are in DAC units (20bit)&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
stm.getadcval(1,2);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== getadcvalf ===&lt;br /&gt;
&lt;br /&gt;
Parameter : &lt;br /&gt;
board 1..2&lt;br /&gt;
channel  0..5               &lt;br /&gt;
&lt;br /&gt;
Return:   ADC value of selected channel&lt;br /&gt;
&lt;br /&gt;
Function:  Gets the ADC value. Units are in Volt&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
stm.getadcvalf(1,2);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== getdacvalfb ===&lt;br /&gt;
 &lt;br /&gt;
Parameter : none              &lt;br /&gt;
&lt;br /&gt;
Return:   Value of z - Dac in Angstroem&lt;br /&gt;
 &lt;br /&gt;
Function:  Gets the Feedback DAC Value &lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
a=stm.getdacvalfb;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== digoutvalue ===&lt;br /&gt;
&lt;br /&gt;
Property Integer          &lt;br /&gt;
&lt;br /&gt;
Function:  Read and write Digital Outputvalue on Board 1&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
i:=stm.digoutvalue;&lt;br /&gt;
&lt;br /&gt;
stm.digoutvalue:=i;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== sbcdigoutvalue ===&lt;br /&gt;
&lt;br /&gt;
Property Integer          &lt;br /&gt;
&lt;br /&gt;
Function:  Read and write digital outputvalue on SBC6711Board&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
i:=stm.sbcdigoutvalue;&lt;br /&gt;
&lt;br /&gt;
stm.sbcdigoutvalue:=i;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== serverneverclose ===&lt;br /&gt;
&lt;br /&gt;
Parameter: None          &lt;br /&gt;
&lt;br /&gt;
Function:  If activated makes sure that the STM Program will not close after the connection to the server is stopped, if the STM program was started by the client.&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
stm.serverneverclose;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== execmethod ===&lt;br /&gt;
&lt;br /&gt;
Parameter: &lt;br /&gt;
Objectname&lt;br /&gt;
Methodname&lt;br /&gt;
&lt;br /&gt;
Return: None&lt;br /&gt;
&lt;br /&gt;
Function:  Execute a specific function in the STM program. Specific debugging use only&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
stm.execmethod('stmafm','Formmemoclick');&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== setxyoffvolt ===&lt;br /&gt;
&lt;br /&gt;
Parameter : &lt;br /&gt;
x: Offset in Volt  Range: (-10.0, +10.0) * HVGainX&lt;br /&gt;
y: Offset in Volt  Range: (-10.0, +10.0) * HVGainY&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Sets a new X_Offset, Y_Offset Value. Units are in Volt &lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
stm.setxyoffsetvolt(12.5,-24.0);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== setxyoffpixel ===&lt;br /&gt;
Parameter : &lt;br /&gt;
x: Offset in Pixel units &lt;br /&gt;
y: Offset in Pixel Units&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Sets a new X_Offset, Y_Offset Value. The new offset is given by a pixel position in the present scanimage.&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
stm.setxypixel(100,78);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== scandatabitmap ===&lt;br /&gt;
&lt;br /&gt;
Parameter : none&lt;br /&gt;
Return:   Array with Scan Channel Bitmap Data&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Function:  Get the the scanimage data as a bitmap.&lt;br /&gt;
The bitmap data is 32bit wide. The bitmap contains all channels.&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
a=stm.scandatabitmap;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== pc32scanstatus ===&lt;br /&gt;
&lt;br /&gt;
Parameter : none&lt;br /&gt;
&lt;br /&gt;
Return:   Scanstatus value on DSP Board&lt;br /&gt;
&lt;br /&gt;
Function:  Gets the scanstatus of the DSP program&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
a=stm.pc32scanstatus;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== stmready ===&lt;br /&gt;
Parameter: none&lt;br /&gt;
Return: stmready  1: ready  0 not ready&lt;br /&gt;
&lt;br /&gt;
Function:  If stmready = 1 then the initialization of the STMAFM program is finshed.&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
&lt;br /&gt;
a= stm.stmready;&lt;br /&gt;
&lt;br /&gt;
=== setrampdspparam ===&lt;br /&gt;
&lt;br /&gt;
Parameter: zheight: single -10 - + 10V&lt;br /&gt;
           zduration: single&lt;br /&gt;
           zburst: integer&lt;br /&gt;
           xyheight:single&lt;br /&gt;
           xyduration: single&lt;br /&gt;
           xyburst: integer&lt;br /&gt;
&lt;br /&gt;
Function: Sets the corresponding parameters of the rampcontroller&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
&lt;br /&gt;
stm.setrampdspparam(1.0,0.01,100,2.0,0.02,200)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:stmafm_manual]]&lt;/div&gt;</summary>
		<author><name>Ltspm</name></author>	</entry>

	<entry>
		<id>http://spm-wiki.createc.de/index.php?title=STMAFM_Remote_Operation</id>
		<title>STMAFM Remote Operation</title>
		<link rel="alternate" type="text/html" href="http://spm-wiki.createc.de/index.php?title=STMAFM_Remote_Operation"/>
				<updated>2015-01-05T13:30:14Z</updated>
		
		<summary type="html">&lt;p&gt;Ltspm: /* OLE/COM Server */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== OLE/COM Server ==&lt;br /&gt;
&lt;br /&gt;
To register the OLE/COM sever in the stmafm program goto &amp;quot;Debug&amp;quot; and &amp;quot;Register COM Server&amp;quot;. If you are going to install a newer version of the program, please click &amp;quot;Unregister COM Server&amp;quot; before installing the new version. Both has to be done with administrative rights as it requires access to the Windows registry.&lt;br /&gt;
&lt;br /&gt;
You may also run  &amp;quot;pstmafm.exe / regserver&amp;quot; form the command prompt.&lt;br /&gt;
(Alternatively run &amp;quot;pstmafm.exe /regserverperuser&amp;quot; in case you have problems running /regserver in Windows 7)&lt;br /&gt;
Again administrator rights are required.&lt;br /&gt;
&lt;br /&gt;
There are many different software tools available to perform data analysis as well as data aquisition or remote operation of the STMAFM program via OLE/COM: &lt;br /&gt;
&lt;br /&gt;
1. Python (Freeware, please visit http://winpython.sourceforge.net/ for download) we're using WinPython 2.7.x 32bit, 64bit&lt;br /&gt;
&lt;br /&gt;
2. Commercial Software: MatLab / LabView&lt;br /&gt;
&lt;br /&gt;
3. For more specific purposes with a more elaborate user interface Createc can supply dedicated plugin programs. (Contact ltspm@createc.de to solve your specific needs)&lt;br /&gt;
&lt;br /&gt;
For simple scripting purposes, i.e. controlling the program without data analysis a scripter program is can still be used.(e.g. MAXBOX) But for people starting from scratch we recommend using the OLE/COM interface as we will drop the support via the TCPIP interface in future. &lt;br /&gt;
&lt;br /&gt;
Example software will be provided through the Createc WebSite.&lt;br /&gt;
&lt;br /&gt;
== Matlab Connection ==&lt;br /&gt;
&lt;br /&gt;
You can access the pstmafm.stmafm Ole/Com server directly from Matlab. (or Freemat using a corresponding dll)&lt;br /&gt;
We recommend controlling the STMAFM Program thorugh this interface.&lt;br /&gt;
&lt;br /&gt;
stm=actxserver('pstmafm.stmafmrem'); %Open connection to STM Program, see also Matlab manual.&lt;br /&gt;
stm.stmbeep; % &lt;br /&gt;
stm.release; % release stm program&lt;br /&gt;
&lt;br /&gt;
The STM program will be started and closed automatically from Matlab. If the STM program is already running just the connection will be established.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Demo Startstm.m with event capability&lt;br /&gt;
&lt;br /&gt;
 global stm&lt;br /&gt;
 global stm1&lt;br /&gt;
 global linescandata&lt;br /&gt;
 stm=actxserver('pstmafm.stmafmrem');&lt;br /&gt;
 stm1=actxserver('pstmafm.stmafmevent');&lt;br /&gt;
 stm1.registerevent('serverevents');&lt;br /&gt;
 %registerevent: register a file serverevents.m to handle events.&lt;br /&gt;
&lt;br /&gt;
Example: serverevents.m &lt;br /&gt;
&lt;br /&gt;
 function serverevents(varargin)&lt;br /&gt;
 global stmoleeventnr&lt;br /&gt;
 global linescandata&lt;br /&gt;
 global stm&lt;br /&gt;
 stmoleeventnr = cell2mat(varargin(3));&lt;br /&gt;
 linescandata = stm.linescandata; &lt;br /&gt;
 if (stmoleeventnr == 1)&lt;br /&gt;
   plot(linescandata(:,1),linescandata(:,2));&lt;br /&gt;
 end&lt;br /&gt;
&lt;br /&gt;
== Plugins ==&lt;br /&gt;
&lt;br /&gt;
Specifically developed Plugins will be available to supply specific user needs. In particular where a more elaborate graphical user interface is&lt;br /&gt;
necessary compared to a simple text based scripting control.&lt;br /&gt;
&lt;br /&gt;
== Commands ==&lt;br /&gt;
&lt;br /&gt;
=== stmbeep ===&lt;br /&gt;
&lt;br /&gt;
Parameter : None&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  STMAFM Programm creates a short beep sound.  Used for testing purposes&lt;br /&gt;
&lt;br /&gt;
=== setparam ===&lt;br /&gt;
&lt;br /&gt;
Parameter : (Strings)&lt;br /&gt;
1. Name of parameter&lt;br /&gt;
2. New Value&lt;br /&gt;
&lt;br /&gt;
Return:   &lt;br /&gt;
&lt;br /&gt;
Function:  Sets a parameter to a new value. The name is the name appearing in the old parameter menue&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
stm.setparam('Rotation','90.00');&lt;br /&gt;
&lt;br /&gt;
=== getparam ===&lt;br /&gt;
&lt;br /&gt;
Parameter : &lt;br /&gt;
1. Name of parameter&lt;br /&gt;
&lt;br /&gt;
Return:   &lt;br /&gt;
1. Value of Parameter&lt;br /&gt;
&lt;br /&gt;
Function:  Gets the actual parameter value. The name is the name appearing the old parameter menue&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
a=stm.getparam('Rotation');&lt;br /&gt;
&lt;br /&gt;
=== scanstart ===&lt;br /&gt;
&lt;br /&gt;
Parameter : None&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Starts a new STM scan.  Similar to pressing the button Scanstart&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== scanwaitfinished ===&lt;br /&gt;
&lt;br /&gt;
Parameter : None&lt;br /&gt;
&lt;br /&gt;
Return:  None&lt;br /&gt;
&lt;br /&gt;
Function:  Waits until the active scan is stopped.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== scanstop ===&lt;br /&gt;
&lt;br /&gt;
Parameter : None&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Stops a running STM scan.  Similar to pressing the button Scanstop&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== scanstatus ===&lt;br /&gt;
&lt;br /&gt;
Parameter : None&lt;br /&gt;
&lt;br /&gt;
Return:    Status Number ( = ord(scanstat) see below)&lt;br /&gt;
&lt;br /&gt;
Function:  Gets the present scanstatus. &lt;br /&gt;
&lt;br /&gt;
scanstat = (scanstatreset, stop, running, start, resetting, pause, scanstatvertman, scanstatlatman, scanstattimespec, scanxyoffset,scanstatapproach);&lt;br /&gt;
&lt;br /&gt;
0, SCANSTATRESET:   		Programm is in idle state&lt;br /&gt;
1, STOP:	            	Running Scan is stopped but is not fully reset yet.&lt;br /&gt;
2, RUNNING:                 	Scan is running&lt;br /&gt;
3, START                      	New Scan is started but not yet running&lt;br /&gt;
4, PAUSE			Running Scan is paused&lt;br /&gt;
5, SCANSTATVERTMAN	VertSpectrum is running&lt;br /&gt;
6, SCANSTATLATMAN		LATManip is running&lt;br /&gt;
7, SCANSTATTIMESPEC	Timespectrum is running&lt;br /&gt;
8, SCANXYOFFSET		XYOffset is running&lt;br /&gt;
9, SCANSTATAPPROACH	Approach is running&lt;br /&gt;
&lt;br /&gt;
=== quicksave ===&lt;br /&gt;
&lt;br /&gt;
Parameter : None&lt;br /&gt;
&lt;br /&gt;
Return:  None&lt;br /&gt;
&lt;br /&gt;
Function:  Saves the current scan file using the default filename. Similar to presisng the Quicksave button&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== filesave ===&lt;br /&gt;
&lt;br /&gt;
Parameter : Filename&lt;br /&gt;
&lt;br /&gt;
Return:  None&lt;br /&gt;
&lt;br /&gt;
Function:  Saves the current scandata file using the  filename as .dat file. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== fileload ===&lt;br /&gt;
&lt;br /&gt;
Parameter : Filename&lt;br /&gt;
&lt;br /&gt;
Return:  None&lt;br /&gt;
&lt;br /&gt;
Function:  Loads a .dat file into the program.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== vertsave ===&lt;br /&gt;
&lt;br /&gt;
Parameter : None&lt;br /&gt;
&lt;br /&gt;
Return:   none&lt;br /&gt;
&lt;br /&gt;
Function:  save present vertspecdata &lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
a=stm.vertsave;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== latsave ===&lt;br /&gt;
Parameter : None&lt;br /&gt;
&lt;br /&gt;
Return:   none&lt;br /&gt;
&lt;br /&gt;
Function:  save present latmanipdata &lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
a=stm.latsave;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== savedatfilename ===&lt;br /&gt;
&lt;br /&gt;
Property String&lt;br /&gt;
&lt;br /&gt;
Parameter : None&lt;br /&gt;
&lt;br /&gt;
Return:  None&lt;br /&gt;
&lt;br /&gt;
Function:  Read and write the default savefilename of .dat files.&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
filename=stm.savedatfilename;&lt;br /&gt;
&lt;br /&gt;
stm.savefilename=filename;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===  loadfilename ===&lt;br /&gt;
&lt;br /&gt;
Property String&lt;br /&gt;
&lt;br /&gt;
Function:  Read and write the default loadfilename of .dat files.&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
filename=stm.loaddatfilename;&lt;br /&gt;
&lt;br /&gt;
stm.loadfilename=filename;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== savevertfilename ===&lt;br /&gt;
&lt;br /&gt;
Property String&lt;br /&gt;
&lt;br /&gt;
Function:  Read and write the default filename of Vertspec  files.&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
filename=stm.savevertfilename;&lt;br /&gt;
&lt;br /&gt;
stm.savevertfilename=filename;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== savelatfilename ===&lt;br /&gt;
&lt;br /&gt;
Property String&lt;br /&gt;
&lt;br /&gt;
Function:  Read and write the default filename of Latmanip  files.&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
filename=stm.savelatfilename;&lt;br /&gt;
&lt;br /&gt;
stm.savelatfilename:=filename;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== btn_vertspec ===&lt;br /&gt;
&lt;br /&gt;
Parameter : &lt;br /&gt;
1. xpos :integer&lt;br /&gt;
2. ypos :integer&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Takes a Vert.Spectrum at image point Xpos,Ypos. (Image pixel coordinates as displayed in the status line of the STMAFM main window) Control is returned after the spectrum has been completely finished&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
stm.btn_vertspec(128,128);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== btn_vertspec_line ===&lt;br /&gt;
&lt;br /&gt;
Parameter : &lt;br /&gt;
1. X coordinate in imagepixels  of start point.&lt;br /&gt;
2  Y coordinate in imagepixels  of start point&lt;br /&gt;
3. X coordinate in imagepixels  of end point&lt;br /&gt;
4. Y coordinate in imagepixels  of end point&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
Function:  Takes a series of Vert.Spectra along a line defined by the start and end image points. (Image pixel coordinates as displayed in the status line of the STMAFM main window)&lt;br /&gt;
Control is returned after the spectra have been completely finished&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
stm.btn_vertspec_line(50,50,100,100);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== btn_vertspec_mult ===&lt;br /&gt;
&lt;br /&gt;
Parameter : 2d Array of X,Y coordinates&lt;br /&gt;
1. X coordinate in imagepixels  of 1.point&lt;br /&gt;
2. Y coordinate in imagepixels  of 1.point&lt;br /&gt;
.......&lt;br /&gt;
&lt;br /&gt;
2n-1. X coordinate in imagepixels  of n.point&lt;br /&gt;
2n. Y coordinate in imagepixels  of n.point&lt;br /&gt;
&lt;br /&gt;
Return:   Ready or Error&lt;br /&gt;
&lt;br /&gt;
Function:  Takes a series of Vert.Spectra defined by a list of image points. (Image pixel coordinates as displayed in the status line of the STMAFM main window). Control is returned after the spectra have been completely finished&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
a=[10,20;50,50;100,100;19,90];&lt;br /&gt;
stm.btn_vertspec_line(a);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== btn_tipform ===&lt;br /&gt;
&lt;br /&gt;
Parameter : &lt;br /&gt;
1. xpos :integer&lt;br /&gt;
2. ypos :integer&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Does a tip forming at image point Xpos,Ypos. (Image pixel coordinates as displayed in the status line of the STMAFM main window). Control is returned after the tip forming has been completely finished&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
stm.btn_tipform(128,128);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== btn_timespec ===&lt;br /&gt;
&lt;br /&gt;
Parameter : none&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Takes a time spectrum&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
stm.btn_timespec;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== scandata ===&lt;br /&gt;
&lt;br /&gt;
Parameter : channel: integer:integer&lt;br /&gt;
&lt;br /&gt;
Return:   Array with Scan Channel Data&lt;br /&gt;
&lt;br /&gt;
Function:  Read single channel of Scan Data &lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
a=stm.scandata(channel);  Presently only DAC units supported&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Channels:&lt;br /&gt;
1:Topography&lt;br /&gt;
2: Current(ADC0)&lt;br /&gt;
3: ADC1&lt;br /&gt;
4: ADC2&lt;br /&gt;
5: ADC3&lt;br /&gt;
6: dI/dV&lt;br /&gt;
7: d2I/dV&lt;br /&gt;
8: df&lt;br /&gt;
9: Damping&lt;br /&gt;
10: Amplitude&lt;br /&gt;
11: CP(DAC1)&lt;br /&gt;
12: AUX1&lt;br /&gt;
&lt;br /&gt;
If backward scanning channels are enabled, these channels are accessed by adding 256 as offset to the channel number above.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== scandatawrite ===&lt;br /&gt;
&lt;br /&gt;
Parameter : &lt;br /&gt;
1. channel: integer:integer&lt;br /&gt;
2. data: Matrix with Scan Channel Data&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Write single channel of Scan Data &lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
stm.scandatawrite(channel, data);     Presently only DAC units supported&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Channels:&lt;br /&gt;
1:Topography&lt;br /&gt;
2: Current(ADC0)&lt;br /&gt;
3: ADC1&lt;br /&gt;
4: ADC2&lt;br /&gt;
5: ADC3&lt;br /&gt;
6: dI/dV&lt;br /&gt;
7: d2I/dV&lt;br /&gt;
8: df&lt;br /&gt;
9: Damping&lt;br /&gt;
10: Amplitude&lt;br /&gt;
11: CP(DAC1)&lt;br /&gt;
12: AUX1&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== scanauxdata ===&lt;br /&gt;
&lt;br /&gt;
Property:   Matrix with Scan Aux channel Data&lt;br /&gt;
&lt;br /&gt;
Function:  Read and  write Scan AUX Data channel&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
a=stm.scanauxdata;  Presently only DAC units supported&lt;br /&gt;
stm.scanauxdata=a;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== openscanchannel ===&lt;br /&gt;
&lt;br /&gt;
Parameter : &lt;br /&gt;
1. channel integer&lt;br /&gt;
2. select :boolean&lt;br /&gt;
&lt;br /&gt;
Return:   none&lt;br /&gt;
&lt;br /&gt;
Function:  Activate specific Scan channel  &lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
a=stm.openscanchannel(channel, true);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===  linescandata ===&lt;br /&gt;
&lt;br /&gt;
Parameter : None&lt;br /&gt;
&lt;br /&gt;
Return:   Array with actual LineScan Data&lt;br /&gt;
&lt;br /&gt;
Function:  Read LineScan Data  &lt;br /&gt;
&lt;br /&gt;
Linescandata can be transferred into the Matlab workspace in a event driven manner. I.e. click the copy OLE/COM server popupmenue field in the Linescan window. This creates an event in Matlab which starts the&lt;br /&gt;
serverevents.m file which transfers the data to Matlab.    &lt;br /&gt;
&lt;br /&gt;
Columns&lt;br /&gt;
1: Distance in Angstrom&lt;br /&gt;
2: Y Values&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
a=stm.linescandata;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== timespecdata ===&lt;br /&gt;
&lt;br /&gt;
Parameter : channel: integer, units: integer&lt;br /&gt;
&lt;br /&gt;
Return:   Vector with Channel Data&lt;br /&gt;
&lt;br /&gt;
Function:  Read Channel Data&lt;br /&gt;
&lt;br /&gt;
Columns&lt;br /&gt;
1: Channel in units&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
a=stm.timespec(3,0);&lt;br /&gt;
&lt;br /&gt;
Channels:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== timespecfftdata ===&lt;br /&gt;
&lt;br /&gt;
Parameter : channel: integer, units: integer&lt;br /&gt;
&lt;br /&gt;
Return:   Vector with Channel Data&lt;br /&gt;
&lt;br /&gt;
Function:  Read Channel Data&lt;br /&gt;
&lt;br /&gt;
Columns&lt;br /&gt;
1: Channel in units&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
a=stm.timespec(3,0);&lt;br /&gt;
&lt;br /&gt;
Channels:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== latmandata ===&lt;br /&gt;
&lt;br /&gt;
Parameter : channel: integer, units: integer&lt;br /&gt;
&lt;br /&gt;
Return:   Vector with Lat manip Channel Data&lt;br /&gt;
&lt;br /&gt;
Function:  Read Lat manip Channel Data&lt;br /&gt;
&lt;br /&gt;
Columns&lt;br /&gt;
1: Channel in units&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
a=stm.latmandata(channel,units);&lt;br /&gt;
&lt;br /&gt;
Channels:&lt;br /&gt;
0: time in sec&lt;br /&gt;
1: X&lt;br /&gt;
2: Y&lt;br /&gt;
3: Current I&lt;br /&gt;
4: dI/dV&lt;br /&gt;
5: d2I/dV&lt;br /&gt;
6: ADC0&lt;br /&gt;
7: ADC1&lt;br /&gt;
8: ADC2&lt;br /&gt;
9: ADC3&lt;br /&gt;
10: df&lt;br /&gt;
11: Damping&lt;br /&gt;
12: Amplitude&lt;br /&gt;
13: di_q&lt;br /&gt;
14: di2_q&lt;br /&gt;
15: Topography(DAC0)&lt;br /&gt;
16: CP(DAC1)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Units:&lt;br /&gt;
0: Default&lt;br /&gt;
1: Volt&lt;br /&gt;
2: DAC&lt;br /&gt;
3: Ampere&lt;br /&gt;
4: nm&lt;br /&gt;
5: Hz&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== vertdata ===&lt;br /&gt;
&lt;br /&gt;
Parameter : channel: integer, units: integer&lt;br /&gt;
&lt;br /&gt;
Return:   Vector with Channel Data&lt;br /&gt;
&lt;br /&gt;
Function:  Read Channel Data&lt;br /&gt;
&lt;br /&gt;
Columns&lt;br /&gt;
1: Channel in units&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
a=stm.vertdata(3,1);&lt;br /&gt;
&lt;br /&gt;
Channels:&lt;br /&gt;
0: time in sec&lt;br /&gt;
1: V&lt;br /&gt;
2: Z&lt;br /&gt;
3: Current I&lt;br /&gt;
4: dI/dV&lt;br /&gt;
5: d2I/dV&lt;br /&gt;
6: ADC0&lt;br /&gt;
7: ADC1&lt;br /&gt;
8: ADC2&lt;br /&gt;
9: ADC3&lt;br /&gt;
10: df&lt;br /&gt;
11: Damping&lt;br /&gt;
12: Amplitude&lt;br /&gt;
13: di_q&lt;br /&gt;
14: di2_q&lt;br /&gt;
15: Topography(DAC0)&lt;br /&gt;
16: CP(DAC1)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Units:&lt;br /&gt;
0: Default&lt;br /&gt;
1: Volt&lt;br /&gt;
2: DAC&lt;br /&gt;
3: Ampere&lt;br /&gt;
4: nm&lt;br /&gt;
5: Hz&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== pllspecdata ===&lt;br /&gt;
&lt;br /&gt;
Parameter : None&lt;br /&gt;
&lt;br /&gt;
Return:   Array with PLL Spectrum Scan Data&lt;br /&gt;
&lt;br /&gt;
Function:  Read PLL Spectrum Scan Data      &lt;br /&gt;
&lt;br /&gt;
Columns&lt;br /&gt;
1: Frequency [Hz]&lt;br /&gt;
2: Amplitude [a.u.]&lt;br /&gt;
3: Phase [Deg]&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
a=stm.pllspecdata;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== strbuffer ===&lt;br /&gt;
&lt;br /&gt;
Property&lt;br /&gt;
&lt;br /&gt;
Parameter : None&lt;br /&gt;
&lt;br /&gt;
Return:   String with all parameters&lt;br /&gt;
&lt;br /&gt;
Function:  Read and write program parameter      &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
s=stm.strbuffer;&lt;br /&gt;
&lt;br /&gt;
stm.strbuffer:=s;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== pllfreqscan ===&lt;br /&gt;
&lt;br /&gt;
Parameter : None&lt;br /&gt;
&lt;br /&gt;
Return:   none&lt;br /&gt;
&lt;br /&gt;
Function:  Start a new PLL Freqeuncy Scan  &lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
a=stm.pllfreqscan;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===  vertspectrum ===&lt;br /&gt;
 &lt;br /&gt;
Parameter : None&lt;br /&gt;
&lt;br /&gt;
Return:   Ready or Error&lt;br /&gt;
&lt;br /&gt;
Function:  Takes a Vert.Spectrum at the current image point X,Y.  Control is returned after the spectrum has been completely finished&lt;br /&gt;
The tip remains at the current lateral position&lt;br /&gt;
(low level command)&lt;br /&gt;
&lt;br /&gt;
=== move_tip ===&lt;br /&gt;
&lt;br /&gt;
Parameter : &lt;br /&gt;
1. X start position in relative DAC units  &lt;br /&gt;
2. Y start position in relative DAC units&lt;br /&gt;
3. X end position in relative DAC units  &lt;br /&gt;
4. Y end position in relative DAC units  &lt;br /&gt;
5. Number steps in which the tip moves from start to endpoint&lt;br /&gt;
6 Delay in DSP cycles between each step&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Move tip to new position. Coordinates are given in relative DAC units (relative: X,Y Offset and rotation are added afterwards)&lt;br /&gt;
Control is returned after the move has been completely finished&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
stm.move_tip(50,50,100,100, 200,100);&lt;br /&gt;
&lt;br /&gt;
=== move_tip_imagecoord ===&lt;br /&gt;
&lt;br /&gt;
Parameter : &lt;br /&gt;
1. X start position in imagepixels  &lt;br /&gt;
2. Y start position in imagepixels  &lt;br /&gt;
3. X end position in imagepixels  &lt;br /&gt;
4. Y end position in imagepixels  &lt;br /&gt;
5. Number steps in which the tip moves from start to endpoint&lt;br /&gt;
6 Delay in DSP cycles between each step&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Move tip to new position (Image pixel coordinates as displayed in the status line of the STMAFM main window)&lt;br /&gt;
Control is returned after the move has been completely finished&lt;br /&gt;
&lt;br /&gt;
Relation between imagepixel coordinates (0&amp;lt;=ximage&amp;lt;nx ,  0&amp;lt;=yimage&amp;lt;ny ) and  relative DAC coordinates (xdac,ydac):&lt;br /&gt;
(Top line in image is ny=0)&lt;br /&gt;
&lt;br /&gt;
xdac:=trunc(ximage*dx - (nx div 2)*dx);&lt;br /&gt;
ydac:=trunc(yimage*dy);&lt;br /&gt;
&lt;br /&gt;
On the DSP a final coordinate transformation is done including rotation, offset and drift correction to calculate the absolute DAC coordinates:&lt;br /&gt;
Using 20bit DACS the values are internal limited to +/- 524272.&lt;br /&gt;
&lt;br /&gt;
xdacabs=  trunc ( - (xdac*rotmxx + ydac*rotmxy + rotoffx-driftxoff));&lt;br /&gt;
ydacabs=  trunc ( - (xdac*rotmyx + ydac*rotmyy + rotoffy-driftyoff));&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
stm.move_tip_imagecoord(50,50,100,100, 200,100);&lt;br /&gt;
&lt;br /&gt;
=== latmanip ===&lt;br /&gt;
&lt;br /&gt;
Parameter : &lt;br /&gt;
1. X coordinate in imagepixels  of start point.&lt;br /&gt;
2  Y coordinate in imagepixels  of start point&lt;br /&gt;
3. X coordinate in imagepixels  of end point&lt;br /&gt;
4. Y coordinate in imagepixels  of end point&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Takes a lateral manipulation along a line defined by the start and end image points. (Image pixel coordinates as displayed in the status line of the STMAFM main window)&lt;br /&gt;
Control is returned after the manipulation has been completely finished&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
stm.latmanip(50,50,100,100);&lt;br /&gt;
&lt;br /&gt;
===  latmanipxymove  ===&lt;br /&gt;
(low level command)&lt;br /&gt;
&lt;br /&gt;
Parameter : &lt;br /&gt;
1. X coordinate  of start point in rel. DAC units.&lt;br /&gt;
2  Y coordinate  of f start point in rel. DAC units.&lt;br /&gt;
3. X coordinate of end point in rel. DAC units.&lt;br /&gt;
4. Y coordinate of end point in rel. DAC units.&lt;br /&gt;
5. Number of steps &lt;br /&gt;
6. Delay between steps in DSP Cycles&lt;br /&gt;
7. Gain of Preamp during manipulation&lt;br /&gt;
8. Bias Voltage during manipulation&lt;br /&gt;
9. Current set point during manipulation in constant current mode&lt;br /&gt;
&lt;br /&gt;
Return:  None&lt;br /&gt;
Function:  &lt;br /&gt;
Takes a lateral manipulation along a line defined by the start and end image points. Coordinates are in relative DAC units.&lt;br /&gt;
Control is returned after the scan has been completely finished. &lt;br /&gt;
&lt;br /&gt;
The recorded data is saved in a file called 'manipxymove.data' placed in the active directory.&lt;br /&gt;
The file contains one line for each step. For each step the selected number of channels are recorded. (See LATMANIP form)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== latmanbufferext ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== lockinstart ===&lt;br /&gt;
&lt;br /&gt;
Parameter : None&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Starts the internal lockin amplifier&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
stm.lockinstart;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== lockinstop ===&lt;br /&gt;
&lt;br /&gt;
Parameter : None&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Stops the internal lockin amplifier&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
stm.lockinstop;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== updatedspparam ===&lt;br /&gt;
&lt;br /&gt;
Parameter: None&lt;br /&gt;
&lt;br /&gt;
Function: Updates all parameters and synchronizes the the parameters with the DSP&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
stm.updatedspparam;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== updatedspfbparam ===&lt;br /&gt;
&lt;br /&gt;
Parameter :  None&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  After changing the parameters this command allows to update/synchronize the parameters with the DSP.&lt;br /&gt;
&lt;br /&gt;
For example changing a feedback loop parameter in the old parameter window will not automatically change this parameter on the DSP.&lt;br /&gt;
Therefore this update command has to be issued afterwards. Allows to set first the new parameters and then update all at the same time on the DSP.&lt;br /&gt;
(low level command)&lt;br /&gt;
&lt;br /&gt;
=== sliderup ===&lt;br /&gt;
&lt;br /&gt;
Parameter : None&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Moves the slider one step up&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
stm.sliderup;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== sliderdown ===&lt;br /&gt;
&lt;br /&gt;
Parameter : None&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Moves the slider one step down&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
stm.sliderdown;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== slider ===&lt;br /&gt;
&lt;br /&gt;
Parameter :&lt;br /&gt;
channel&lt;br /&gt;
direction&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Moves the slider &lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
stm.slider(1,0);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== setdacval ===&lt;br /&gt;
Parameter : &lt;br /&gt;
board 1..2&lt;br /&gt;
channel  0..5&lt;br /&gt;
value   -524288 ..  524287           &lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Sets DAC value of selected channel. Units are DAC Units (20bit)&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
stm.setdacval(1,2,1000);&lt;br /&gt;
&lt;br /&gt;
                &lt;br /&gt;
=== setdacvalf === &lt;br /&gt;
Parameter : &lt;br /&gt;
board 1..2&lt;br /&gt;
channel  0..5&lt;br /&gt;
value   -10.0 .. 10.0          &lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Sets DAC value of selected channel. Units are Volt (float)&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
stm.setdacval(1,2,1.034);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== getadcval ===&lt;br /&gt;
&lt;br /&gt;
Parameter : &lt;br /&gt;
board 1..2&lt;br /&gt;
channel 0..5                &lt;br /&gt;
&lt;br /&gt;
Return:   ADC value of selected channel&lt;br /&gt;
&lt;br /&gt;
Function:  Gets the ADC value. Units are in DAC units (20bit)&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
stm.getadcval(1,2);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== getadcvalf ===&lt;br /&gt;
&lt;br /&gt;
Parameter : &lt;br /&gt;
board 1..2&lt;br /&gt;
channel  0..5               &lt;br /&gt;
&lt;br /&gt;
Return:   ADC value of selected channel&lt;br /&gt;
&lt;br /&gt;
Function:  Gets the ADC value. Units are in Volt&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
stm.getadcvalf(1,2);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== getdacvalfb ===&lt;br /&gt;
 &lt;br /&gt;
Parameter : none              &lt;br /&gt;
&lt;br /&gt;
Return:   Value of z - Dac in Angstroem&lt;br /&gt;
 &lt;br /&gt;
Function:  Gets the Feedback DAC Value &lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
a=stm.getdacvalfb;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== digoutvalue ===&lt;br /&gt;
&lt;br /&gt;
Property Integer          &lt;br /&gt;
&lt;br /&gt;
Function:  Read and write Digital Outputvalue on Board 1&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
i:=stm.digoutvalue;&lt;br /&gt;
&lt;br /&gt;
stm.digoutvalue:=i;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== sbcdigoutvalue ===&lt;br /&gt;
&lt;br /&gt;
Property Integer          &lt;br /&gt;
&lt;br /&gt;
Function:  Read and write digital outputvalue on SBC6711Board&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
i:=stm.sbcdigoutvalue;&lt;br /&gt;
&lt;br /&gt;
stm.sbcdigoutvalue:=i;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== serverneverclose ===&lt;br /&gt;
&lt;br /&gt;
Parameter: None          &lt;br /&gt;
&lt;br /&gt;
Function:  If activated makes sure that the STM Program will not close after the connection to the server is stopped, if the STM program was started by the client.&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
stm.serverneverclose;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== execmethod ===&lt;br /&gt;
&lt;br /&gt;
Parameter: &lt;br /&gt;
Objectname&lt;br /&gt;
Methodname&lt;br /&gt;
&lt;br /&gt;
Return: None&lt;br /&gt;
&lt;br /&gt;
Function:  Execute a specific function in the STM program. Specific debugging use only&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
stm.execmethod('stmafm','Formmemoclick');&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== setxyoffvolt ===&lt;br /&gt;
&lt;br /&gt;
Parameter : &lt;br /&gt;
x: Offset in Volt  Range: (-10.0, +10.0) * HVGainX&lt;br /&gt;
y: Offset in Volt  Range: (-10.0, +10.0) * HVGainY&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Sets a new X_Offset, Y_Offset Value. Units are in Volt &lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
stm.setxyoffsetvolt(12.5,-24.0);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== setxyoffpixel ===&lt;br /&gt;
Parameter : &lt;br /&gt;
x: Offset in Pixel units &lt;br /&gt;
y: Offset in Pixel Units&lt;br /&gt;
&lt;br /&gt;
Return:   None&lt;br /&gt;
&lt;br /&gt;
Function:  Sets a new X_Offset, Y_Offset Value. The new offset is given by a pixel position in the present scanimage.&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
stm.setxypixel(100,78);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== scandatabitmap ===&lt;br /&gt;
&lt;br /&gt;
Parameter : none&lt;br /&gt;
Return:   Array with Scan Channel Bitmap Data&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Function:  Get the the scanimage data as a bitmap.&lt;br /&gt;
The bitmap data is 32bit wide. The bitmap contains all channels.&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
a=stm.scandatabitmap;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== pc32scanstatus ===&lt;br /&gt;
&lt;br /&gt;
Parameter : none&lt;br /&gt;
&lt;br /&gt;
Return:   Scanstatus value on DSP Board&lt;br /&gt;
&lt;br /&gt;
Function:  Gets the scanstatus of the DSP program&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
a=stm.pc32scanstatus;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== stmready ===&lt;br /&gt;
Parameter: none&lt;br /&gt;
Return: stmready  1: ready  0 not ready&lt;br /&gt;
&lt;br /&gt;
Function:  If stmready = 1 then the initialization of the STMAFM program is finshed.&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
&lt;br /&gt;
a= stm.stmready;&lt;br /&gt;
&lt;br /&gt;
=== setrampdspparam ===&lt;br /&gt;
&lt;br /&gt;
Parameter: zheight: single -10 - + 10V&lt;br /&gt;
           zduration: single&lt;br /&gt;
           zburst: integer&lt;br /&gt;
           xyheight:single&lt;br /&gt;
           xyduration: single&lt;br /&gt;
           xyburst: integer&lt;br /&gt;
&lt;br /&gt;
Function: Sets the corresponding parameters of the rampcontroller&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
&lt;br /&gt;
stm.setrampdspparam(1.0,0.01,100,2.0,0.02,200)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:stmafm_manual]]&lt;/div&gt;</summary>
		<author><name>Ltspm</name></author>	</entry>

	<entry>
		<id>http://spm-wiki.createc.de/index.php?title=QPlus_Sensors</id>
		<title>QPlus Sensors</title>
		<link rel="alternate" type="text/html" href="http://spm-wiki.createc.de/index.php?title=QPlus_Sensors"/>
				<updated>2015-01-05T07:45:30Z</updated>
		
		<summary type="html">&lt;p&gt;Ltspm: Created page with &amp;quot;The qPlus sensors supplied by CreaTec are based on the work of Prof. Franz Giessibl (University of Regensburg, Germany) and therefore supplied by him. The nominell dimensions ...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The qPlus sensors supplied by CreaTec are based on the work of Prof. Franz Giessibl (University of Regensburg, Germany) and therefore supplied by him. The nominell dimensions of the sensors are:&lt;br /&gt;
L=2.36mm, H=0.214mm, T=0.127mm. &lt;br /&gt;
Gluing the tip to the end of the sensor leads to a spring constant of 1800 N/m (+/-7%). The biggest error is given by the placement of the tip itself. For a more precise measurement of the spring constant (k) one has to measure the resonace frequency without tip first:&lt;br /&gt;
f0 = sqrt(k/0.243m)/(2Pi). The biggest error of k of the bare sensor is within the thickness (T) of the sensor. It's needed for calculating the sensor mass m = rho_quartz*L*H*T, (rho_quartz = 2.203 g/cm3).&lt;/div&gt;</summary>
		<author><name>Ltspm</name></author>	</entry>

	</feed>