w w w . u q d e v i c e s . c o m
L o g i c 1 6 U s e r M a n u a l
| 47
UseTimetagGate(
bool
use)
This function switches edge sensitive gating on or off.
Syntax:
C#
myTagger.UseTimetagGate(
bool
use)
C++
timetag.UseTimetagGate(
bool
use)
SetGateWidth(
int
duration)
This function sets the width of the gate. The parameter duration is given in internal units.
Syntax:
C#
myTagger.SetGateWidth(
int
duration)
C++
timetag.SetGateWidth(
int
duration)
Save to file
The software interface offers a high performance interface to save data to disk. The data is saved in a
compressed, binary format and can be converted to ASCII offline. This way the full rate of 11 MHz can be
saved to disk on a modern computer.
It is best explained by an example:
Saving:
TTInterface tti= new TTInterface();
tti.Open()
TimeTagReader r= tti.GetReader();
r.StartSaving(“rawdatafile.tt”);
//Wait some time
//Monitor r.SavedTags when you like
r.StopSaving();
tti.Close();
Converting
TTInterface tti= new TTInterface();
TimeTagReader r= tti.GetReader();
r.StartConverting(“rawdatafile.tt”, “tags.txt”);
r.WaitUntilConversionFinished();
For converting you don’t have to call Open() and you don’t even have to have a unit connected.
Of course you can do the conversion right after StopSaving().