Staff: H. Nakao (PHS 4868)
or 
# fourc -f  
# fourc -l [filename]
To see the log 
# tail -f  log 
FOURC> autorange0 [0(OFF)/1(ON)]] 
FOURC> autorange1 [0(OFF)/1(ON)]] 
FOURC> get_PLC 
FOURC> set_PLC 10 
FOURC> pa_svc_start
FOURC> pa_svc_stop
FOURC> reset_stars 
(Please enter this command, when pa0 and pa1 values are strange.) 
Slit1, 2 alignment  
FOURC> slit1;slit2
FOURC>   
FOURC> _att_con_ = 0 or 1   
FOURC> _d_att_ = 0.1 (Delta-thickness=0.1mm)
FOURC> _att_max_= 20000  
FOURC> _att_min_= 1000  
(Notice: The counter defined by "DET" is used in this macro.) 
FOURC> 
FOURC> wa 
(to check current positions of all)
FOURC> dscan tth -0.2 0.2 20 1 
FOURC> umv tth CEN (pl_xMAX)   
FOURC> 
FOURC> th2th -0.2 0.2 30 1
FOURC> an_cen (or an_max) 
FOURC> uan [tth_angle] [th_angle] 
FOURC> 
FOURC> umv [motor_name] [angle_abs]
FOURC> umvr [motor_name] [angle_rel]
FOURC> or0 [h] [k] [l]
FOURC> or1 [h] [k] [l]
FOURC> or_swap
1.FOURC> reflex_beg  
FOURC> reflex_end  
  
<Macro>  
For example, 
FOURC> qdo test.mac  
 
To change present value  
To change limit settings  
 
FOURC> reset_cryocon (to reset communication with cryocon) 
To compensate thermal expantion of the cold head roughly 
[cryo-3:Daikin(BL-4C)] 
FOURC> cryo_get_input_source_info 
FOURC> cryo_srv_status (cryocon logger status) 
 
FOURC> 
 	  
SPEC 
FOURC> _timepix_on_= 1 (or 0)  
For ct  
To get oscillation photograph 
To get 1D data 
To change parameters  
FOURC> timepix_get_last_image_file  
FOURC> timepix_initialize (Camera initialize after Camera power-on) 
 
To get "Image_sum"  
FOURC>  
 
FOURC> fon dlog  
 #  use commands that display anomalies  
FOURC> debug 0   
 
[ssh port forwarding] 
Reflections file (reflex)? 
FOURC> (find and move to a reflection ...)
FOURC> reflex 2 2 0 
FOURC> (find and move to another reflection ...)
FOURC> reflex 2 0 2 
FOURC> ... 
Type "qdo reflex" to recalculate orientation matrix. 
FOURC> qdo reflex 
FOURC> calcL 
FOURC> pa 
FOURC> qdo [macro file name] 
FOURC> prdef [command name] 
[Macro file(test.mac)]
def test_command '{
 wh; pa
}'
FOURC> prdef test_command 
FOURC> test_command  Motor setting 
To check limits and current positions 
FOURC> wm [motor_name] 
FOURC> set [motor_name] [value] 
FOURC> set_lm [motor_name] [low_limit] [high_limit]  Cryostat 
FOURC> _LTC_is_on_ = 1
FOURC> te 
FOURC> te 45 (to set target temperature)
FOURC> cryo_ctrl_on  (Control ON)
FOURC> cryo_ctrl_off (Control OFF)
FOURC> cryo_get_ctrl_status 
FOURC> cryo_get_ctrl_mode 
To change control mode 
FOURC> PID 
FOURC> RAMP 
FOURC> cryo_get_pid 
FOURC> cryo_set_pid [Loop (1 or 2)] [P] [I] [D]
FOURC> set_mheater  [Heater Range (1:HI 2:MID 3:LOW)] [Loop (1 or 2)] 
FOURC> 
   c_z(T)=(T-T0)*slope+c_z(T0): slope depends on cryostat
