Counter/Timer

cancel
Showing results for 
Search instead for 
Did you mean: 

Pad Synchronisation-how do I use this feture?

How do I use this feture?I measure both period and pulse width of a signal in a continnous way(buffered mode) and when I read the buffers at a moment, the length is not the same,which involves that is no correspondence between the value of a specified index of the buffers.Can be solved this problem with Pad Synchronisation?Thanks!
0 Kudos
Message 1 of 4
(3,922 Views)

Hi Dany,

Pad synchronization forces a trigger to arrive at two different counters at the same time. You can enable it by placing a DAQmx Channel Property Node and selecting Counter Input >> Count Edges >> Digital Synchronizatioin >> Enable. In DAQmx this feature is known as Digital Synchronization instead of Pad Synchronization.

Hope this helps!

Abhinav T.
Applications Engineering
National Instruments India

LabVIEW Introduction Course - Six Hours
Getting Started with NI-DAQmx
Measurement Fundamentals
0 Kudos
Message 2 of 4
(3,910 Views)

Thanks Abhinav!

I'm doing an application in VisualC useing the PCI 6602 board.From what you said i think i have to use " ND_COUNTING_SYNCHRONOUS: GPCTR_Change_Parameter" and set a common imput for the gate of the two counters,am I right?

0 Kudos
Message 3 of 4
(3,906 Views)

Hello. 

Pad Synchronization forces a signal to arrive at different counters synchronously.  You need to use Pad Synchronization when sharing an external signal between several counters (e.g. triggering multiple counters, gating multiple counters).

To enable Pad Synchronization in the Traditional NI-DAQ C API:
Use the Line_Change_Attribute function with parameters listed below:
Line_Change_Attribute (iDevice, ulLineNum, ND_LINE_FILTER, ND_SYNCHRONIZATION

I would try this if you current idea is unsuccessful.  Keep us posted!

Brian F
Applications Engineer
National Instruments

 

0 Kudos
Message 4 of 4
(3,896 Views)