Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
D
distributed oscilloscope
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Projects
distributed oscilloscope
Commits
f4c8edd6
Commit
f4c8edd6
authored
Aug 26, 2019
by
Milosz Malczak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated test
parent
b4c2ba5f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
test_all.py
...re/DistributedOscilloscope/applications/tests/test_all.py
+5
-5
test_conf.py
...e/DistributedOscilloscope/applications/tests/test_conf.py
+1
-1
No files found.
software/DistributedOscilloscope/applications/tests/test_all.py
View file @
f4c8edd6
...
...
@@ -302,8 +302,8 @@ class OscilloscopeMethods(unittest.TestCase):
self
.
zmq_rpc
.
send_RPC
(
'set_ADC_parameter'
,
'internal_trigger_enable'
,
1
,
unique_ADC_name_1
,
ADC_trigger_idx
)
self
.
zmq_rpc
.
send_RPC
(
'set_pre
samples'
,
0
,
self
.
testbench_name
)
self
.
zmq_rpc
.
send_RPC
(
'set_postsamples'
,
1000
,
self
.
testbench_name
)
self
.
zmq_rpc
.
send_RPC
(
'set_pre
_post_samples'
,
0
,
1000
,
self
.
testbench_name
)
self
.
zmq_rpc
.
send_RPC
(
'single_acquisition'
,
self
.
testbench_name
)
self
.
return_queue
.
get
()
...
...
@@ -351,7 +351,7 @@ class OscilloscopeMethods(unittest.TestCase):
def
measure_zero_cross_distance
(
self
):
self
.
zmq_rpc
.
send_RPC
(
'single_acquisition'
,
self
.
testbench_name
)
try
:
data
,
offsets
=
self
.
return_queue
.
get
(
timeout
=
1
)
data
,
offsets
=
self
.
return_queue
.
get
(
timeout
=
0.
1
)
except
:
return
None
chan_1
=
data
[
0
]
...
...
@@ -407,7 +407,7 @@ class OscilloscopeMethods(unittest.TestCase):
def
test_precision
(
self
):
self
.
clean_queue
()
number_of_acq
=
2
00
number_of_acq
=
50
00
"""Some data could not arrive so actual number of acquisitions could
be smaller"""
self
.
results
.
write
(
"Internal trigger on channel 3
\n
"
...
...
@@ -439,7 +439,7 @@ class OscilloscopeMethods(unittest.TestCase):
ADC_trigger_idx
=
3
self
.
zmq_rpc
.
send_RPC
(
'set_ADC_parameter'
,
'channel_offset'
,
-
290
000
,
self
.
zmq_rpc
.
send_RPC
(
'set_ADC_parameter'
,
'channel_offset'
,
-
5
000
,
unique_ADC_name_1
,
ADC_trigger_idx
)
"""Used for calibration"""
...
...
software/DistributedOscilloscope/applications/tests/test_conf.py
View file @
f4c8edd6
...
...
@@ -4,7 +4,7 @@ update_data_types = {1: 'plot',
2
:
'time_measurements'
,
3
:
'frequency_measurements'
,
4
:
'precision'
}
update_data_select
=
1
update_data_select
=
4
update_data_type
=
update_data_types
[
update_data_select
]
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