Main Page | Packages | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | Related Pages

test_teq.py

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__ = "AEM environmental quantity test"
00013 __author__   = "A. Perazzo <perazzo@SLAC.Stanford.edu> SLAC - GLAST I&T/Online"
00014 __date__     = ("$Date: 2005/03/26 01:02:17 $").split(' ')[1]
00015 __version__  = "$Revision: 2.1 $"
00016 __release__  = "$Name: R04-12-00 $"
00017 __credits__  = "SLAC"
00018 
00019 import LATTE.copyright_SLAC
00020 
00021 import LATTE.client.gOptions as gOptions
00022 import LATTE.client.gCmdCli as gCmdCli
00023 import LATTE.database.gTEM as gTEM
00024 
00025 if __name__ == '__main__':
00026   options = gOptions.Options(['server'])
00027   try:
00028     options.parse()
00029   except Exception, msg:
00030     options.usage(str(msg))
00031   else:
00032     cmdcli = gCmdCli.CmdCli()
00033     tem = gTEM.GTEM(cmdcli, None, 0)
00034     tic = gTEM.GTIC(cmdcli, tem)
00035     cmdcli.connect(options.server)
00036     for reg in range(18, 58):
00037       rsp = tic.read(reg)
00038       rdvalue = rsp.value()
00039       status = rsp.status()
00040       print 'TIC adc %2d status 0x%08x value is 0x%04x' %(reg, status, rdvalue)
00041     cmdcli.disconnect()

Generated on Fri Jul 21 13:26:32 2006 for LATTE R04-12-00 by doxygen 1.4.3