-
Notifications
You must be signed in to change notification settings - Fork 4
/
WaveDumpConfig.txt
147 lines (126 loc) · 5.81 KB
/
WaveDumpConfig.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
# Lines between commands @OFF and @ON will be skipped.
# This can be used to exclude parts of the file or
# inset configuraitons that WaveDump does not understand.
# The following setting is for TOWARD/w2r.C
# Options: 720, 721, 724, 725, 730, 731, 740, 742, 743, 751 761
@OFF
Digitizer 751
@ON
# Settings common to all channels
[COMMON]
# OPEN: connect to the digitizer. Options:
# USB 0 0 Desktop/NIM digitizer through USB
# USB 0 BA VME digitizer through USB-V1718
# PCI 0 0 0 Desktop/NIM/VME through CONET (optical link)
# PCI 0 0 BA VME digitizer through V2718
# (BA = BaseAddress of the VME board, 32 bit hex)
#
#OPEN USB 0 0
#OPEN USB 0 32100000
OPEN PCI 0 0 0
#OPEN PCI 0 0 32100000
# RECORD_LENGTH = number of samples in the acquisition window
RECORD_LENGTH 6000
# DECIMATION_FACTOR: (ONLY for 740 & 724) change the decimation factor for the
# acquisition. Options: 1 2 4 8 16 32 64 128
#DECIMATION_FACTOR 1
# POST_TRIGGER: post trigger size in percent of the whole acquisition window
# options: 0 to 100
# On models 742 there is a delay of about 35nsec on signal Fast Trigger TR; the
# post trigger is added to this delay
POST_TRIGGER 70
#PULSE_POLARITY: input signal polarity. Options: POSITIVE, NEGATIVE
PULSE_POLARITY POSITIVE
# EXTERNAL_TRIGGER: external trigger input settings. When enabled, the ext.
# trg. can be either propagated (ACQUISITION_AND_TRGOUT) or not
# (ACQUISITION_ONLY) through the TRGOUT
# options: DISABLED, ACQUISITION_ONLY, ACQUISITION_AND_TRGOUT
EXTERNAL_TRIGGER DISABLED
# FPIO_LEVEL: type of the front panel I/O LEMO connectors. Options: NIM, TTL
FPIO_LEVEL TTL
# OUTPUT_FILE_FORMAT: output file can be either ASCII (column of decimal
# numbers) or binary (2 bytes per sample, except for Mod 721 and Mod 731 that
# is 1 byte per sample)
# options: BINARY, ASCII
OUTPUT_FILE_FORMAT BINARY
# OUTPUT_FILE_HEADER: if enabled, the header is included in the output file
# options: YES, NO
OUTPUT_FILE_HEADER YES
# TEST_PATTERN: if enabled, data from ADC are replaced by test pattern
# (triangular wave). Options: YES, NO
TEST_PATTERN NO
# WRITE_REGISTER: generic write register access. This command allows the user
# to have a direct write access to the registers of the board. NOTE: all the
# direct write accesses are executed AFTER the other settings, thus it might
# happen that the direct write overwrites a specific setting. To avoid this
# use the right "MASK". Syntax: WRITE_REGISTER ADDRESS DATA MASK, where
# ADDRESS is the address offset of the register (16 bit hex), DATA is the value
# being written (32 bit hex) and MASK is the bitmask to be used for DATA
# masking.
# Example: Set only bit [8] of register 1080 to 1,
# leaving the other bits to their previous value:
# WRITE_REGISTER 1080 0100 0100
# Example: Set only bit [8] of register 1080 to 0,
# leaving the other bits to their previous value:
# WRITE_REGISTER 1080 0000 0100
# Example: Set register 1080 to the value of 0x45:
# WRITE_REGISTER 1080 45 FFFFFFFF
#
# Coincidence trigger setup.
# Please refer to "Global Trigger Mask" section in CAEN User Manual UM6009:
# http://npg.dl.ac.uk/MIDAS/MIDASWebServices/VME/docs/UM6009_751_Registers_Description_rev1.pdf
# 0x1100003 = 0b1000100000000000000000011, which means if both channel 0 and 1
# are triggered within 1 trigger clock unit (8 ns), a global trigger is issued
WRITE_REGISTER 810C 1100003 FFFFFFF
# ----------------------------------------------------------------
# Individual Settings
# ----------------------------------------------------------------
# The following setting are usually applied on channel by channel
# basis; however, you can put them also here in the [COMMON] section
# in order to apply them to all the channels.
# ----------------------------------------------------------------
# ENABLE_INPUT: enable/disable one channel. Options: YES, NO
ENABLE_INPUT NO
# BASELINE_LEVEL: baseline position in percent of the Full Scale.
# Please use DC_OFFSET instead in case of many small pulses,
# which will make the calculated baseline higher than the actually DC offset.
# BASELINE_LEVEL and DC_OFFSET cannot be used at the same time.
# POSITIVE PULSE POLARITY (Full Scale = from 0 to + Vpp)
# 0: analog input dynamic range = from 0 to +Vpp
# 50: analog input dynamic range = from +Vpp/2 to +Vpp
# 100: analog input dynamic range = null (usually not used)
# NEGATIVE PULSE POLARITY (Full Scale = from -Vpp to 0)
# 0: analog input dynamic range = from -Vpp to 0
# 50: analog input dynamic range = from -Vpp/2 to 0
# 100: analog input dynamic range = null (usually not used)
#
BASELINE_LEVEL 20
# DC_OFFSET: set actual dc offset
# POSITIVE PULSE POLARITY (Full Scale = from 0 to + Vpp)
# -50: +Vpp
# 0: Vpp/2
# 50: 0
# WaveDump does not accept float number here even though the manual says so
# DC_OFFSET 0
# TRIGGER_THRESHOLD: threshold for the channel auto trigger (ADC counts)
# options 0 to 2^N-1 (N=Number of bit of the ADC)
# POSITIVE PULSE POLARITY: threshold = baseline + TRIGGER_THRESHOLD
# NEGATIVE PULSE POLARITY: threshold = baseline - TRIGGER_THRESHOLD
# If DC_OFFSET is used to set baseline instead of BASELINE_LEVEL,
# POSITIVE PULSE POLARITY: threshold = TRIGGER_THRESHOLD - DC_OFFSET
# NEGATIVE PULSE POLARITY: threshold = DC_OFFSET - TRIGGER_THRESHOLD
TRIGGER_THRESHOLD 30
# CHANNEL_TRIGGER: channel auto trigger settings. When enabled, the ch. auto
# trg. can be either propagated (ACQUISITION_AND_TRGOUT) or not
# (ACQUISITION_ONLY) through the TRGOUT
# Options: DISABLED, ACQUISITION_ONLY, ACQUISITION_AND_TRGOUT, TRGOUT_ONLY
# NOTE: since in x730 boards even and odd channels are paired, their
# 'CHANNEL_TRIGGER' value will be equal to the OR combination of the pair,
# unless one of the two channels of the pair is set to 'DISABLED'. If so, the
# other one behaves as usual.
CHANNEL_TRIGGER ACQUISITION_ONLY
# individual channel setup
[0]
ENABLE_INPUT YES
[1]
ENABLE_INPUT YES