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
5f3c4d43
Commit
5f3c4d43
authored
Jun 15, 2018
by
Martin Drechsler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
file myWidgets added
parent
5ce84bcd
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
68 additions
and
0 deletions
+68
-0
myWidgets.py
myWidgets.py
+68
-0
snuffles.png
snuffles.png
+0
-0
No files found.
myWidgets.py
0 → 100644
View file @
5f3c4d43
# -*- coding: utf-8 -*-
"""
Spyder Editor
This is a temporary script file.
"""
import
pyqtgraph
as
pg
from
ADoutputs
import
daq_AO
,
daq_DO
from
pyqtgraph.Qt
import
QtGui
#An example of a class
class
anal_control_signal
:
def
__init__
(
self
,
name
,
channel
):
self
.
name
=
name
self
.
ch
=
channel
self
.
initial_value
=
0
self
.
max
=
10
self
.
min
=
-
10
self
.
step
=
0.1
self
.
siPrefix
=
True
self
.
suffix
=
'V'
self
.
sb
=
pg
.
SpinBox
(
value
=
self
.
initial_value
,
bounds
=
[
self
.
min
,
self
.
max
],
step
=
self
.
step
,
siPrefix
=
self
.
siPrefix
,
suffix
=
self
.
suffix
)
self
.
AO
=
daq_AO
(
self
.
ch
)
def
set_name
(
self
,
name
):
self
.
name
=
name
def
set_initial_value
(
self
,
value
):
self
.
initial_value
=
value
def
set_max
(
self
,
value
):
self
.
max
=
value
def
set_min
(
self
,
value
):
self
.
min
=
value
def
set_step
(
self
,
value
):
self
.
step
=
value
def
set_siPrefix
(
self
,
value
):
self
.
siPrefix
=
value
def
set_sufix
(
self
,
value
):
self
.
sufix
=
value
class
digital_control_signal
:
def
__init__
(
self
,
name
,
channel
):
self
.
name
=
name
self
.
ch
=
channel
self
.
initial_value
=
0
self
.
DO
=
daq_DO
(
self
.
ch
)
#win = QtGui.QMainWindow()
self
.
cb
=
QtGui
.
QCheckBox
()
def
set_name
(
self
,
name
):
self
.
name
=
name
def
set_initial_value
(
self
,
value
):
self
.
initial_value
=
value
snuffles.png
0 → 100644
View file @
5f3c4d43
84.4 KB
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