#Script imported from: test5.xml

set_exec_pars(flush=False)
#set_preference(Preference.PLOT_DISABLED,True)
set_preference(Preference.TABLE_DISABLED,True)

#TODO: Set the diplay names of positioners and detectors
scan = ManualScan(['id236750', 'id226053'], ['id246209'] , [0.0, 0.0], [1000.0, 1000.0], [1000, 1000])
scan.start()

#Creating channels: dimension 1
#PseudoPositioner id236750
#Timestamp id246209
#Creating channels: dimension 2
#PseudoPositioner id226053

#Dimension 1
#PseudoPositioner id236750
for setpoint1 in range(0, 1000):
    readback1 = setpoint1
    #Detector id246209
    detector1 = java.lang.System.currentTimeMillis()
    #Dimension 2
    #PseudoPositioner id226053
    for setpoint2 in range(0, 1000):
        readback2 = setpoint2
        scan.append ([setpoint1, setpoint2], [readback1, readback2], [detector1])

#Closing channels

scan.end()
