Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
total_control_app
Project
Project
Details
Activity
Releases
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Martin Drechsler
total_control_app
Commits
00666f2d
Commit
00666f2d
authored
Jun 07, 2019
by
Martin Drechsler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
measurement now goes back to initial value at the end
parent
38956eb2
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
5 deletions
+10
-5
cameraGui.py
cameraGui.py
+1
-4
ADoutputs.py
drivers/ADoutputs.py
+5
-0
ADoutputs_linux.py
drivers/ADoutputs_linux.py
+2
-0
zylaCameraWorker.py
zylaCameraWorker.py
+2
-1
No files found.
cameraGui.py
View file @
00666f2d
...
@@ -296,10 +296,7 @@ class CameraGuiMainWindow(QMainWindow):
...
@@ -296,10 +296,7 @@ class CameraGuiMainWindow(QMainWindow):
for
l
in
LaserControlLayout
.
_registry
+
LaserScanLayout
.
_registry
:
for
l
in
LaserControlLayout
.
_registry
+
LaserScanLayout
.
_registry
:
l
.
unfreeze
()
l
.
unfreeze
()
for
sb_name
,
sb
in
l
.
spinboxes
.
items
():
if
sb_name
==
scanned_sb_name
:
sb
.
setValue
(
self
.
measurementFrame
.
endValue
.
value
())
print
(
'gui meas end'
)
print
(
'gui meas end'
)
plot
=
pg
.
plot
(
self
.
scanROIdataX
,
self
.
scanROIdataY
)
plot
=
pg
.
plot
(
self
.
scanROIdataX
,
self
.
scanROIdataY
)
...
...
drivers/ADoutputs.py
View file @
00666f2d
...
@@ -96,6 +96,11 @@ class daq_AO(object):
...
@@ -96,6 +96,11 @@ class daq_AO(object):
self
.
current_value
=
value
self
.
current_value
=
value
return
value
,
self
.
out_num
return
value
,
self
.
out_num
def
get_current_value
(
self
):
return
self
.
current_value
class
daq_DO
(
object
):
class
daq_DO
(
object
):
def
__init__
(
self
,
out_num
):
def
__init__
(
self
,
out_num
):
global
daqfound
global
daqfound
...
...
drivers/ADoutputs_linux.py
View file @
00666f2d
...
@@ -95,6 +95,8 @@ class daq_AO(object):
...
@@ -95,6 +95,8 @@ class daq_AO(object):
except
:
except
:
raise
(
"Failing to set analog output
%
i"
,
self
.
out_num
)
raise
(
"Failing to set analog output
%
i"
,
self
.
out_num
)
def
get_current_value
(
self
):
return
self
.
current_value
# def set_out(self, value):
# def set_out(self, value):
# print('Analog out %i set to %f' % (self.out_num, value) )
# print('Analog out %i set to %f' % (self.out_num, value) )
# return value, self.out_num
# return value, self.out_num
...
...
zylaCameraWorker.py
View file @
00666f2d
...
@@ -133,6 +133,7 @@ class CameraWorker(QtCore.QObject):
...
@@ -133,6 +133,7 @@ class CameraWorker(QtCore.QObject):
self
.
measurementStartingSignal
.
emit
()
self
.
measurementStartingSignal
.
emit
()
self
.
ao_to_scan
=
self
.
get_scan_signal
(
measure_params
[
'signal_to_scan'
])
self
.
ao_to_scan
=
self
.
get_scan_signal
(
measure_params
[
'signal_to_scan'
])
self
.
ao_initial_value
=
self
.
ao_to_scan
.
AO
.
get_current_value
()
self
.
measure_params
=
measure_params
self
.
measure_params
=
measure_params
start
=
self
.
measure_params
[
'start'
]
start
=
self
.
measure_params
[
'start'
]
end
=
self
.
measure_params
[
'end'
]
end
=
self
.
measure_params
[
'end'
]
...
@@ -160,7 +161,7 @@ class CameraWorker(QtCore.QObject):
...
@@ -160,7 +161,7 @@ class CameraWorker(QtCore.QObject):
self
.
measurementEndingSignal
.
emit
()
self
.
measurementEndingSignal
.
emit
()
self
.
cam
.
trigger
()
self
.
cam
.
trigger
()
self
.
_stop_acquisition_loop
()
self
.
_stop_acquisition_loop
()
self
.
ao_to_scan
.
go_softly_to_value
(
self
.
measure_params
[
'end'
]
)
self
.
ao_to_scan
.
go_softly_to_value
(
self
.
ao_initial_value
)
self
.
cam
.
TriggerMode
.
setString
(
'Internal'
)
self
.
cam
.
TriggerMode
.
setString
(
'Internal'
)
print
(
'exiting scan ending in worker'
)
print
(
'exiting scan ending in worker'
)
...
...
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