Measurement Studio for VB6

cancel
Showing results for 
Search instead for 
Did you mean: 

Time Stamp accuracy with Measurement Studio

Hello,
i am using a PCi-6033E series board to log data simultaneously from 8 analog input channels. Following a suggestion from Elton Wells, I am using the Win32 function "GetLocalTime" to obtain a time stamp for the logged samples. I am calling this function at the beginning of the "Acquire_data" subroutine. The scanrate is set to 2000 samples/sec and the No of scans to 100. With these settings, I would expect that the difference in time between any two subsequent samples should be 50 milliseconds. However, by examining the logged time stamps i have found out that the difference is sometimes 0 milliseconds, sometimes 50 milliseconds and sometimes 60 milliseconds as shown below. What is wrong? Does this happen because the multi
channel acquisition is performed through multiplexing on a PCI-6033E board?



Time Stamp Ch.1 Ch2. Ch.3
=================================
7:55:16:710 50.01 121.51 1.85
7:55:16:710 50.00 121.10 1.08
7:55:16:760 50.01 121.06 1.42
7:55:16:820 50.01 121.44 1.82
7:55:16:870 50.00 120.96 1.10
7:55:16:930 50.01 120.93 1.38
7:55:16:980 50.01 121.62 1.85
7:55:17:40 50.00 121.05 1.13
7:55:17:90 50.01 120.85 1.41
7:55:17:150 50.01 121.51 1.72
7:55:17:150 50.00 120.98 1.24
7:55:17:200 50.00 120.94 1.31
7:55:17:260 50.01 121.54 1.70
7:55:17:310 50.00 121.27 1.44
7:55:17:370 50.01 120.90 1.33
0 Kudos
Message 1 of 2
(3,157 Views)
Hi,

GetLocalTime returns the system time, it does not return the time data were sampled. The board clock is independent of the system clock. If the system is handling other tasks, it might take more time to get the other data points; sometimes it reads points almost at the same time. You can notice that the points who have the same time stamp, have different values.

Regards,
RamziH.
0 Kudos
Message 2 of 2
(3,157 Views)