Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
artiq_experiments
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
artiq_experiments
Commits
201427ef
Commit
201427ef
authored
Jun 02, 2021
by
Lucas Giardino
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
urukul_scan arreglo selector de canal + applet
parent
fcbb248b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
urukul_scan.py
artiq_master/repository/urukul_scan.py
+5
-4
No files found.
artiq_master/repository/urukul_scan.py
View file @
201427ef
...
...
@@ -19,19 +19,20 @@ class SingleChannelScan(EnvExperiment):
)
)
self
.
salida
=
self
.
get_device
(
f
"urukul0_ch{self.channel}"
)
# client control broadcast: lo traigo para podes darle update a los applets
self
.
setattr_device
(
"ccb"
)
def
run
(
self
):
self
.
salida
=
self
.
get_device
(
f
"urukul0_ch{self.channel}"
)
# Armo dataset exclusivamente con el proposito de mostrar
# la frecuencia actual en un applet que se actualice
self
.
set_dataset
(
"current_freq"
,
np
.
array
([
self
.
freqs
.
sequence
[
0
]]),
broadcast
=
True
,
archive
=
False
)
#
self.ccb.issue("create_applet", "output_frecuency",
#
"${artiq_applet}big_number "
#
"current_freq")
self
.
ccb
.
issue
(
"create_applet"
,
"output_frecuency"
,
"${artiq_applet}big_number "
"current_freq"
)
print
(
"Arranco"
)
print
(
f
"Canal: {self.channel}"
)
print
(
f
"Amp : {self.amp}
\n
"
)
...
...
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