I am using "digital discovery" connected to a PC or a raspberry.
I have a trigger given by a GPS having 100 ms up and 900 ms down.
I run the here-include python program (see scriptLV) at a frequency of 5 seconds, and I get the trigger time using the function 'dwf.FDwfDigitalInStatusTime(hdwf, byref(psecUtc), byref(ptick), byref(pticksPerSecond))'.
I should have the same time at a millisecond precision, but I have a variation at each iteration and I don't understand why.
Question
Loic VINET
Hello
I am using "digital discovery" connected to a PC or a raspberry.
I have a trigger given by a GPS having 100 ms up and 900 ms down.
I run the here-include python program (see scriptLV) at a frequency of 5 seconds, and I get the trigger time using the function 'dwf.FDwfDigitalInStatusTime(hdwf, byref(psecUtc), byref(ptick), byref(pticksPerSecond))'.
I should have the same time at a millisecond precision, but I have a variation at each iteration and I don't understand why.
Time | ms
------------------------------------
2023-12-12 18:52:58 | 432.076782
2023-12-12 18:53:08 | 432.460197
2023-12-12 18:53:18 | 432.157247
2023-12-12 18:53:28 | 433.663812
2023-12-12 18:53:38 | 436.344122
2023-12-12 18:53:48 | 437.429318
2023-12-12 18:53:58 | 438.901731
2023-12-12 18:54:08 | 440.093428
2023-12-12 18:54:18 | 442.817301
2023-12-12 18:54:28 | 443.583707
What is the explanation? Is it the internal clock of the PC or the Raspberry?
Regards
scriptLV.py
Link to comment
Share on other sites
1 answer to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now