Counter/Timer

cancel
Showing results for 
Search instead for 
Did you mean: 

[PCIE-6363]How can I perfome a sample clock edge count task with a gate?

Solved!
Go to solution

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.

65216_0-1682433585686.png

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!

 

 

0 Kudos
Message 1 of 3
(1,691 Views)
Solution
Accepted by topic author 65216

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

ALERT! LabVIEW's subscription-only policy came to an end (finally!). Unfortunately, pricing favors the captured and committed over new adopters -- so tread carefully.
Message 2 of 3
(1,671 Views)

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!

0 Kudos
Message 3 of 3
(1,640 Views)