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
2646554c
Commit
2646554c
authored
May 21, 2021
by
Lucas Giardino
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
codigos andando en el dsahboard
parent
c511a4ee
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
6 deletions
+10
-6
parabola.py
artiq_master/repository/parabola.py
+1
-1
urukul_outputs.py
artiq_master/repository/urukul_outputs.py
+9
-5
No files found.
artiq_master/repository/parabola.py
View file @
2646554c
...
@@ -12,5 +12,5 @@ class MgmtTutorial(EnvExperiment):
...
@@ -12,5 +12,5 @@ class MgmtTutorial(EnvExperiment):
self
.
set_dataset
(
"parabola"
,
np
.
full
(
self
.
count
,
np
.
nan
),
broadcast
=
True
)
self
.
set_dataset
(
"parabola"
,
np
.
full
(
self
.
count
,
np
.
nan
),
broadcast
=
True
)
for
i
in
range
(
self
.
count
):
for
i
in
range
(
self
.
count
):
self
.
mutate_dataset
(
"parabola"
,
i
,
i
*
i
)
self
.
mutate_dataset
(
"parabola"
,
i
,
i
*
i
)
time
.
sleep
(
1
)
time
.
sleep
(
0.2
)
artiq_master/repository/urukul_outputs.py
View file @
2646554c
...
@@ -50,12 +50,16 @@ class Set_All_Urukul_Freqs(EnvExperiment):
...
@@ -50,12 +50,16 @@ class Set_All_Urukul_Freqs(EnvExperiment):
delay
(
10
*
ms
)
delay
(
10
*
ms
)
# attenuation and frecuency to all channels
# attenuation and frecuency to all channels
for
channel
,
freq
in
zip
(
self
.
use_channels
,
self
.
use_freqs
):
for
i
in
range
(
len
(
self
.
use_channels
)):
channel
.
set_att
(
attenuation
)
#zip(self.use_channels, self.use_freqs):
self
.
use_channels
[
i
]
.
set_att
(
attenuation
)
# writes frequency and amplitude variables to urukul channel thus outputting function
# writes frequency and amplitude variables to urukul channel thus outputting function
channel
.
set
(
freq
,
amplitude
=
amp
)
self
.
use_channels
[
i
]
.
set
(
self
.
use_freqs
[
i
]
,
amplitude
=
amp
)
# turn on every selected channel
# turn on every selected channel
for
channel
in
self
.
use_channels
:
for
i
in
range
(
4
):
channel
.
sw
.
on
()
if
self
.
states
[
i
]
==
True
:
self
.
all_channels
[
i
]
.
sw
.
on
()
else
:
self
.
all_channels
[
i
]
.
sw
.
off
()
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