One can configure the WIB to produce fake data onboard to send to the DAQ. The commands on this page were taken from the script < BUTool_dir >/scripts/local.script. I will provide explanations (as best as I can) to each command/set of commands.

> write SYSTEM.RESET.CONTROL_REGISTER_RESET 1

> sleep 1

> write DTS.CMD_COUNT_RESET 0xFFFFFFFF

> write DTS.CMD_COUNT_RESET 0

(This is just a reset of the system)

> write DTS.CONVERT_CONTROL.HALT 1

> write DTS.CONVERT_CONTROL.ENABLE 0

(Tells the WIB to not take signals - nominally the data from the ADC, but we will change it to onboard fake data later)

> configSI5344

> write DTS.SI5344.INPUT_SELECT 1

> write DTS.SI5344.ENABLE 1

> sleep 1

(Switches timing to local oscillator instead of PDTS)

> write DTS.CONVERT_CONTROL.EN_FAKE 1

> write DTS.CONVERT_CONTROL.LOCAL_TIMESTAMP 1

> sleep 1

()

> FEMBStrMode < FEMB N > 1-2 < S/C >

(Sets up the fake data pattern. S sets the pattern to an incrementing pattern that looks like the following

H CH1 CH2 CH3 CH4 CH5 CH6 CH7 CH8
0 103 113 123 133 143 153 163 173
0 103 113 123 133 143 153 163 173
0 103 113 123 133 143 153 163 173
0 103 113 123 133 143 153 163 173
0 103 113 123 133 143 153 163 173
0 103 113 123 133 143 153 163 173
0 103 113 123 133 143 153 163 173
0 103 113 123 133 143 153 163 173

C sets it to "counter"

> FEMBStrSrc < FEMB N > 1-4 F

(Turns off the stream from the FEMB in all links)

> write FEMB1.DAQ.FAKE_CD.FAKE_SOURCE 0xF

> write FEMB2.DAQ.FAKE_CD.FAKE_SOURCE 0xF

> write FEMB3.DAQ.FAKE_CD.FAKE_SOURCE 0xF

> write FEMB4.DAQ.FAKE_CD.FAKE_SOURCE 0xF

(Sets the corresponding table entries outputted by status to show FAKE for the FEMBs)

> write DAQ_LINK_1.CONTROL.ENABLE_CDA_STREAM 0xF

> write DAQ_LINK_1.CONTROL.ENABLE 0x1

> write DAQ_LINK_2.CONTROL.ENABLE_CDA_STREAM 0xF

> write DAQ_LINK_2.CONTROL.ENABLE 0x1

> write DAQ_LINK_3.CONTROL.ENABLE_CDA_STREAM 0xF

> write DAQ_LINK_3.CONTROL.ENABLE 0x1

> write DAQ_LINK_4.CONTROL.ENABLE_CDA_STREAM 0xF

> write DAQ_LINK_4.CONTROL.ENABLE 0x1

(Enables links to daq)

> write DTS.CONVERT_CONTROL.HALT 0

> write DTS.CONVERT_CONTROL.ENABLE 1

(Turns on the signals)

> write DTS.CONVERT_CONTROL.START_SYNC 1

(Syncs to timing system to start sending data)

> write FEMB1.DAQ.ENABLE 0xf

> write FEMB2.DAQ.ENABLE 0xf

> write FEMB3.DAQ.ENABLE 0xf

> write FEMB4.DAQ.ENABLE 0xf

(Tells the FEMB to send data)

-- JacobMichaelCalcutt - 2017-09-13

Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r3 - 2017-09-13 - JacobMichaelCalcutt
 
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    CENF All webs login

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