Ok, I
think get it :lol: What you need to do is adjust
samp's value to obtain a delay of >20ns on *your* computer, and preferably quite a bit more than 20ns to make it a bit more reliable, keeping in mind that, from the text :
When the sample value is increased, the number of points on the input signal decreases and therefore the accuracy decreases.
If it does indeed work like I described above, the overall design is pretty so-so to say the least. Any kind of process that launches on your computer (antivirus scan, document printing, windows update, etc...) might throw off the readings. Also, the
samp value that gives you a decent sampling time today might not work anymore next month, and you'll have to recompile the code with an adjusted value, or at least modify the code so that
samp can be adjusted by the software user...
It's still a nice project in my humble opinion, one that I'm keeping on my computer for now, that I might build in the near future