[cryo-?:Iwatani(BL-4C)]
slope: 0.00153 
FOURC> umv c_z (T-T0)*0.00153-2.726
slope: 0.00233 (50K-250K)
FOURC> cryo_set_input_source [Loop (1 or 2)] [Ch(A,B,C,D)]
FOURC> cryo_get_overtemp_info
FOURC> cryo_get_cal_table_name 
FOURC> cryo_srv_start (cryocon logger start)
FOURC> cryo_srv_stop (cryocon logger stop) SDD 
FOURC> sdd_measure 10 
FOURC> sdd_data_get
FOURC> sdd_data_save (file: ./tmp.dat) Timepix [256x256 pixels, Pixel size: 55umx55um]  
How to start up:
PC(Timepix): boot 
Login: nakao 
timepix.sh in terminal [端末] 
Troubleshooting(Japanese)
FOURC> timepix_init 
     timepix_init (Type again, if you see the message, "Connection restored" )
FOURC> timepix_auto_save_on 
FOURC> timepix_auto_save_off 
FOURC> _1_x1_ = 0; _1_y1_ = 0; _1_x2_ = 255; _1_y2_ = 255;
FOURC> plotselect _t1_;DET=_t1_  (to use it as the detector)
FOURC> _2_x1_ = 0; _2_y1_ = 0; _2_x2_ = 255; _2_y2_ = 255;
FOURC> plotselect _t2_;DET=_t2_ 
FOURC> _3_x1_ = 0; _3_y1_ = 0; _3_x2_ = 255; _3_y2_ = 255;
FOURC> _4_x1_ = 0; _4_y1_ = 0; _4_x2_ = 255; _4_y2_ = 255;
FOURC> atten 0;timepix_os th A[th]-0.5 A[th]+0.5 20 2;atten 4 
FOURC> timepix_get_1d [0 or 1] [x1] [y1] [x2] [y2] 
FOURC> p t_CEN 
FOURC> plot_data_save [filename]  (To save 1D data)
FOURC> [array_dump("file_name", _a_data_)  (To save 1D data)]
FOURC> timepix_get_file_num 
FOURC> timepix_set_file_num 2  
FOURC> timepix_get_imagefile_prefix 
FOURC> timepix_set_imagefile_prefix user_2_ 
FOURC> timepix_set_image_path /home2/timepix/data  
FOURC> timepix_last_file_para 
FOURC> timepix_set_last_image_file /home2/timepix/data/user_2_70.tif
FOURC> timepix_get_THL 
FOURC> timepix_set_THL 315 
FOURC> timepix_init (STARS connection initialize) Timepix (advanced usage)
To view 2D image 
# export LANG=C; /home/nakao/bin/onze & 
# fourc 
FOURC> timepix_image_view 
FOURC> timepix_image_view [num] 
FOURC> _timepix_image_sum_on_ = 1 
FOURC> atten 0;lup th -0.3 0.3 30 1;atten 4 
FOURC> fmt_write("lup_th.tiff","tiff",image_sum) 
FOURC> image_sum_1d [0 or 1] [x1] [y1] [x2] [y2] [bg] (for image_sum)
FOURC> p t_CEN  
FOURC> _2d_to_1d [0 or 1] [x1] [y1] [x2] [y2] [bg] (for image_data)
FOURC> p t_CEN  
FOURC> plot_data_save [filename]  (To save 1D data)
FOURC>  
delta tth 0.5 <----> delta pixel (dp) 
FOURC> d_length = dp*0.055/sin(0.5/180.*PI) 
FOURC>  
FOURC> find_dcen 
FOURC> find_ocen 
FOURC> timepix_cen 
FOURC> spec -s (Simulation mode) 
FOURC>  For debug 
FOURC> DEBUG=64  
FOURC> DEBUG=0 (to finish the debug mode) 
FOURC> debug 192 
FOURC> reconfig 
FOURC> debug 128 
FOURC> fclose dlog 
FOURC>  Remote control Tips 
ssh user@bl-3a-rt.kek.jp
ssh -L 8080:192.168.1.209:80 user@bl-3a-rt.kek.jp 
 
--> Web address: [localhost:8080]