On the JEOL JEM-F200 TEM/STEM system paired with Gatan DigitalMicrograph (GMS) 3.5.x, the script function DSAcquireData() consistently triggers a DigiScan popup error: Timeout waiting for data when attempting to capture HAADF or BF STEM detector images programmatically via DM Script.
In contrast, invoking the native capture button through the built-in DigiScan GUI command DSInvokeButton( 3 ) executes image acquisition completely normally with no timeout or communication failure.
// Acquisition using 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 )
