BREATHE

Purpose : Allows execution of pending commands from other Windows applications during script execution.

Format:  BREATHE

Notes:  Normally, execution of other applications are locked out when a script is executing a  LOOP or PROCESS  structure.  Use of the  BREATHE  command within these loops will allow script execution to run in the background.  Use of this command will greatly reduce processing speed while allowing other applications to access the CPU at regular intervals.

Examples:

# This script will demonstrate the use of the
# BREATHE statement while generating a noisy
# 512 matrix image file.

print "Full script execution speed."

image_width = 512
image_height = 512
image_type = 1
outfile test.img
process begin
 out = random(1000)
process end

print "Background script execution runs slower."
print "Try running other Windows applications."
image_width = 512
image_height = 512
image_type = 1
outfile test.img
process begin
 breathe
 out = random(1000)
process end
exit

See Also:  LOOP    PROCESS