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
fcbb248b
Commit
fcbb248b
authored
May 31, 2021
by
Martin Drechsler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
agrego archivo de contar pulsos a la carpeta correspondiente, para probar git
parent
29b7b532
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
39 additions
and
0 deletions
+39
-0
contar_pulsos_gittest.py
...q_master/repository/Examples/TTL/contar_pulsos_gittest.py
+39
-0
No files found.
artiq_master/repository/Examples/TTL/contar_pulsos_gittest.py
0 → 100644
View file @
fcbb248b
from
artiq.experiment
import
*
class
TTLOUT
(
EnvExperiment
):
""" test de conteo
"""
def
build
(
self
):
# Busco en el archivo device_db.py estos 'componentes', y los traigo como
# partes del constructor este.
self
.
setattr_device
(
"core"
)
self
.
setattr_device
(
"ttl4"
)
self
.
setattr_device
(
"ttl0"
)
@
kernel
def
run
(
self
):
self
.
core
.
reset
()
self
.
ttl4
.
output
()
self
.
ttl0
.
input
()
delay
(
100
*
ms
)
self
.
ttl4
.
on
()
delay
(
1
*
s
)
# pulsos_base=self.ttl0.count(now_mu())
# delay(3*ms)
# datos=[]
# for _ in range(1, 10):
#hasta_aca=self.ttl0.gate_both(3*us)
pulsos
=
self
.
ttl0
.
count
(
self
.
ttl0
.
gate_both
(
3
*
us
))
# datos=datos+[pulsos]
delay
(
3
*
ms
)
self
.
ttl4
.
off
()
delay
(
1
*
s
)
print
(
pulsos
)
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