#! /usr/env/python #-------------------------------------------------------------------------------- """ Application: Misc_Constants for DAQ_96_Gui application Miscellaneous constants for the Graphical User Interface to the DAQ_96 Control Program """ #-------------------------------------------------------------------------------- #-------------------------------------------------------------------------------- #-------------------------------------------------------------------------------- #-------------------------------------------------------------------------------- # tcp ports presented by the DAQ96 control application tcp_port_for_coor = 52160 tcp_port_for_gui = 52164 #-------------------------------------------------------------------------------- #-------------------------------------------------------------------------------- TT_EM = 0 TT_HD = 1 TtType_tot = 2 TtTypes = [ TT_EM, TT_HD ] TtType_str = [ 'TT_EM', 'TT_HD' ] # main code and command files should use the Eta_Pos and Eta_Neg symbols # and can use this ascii representation of Eta Sign Type Eta_Pos = 0 Eta_Neg = 1 EtaSign_tot = 2 EtaSignTypes = [ Eta_Pos, Eta_Neg ] EtaSign_str = [ '+', '-' ] #-------------------------------------------------------------------------------- #-------------------------------------------------------------------------------- # constant values for status variables eOk = "Ok" eError = "Error" #-------------------------------------------------------------------------------- #-------------------------------------------------------------------------------- # How many slots are in a VME Crate, i.e. slots 0,1,2,...21 # Note: Slot #0 is not a real physical slot, but may still be probed # to verify that the geographic addressing is working correctly. SlotNumMax = 21 #-------------------------------------------------------------------------------- #-------------------------------------------------------------------------------- # register address of "Board Level Control Register" on the BCPAL # which will be used to probe for the existence of an ADF-2 card BcPalProbeReg = 1 #-------------------------------------------------------------------------------- #-------------------------------------------------------------------------------- # Total Number of Stratix targets StratixTot = 11 # Total Number of TAB/GAB modules ModuleTot = 9