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
931683cd
Commit
931683cd
authored
May 27, 2021
by
Martin Drechsler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
arreglo amplitud de script urukul
parent
b0bf472e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
urukul_outputs.py
artiq_master/repository/urukul_outputs.py
+3
-3
No files found.
artiq_master/repository/urukul_outputs.py
View file @
931683cd
...
...
@@ -26,7 +26,7 @@ class Set_All_Urukul_Freqs(EnvExperiment):
f
"canal_{ch}"
)
# each channel's amplitude
self
.
setattr_argument
(
f
"amp_ch{ch}"
,
NumberValue
(
1.
,
min
=
0.
,
max
=
1.
),
NumberValue
(
0.5
,
min
=
0.
,
max
=
1.
),
f
"canal_{ch}"
)
self
.
all_amps
=
[
self
.
amp_ch0
,
self
.
amp_ch1
,
self
.
amp_ch2
,
self
.
amp_ch3
]
...
...
@@ -61,8 +61,8 @@ class Set_All_Urukul_Freqs(EnvExperiment):
# frequency and amplitude variables to each
# urukul channel outputting function
self
.
use_channels
[
i
]
.
set_att
(
self
.
attenuation
)
self
.
use_channels
[
i
]
.
set_amplitude
(
self
.
use_amps
[
i
])
self
.
use_channels
[
i
]
.
set
(
self
.
use_freqs
[
i
])
#
self.use_channels[i].set_amplitude(self.use_amps[i])
self
.
use_channels
[
i
]
.
set
(
self
.
use_freqs
[
i
]
,
amplitude
=
self
.
use_amps
[
i
]
)
# turn on every selected channel
for
i
in
range
(
4
):
...
...
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