Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
A
adc-lib
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
adc-lib
Commits
9c573428
Commit
9c573428
authored
Aug 13, 2020
by
Federico Vaga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tst: improve default configuration adc_simple
Signed-off-by:
Federico Vaga
<
federico.vaga@cern.ch
>
parent
cdb05f7f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
conftest.py
pytest/conftest.py
+5
-0
No files found.
pytest/conftest.py
View file @
9c573428
...
...
@@ -49,6 +49,10 @@ def adc_simple():
for
ch
in
range
(
4
):
conf
=
PyAdcConf
(
PyAdcConf
.
ADC_CONF_TYPE_TRG_THR
,
ch
)
conf
.
value_set
(
PyAdcConf
.
ADC_CONF_TRG_THR_ENABLE
,
0
)
conf
.
value_set
(
PyAdcConf
.
ADC_CONF_TRG_THR_POLARITY
,
0
)
conf
.
value_set
(
PyAdcConf
.
ADC_CONF_TRG_THR_DELAY
,
0
)
conf
.
value_set
(
PyAdcConf
.
ADC_CONF_TRG_THR_THRESHOLD
,
0
)
conf
.
value_set
(
PyAdcConf
.
ADC_CONF_TRG_THR_HYSTERESIS
,
0
)
adc
.
apply_config
(
conf
,
0
)
conf
=
PyAdcConf
(
PyAdcConf
.
ADC_CONF_TYPE_TRG_EXT
,
0
)
...
...
@@ -58,6 +62,7 @@ def adc_simple():
conf
=
PyAdcConf
(
PyAdcConf
.
ADC_CONF_TYPE_ACQ
,
0
)
conf
.
value_set
(
PyAdcConf
.
ADC_CONF_ACQ_PRE_SAMP
,
1
)
conf
.
value_set
(
PyAdcConf
.
ADC_CONF_ACQ_POST_SAMP
,
2
)
conf
.
value_set
(
PyAdcConf
.
ADC_CONF_ACQ_N_SHOTS
,
1
)
adc
.
apply_config
(
conf
,
0
)
yield
adc
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment