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
dcc94a7b
Commit
dcc94a7b
authored
Aug 28, 2018
by
Martin Drechsler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
now if daq not found, actions get printed
parent
2f4ced78
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
ADoutputs.py
ADoutputs.py
+2
-0
myWidgets.py
myWidgets.py
+2
-2
No files found.
ADoutputs.py
View file @
dcc94a7b
...
...
@@ -56,6 +56,7 @@ class daq_DO(object):
self
.
show_ul_error
(
e
)
else
:
def
set_out
(
self
,
bit_value
):
print
(
'Digital out
%
i set to
%
s'
%
(
self
.
out_num
,
bit_value
)
)
return
bit_value
,
self
.
out_num
...
...
@@ -83,5 +84,6 @@ class daq_AO(object):
return
0
else
:
def
set_out
(
self
,
value
):
print
(
'Analog out
%
i set to
%
f'
%
(
self
.
out_num
,
value
)
)
return
value
,
self
.
out_num
######################################################################################
myWidgets.py
View file @
dcc94a7b
...
...
@@ -12,7 +12,7 @@ from PyQt5.QtCore import QTimer
from
PyQt5.QtWidgets
import
(
QPushButton
,
QWidget
,
QVBoxLayout
,
QLCDNumber
,
QProgressBar
,
QLabel
)
import
telnetlib
import
os
import
numpy
as
np
#An example of a class
class
anal_control_signal
(
QWidget
):
...
...
@@ -100,7 +100,7 @@ class anal_control_signal(QWidget):
self
.
scan_step
=
self
.
scan_step
+
self
.
scan_direction
self
.
AO
.
set_out
(
self
.
scan_step
)
print
(
self
.
scan_step
)
#
print(self.scan_step)
def
PbarEvent
(
self
):
...
...
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