Comments (11)
As I recall, that broke with a large L, similarly to issue #49. Is that still happening?
from artiq.
I've updated the code to use modern ARTIQ:
from artiq import *
class LED(EnvExperiment):
def build(self):
self.setattr_device("core")
self.setattr_device("ttl0")
self.setattr_device("pmt1")
def process(self, buf):
print(buf)
@kernel
def run(self):
L = 20000
buf = [int(0, width=64) for _ in range(L)]
self.pmt1.gate_rising(1000*ms)
count = 0
for i in range(20000):
t = self.pmt1.timestamp_mu()
if t > 0:
count += 1
buf[i] = t
print(count)
self.process(buf)
It successfully outputs a long sequence of [-1]s with L<=20000, and raises an RTIOUnderflow with Ls>=30000. Is that the expected behavior?
from artiq.
No, -1 means no rising edges were detected - did you connect the 1MHz generator?
from artiq.
No, I have no idea what to connect, and also I'm not in the lab...
from artiq.
I tried to add a TTLClockGen on 19th channel, still no effect:
from artiq import *
class LED(EnvExperiment):
def build(self):
self.setattr_device("core")
self.setattr_device("ttl0")
self.setattr_device("ttl_sma")
self.setattr_device("ttl_clock")
def process(self, buf):
print(buf)
@kernel
def run(self):
L = 20000
buf = [int(0, width=64) for _ in range(L)]
self.ttl_sma.gate_rising(1000*ms)
self.ttl_clock.set_mu(1000)
count = 0
for i in range(20000):
t = self.ttl_sma.timestamp_mu()
if t > 0:
count += 1
buf[i] = t
print(count)
self.process(buf)
from artiq.
The 10MHz clock on SMA I'm talking about is built into the gateware and driven here:
https://github.com/m-labs/artiq/blob/master/artiq/gateware/targets/kc705.py#L37
The SMA TTL is here:
https://github.com/m-labs/artiq/blob/master/artiq/gateware/targets/kc705.py#L168
The clock generator on channel 19 is a different pin (it's on the FMC and relatively hard to connect), and it won't feed into the SMA TTL unless you connect it physically.
from artiq.
@sbourdeauducq, so would you test this?
from artiq.
Affected by a similar problem as #228 now...
from artiq.
#228 was fixed, does this work now?
from artiq.
I'm pretty sure this works, but I'd be paranoid and test it anyway.
from artiq.
Works but timestamps are affected by #286.
from artiq.
Related Issues (20)
- LMDB databases break single argument XY Plot Applet HOT 1
- `nix develop` doesn't allow building firmware without git repo HOT 2
- `openocd-unstable-2021-09-15` not reproducible from source
- Minor issues/suggestions on `flake.nix` and `.gitignore` HOT 2
- Unexpected Sequence Error in ARTIQ 8 HOT 4
- Restore Urukul Switch TTL MonInj HOT 5
- make SED spreading optional and configurable in flash settings
- Coremgmt support for satellites HOT 1
- Urukuls in 1-EEM and 2-EEM modes cannot be used together HOT 3
- scipy missing in MSYS2 HOT 3
- fix qt6 applet embedding on Wayland HOT 5
- Dashboard cannot connect with remote moninj and coreanalyzer proxy HOT 5
- No Qt6 support in conda
- Firmware panic in network code HOT 19
- Incorrect usage of CDC primitives HOT 2
- Cannot use results filestructure outside of `set_dataset` HOT 3
- switch to platformdirs
- Improve scheduling by interleaving setup and teardown of an experiment HOT 7
- ARTIQ 8->9 in GUI watermark HOT 2
- Release-7: I2C comms failure with Si5324 on Kasli v1.1 HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from artiq.