00001 #!/usr/local/bin/python 00002 # 00003 # Copyright 2004 00004 # by 00005 # The Board of Trustees of the 00006 # Leland Stanford Junior University. 00007 # All rights reserved. 00008 # 00009 00010 00011 __facility__ = "Online" 00012 __abstract__ = "OCS messages" 00013 __author__ = "Amedeo Perazzo <perazzo@slac.stanford.edu> SLAC - GLAST I&T/Online" 00014 __date__ = ("$Date: 2005/04/07 23:43:15 $").split(' ')[1] 00015 __version__ = "$Revision: 2.4 $" 00016 __release__ = "$Name: R04-12-00 $" 00017 __credits__ = "SLAC" 00018 00019 import LATTE.copyright_SLAC 00020 00021 class OcsMessages(object): 00022 OCSSTR = { 00023 0x00000000: [ "OCS_OK", "Ok"], 00024 0x00000003: [ "OCS_NOFUNC", "Function name unknown to OCS server"], 00025 0x00000013: [ "OCS_NOHAND", "Handler name unknown to OCS server"], 00026 0x00000023: [ "OCS_NOTYPE", "Argument type unknown to OCS server"], 00027 0x00000043: [ "OCS_NOREG", "Register non existent"], 00028 0x00000083: [ "OCS_BDRESP", "OCS server response has unexpected length"], 00029 0x00000103: [ "OCS_TMO", "OCS command/response timeout"], 00030 0x00000203: [ "OCS_NOSRV", "OCS server disconnected"], 00031 0x00000403: [ "OCS_BDADC", "ADC conversion is busy"], 00032 0x00000413: [ "OCS_GRPADC", "ADC conversion has wrong group"], 00033 0x00000423: [ "OCS_TMOADC", "ADC conversion timed out"], 00034 0x00000803: [ "OCS_BDVER", "OCS server version is incompatible"], 00035 0x00001003: ["OES_EVTALLOC", "OES server allocated by another client"], 00036 0x00002003: ["OES_PLAYBERR", "Playback error set in event"], 00037 }