// AcquireAndStoreImage subroutine to take and copy image for Andor Camera // input value seq, dataType // output value currentState, currTemp checkCount = 0 GET_STATUS CAMERA FPI,STATE,currentState while (currentState!=20073) { DELAY 2 GET_STATUS CAMERA FPI,STATE,currentState } // end of camera wait loop COPY_IMAGE FPI serialNumber = ConvertToString("%03d",seq) ImageName= "D:\\EAAdata2010\\" + date + "\\" + dataType + date + serialNumber + ".img" SAVE_IMAGE ImageName DISPLAY_IMAGE ImageName RETURN