Skip to content
Snippets Groups Projects
Commit 34f4da95 authored by Nicklas Holmberg's avatar Nicklas Holmberg
Browse files

Hardcoded all settings to serve TimePix3 timestamp UDP packet, TPX3 TDC pulse,...

Hardcoded all settings to serve TimePix3 timestamp UDP packet, TPX3 TDC pulse, TPX3 LED counter control, PTP TTL pulse
parent 28c5a82e
Branches master
No related tags found
No related merge requests found
#!/bin/bash
source /etc/profile.d/conda.sh
conda activate utg-evr-03
caput -a LabS-Utgard-VIP:TS-EVR-3:SoftSeq-0-EvtCode-SP 2 31 127
caput -a LabS-Utgard-VIP:TS-EVR-3:SoftSeq-0-Timestamp-SP 2 0 1
st.cmd 100644 → 100755
......@@ -108,8 +108,8 @@ dbpf $(SYSPV):EvtD-SP.OUT "@OBJ=EVR,Code=23"
dbpf $(SYSPV):EvtD-SP.VAL 23
dbpf $(SYSPV):EvtE-SP.OUT "@OBJ=EVR,Code=125"
dbpf $(SYSPV):EvtE-SP.VAL 125
dbpf $(SYSPV):EvtF-SP.OUT "@OBJ=EVR,Code=25"
dbpf $(SYSPV):EvtF-SP.VAL 25
dbpf $(SYSPV):EvtF-SP.OUT "@OBJ=EVR,Code=31"
dbpf $(SYSPV):EvtF-SP.VAL 31
dbpf $(SYSPV):EvtG-SP.OUT "@OBJ=EVR,Code=26"
dbpf $(SYSPV):EvtG-SP.VAL 26
dbpf $(SYSPV):EvtH-SP.OUT "@OBJ=EVR,Code=27"
......@@ -131,32 +131,33 @@ dbpf $(SYSPV):DlyGen-0-Evt-Trig0-SP 14
dbpf $(SYSPV):DlyGen-1-Evt-Trig0-SP 125
dbpf $(SYSPV):DlyGen-1-Width-SP 1000 #1ms
dbpf $(SYSPV):DlyGen-1-Delay-SP 500000 #0ms
dbpf $(SYSPV):Out-RB07-Src-SP 1
#Set up delay generator 2 to trigger on event 25 and output 4
dbpf $(SYSPV):DlyGen-2-Width-SP 1000 #1ms
dbpf $(SYSPV):DlyGen-2-Delay-SP 0 #0ms
dbpf $(SYSPV):DlyGen-2-Evt-Trig0-SP 25
dbpf $(SYSPV):Out-RB04-Src-SP 2
dbpf $(SYSPV):DlyGen-2-Evt-Trig0-SP 14
dbpf $(SYSPV):DlyGen-3-Width-SP 1000 #1ms
dbpf $(SYSPV):DlyGen-3-Delay-SP 0 #0ms
dbpf $(SYSPV):DlyGen-3-Evt-Trig0-SP 26
dbpf $(SYSPV):Out-RB05-Src-SP 3
dbpf $(SYSPV):DlyGen-3-Delay-SP 500000 #0ms
dbpf $(SYSPV):DlyGen-3-Evt-Trig0-SP 125
dbpf $(SYSPV):DlyGen-4-Width-SP 1000 #1ms
dbpf $(SYSPV):DlyGen-4-Delay-SP 0 #0ms
dbpf $(SYSPV):DlyGen-4-Evt-Trig0-SP 27
dbpf $(SYSPV):DlyGen-4-Evt-Trig0-SP 31
dbpf $(SYSPV):Out-RB04-Src-SP 4
dbpf $(SYSPV):Out-RB06-Src-SP 4
dbpf $(SYSPV):DlyGen-5-Width-SP 1000 #1ms
dbpf $(SYSPV):DlyGen-5-Delay-SP 0 #0ms
dbpf $(SYSPV):DlyGen-5-Evt-Trig0-SP 28
dbpf $(SYSPV):Out-RB07-Src-SP 1
dbpf $(SYSPV):DlyGen-5-Evt-Trig0-SP 31
dbpf $(SYSPV):Out-RB05-Src-SP 5
######## Sequencer #########
#dbpf $(SYSPV):Base-Freq 14.00000064
dbpf $(SYSPV):End-Event-Ticks 4
#dbpf $(SYSPV):End-Event-Ticks 4
dbpf $(SYSPV):PS-1-Div-SP 8805250
# Load sequencer setup
dbpf $(SYSPV):SoftSeq-0-Load-Cmd 1
......@@ -168,13 +169,13 @@ dbpf $(SYSPV):SoftSeq-0-Enable-Cmd 1
dbpf $(SYSPV):SoftSeq-0-RunMode-Sel "Normal"
# Load sequence events and corresponding tick lists
#system "/bin/bash /epics/iocs/cmds/labs-utgard-evr2/conf_evr_seq.sh"
system "/bin/bash /opt/iocs/utg-evr-03/conf_evr_seq.sh"
# Use ticks or microseconds
dbpf $(SYSPV):SoftSeq-0-TsResolution-Sel "Ticks"
# Select trigger source for soft seq 0, trigger source 0, delay gen 0
dbpf $(SYSPV):SoftSeq-0-TrigSrc-0-Sel 0
dbpf $(SYSPV):SoftSeq-0-TrigSrc-2-Sel "Prescaler 1"
# Commit all the settings for the sequnce
# commit-cmd by evrseq!!!
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment