06-17-2025 07:10 AM
I am doing an random non-uniform signal acquisition and i need timestamp for when every rising edge occurs ? Any idea how to do that I am using PCI-e-661
06-18-2025 06:55 AM
There are two ways:
06-18-2025 06:36 PM - edited 06-18-2025 06:37 PM
A third way:
3. Use "Implicit Timing" to do a buffered period measurement task, sensitive to rising edges. On your device, the first rising edge will represent relative time=0. The first period measurement happens at the second rising edge.
For N rising edges, you will capture N-1 periods. Your relative timestamps for those periods are just a cumulative sum of all the periods. And you also know that by definition of how the hardware works, the first rising edge occurred at relative time = 0.
If you want a full time-of-day timestamp, the best you can do is query the time-of-day immediately after the first period measurement. Then subtract off the first period to establish the absolute time at the first rising edge. Here's an incomplete illustration of what I mean using a Finite acquisition for simplicity:
- Kevin P
06-25-2025 03:49 AM
Thankyou for your reply, i am using implicit timing function only . But i want to do Edge counting (with timestamp of each edge ) not period measurement. how can i achieve that?
06-25-2025 08:11 AM
Exactly like I showed. Did you try the code? It produces an array of timestamps, one for each edge. The size of the array is your total count of edges.
Period measurement isn't the destination, but it *is* the path that gets you there.
-Kevin P