<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>API &amp; Measurements on Swabian Instruments</title><link>https://www.swabianinstruments.com/zh/knowledge/base/api--measurements/</link><description>Recent content in API &amp; Measurements on Swabian Instruments</description><generator>Hugo</generator><language>zh</language><lastBuildDate>Tue, 20 Aug 2024 00:00:00 +0000</lastBuildDate><atom:link href="https://www.swabianinstruments.com/zh/knowledge/base/api--measurements/index.xml" rel="self" type="application/rss+xml"/><item><title>Analyzing Timestamps from Other Time Tagger Devices</title><link>https://www.swabianinstruments.com/zh/knowledge/base/api--measurements/analyzing-timestamps-from-other-time-tagger-devices/</link><pubDate>Tue, 20 Aug 2024 00:00:00 +0000</pubDate><guid>https://www.swabianinstruments.com/zh/knowledge/base/api--measurements/analyzing-timestamps-from-other-time-tagger-devices/</guid><description>&lt;p>Our software is specifically designed to work with Swabian Instruments&amp;rsquo; Time Tagger products.
The Time Tagger Virtual, for instance, uses ttbin files as its data source.
These time-tag dump files are generated exclusively by our Time Tagger hardware.&lt;/p>
&lt;p>We dedicate significant effort to optimizing the performance of our measurement classes, ensuring exceptional speed and efficiency.
This unique level of optimization sets our products apart from the competition.
As a result, our software is not compatible with third-party Time Tagger devices,
and we do not provide access to the corresponding source code.&lt;/p></description></item><item><title>Choosing an Appropriate Bin Width for Histograms</title><link>https://www.swabianinstruments.com/zh/knowledge/base/api--measurements/choosing-an-appropriate-bin-width-for-histograms/</link><pubDate>Tue, 20 Aug 2024 00:00:00 +0000</pubDate><guid>https://www.swabianinstruments.com/zh/knowledge/base/api--measurements/choosing-an-appropriate-bin-width-for-histograms/</guid><description>&lt;p>With our Time Tagger you can choose any binwidth in the range from 1 ps to more than a day.
The entire range is adjustable with one picosecond resolution.
In addition to the number of bins, this setting determines the maximum time difference that you measure.
This flexibility allows you to choose a proper binwidth purely based on the requirements of your experiment.&lt;/p>
&lt;p>The following questions may help you identify and decide on the optimal bin width value for your measurement:&lt;/p></description></item><item><title>Exporting Data and Saving Plots</title><link>https://www.swabianinstruments.com/zh/knowledge/base/api--measurements/exporting-data-and-saving-plots/</link><pubDate>Tue, 20 Aug 2024 00:00:00 +0000</pubDate><guid>https://www.swabianinstruments.com/zh/knowledge/base/api--measurements/exporting-data-and-saving-plots/</guid><description>&lt;h4>1. Do you need to save raw data into a text file, for instance, to perform custom analyses? &lt;/h4>
&lt;p>If so, you need to use the measurement class
&lt;a href="https://www.swabianinstruments.com/static/documentation/TimeTagger/api/Measurements.html#timetagstream"> TimeTagStream&lt;/a>,
get the data using &lt;a href="https://www.swabianinstruments.com/static/documentation/TimeTagger/api/Measurements.html#TimeTagStream.getData"> getData()&lt;/a>
and save them, for instance, using savetxt from numpy library (&lt;a href="https://numpy.org/doc/stable/reference/generated/numpy.savetxt.html">numpy.savetxt&lt;/a>),
similarly to what shown in Question 3. Alternatively, you can use the measurement class
&lt;a href="https://www.swabianinstruments.com/static/documentation/TimeTagger/api/Measurements.html#filewriter"> FileWriter&lt;/a>
to store the raw data into a ttbin file.
To save time tags as text from these files, please see the attached Python code at the end of the document.&lt;/p></description></item><item><title>Maximum Time Span Window for Measurements</title><link>https://www.swabianinstruments.com/zh/knowledge/base/api--measurements/maximum-time-span-window-for-measurements/</link><pubDate>Tue, 20 Aug 2024 00:00:00 +0000</pubDate><guid>https://www.swabianinstruments.com/zh/knowledge/base/api--measurements/maximum-time-span-window-for-measurements/</guid><description>&lt;p>Time tags are represented as 64-bit integers in picoseconds;
therefore the maximum time window of a measurement is approximately 107 days in both directions.
However, the measurement accuracy for larger time intervals requires a correspondingly accurate as well as stable clock signal.&lt;/p>
&lt;p>The internal clock of our &lt;em>Time Tagger 20&lt;/em> has a clock sufficiently stable to achieve jitter-limited measurements of time intervals up to about 100 ns,
whereas with our &lt;em>Time Tagger Ultra&lt;/em> and &lt;em>Time Tagger X&lt;/em>, the internal clock is sufficiently stable to achieve measurements with a time span of up to 1-10 ms.
Our Time Taggers can certainly measure larger time intervals, but users should expect increased time uncertainty beyond these referenced limits.
For precise measurements over very long time intervals, users can introduce an external clock source with our &lt;em>Time Tagger Ultra&lt;/em> or &lt;em>Time Tagger X&lt;/em>.&lt;/p></description></item><item><title>Measuring the Average Count Rate</title><link>https://www.swabianinstruments.com/zh/knowledge/base/api--measurements/measuring-the-average-count-rate/</link><pubDate>Tue, 20 Aug 2024 00:00:00 +0000</pubDate><guid>https://www.swabianinstruments.com/zh/knowledge/base/api--measurements/measuring-the-average-count-rate/</guid><description>&lt;p>Time Tagger provides a &lt;a href="https://www.swabianinstruments.com/static/documentation/TimeTagger/api/Measurements.html#countrate"> Countrate &lt;/a>
measurement class that allows for the measurement of average count rate.
The averaging can be done over infinite time (as long as measurement runs) and over precisely defined averaging duration.&lt;/p>
&lt;p>Below is the Python code that shows how to perform average countrate measurement over infinite and well-defined durations.&lt;/p>
&lt;h2> Time Tagger connection &lt;/h2>
&lt;pre style="background-color: #f4f4f4; padding: 0; margin: 0; border-left: 4px solid #016699; line-height: 1.4;">
&lt;code style="display: block; padding: 0em 1em; margin: 0;">
from time import sleep
import TimeTagger

