Details | Last modification | View Log | RSS feed
| Rev | Author | Line No. | Line | 
|---|---|---|---|
| 145 | f9daq | 1 | #ifndef _daq_h_ | 
        
| 2 | #define _daq_h_ | 
        ||
| 3 | |||
| 4 | #define BUFF_L 2048 | 
        ||
| 5 | |||
| 6 | // Number of channels we are using (used only if we run daqusb.C, not the GUI version) | 
        ||
| 7 | //#define NTDC 1        /* TDC */  | 
        ||
| 8 | //#define NTDCCH 1 | 
        ||
| 9 | //#define NADC 2        /* ADC */  | 
        ||
| 10 | //#define NADCCH 1 | 
        ||
| 11 | |||
| 12 | // Class for measurement process (DAQ for CAMAC) | 
        ||
| 13 | class daq | 
        ||
| 14 | { | 
        ||
| 15 | private:  | 
        ||
| 16 | // Number of channels we are using | 
        ||
| 17 | int NTDC;  | 
        ||
| 18 | int NTDCCH;  | 
        ||
| 19 | int NADC;  | 
        ||
| 20 | int NADCCH;  | 
        ||
| 21 | |||
| 22 | int devDetect; // variable to tell if we detect any devices  | 
        ||
| 23 | public:  | 
        ||
| 24 | unsigned long stackwrite[BUFF_L],stackdata[10000],stackdump[27000];  | 
        ||
| 25 | int fStop;  | 
        ||
| 26 | int connect();  | 
        ||
| 27 | int init(int);  | 
        ||
| 28 | int start();  | 
        ||
| 29 | int event(unsigned int *, int);  | 
        ||
| 30 | int stop();  | 
        ||
| 31 | int disconnect();  | 
        ||
| 32 | daq();  | 
        ||
| 33 | ~daq();  | 
        ||
| 34 | };  | 
        ||
| 35 | |||
| 36 | #endif |