Mercurial > hg > fxanalyse
comparison FXAnalyse.c @ 89:c9e4f63c2033
Implement data acquisition through direct communication with the KK counter
author | Daniele Nicolodi <daniele.nicolodi@obspm.fr> |
---|---|
date | Thu, 21 Mar 2013 19:00:22 +0100 |
parents | 9b7588cd4013 |
children | 4102fe614df2 |
comparison
equal
deleted
inserted
replaced
88:9b7588cd4013 | 89:c9e4f63c2033 |
---|---|
32 CmtThreadFunctionID dataProviderThread; | 32 CmtThreadFunctionID dataProviderThread; |
33 | 33 |
34 // data providers | 34 // data providers |
35 int CVICALLBACK FakeDataProvider (void *functionData); | 35 int CVICALLBACK FakeDataProvider (void *functionData); |
36 int CVICALLBACK FileDataProvider (void *functionData); | 36 int CVICALLBACK FileDataProvider (void *functionData); |
37 int CVICALLBACK KKDataProvider (void *functionData); | |
37 | 38 |
38 // select which data provider to use | 39 // select which data provider to use |
39 #define DataProvider FileDataProvider | 40 #define DataProvider KKDataProvider |
40 | 41 |
41 | 42 |
42 double utc; | 43 double utc; |
43 double Ch1, Ch2, Ch3, Ch4; | 44 double Ch1, Ch2, Ch3, Ch4; |
44 double Math1, Math2, Math3, Math4, Math5; | 45 double Math1, Math2, Math3, Math4, Math5; |
535 DEFAULT_THREAD_POOL_HANDLE, dataProviderThread); | 536 DEFAULT_THREAD_POOL_HANDLE, dataProviderThread); |
536 | 537 |
537 break; | 538 break; |
538 } | 539 } |
539 return 0; | 540 return 0; |
541 } | |
542 | |
543 | |
544 void CVICALLBACK MessageCB (void *msg) | |
545 { | |
546 if (msg != NULL) | |
547 logmsg(msg); | |
540 } | 548 } |
541 | 549 |
542 | 550 |
543 void CVICALLBACK DataAvailableCB (CmtTSQHandle queueHandle, unsigned int event, | 551 void CVICALLBACK DataAvailableCB (CmtTSQHandle queueHandle, unsigned int event, |
544 int value, void *callbackData) | 552 int value, void *callbackData) |