Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

accurate timestamp

I need a timestamp on my aquired data which is more accurate than the PC clock
(I need about 1msec).
Who knows a solution?
Has anybody tried to decode IRIG with a Natinst DAQ card?

-Lothar
0 Kudos
Message 1 of 2
(1,858 Views)
Use The Following In VB, Or The Equiv. In V.C.
**********************************************************************

Declare Function QueryPerformanceCounter Lib "Kernel32" (X As Currency) As
Boolean
Declare Function QueryPerformanceFrequency Lib "Kernel32" (X As Currency) As
Boolean
Declare Function GetTickCount Lib "Kernel32" () As Long
Declare Function timeGetTime Lib "winmm.dll" () As Long

Dim ClockFrequency As Currency
Dim ClockStart As Currency, ClockEnd As Currency, Offset

Function CkTime()
QueryPerformanceFrequency ClockFrequency
QueryPerformanceCounter ClockStart
QueryPerformanceCounter ClockEnd
Offset = ClockEnd - ClockStart
CkTime = (ClockEnd - Offset) / ClockFrequency
End Function

*****************************************************
********************
Lothar Reichertz wrote in message
news:38db88d5@newsgroups.ni.com...
>
> I need a timestamp on my aquired data which is more accurate than the PC
clock
> (I need about 1msec).
> Who knows a solution?
> Has anybody tried to decode IRIG with a Natinst DAQ card?
>
> -Lothar
0 Kudos
Message 2 of 2
(1,858 Views)