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
e08b38e5
Commit
e08b38e5
authored
Jun 28, 2019
by
Milosz Malczak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
server: setting pre post samples when adding a channel
parent
009b905f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
GUI.py
software/server/GUI.py
+3
-5
No files found.
software/server/GUI.py
View file @
e08b38e5
...
...
@@ -56,20 +56,18 @@ class GUI():
return
False
def
add_channel
(
self
,
GUI_channel_idx
,
ADC
,
ADC_channel_idx
):
def
set_horizontal_setting_when_add_channel
(
self
,
new_ADC
):
def
set_horizontal_setting_when_add_channel
(
self
):
ADC
=
self
.
__ADCs_used
[
0
]
acq_conf
=
ADC
.
get_acq_conf
()
presamples
=
acq_conf
.
presamples
postsamples
=
acq_conf
.
postsamples
new_acq_conf
=
new_ADC
.
get_acq_conf
()
new_acq_conf
.
presamples
=
presamples
new_acq_conf
.
postsamples
=
postsamples
self
.
set_pre_post_samples
(
presamples
,
postsamples
)
ADC
.
add_used_channel
(
ADC_channel_idx
)
channel
=
ADC
.
get_channel
(
ADC_channel_idx
)
self
.
__channels
[
GUI_channel_idx
]
=
channel
self
.
__update_ADCs_used
()
set_horizontal_setting_when_add_channel
(
self
,
ADC
)
set_horizontal_setting_when_add_channel
(
self
)
def
add_trigger
(
self
,
type
,
ADC
,
ADC_trigger_idx
):
trigger
=
None
...
...
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