#include <stdio.h>
#include <stdint.h>
#include <string.h>
#include <unistd.h>
#include "mcstd.h"
Go to the source code of this file.
◆ main()
Definition at line 15 of file camac_scan.cxx.
16{
18
21 printf(
"Error: Cannot initialize camac: cam_init status %d\n",
status);
22 return 1;
23 }
24
25 for (
int c=0;
c<=1;
c++) {
26 printf(
"Scan of CAMAC crate %d:\n",
c);
27 for (
int n=1;
n<=24;
n++) {
28 int a = 0;
29 int f = 0;
30 int x = 0;
35 printf(
"C=%2d, N=%2d, X=%d, Q=%d, data=0x%08x\n",
c,
n, x,
q, read_data);
36
37 }
38 }
39
40 return 0;
41}
EXTERNAL int EXPRT cam_init(void)
EXTERNAL void EXPRT cam24i_q(const int c, const int n, const int a, const int f, DWORD *d, int *x, int *q)
static std::string q(const char *s)
TH1X EXPRT * h1_book(const char *name, const char *title, int bins, double min, double max)