Querying a motor position

log_note $table_vert

Within a script it is necessary to include the following statement at the top of each procedure for each motor of interest: variable motorName .

Example:

Writing the current motor position to the log window

 

proc print_some_motor_positions {} {

     variable table_vert

     variable gonio_phi

     log_note $table_vert

     log_note $gonio_phi }

 

Example Output:

      15 Feb 2011 16:15:06 NOTE: 30.774772

      15 Feb 2011 16:15:16 NOTE: 21.000000

 

 

posted @ 2011-12-21 22:39  greencolor  阅读(122)  评论(0编辑  收藏  举报