Difference: AMCTPythonSoftware (11 vs. 12)

Revision 1219 Aug 2016 - SemirayGirgisChyla

Line: 1 to 1
 
META TOPICPARENT name="HcalDTC"

AMCT Python Software

Line: 129 to 129
 Here is an example to check registers and looking at differences of registers with and without trigger using interactive mode.


Changed:
<
<
>r1 = amc.get_registers() : get registers
>r1['STATUS.AMC01.COUNTERS.AMC13_AMC_EVENTS_LO']check specific register
>amc.do('en 1-12 f t') : create fake events
>amc.do('localL1A o 1 1') : configure localL1A)
>amc.do('lt 5') : send 5 triggers
>r2 = amc.get_registers() : get registers
>r2['STATUS.AMC01.COUNTERS.AMC13_AMC_EVENTS_LO'] : check specific register after send 5 trig.
>rdiff = amc.diff_registers(r1, r2) : define diff function to check the differences with/without trig.
>rdiff['STATUS.AMC01.COUNTERS.AMC13_AMC_EVENTS_LO'] : check diff of registers with/without trig.
>
>
>r1 = amc.get_registers() # get registers
>r1['STATUS.AMC01.COUNTERS.AMC13_AMC_EVENTS_LO'] #check specific register
>amc.do('en 1-12 f t') # create fake events
>amc.do('localL1A o 1 1') # configure localL1A)
>amc.do('lt 5') # send 5 triggers
>r2 = amc.get_registers() # get registers
>r2['STATUS.AMC01.COUNTERS.AMC13_AMC_EVENTS_LO'] # check specific register after send 5 trig.
>rdiff = amc.diff_registers(r1, r2) # define diff function to check the differences with/without trig.
>rdiff['STATUS.AMC01.COUNTERS.AMC13_AMC_EVENTS_LO'] # check diff of registers with/without trig.
 

Testing AMC13 Cards Using Scripted Mode

 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback