next up previous contents 5
Next: Using Operations Up: General DCS Scripting Commands Previous: Using ion chambers   Contents

Using encoders

The command for reading an encoder position is:

get_encoder encoderName

The command for setting an encoder position is

set_encoder encoderName

After issuing the get_encoder command, it it necessary to issued a command to wait for the results to come back from the DHS responsible for this encoder. The command that does this is:

wait_for_encoder encoderName

This function should return the value of the encoder when the message is completed, but currently does not. This bug has a work around as described in the bug repository.


next up previous contents 5
Next: Using Operations Up: General DCS Scripting Commands Previous: Using ion chambers   Contents
Scott McPhillips 2011-07-06