I'm in the process of creating XML data, which have the time zeroed at the triggermoment using the data acquired using the C1:WF? ALL command.
Because the programming manual of the SDS1104X-E is very limited, I was glad to find the following:
http://cdn.teledynelecroy.com/files/manuals/wa1k2k_remote-control_manual.pdfHowever I cannot find the exact starting time in such a way that it will be 0 when it reaches the trigger moment. It seems to be exactly 5 us (5E-06) off.
The calculation I use for the starting time is the following:
Time:= HOffset - NumberOfPoints * TimePerSample * 0.5
Which essentially says that there's 50% pre trigger points and 50% after trigger points. Which can be shifted using a trigger delay.
Using the manual though which states:
<180> HORIZ_OFFSET: double ; trigger offset for the first sweep of the trigger, seconds between the trigger and the first data point
I should use only that value. But that value contains the trigger delay set in the user interface. Apparently Siglent choose to use this field in another way.
But the question for me is now where could this mismatching 5 us come from? Is the pretrigger time always 5 us longer?