Mercurial > hg > fxanalyse
comparison FXAnalyse.c @ 121:f48e8ff21f0f
Update Sr data logger IP address
author | Daniele Nicolodi <daniele.nicolodi@obspm.fr> |
---|---|
date | Thu, 12 Dec 2013 16:26:20 +0100 |
parents | f9fb17fb64cc |
children | bdd3ec3c212e |
comparison
equal
deleted
inserted
replaced
120:84fb0796936b | 121:f48e8ff21f0f |
---|---|
13 #include "Allan.h" | 13 #include "Allan.h" |
14 #include "DDS4xAD9912.h" | 14 #include "DDS4xAD9912.h" |
15 #include "DDS_Fox.h" | 15 #include "DDS_Fox.h" |
16 #include "muParserDLL.h" | 16 #include "muParserDLL.h" |
17 | 17 |
18 #define SR_LOGGER_IP "145.238.204.91" | |
18 #define DATAFOLDER "Z:\\Measures-2013" | 19 #define DATAFOLDER "Z:\\Measures-2013" |
19 | 20 |
20 #define DEDRIFT_DDS_FREQUENCY 70000000.0 | 21 #define DEDRIFT_DDS_FREQUENCY 70000000.0 |
21 #define FREP_STEP_SIZE 50000.0 | 22 #define FREP_STEP_SIZE 50000.0 |
22 | 23 |
226 static unsigned int handle = 0; | 227 static unsigned int handle = 0; |
227 char buffer[1024]; | 228 char buffer[1024]; |
228 | 229 |
229 // try to connect and quit if unsuccessfull | 230 // try to connect and quit if unsuccessfull |
230 if (handle == 0) { | 231 if (handle == 0) { |
231 if (ConnectToTCPServer(&handle, 3491, "145.238.204.146", NULL, NULL, 1) < 0) { | 232 if (ConnectToTCPServer(&handle, 3491, SR_LOGGER_IP, NULL, NULL, 1) < 0) { |
232 logmsg("Sr data logger connection error"); | 233 logmsg("Sr data logger connection error"); |
233 return -1; | 234 return -1; |
234 } | 235 } |
235 logmsg("connected to Sr data logger"); | 236 logmsg("connected to Sr data logger"); |
236 } | 237 } |