test_cmd.py

Go to the documentation of this file.
00001 #!/usr/local/bin/python
00002 #
00003 #                               Copyright 2005
00004 #                                     by
00005 #                        The Board of Trustees of the
00006 #                     Leland Stanford Junior University.
00007 #                            All rights reserved.
00008 #
00009 
00010 __facility__ = "Online"
00011 __abstract__ = "Test script for testing VSC commanding"
00012 __author__   = "Selim Tuvi <stuvi@slac.stanford.edu> SLAC - GLAST I&T/Online"
00013 __date__     = "2005/07/23 00:08:27"
00014 __updated__  = "$Date: 2005/10/06 00:03:46 $"
00015 __version__  = "$Revision: 1.7 $"
00016 __release__  = "$Name: HEAD $"
00017 __credits__  = "SLAC"
00018 
00019 import LICOS.copyright_SLAC
00020 
00021 from LICOS.lib.cmdTlmDb.LCATcmdDb import LCATcmdDb
00022 from LICOS.scriptEngine.ScriptEngineConnector import ScriptEngineConnector
00023 
00024 def test():
00025   """!\brief Test script for commanding.
00026 
00027      Contents:
00028      Sample script for testing VSC commanding
00029   """
00030   global vsc
00031   vsc_handlers = []
00032   lat_handlers = []
00033   vsc = ScriptEngineConnector('localhost',None,None)
00034   vsc.start()
00035 
00036   lcat = LCATcmdDb(vsc)
00037   mem = lcat.MEM
00038   packet = mem.LMEMDUMPMEM(LMEMLATUNIT=1, LMEMTRANID=2, LMEMPAD=3,
00039                 LMEMADDRESSHI=4, LMEMADDRESSLO=5, LMEMSIZEHI=6, LMEMSIZELO=7, LMEMDEST=8)
00040   lhk = lcat.LHK
00041   packet = lhk.LHKREQDIAGPKT(LHKDIAGAPID=1, LHKDIAGCOUNT=2, LHKDIAGINTERVAL=3)
00042 
00043 

Generated on Thu Apr 27 20:52:44 2006 for LICOS L02-01-00 by doxygen 1.4.6-NO