Ignore:
Timestamp:
07/22/10 08:07:51 (14 years ago)
Author:
dneise
Message:
simple daq now opens outfiles in path given in config.txt
File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/FAD/simple_daq/simple_daq.h

    r248 r256  
    1313#define MAX_COM_SIZE 32000
    1414#define IP_ADDR_LENGTH 16
    15 //#define IP_ADDR_DEFAULT "192.33.99.225"
    16 #define IP_ADDR_DEFAULT "129.217.160.119"
    1715
    1816#define FIRST_DAQPORT 5000
     17#define SOCKETS_PER_FAD 8
    1918
    2019// Commands for FAD
     
    4342#define MAX_DACVAL 65535
    4443
     44#define CONFIG_FILE_PATH "config.txt"
     45
     46class SimpleDaqConfiguration {
     47public:
     48        char FADIPAddress[IP_ADDR_LENGTH];
     49        char outfilepath[200];
     50        char outfilename[50];
     51        char outfileext[10];
     52};
     53
    4554void cmd_send (char* Buffer, int Socket); // Send commands to socket
    4655void int_handler (int sig); // Handle signal SIGINT (CTRL-C)
    4756void exit_program (int exit_status); // Cleanup and exit
     57SimpleDaqConfiguration *getConfig (char *path, int verbose = 0);
    4858
    4959#endif /*SOCKETCLIENT_H_*/
Note: See TracChangeset for help on using the changeset viewer.