next up previous contents 5
Next: Moving a motor Up: General DCS Scripting Commands Previous: Writing to the log   Contents

Querying a motor position

Motor positions are available by adding a $ in front of the name of the motor.

From the BLU-ICE command prompt, the user may type the following to obtain 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 2002 16:15:06 NOTE: 30.774772
15 Feb 2002 16:15:16 NOTE: 21.000000


next up previous contents 5
Next: Moving a motor Up: General DCS Scripting Commands Previous: Writing to the log   Contents
Scott McPhillips 2011-07-06