This is Unofficial EPICS BASE Doxygen Site
acctstMain.c
Go to the documentation of this file.
1 /*************************************************************************\
2 * Copyright (c) 2002 The University of Chicago, as Operator of Argonne
3 * National Laboratory.
4 * Copyright (c) 2002 The Regents of the University of California, as
5 * Operator of Los Alamos National Laboratory.
6 * EPICS BASE Versions 3.13.7
7 * and higher are distributed subject to a Software License Agreement found
8 * in file LICENSE that is included with this distribution.
9 \*************************************************************************/
10 
11 #include <stdio.h>
12 #include <stdlib.h>
13 
14 #include "cadef.h"
15 #include "caDiagnostics.h"
16 
17 int main ( int argc, char **argv )
18 {
19  unsigned progressLoggingLevel;
20  unsigned channelCount;
21  unsigned repetitionCount;
22  enum ca_preemptive_callback_select preempt;
23  int aBoolean;
24 
25 
26  if ( argc < 2 || argc > 6 ) {
27  printf ("usage: %s <PV name> [progress logging level] [channel count] "
28  "[repetition count] [enable preemptive callback]\n",
29  argv[0] );
30  return 1;
31  }
32 
33  if ( argc >= 3 ) {
34  progressLoggingLevel = atoi ( argv[2] );
35  }
36  else {
37  progressLoggingLevel = 0;
38  }
39 
40  if ( argc >= 4 ) {
41  channelCount = atoi ( argv[3] );
42  }
43  else {
44  channelCount = 20000;
45  }
46 
47  if ( argc >= 5 ) {
48  repetitionCount = atoi ( argv[4] );
49  }
50  else {
51  repetitionCount = 1;
52  }
53 
54  if ( argc >= 6 ) {
55  aBoolean = atoi ( argv[5] );
56  }
57  else {
58  aBoolean = 0;
59  }
60  if ( aBoolean ) {
62  }
63  else {
65  }
66 
67  acctst ( argv[1], progressLoggingLevel, channelCount, repetitionCount, preempt );
68 
69  return 0;
70 }
ca_preemptive_callback_select
Definition: cadef.h:175
#define printf
Definition: epicsStdio.h:41
int main(int argc, char **argv)
Definition: acctstMain.c:17
int acctst(const char *pName, unsigned interestLevel, unsigned channelCount, unsigned repetitionCount, enum ca_preemptive_callback_select select)
Definition: acctst.c:3398