Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
pyLIAF
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
Nicolas Nunez Barreto
pyLIAF
Commits
30daff26
Commit
30daff26
authored
Jul 06, 2021
by
Martin Drechsler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
agrego funcion para variar frecuencia
parent
17f814bb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
Urukul.py
pyLIAF/artiq/_controllers/Urukul.py
+7
-2
No files found.
pyLIAF/artiq/_controllers/Urukul.py
View file @
30daff26
...
@@ -28,8 +28,9 @@ class UrukulCh(HasEnvironment):
...
@@ -28,8 +28,9 @@ class UrukulCh(HasEnvironment):
@
rpc
@
rpc
def
generate_dataset
(
self
):
def
generate_dataset
(
self
):
self
.
set_dataset
(
f
"laser_{self.name}/freq"
,
self
.
frequency
)
# UNTESTED
self
.
set_dataset
(
f
"laser_{self.name}/amp"
,
self
.
amplitude
)
self
.
set_dataset
(
f
"laser_{self.name}_freq"
,
self
.
frequency
)
self
.
set_dataset
(
f
"laser_{self.name}_amp"
,
self
.
amplitude
)
@
kernel
@
kernel
def
initialize_channel
(
self
):
def
initialize_channel
(
self
):
...
@@ -46,6 +47,10 @@ class UrukulCh(HasEnvironment):
...
@@ -46,6 +47,10 @@ class UrukulCh(HasEnvironment):
else
:
else
:
self
.
channel
.
sw
.
off
()
self
.
channel
.
sw
.
off
()
@
kernel
def
set_frequency
(
self
,
freq
):
self
.
channel
.
set
(
freq
,
amplitude
=
self
.
amplitude
)
@
kernel
@
kernel
def
on
(
self
):
def
on
(
self
):
self
.
channel
.
sw
.
on
()
self
.
channel
.
sw
.
on
()
...
...
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