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
8785f039
Commit
8785f039
authored
May 21, 2019
by
Martin Drechsler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
some bugs, fixing required
parent
4256cc80
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
19 additions
and
10 deletions
+19
-10
MCDAQcontrolsignals.py
MCDAQcontrolsignals.py
+2
-1
cameraGui.py
cameraGui.py
+3
-3
andorzyla.py
drivers/andorzyla.py
+6
-2
main.py
main.py
+2
-2
zylaCameraWorker.py
zylaCameraWorker.py
+6
-2
No files found.
MCDAQcontrolsignals.py
View file @
8785f039
...
...
@@ -105,7 +105,8 @@ class anal_control_signal(QtCore.QObject):
if
end
<
start
:
array_of_steps
=
array_of_steps
[::
-
1
]
for
i
in
array_of_steps
:
self
.
AO
.
set_out
(
i
)
if
i
<
self
.
max
and
i
>
self
.
min
:
self
.
AO
.
set_out
(
i
)
...
...
cameraGui.py
View file @
8785f039
...
...
@@ -172,9 +172,9 @@ class CameraGuiMainWindow(QMainWindow):
self
.
cameraParamFrame
.
paramTree
.
t
.
setEnabled
(
True
)
else
:
self
.
repositionRoi
(
self
.
current_image_size
)
self
.
scanROIdataX
=
np
.
linspace
(
0
,
1
,
2
000
)
self
.
scanROIdataY
=
np
.
zeros
(
2
000
)
self
.
timeROIdataY
=
np
.
zeros
(
2
000
)
self
.
scanROIdataX
=
np
.
linspace
(
0
,
1
,
10
000
)
self
.
scanROIdataY
=
np
.
zeros
(
10
000
)
self
.
timeROIdataY
=
np
.
zeros
(
10
000
)
self
.
iROIdata
=
0
self
.
cameraButton
.
setText
(
'Stop Acquisition'
)
self
.
measurementFrame
.
startMeasureButton
.
setEnabled
(
False
)
...
...
drivers/andorzyla.py
View file @
8785f039
...
...
@@ -749,13 +749,17 @@ class AndorBase(SDK3Camera):
def
live_acquisition_loop
(
self
):
t
=
threading
.
currentThread
()
timeout
=
self
.
ExposureTime
.
getValue
()
*
5000
if
self
.
TriggerMode
.
getString
()
==
'Internal'
:
timeout
=
self
.
ExposureTime
.
getValue
()
*
5000
if
self
.
TriggerMode
.
getString
()
==
'Software'
:
timeout
=
1000000
while
getattr
(
t
,
"do_run"
,
True
):
a_s
,
px_encoding
,
xs
,
ys
,
bufs
=
self
.
_live_acq_auxs
try
:
pData
,
lData
=
SDK3
.
WaitBuffer
(
self
.
handle
,
int
(
timeout
))
except
:
r
eturn
r
aise
(
'Timeout in the camera'
)
img
=
create_aligned_array
(
xs
*
ys
,
'uint16'
)
SDK3
.
ConvertBuffer
(
bufs
[
self
.
acq_index_i
%
len
(
bufs
)]
.
ctypes
.
data_as
(
ctypes
.
POINTER
(
ctypes
.
c_uint8
)),
img
.
ctypes
.
data_as
(
ctypes
.
POINTER
(
ctypes
.
c_uint8
)),
...
...
main.py
View file @
8785f039
from
PyQt5
import
QtGui
,
QtCore
#
from drivers.andorzyla import AndorZyla
from
drivers.dummyAndor
import
AndorZyla
from
drivers.andorzyla
import
AndorZyla
#
from drivers.dummyAndor import AndorZyla
from
cameraGui
import
CameraGuiMainWindow
from
zylaCameraWorker
import
CameraWorker
...
...
zylaCameraWorker.py
View file @
8785f039
...
...
@@ -158,13 +158,17 @@ class CameraWorker(QtCore.QObject):
def
simple_scan_measurement_step
(
self
):
try
:
print
(
'Setting value of step'
)
value
=
next
(
self
.
scan_array_gen
)
print
(
'value set to '
+
str
(
value
))
self
.
ao_to_scan
.
AO
.
set_out
(
value
)
print
(
'value sent to ao'
)
# aca puede esperar o chequear algo, por ahora nada
self
.
cam
.
trigger
()
except
StopIteration
:
print
(
'trigger'
)
except
:
self
.
simple_scan_measurement_end
()
def
get_scan_signal
(
self
,
ao_name
):
return
[
ao
for
ao
in
anal_control_signal
.
_registry
if
ao
.
name
==
ao_name
][
0
]
...
...
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