The MotorLogger creates new versions of the file /online_dir/MotorLogs/motorLog.lis. It is invoked by cron 6 times a day.
It is usually also called during the startup of each Spock session. 00-start.py contains the line:
os.system('MotorLogger3.py -x -q -c spock')
The command line arguments:
$ MotorLogger.py --help Usage: MotorLogger.py -x [-q] [-c <progName>] Creates new versions of /online_dir/MotorLogs/motorLog.lis Device names are printed, if stdout is a TTY AND -q is not supplied. <progName> is written to the log-file, if supplied. Options: -h, --help show this help message and exit -x execute -q quiet -c CALLER name of the calling program, e.g. 'spock' or 'cron' -f FILENAME file name, e.g.: motorLogShutdown (always in /online_dir/MotorLogs)
TipsAndTricks: the MotorLogger can be invoked 'by hand' to check motor response times.
Notice: if an Oms motors has the property ZMXDevice, the attributes of the ZMX device are also saved.