############################################################################ # File Name = Site_Dependent.py # # a python module to import from the gui and from command files # in order to keep the site dependent variable in one place # # Created : 18-Dec-06 # Modified: 9-Apr-07 Move to User Disk E: (and simplify/remove site flavor selection) # Modified: 26-Jun-07 Move to Disk C: and ghostview location # Modified: 5-Sept-08 Edit this file so that DAQ_96 runs from the "F" disk. ############################################################################ ###################################### # The Base directory for DAQ96 software ###################################### DAQ96BaseDir = 'F:\\DAQ_96\\' ###################################### # Where we keep the bitstream files ###################################### BitStreamDir = DAQ96BaseDir + 'Exo\\' # DAQ96 Firmware in S-record format Firmware_DAQ96 = "Firmware_DAQ96_060117.exo" ###################################### # DAQ_96_Gui logfile directory ###################################### LogGuiDir = DAQ96BaseDir + 'LogFiles\\GUI\\' ###################################### # DAQ_96_Tcs Config directory ###################################### TcsCfgDir = DAQ96BaseDir + 'DAQ_96_TCS\\Config\\' Boot_Auxi = TcsCfgDir + "Boot_Auxi.mcf" ###################################### # DAQ_96_Tcs output directory ###################################### LogTcsDir = DAQ96BaseDir + 'LogFiles\\TCS\\' ###################################### # DAQ_96 Run Data directory ###################################### RunDataDir = DAQ96BaseDir + 'RunData\\' ###################################### # The Base directory for the Command Files ###################################### CommandFileDir = DAQ96BaseDir + 'CommandFiles\\' # Command File Name for FPGA Configuration DAQ96_Config_CmdFile = "DAQ96_Configure_FPGAs.cmd" # Command File Name for Initialization DAQ96_Init_CmdFile = "DAQ96_Initialize_&_FindDAC.cmd" # Command File Name for data collection DAQ96_Collect_CmdFile = "DAQ96_Collect_Main.cmd" # Command File Name for data plotting DAQ96_Plot_CmdFile = "DAQ96_Plot_RawData.cmd" # File for remembering Current Run Number # this file is located in CommandFileDir RunNumberFileName = "CurrentRunNumber.dat" ###################################### # Total Number of ADF cards AdfCardTot = 3 # Total Number of DAQ96 channels per ADF card AdfChannelTot = 32 # i.e. channel 0..31 # Slot Number of ADF-2 Cards AdfSlotVsCardNum = [ 10, 11, 12 ] AdfSlotMaestro = AdfSlotVsCardNum[ 0 ] # the first one is the maestro # ADF-2 # LArTPC Data Circular # ADF-2 Path FPGA Buffer # Ch Num Chip Numb Start Adrs # ------ --------- ---------- # # 0 0 0x1000 # 1 0 0x1800 # 2 0 0x9000 # 3 0 0x9800 # # 4 1 0x1000 # 5 1 0x1800 # 6 1 0x9000 # 7 1 0x9800 # # 8 0 0x3000 # 9 0 0x3800 # 10 0 0xB000 # 11 0 0xB800 # # 12 1 0x3000 # 13 1 0x3800 # 14 1 0xB000 # 15 1 0xB800 # # 16 0 0x5000 # 17 0 0x5800 # 18 0 0xD000 # 19 0 0xD800 # # 20 1 0x5000 # 21 1 0x5800 # 22 1 0xD000 # 23 1 0xD800 # # 24 0 0x7000 # 25 0 0x7800 # 26 0 0xF000 # 27 0 0xF800 # # 28 1 0x7000 # 29 1 0x7800 # 30 1 0xF000 # 31 1 0xF800 AdfFpgaVsChNum = [ 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 1, 1, 1, 1 ] AdfBufferBaseVsChNum = [ 0x1000, 0x1800, 0x9000, 0x9800, 0x1000, 0x1800, 0x9000, 0x9800, 0x3000, 0x3800, 0xB000, 0xB800, 0x3000, 0x3800, 0xB000, 0xB800, 0x5000, 0x5800, 0xD000, 0xD800, 0x5000, 0x5800, 0xD000, 0xD800, 0x7000, 0x7800, 0xF000, 0xF800, 0x7000, 0x7800, 0xF000, 0xF800 ] ###################################### # Constants for collecting data (and plotting) ###################################### # comment flag CommentFlag = '!' # beggining of 1st line, i.e. header that will contain Title HeaderBeginStr = "%s DAQ96" % CommentFlag # Beginning line's string appearing before each 3-digit channel number ChannelBeginStr = "%s System Channel #" % CommentFlag # Total samples per channel SamplesPerChannel = 2048 # Zero Energy Response Zeresp = 400 ###################################### # additional Constants for plotting ###################################### # beginning of Run&Event Title within first comment line TitleBeginStr = "Run" # Scaling of Raw Data for plotting PlotScale = 20 # Topdrawer = plotting utility TopDrawerExe = CommandFileDir + 'td.exe' # ghostview = postscript file viewer GhostViewExe = "C:\\Program Files\\Ghostgum\\gsview\\gsview32.exe"