04-25-2023 09:42 AM
Hello!
I'D like to achieve a task,which is like sample clock pulse width measurement.
!!but have a important differences!!
Here is the introduction.
As you can see:I'd like to enable counter when the gate is high,and collect total pulse width!
In my task ,gate,sample clock are both external sigals.
Thanks a lot!
Solved! Go to Solution.
04-25-2023 05:40 PM
I'm pretty sure this will be doable with your X-series 6363 device.
Configure a buffered edge counting task that counts edges of the "Tick source", which will probably be an internal timebase. Set up your timing config to use your external sample clock signal as the sample clock. And configure your external "gate" signal to act as a Pause Trigger. In LabVIEW, you'd need to use a DAQmx Trigger property node to configure pause triggering.
Given your example timing diagram, your buffer would contain the values (7,10). The edge count will be cumulative, so you'd need to do your own finite difference from the previous value to produce the result you want, (7,3).
-Kevin P
04-26-2023 03:50 AM
Thanks a lot!!
I misunderstood the meanning of Pause Trigger, which I always thought it was used for stop a task or somgthing.
well.... anyhow, your suggestion is good!
Best Regards!