# Create a TimeTagger instance to control your hardware
tagger = TimeTagger.createTimeTagger()

channels = [1, 2]

# This enables internal test signals for demo purposes.
# Comment the following line if you want to try this with an external signals
tagger.setTestSignal(channels, True)
&lt;/code>
&lt;/pre>
&lt;p>
&lt;h3> Infinite average &lt;/h3>
&lt;p>Measure the Countrate over the whole run time:&lt;/p></description></item><item><title>Single vs. Multiple Start/Stop in Time Histograms</title><link>https://www.swabianinstruments.com/zh/knowledge/base/api--measurements/single-vs.-multiple-start-stop-in-time-histograms/</link><pubDate>Tue, 20 Aug 2024 00:00:00 +0000</pubDate><guid>https://www.swabianinstruments.com/zh/knowledge/base/api--measurements/single-vs.-multiple-start-stop-in-time-histograms/</guid><description>&lt;p>
A measurement is of single start / single stop type when only time differences between
each stop and the preceding start click are considered and accumulated into the histogram.
On the other hand, multiple start / multiple stop analyses consider time differences between
all start and all stop clicks, provided these differences fall within the measurement time span.
&lt;/p>
&lt;table class="table table-bordered">
 &lt;tr>
 &lt;td>&lt;strong>Time Histograms&lt;/strong>&lt;/td>
 &lt;td>&lt;strong>Unidirectional (stop after start)&lt;/strong>&lt;/td>
 &lt;td>&lt;strong>Bidirectional&lt;/strong>&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td>&lt;strong>Single start / single stop&lt;/strong>&lt;/td>
 &lt;td>&lt;a href="https://www.swabianinstruments.com/static/documentation/TimeTagger/api/Measurements.html#startstop"> StartStop&lt;/a>,
 &lt;a href="https://www.swabianinstruments.com/static/documentation/TimeTagger/api/Measurements.html#histogram2d"> Histogram2D&lt;/a>,
 &lt;a href="https://www.swabianinstruments.com/static/documentation/TimeTagger/api/Measurements.html#histogramnd"> HistogramND&lt;/a>&lt;/td>
 &lt;td>&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td>&lt;strong>Multiple start / multiple stop&lt;/strong>&lt;/td>
 &lt;td>&lt;a href="https://www.swabianinstruments.com/static/documentation/TimeTagger/api/Measurements.html#histogram"> Histogram&lt;/a>,
 &lt;a href="https://www.swabianinstruments.com/static/documentation/TimeTagger/api/Measurements.html#histogramlogbins"> HistogramLogBins&lt;/a>,
 &lt;a href="https://www.swabianinstruments.com/static/documentation/TimeTagger/api/Measurements.html#timedifferences"> TimeDifferences&lt;/a>, 
 &lt;a href="https://www.swabianinstruments.com/static/documentation/TimeTagger/api/Measurements.html#timedifferencesnd"> TimeDifferencesND&lt;/a>&lt;/td>
 &lt;td>&lt;a href="https://www.swabianinstruments.com/static/documentation/TimeTagger/api/Measurements.html#timedifferences"> Correlation&lt;/a>&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td>&lt;strong>Single start / multiple stop&lt;/strong>&lt;/td>
 &lt;td>&lt;a href="https://github.com/swabianinstruments/Time-Tagger-Custom-Measurements/tree/main/python/Histogram2DMultipleStop"> Hist2D_single_start_multiple_stop.py&lt;/a>&lt;/td>
 &lt;td>&lt;/td>
 &lt;/tr>
&lt;/table></description></item><item><title>Using the Same Channel in Multiple Measurements</title><link>https://www.swabianinstruments.com/zh/knowledge/base/api--measurements/using-the-same-channel-in-multiple-measurements/</link><pubDate>Tue, 20 Aug 2024 00:00:00 +0000</pubDate><guid>https://www.swabianinstruments.com/zh/knowledge/base/api--measurements/using-the-same-channel-in-multiple-measurements/</guid><description>&lt;p>Our API allows multiple measurement objects to access the same time tag stream simultaneously.
Each measurement runs in its own thread, sharing the same event information.
The number of measurements you can create is limited only by your CPU&amp;rsquo;s performance (clock speed, cores) and available memory.&lt;/p>
&lt;p>For example, in our trade fair demonstrations, we successfully run about 10 simultaneous measurements on a Microsoft Surface tablet PC.
Naturally, the required processing power also depends on the event rate on the physical channels.&lt;/p></description></item></channel></rss>