#ifndef CONSTANTS_H #define CONSTANTS_H #define COLUMNLENGTH (65536/2) // The maximum length of arrays to store the data. #define MAXPOINTS (65536/4) // The maximum number of points that can be received per update per channel. #define PORT 5000 // The port client will be connecting to. #define HDDPORT 5001 // The port the GUI will connect to for starting and stopping HDD recording. #define HEADERLENGTH 5 // Length of the header information in 4 byte groups. #define MAXLOGFILESIZE 50000 // Number of lines in each log file. #define MAXCHANNEL 8 // Constants that may need to be changed. #define TRACELENGTH 100 // The maximum number of traces that will be stored. Limit to 100 traces per 1 GB RAM. // Version numbers. #define MAJOR_VERSION 2 #define MEDIUM_VERSION 3 #define MINOR_VERSION 24 #define RC_VERSION 0 // Set to 0 if not a release candidate. // Paths to main folders on slices. #define PATH_DAQ "/lprojects/mcords/daq" #define PATH_WFG "/lprojects/mcords/wfg" #define PATH_SER "/lprojects/mcords/servers" #define PATH_MCORDS "/lprojects/mcords" // Paths to local folders to store files. #define PATH_OUTPUT "output/" #define PATH_R_CONFIG "radar_configs/" enum{ NORMAL = 200, DEBUG = 201, CLIENT = 202, CMD = 203 }; // For the activity logs. enum{ GENERALP = 301, DDSP = 302, PULSEP = 303, ATTENTP = 304 }; // For radar configuration waveform parameters. struct ProcParams { double f0; double f1; double tau; int rCount; double pLength; double sFrequency; }; #endif // CONSTANTS_H