Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
Climate Lab Test Stand
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
MSK-SW
Low-Level Radio Frequency
Climate Lab
Climate Lab Test Stand
Commits
b444bd9e
Commit
b444bd9e
authored
1 year ago
by
Martin Killenberg
Browse files
Options
Downloads
Patches
Plain Diff
feat: introduce stop button
Not working yet because thread in GUI is missing
parent
d0f6a5c7
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Python_script/climate-lab-gui.py
+13
-2
13 additions, 2 deletions
Python_script/climate-lab-gui.py
Python_script/climate-lab-main.ui
+382
-355
382 additions, 355 deletions
Python_script/climate-lab-main.ui
with
395 additions
and
357 deletions
Python_script/climate-lab-gui.py
+
13
−
2
View file @
b444bd9e
...
@@ -8,6 +8,8 @@ import prototype
...
@@ -8,6 +8,8 @@ import prototype
import
json
import
json
import
time
import
time
import
analysis
import
analysis
import
process_sync
import
multiprocessing
as
mp
class
TestStandMainWindow
(
QMainWindow
):
class
TestStandMainWindow
(
QMainWindow
):
...
@@ -17,6 +19,7 @@ class TestStandMainWindow(QMainWindow):
...
@@ -17,6 +19,7 @@ class TestStandMainWindow(QMainWindow):
self
.
qt_app
=
qt_app
self
.
qt_app
=
qt_app
self
.
startButton
.
clicked
.
connect
(
lambda
:
self
.
do_measurement
())
self
.
startButton
.
clicked
.
connect
(
lambda
:
self
.
do_measurement
())
self
.
stopButton
.
clicked
.
connect
(
lambda
:
self
.
stop_measurement
())
self
.
tempSweepButton
.
clicked
.
connect
(
lambda
:
self
.
set_temp_sweep_labels
())
self
.
tempSweepButton
.
clicked
.
connect
(
lambda
:
self
.
set_temp_sweep_labels
())
self
.
humSweepButton
.
clicked
.
connect
(
lambda
:
self
.
set_hum_sweep_labels
())
self
.
humSweepButton
.
clicked
.
connect
(
lambda
:
self
.
set_hum_sweep_labels
())
...
@@ -70,8 +73,13 @@ class TestStandMainWindow(QMainWindow):
...
@@ -70,8 +73,13 @@ class TestStandMainWindow(QMainWindow):
return
analysis_config
return
analysis_config
def
stop_measurement
(
self
):
process_sync
.
stop_measurement
.
set
()
def
do_measurement
(
self
):
def
do_measurement
(
self
):
self
.
setEnabled
(
False
)
self
.
runSettingsLayout
.
setEnabled
(
False
)
self
.
startButton
.
setEnabled
(
False
)
self
.
stopButton
.
setEnabled
(
True
)
self
.
qt_app
.
processEvents
();
self
.
qt_app
.
processEvents
();
os
.
chdir
(
self
.
start_dir
)
os
.
chdir
(
self
.
start_dir
)
...
@@ -94,6 +102,7 @@ class TestStandMainWindow(QMainWindow):
...
@@ -94,6 +102,7 @@ class TestStandMainWindow(QMainWindow):
meas
=
None
meas
=
None
try
:
try
:
meas
=
prototype
.
Measurements
(
config_data
,
output_basename
,
False
,
ext_sensor_channels
)
meas
=
prototype
.
Measurements
(
config_data
,
output_basename
,
False
,
ext_sensor_channels
)
q
=
mp
.
Queue
()
if
self
.
tempSweepButton
.
isChecked
():
if
self
.
tempSweepButton
.
isChecked
():
temperatures
=
meas
.
perform_sweep
(
self
.
startParameter
.
value
(),
self
.
stopParameter
.
value
(),
temperatures
=
meas
.
perform_sweep
(
self
.
startParameter
.
value
(),
self
.
stopParameter
.
value
(),
self
.
stepParameter
.
value
(),
self
.
fixedParameter
.
value
(),
self
.
stepParameter
.
value
(),
self
.
fixedParameter
.
value
(),
...
@@ -148,7 +157,9 @@ class TestStandMainWindow(QMainWindow):
...
@@ -148,7 +157,9 @@ class TestStandMainWindow(QMainWindow):
meas
.
chamber
.
close
()
meas
.
chamber
.
close
()
meas
.
ext_sensors
.
close
()
meas
.
ext_sensors
.
close
()
self
.
setEnabled
(
True
)
self
.
runSettingsLayout
.
setEnabled
(
True
)
self
.
startButton
.
setEnabled
(
True
)
self
.
stopButton
.
setEnabled
(
False
)
if
__name__
==
'
__main__
'
:
if
__name__
==
'
__main__
'
:
...
...
This diff is collapsed.
Click to expand it.
Python_script/climate-lab-main.ui
+
382
−
355
View file @
b444bd9e
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment