PowerScript Code Snippets

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, …
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' …
Contact Approach with PSPD Align
print('Approach Started') spm.addChannel('a-b') //Backup original setting values sp_0 = spm.zservo.setpoint.normValue …
X_1Step_Error_Test
//X Stage baseDir = '/' targetDefocus = 317.5 motorStep = …
AutoAlign Test for Extraction of Vision Parameters
passDir = 'C:/Users/RRD_LAB/Desktop/20220114_autoalign_param/Pass/' failDir = 'C:/Users/RRD_LAB/Desktop/20220114_autoalign_param/Fail/' smplHeight = 17500 zPosAfterPickup …
ATX Repeat Test
//Save Directory baseDir = 'C:/Users/RRD_LAB/Desktop/Scrip_Test/' visionDir = 'C:/Users/RRD_LAB/Desktop/Scrip_Test/Vision/' //Create Data …
Tip bias Pulse PowerScript Code

Tip Bias Pulse Applied in F/d Mode Code that can be used when you only …

var numPulse = 10; // num. of pulse var durationHigh …
StepScan PowerScript Code

This code run StepScan in SmartScan

var $ = { "flag" : { "useCantileverFromStepScanParam" : false, …