Example: ascan

The command ascan executes a motor scan using absolute positions.

The command for performing the scan looks like:

p17/door/exp.01 [31]: ascan exp_dmy01 0 1 2 0.1
Operation will be saved in None (fio)
Scan #384 started at Tue Sep 11 13:13:24 2012. It will take at least 0:00:00.300000
Moving to start positions...
 #Pt No      dt     exp_dmy01  exp_t01   exp_c01 
   0      0.0107629      0        0.1        29   
   1      0.130456     0.5       0.1        14   
   2      0.250917      1        0.1        5    
Operation saved in /home/p17user/temp/FirstTest_00384.fio (fio)
Scan #384 ended at Tue Sep 11 13:13:25 2012, taking 0:00:00.375624. Dead time 20.1% (motion dead time 6.1%)

exp_dmy is the motor to be scanned, 0 and 1 are the limits, 2 is the no. of intervals and 0.1 is the sample time.

If ScanFile has the extension .dat, data are saved using the spec format:

p17/door/exp.01 [32]: senv ScanFile FirstTest.dat 
ScanFile = FirstTest.dat

p17/door/exp.01 [33]: ascan exp_dmy01 0 1 2 0.1
Operation will be saved in /home/p17user/temp/FirstTest.dat (Spec)
Scan #385 started at Tue Sep 11 13:15:21 2012. It will take at least 0:00:00.300000
Moving to start positions...
 #Pt No      dt     exp_dmy01  exp_t01   exp_c01 
   0      0.0105131      0        0.1        1    
   1      0.143438     0.5       0.1        0    
   2      0.266759      1        0.1        0    
Operation saved in /home/p17user/temp/FirstTest.dat (Spec)
Scan #385 ended at Tue Sep 11 13:15:21 2012, taking 0:00:00.380875. Dead time 21.2% (motion dead time 6.2%)

The file FirstTest.dat contains:

#S 385 ascan exp_dmy01 0.0 1.0 2 0.1
#U p17user
#D 1347362121.0
#C Acquisition started at Tue Sep 11 13:15:21 2012
#N 5
#L Pt_No  dt  exp_dmy01  exp_t01  exp_c01
0 0.0105130672455 0.0 0.1 1.0
1 0.143438100815 0.5 0.1 0.0
2 0.266759157181 1.0 0.1 0.0
#C Acquisition ended at Tue Sep 11 13:15:21 2012



2019-11-13