Code

Focus Stage repeat test 시 사용 code

장비 생산 시 Focus Stage를 20회 반복 구동하며 모터 등 구조물의 이상을 파악하는데 사용됩니다. 같은 …

var speed = 1.0; var maxCount = 20; var distance …
Scanning images beyond the XY scanner’s range

Acquire images over a range larger than the XY scanner range by moving the XY …

var xyStageMove = { mov1: [100, 0], mov2: [0, -100], …
Array

Basic Syntax

// Array Creation var array1 = new Array(5); var array2 …
Sample Vision Capture

Sample Vision capture to find specific position

LeftTopX = -248 LeftTopY = 1915 RightBottomX = 1632 RightBottomY …
Loop structure

Basic Syntax

// for for(var i = 0; i <= 10; i++){ …
Move the XY stage after the Image Scan.

Retract the Z scanner to safely move the XY stage after image scanning.

function scanAndMoveXYstage(moveX, moveY){ spm.scan.startImageScan(); spm.scan.stop(); spm.zscanner.retractAll(); spm.sleep(50); spm.xystage.move(moveX, moveY, 0.1, …
Control Head mode

[set] Head Mode Change SLD On/Off [get] sld on/off mode type pspd align [dependency] - …

from SmartRemote import SmartRemote class HeadMode: def __init__(self, SR:SmartRemote): self.__sr …
Image Acquisition Code for Cantilever Training Model

Sample: The specimen to be measured (if too close, sample color may mix with the …

import numpy as np from SmartRemote import SmartRemote as SR …
Flatten the grating sample

Code that uses K-Means clustering to split the Top and Bottom regions and performs line …

import os import warnings import numpy as np import matplotlib.pyplot …
Calculate the region histogram range

Code to calculate the height of a grating sample with two regions. [dependency] - numpy …

import os import warnings import numpy as np from sklearn.cluster …
3d plot tiff

Visualize the TIFF image as a 3D plot. [dependency] - numpy - matplotlib - pspylib

import os import numpy as np import matplotlib.pyplot as plt …
plot tiff

Adjust the color map range to make the TIFF visualization look better. [dependency] - numpy …

import os import numpy as np import matplotlib.pyplot as plt …
Set Point 별 Lateral Sensitivity & Noise 측정
// 하는 거 // Set point (nN) 별로 Lateral Sensitivity와 …
2nd Harmonic EFM Frequency Sweep with LIA2, 3
lia2 = { 'frequencyHz': 100, 'drivePercent': 100, 'channel': 'tip bias' …
Set Data location

Set the save location for TIFF files measured by SmartScan. [dependency] - SmartRemote

from json import dumps from SmartRemote import SmartRemote class DataLocation: …
Programming Languages