Commit 0ba0bf2a authored by Paolo Baesso's avatar Paolo Baesso

Added function to configure DUT signals and clock source from CONF file

parent 83e6d91e
This diff is collapsed.
[Producer.fmctlu]
verbose= 0
verbose= 1
confid= 20170626
delayStart= 1000
HDMI1_set= 0x4 ## 4-bit to determine direction of HDMI pins
HDMI2_set= 0x5 ## 4-bit to determine direction of HDMI pins
HDMI3_set= 0x0 ## 4-bit to determine direction of HDMI pins
HDMI4_set= 0xA ## 4-bit to determine direction of HDMI pins
# HDMI pin direction:
# 4-bits to determine direction of HDMI pins
# 1-bit for the clock pair
# 0= pins are not driving signals, 1 pins drive signals (outputs)
HDMI1_set= 0x7
HDMI2_set= 0x7
HDMI3_set= 0x7
HDMI4_set= 0x7
HDMI1_clk = 1
HDMI2_clk = 1
HDMI3_clk = 1
......@@ -32,12 +37,12 @@ trigMaskHi = 0x00000000
trigMaskLo = 0x00000002
#
#### DAC THRESHOLD
DACThreshold0 = -0.5
DACThreshold1 = -0.12
DACThreshold2 = -0.12
DACThreshold3 = -0.12
DACThreshold4 = -0.12
DACThreshold5 = -0.6
DACThreshold0 = -0.2
DACThreshold1 = -0.2
DACThreshold2 = -0.2
DACThreshold3 = -0.2
DACThreshold4 = -0.2
DACThreshold5 = -0.2
# Define which DUTs are ON
DutMask = 1
......
[Producer.fmctlu]
initid= 20170703
verbose = 0
ConnectionFile= "file://./../user/eudet/misc/fmctlu_connection.xml"
DeviceName="fmctlu.udp"
TLUmod= "1e"
......
......@@ -53,17 +53,18 @@ class MyPrompt(cmd.Cmd):
print "\t Could not retrieve CONF data."
return
def do_startRun(self, args):
"""Starts the TLU run"""
print "COMMAND RECEIVED: STARTING TLU RUN"
startTLU( uhalDevice = self.hw, pychipsBoard = self.board, writeTimestamps = ( options.writeTimestamps == "True" ) )
#startTLU( uhalDevice = self.hw, pychipsBoard = self.board, writeTimestamps = ( options.writeTimestamps == "True" ) )
logdata= True
TLU.start(logdata)
#print self.hw
def do_stopRun(self, args):
"""Stops the TLU run"""
print "COMMAND RECEIVED: STOP TLU RUN"
TLU.stop(False, False)
#stopTLU( uhalDevice = hw, pychipsBoard = board )
def do_quit(self, args):
......@@ -133,7 +134,6 @@ if __name__ == "__main__":
parsed_ini= prompt.open_cfg_file("", "./localIni.ini")
TLU= TLU("tlu", "file://./TLUconnection.xml", parsed_ini)
parsed_cfg= prompt.open_cfg_file("", "./localIni.ini")
###TLU.configure(parsed_cfg)
###logdata= True
###TLU.start(logdata)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment