Mercurial > hg > fxanalyse
view data-provider.h @ 254:67c8ace9d5f6
Save time strings in UTC time and rotate datafiles at midnight UTC
Time strings '05/06/2015 00:00:00.014' in datafiles were reported in
Paris local time and the data files were rotated at midnight Paris
time. Switch to use UTC time for both.
author | Daniele Nicolodi <daniele@grinta.net> |
---|---|
date | Fri, 05 Jun 2015 18:06:12 +0200 |
parents | ec81395bf08d |
children |
line wrap: on
line source
#ifndef __DATA_PROVIDER_H__ #define __DATA_PROVIDER_H__ #include "future.h" /* data acquisition flag */ extern int acquiring; /* data queue */ extern CmtTSQHandle dataQueue; /* number of data channels */ #define NCHAN 8 /* data acquisition event */ struct event { struct timeval time; double data[NCHAN]; }; /* send messages to the main thread */ void send_message(int threadid, const char *frmt, ...); /* data providers */ int CVICALLBACK FakeDataProvider (void *functionData); int CVICALLBACK FileDataProvider (void *functionData); int CVICALLBACK KKDataProvider (void *functionData); #endif