RPC for Swabian Instruments' Time Tagger
Project description
Time Tagger RPC implementation using Pyro5.
Alpha version !
This project is in the alpha stage of the development. This means that the code successfully passed basic testing and is operational. However, some things might be broken and the API may change in the future versions.
Install
> pip install TimeTaggerRPC
Run server
Start the server on a PC with the Time Tagger connected.
> TimeTaggerRPC-server
Client example
Control Time Tagger remotely over the network.
import matplotlib.pyplot as plt
from TimeTaggerRPC import client
with client.createProxy(host='localhost', port=23000) as TT:
tagger = TT.createTimeTagger()
tagger.setTestSignal(1, True)
tagger.setTestSignal(2, True)
hist = TT.Correlation(tagger, 1, 2, binwidth=5, n_bins=2000)
hist.startFor(int(10e12), clear=True)
x = hist.getIndex()
while hist.isRunning():
plt.pause(0.1)
y = hist.getData()
plt.cla()
plt.plot(x, y)
TT.freeTimeTagger(tagger)
You can find more information about the Time Tagger API in the official documentation.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
TimeTaggerRPC-0.0.4a2.tar.gz
(312.5 kB
view hashes)
Built Distribution
Close
Hashes for TimeTaggerRPC-0.0.4a2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5909b566d7d190ce8f80b5e846e7d48d258df61231516e5ee670d242cb97d642 |
|
MD5 | 219de877a628ddafa93bcdd0096a96a1 |
|
BLAKE2b-256 | 7e13de67a76b757e65918f3e46b239b244ffe117639ae7ae07dffe9a71f36b60 |