***
Wartungsfenster jeden ersten Mittwoch vormittag im Monat
***
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
leolab_devices
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Quantuminfo
Experiment Control
labscript-suite
leolab_devices
Commits
debef323
Commit
debef323
authored
2 years ago
by
Schabbauer, Johannes
Browse files
Options
Downloads
Patches
Plain Diff
Removed AI_rate from ADwinAI8 device
parent
237fb0e4
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
user_devices/ADwinProII/labscript_devices_ADwin_modules.py
+1
-7
1 addition, 7 deletions
user_devices/ADwinProII/labscript_devices_ADwin_modules.py
with
1 addition
and
7 deletions
user_devices/ADwinProII/labscript_devices_ADwin_modules.py
+
1
−
7
View file @
debef323
...
...
@@ -210,15 +210,9 @@ class ADwinAI8(_ADwinCard):
allowed_children
=
[
AnalogIn
]
resolution_bits
=
16
def
__init__
(
self
,
name
,
parent_device
,
module_address
,
AI_rate
=
None
,
num_AI
=
8
,
**
kwargs
):
def
__init__
(
self
,
name
,
parent_device
,
module_address
,
num_AI
=
8
,
**
kwargs
):
self
.
num_AI
=
num_AI
_ADwinCard
.
__init__
(
self
,
name
,
parent_device
,
module_address
,
TiCo
=
False
,
**
kwargs
)
if
not
AI_rate
:
# if not specified, use maximum of ADwin process
AI_rate
=
self
.
parent_clock_line
.
clock_limit
if
AI_rate
>
self
.
parent_clock_line
.
clock_limit
:
# data cannot be sampled fater than ADwin cycle time
raise
LabscriptError
(
f
"
Sample rate of ADwin module
{
self
.
name
}
is too fast for ADwin process!
"
)
self
.
AI_rate
=
AI_rate
self
.
AI_ADwin_cycles
=
np
.
round
(
AI_rate
/
self
.
parent_clock_line
.
clock_limit
)
def
do_checks
(
self
):
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment