Counter/Timer

cancel
Showing results for 
Search instead for 
Did you mean: 

64 bit counter

Hi,
we are using PCI 6251 card to acquire some analog signals using a digital trigger.
We are using an external 10MHz GPS clock as the reference clock.
We want to measure the absolute time for each sample based on the GPS signal.
We are thinking of using the 32 bit counter to count the edges of the 10MHz clock, but the counter wraps around in less than 0.5 secs.
Is it possible to use the second counter as an extension to the first and get a 64 bit counter.
 
Thanks
 
-Charles
 
0 Kudos
Message 1 of 7
(5,187 Views)
NI is working on a PXI GPS board that will be capable of triggering or timestamping DAQ events to GPS.  It has a direct connection for a GPS antenna or you can use it with an external GPS source.  The board will be similar to the PCI-1588, but in PXI form and it can use GPS, IRIG, a pulse-per-second signal or IEEE 1588 as a time reference.  What is the time frame for your application?

-Josh
0 Kudos
Message 2 of 7
(5,180 Views)

Hi,

  we are implementing this right now.

-Charles

0 Kudos
Message 3 of 7
(5,153 Views)
Hello crdust,

Thank you for contacting National Instruments. You can combine the two counters using property nodes so that when the first counter rolls over, it outputs a pulse to the second counter.  You then can compute the total value of the counters, effectively making a 64 bit counter.  I have found an example program that does this in our Developer Zone. I hope this helps you out, if you have any more questions feel free to post back.

Neal M.
NIC AE
www.ni.com/support
SR#: 1041677
Neal M.
Applications Engineering       National Instruments        www.ni.com/support
0 Kudos
Message 4 of 7
(5,153 Views)

Thanks Neal,

we are using LabWindows. It would be helpfull if you could provide some example for LabWindows. Is it possible to convert

the VI to Labwindows code.

 

Thanks

 

-Charles

 

0 Kudos
Message 5 of 7
(5,141 Views)
Hi again Charles,

It is not possible to convert the code from LabVIEW to CVI, however I have rewritten the example for you.  It is pretty simple, but it should give you an idea of how to accomplish what you are trying to do.  I put controls on the UIR so that you can change the device number, however you must still use counter 0 for the primary counter and counter 1 as the rollover counter.  Give this a  try and let me know how it works for you.

Neal M.
NIC AE
www.ni.com/support
Neal M.
Applications Engineering       National Instruments        www.ni.com/support
0 Kudos
Message 6 of 7
(5,126 Views)

Thanks Neal.

-Charles

0 Kudos
Message 7 of 7
(5,113 Views)