11-06-2019 08:57 AM
Hello,
I am running 'vi's that takes timestamps between two chassis running at the same frequency. I have the 10MHz backplane of one being sent to the other via a timing module to synchronize. I have a trigger from a third chassis that is sent to both to take a timestamp (it is length matched to both).
When I compare multiple timestamps between them, for some reason, I'll occasionally get a drift of a consistent nanosecond amount (52ns). Other times it'll be exact (0 time difference). Does anyone know what could be causing this behavior as well as how to fix this?
Thank you
Solved! Go to Solution.
11-06-2019 09:18 AM - edited 11-06-2019 09:18 AM
Maybe Windows is NOT a Real Time Operating System?
11-06-2019 09:24 AM - edited 11-06-2019 09:46 AM
I dont think thats the cause? Wouldn't that cause more than just occasional ~50 ns second delays? Wouldn't that be on the microsecond scale?
Also, we're not having it interact with Windows at all. We're having the cables go to the 6674T (one to the backplane to synchronize and the other to the flexRio). (The FlexRio takes the timestamp via an ETI before sending it to the vi, not the windows OS).
11-06-2019 10:01 AM
10 Mhz backplane clock and 52ns difference? Sounds like a perfect half phase shift, so the trigger polarity may have been setup wrong on one side or there maybe some unintended clock inversion somehow.
11-06-2019 10:03 AM
interesting. I will delve down deeper into this. What throws a wrench in this/complicates this is that its not constant. It occurs at certain times/luck of the draw of when I take timestamps.
11-06-2019 10:04 AM
Just guessing, this is @kevin_price territory.
mcduff
11-06-2019 10:07 AM
@bchang32 wrote:
interesting. I will delve down deeper into this. What throws a wrench in this/complicates this is that its not constant. It occurs at certain times/luck of the draw of when I take timestamps.
That would indicate more into what mcduff mentions. Degraded/deformed clock signals that may tickle the synchronization circuitry in a wrong way.
11-13-2019 12:31 PM
Update: turns out it was the cable length. I was told that having mismatched cables was only picosecond delay, but dielectrics matter a lot. The rule of thumb is apparently 6 inches is 1 ns.
11-13-2019 01:05 PM - edited 11-13-2019 01:11 PM
Not sure where you got the picoseconds. 6” in 1ns is 150000 km per second which is half the light speed. Electron signals don’t move much faster than that in any conductive material. Electrons itself move even slower.
If you want < 10 ps delay difference line length need the be at most 1mm different and same impedance!
11-13-2019 01:13 PM
The picosecond was just someone going off their head. We got the 6"/ns from https://www.edn.com/electronics-blogs/all-aboard-/4426188/Rule-of-Thumb--3-Signal-speed-on-an-interc... which seemed more accurate (granted what was the most important factor was the dielectrics).
Yup, we get a negligible delay with our new setup of length matched cables. We're at 200MHz so we only have 5 ns resolution anyway.