Dear Labview-Experts,
I am currently struggling with generating a PPS-triggered reference clock for synchronizing different processes in a wind lidar system that I am currently developing.
Principally, my goal is trivial, but I could unfortunately find no possibility to reach it.
For the PXIe chassis, I use the 10 MHz ref_clk of the OCXO on-board the NI-6614. Now, I want to use a counter to generate a 100 kHz pulse train triggered by the PPS signal a GPS module (Septentrio PolarRx2e).
The code I am currently using looks as follows:
The frequency of the pulse train is set to 100 kHz.
When I now set the number of finite pulses to be also 100 kHz, I run into a problem that I cannot solve. As the pulse train is not finshed (by a few ns) until the next PPS signal apears, it is not re-triggering the pulse train.
When I set the number of pulses to be 99999, it is working as it should (blue line = PPS, white line = pulse train):
However, in this case, I am missing 1/100000 counts, which I want to avoid.
Do I have a logic-error in my thinking? Is there any easy work-arround for my problem?
I am happy for any suggestion that I can try and appreciate any reply.
Thanks a lot in advance and best regards,
Benjamin