diff 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
line wrap: on
line diff
--- a/FXAnalyse.c	Thu Mar 21 18:24:45 2013 +0100
+++ b/FXAnalyse.c	Thu Mar 21 19:00:22 2013 +0100
@@ -34,9 +34,10 @@
 // data providers
 int CVICALLBACK FakeDataProvider (void *functionData);
 int CVICALLBACK FileDataProvider (void *functionData);
+int CVICALLBACK KKDataProvider (void *functionData);
 
 // select which data provider to use
-#define DataProvider FileDataProvider
+#define DataProvider KKDataProvider
 
 
 double utc;
@@ -540,6 +541,13 @@
 }
 
 
+void CVICALLBACK MessageCB (void *msg)
+{
+	if (msg != NULL)
+		logmsg(msg);
+}
+
+
 void CVICALLBACK DataAvailableCB (CmtTSQHandle queueHandle, unsigned int event,
 		int value, void *callbackData)
 {