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
3dc19186
Commit
3dc19186
authored
Dec 17, 2018
by
Martin Drechsler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
minor changes, feedforward output is now 0
parent
0c2f0791
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
myGUI.py
myGUI.py
+1
-1
myWidgets.py
myWidgets.py
+4
-4
No files found.
myGUI.py
View file @
3dc19186
...
...
@@ -101,7 +101,7 @@ class GuiMainWindow(QMainWindow):
self
.
piezoB397
=
anal_control_signal
(
'piezoB397'
,
7
,
out_step
=
0.01
)
self
.
piezoA866
=
anal_control_signal
(
'piezoA866'
,
14
,
out_minimum
=
0
,
out_maximum
=
4
,
out_step
=
0.01
)
self
.
piezoB866
=
anal_control_signal
(
'piezoB866'
,
6
,
out_step
=
0.01
)
self
.
piezoA423
=
anal_control_signal
(
'piezoA423'
,
1
,
out_step
=
0.01
,
feedfoward_channel
=
8
)
self
.
piezoA423
=
anal_control_signal
(
'piezoA423'
,
1
,
out_step
=
0.01
,
feedfoward_channel
=
0
)
self
.
trapDCA
=
anal_control_signal
(
'DC A'
,
2
)
self
.
trapDCB
=
anal_control_signal
(
'DC B'
,
3
)
...
...
myWidgets.py
View file @
3dc19186
...
...
@@ -20,7 +20,7 @@ import scanFunctions
class
anal_control_signal
(
QWidget
):
_registry
=
[]
def
__init__
(
self
,
name
,
channel
,
out_minimum
=
-
10
,
out_maximum
=
10
,
out_step
=
0.1
,
feedfoward_channel
=
None
):
def
__init__
(
self
,
name
,
channel
,
out_minimum
=
-
10
,
out_maximum
=
10
,
out_step
=
0.1
,
feedfoward_channel
=
0
):
super
()
.
__init__
()
self
.
_registry
.
append
(
self
)
...
...
@@ -40,7 +40,7 @@ class anal_control_signal(QWidget):
self
.
sb
=
pg
.
SpinBox
(
value
=
self
.
initial_value
,
bounds
=
[
self
.
min
,
self
.
max
],
step
=
self
.
step
,
siPrefix
=
self
.
siPrefix
,
suffix
=
self
.
suffix
)
try
:
self
.
AO
=
daq_AO
(
self
.
ch
)
if
feedfoward_channel
:
if
feedfoward_channel
==
0
:
self
.
AO_feedfoward
=
daq_AO
(
self
.
feedfoward_channel
)
except
:
show_warning
(
'Analog output
%
i not found. Daq might not be connected'
%
self
.
ch
)
...
...
@@ -60,7 +60,7 @@ class anal_control_signal(QWidget):
self
.
scan_sb_start
=
pg
.
SpinBox
(
value
=
0
,
bounds
=
[
self
.
min
,
self
.
max
],
step
=
self
.
step
,
siPrefix
=
self
.
siPrefix
,
suffix
=
self
.
suffix
)
self
.
scan_sb_stop
=
pg
.
SpinBox
(
value
=
0
,
bounds
=
[
self
.
min
,
self
.
max
],
step
=
self
.
step
,
siPrefix
=
self
.
siPrefix
,
suffix
=
self
.
suffix
)
self
.
scan_sb_period
=
pg
.
SpinBox
(
value
=
1
,
bounds
=
[
0
,
1
00
],
step
=
0.1
,
siPrefix
=
True
,
suffix
=
's'
)
self
.
scan_sb_period
=
pg
.
SpinBox
(
value
=
1
,
bounds
=
[
0
,
3
00
],
step
=
0.1
,
siPrefix
=
True
,
suffix
=
's'
)
self
.
scan_button
.
clicked
.
connect
(
self
.
doScanAction
)
...
...
@@ -74,7 +74,7 @@ class anal_control_signal(QWidget):
self
.
scan_sb_stop
.
setMinimumHeight
(
22
)
self
.
scan_feedfoward_button
=
QCheckBox
(
'Feedfoward'
)
self
.
scan_feedfoward_sb
=
pg
.
SpinBox
(
value
=
0
,
bounds
=
[
0
,
1
],
step
=
0.02
)
self
.
scan_feedfoward_sb
=
pg
.
SpinBox
(
value
=
0
,
bounds
=
[
0
,
0.005
],
step
=
0.0005
)
self
.
scan_feedfoward_sb
.
setMinimumHeight
(
22
)
self
.
scan_feedfoward_step
=
0
self
.
scan_feedfoward_analogOut
=
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