是否有更改 STEM 旋转角度的命令?
Is there a command to change the STEM rotation angle?
DM脚本语言中是否存在改变STEM旋转角度的显微镜控制命令?即,光束在样品上移动的方向。我想在拍摄之间旋转 90 度。
The scan rotation is part of the scan-parameter set.
You can not
change it during a running acquisition. Instead, you restart the acquisition with a new parameter set.
( If you use the UI, then the rotation function does this for you. The scan restarts automatically. )
对于脚本,您可以在使用 DSAcquireData
:
开始采集时将旋转指定为参数
number dataType = 4 // 4 byte data
number width = 128 // pixel
number height = 128 // pixel
image img := IntegerImage( "Img", dataType, 0, width, height ) // Image has to be of type unsigned-integer
number signalIndex = 0
number rotation = 0 // degree
number pixelTime= 2 // microseconds
number lineSync = 1 // activated
DSAcquireData( img, signalIndex, pixelTime, rotation, lineSync )
ShowImage( img )
或者在创建参数集时使用 DSStartAcquisition
:
number paramID
number width = 512 // pixel
number height = 512 // pixel
number rotation = 0 // degree
number pixelTime= 2 // microseconds
number lSynch = 1 // activated
number continuous = 0 // 0 = single frame, 1 = continuous
number synchronous = 1 // 0 = return immediately, 1 = return when finished
paramID = DSCreateParameters( width, height, rotation, pixelTime, lSynch )
number signalIndex, dataType, selected, imageID
signalIndex = 0
dataType = 2 // 2 byte data
selected = 1 // acquire this signal
imageID = 0 // create new image
DSSetParametersSignal( paramID, signalIndex, dataType, selected, imageID )
DSStartAcquisition( paramID, continuous, synchronous )
DSDeleteParameters( paramID ) // remove parameters from memory
以上两个示例均直接从 Digiscan 上的 F1 帮助文档中复制而来:
DM脚本语言中是否存在改变STEM旋转角度的显微镜控制命令?即,光束在样品上移动的方向。我想在拍摄之间旋转 90 度。
The scan rotation is part of the scan-parameter set.
You can not change it during a running acquisition. Instead, you restart the acquisition with a new parameter set.
( If you use the UI, then the rotation function does this for you. The scan restarts automatically. )
对于脚本,您可以在使用 DSAcquireData
:
number dataType = 4 // 4 byte data
number width = 128 // pixel
number height = 128 // pixel
image img := IntegerImage( "Img", dataType, 0, width, height ) // Image has to be of type unsigned-integer
number signalIndex = 0
number rotation = 0 // degree
number pixelTime= 2 // microseconds
number lineSync = 1 // activated
DSAcquireData( img, signalIndex, pixelTime, rotation, lineSync )
ShowImage( img )
或者在创建参数集时使用 DSStartAcquisition
:
number paramID
number width = 512 // pixel
number height = 512 // pixel
number rotation = 0 // degree
number pixelTime= 2 // microseconds
number lSynch = 1 // activated
number continuous = 0 // 0 = single frame, 1 = continuous
number synchronous = 1 // 0 = return immediately, 1 = return when finished
paramID = DSCreateParameters( width, height, rotation, pixelTime, lSynch )
number signalIndex, dataType, selected, imageID
signalIndex = 0
dataType = 2 // 2 byte data
selected = 1 // acquire this signal
imageID = 0 // create new image
DSSetParametersSignal( paramID, signalIndex, dataType, selected, imageID )
DSStartAcquisition( paramID, continuous, synchronous )
DSDeleteParameters( paramID ) // remove parameters from memory
以上两个示例均直接从 Digiscan 上的 F1 帮助文档中复制而来: