This is Unofficial EPICS BASE Doxygen Site
acctstMain.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include "cadef.h"
#include "caDiagnostics.h"
+ Include dependency graph for acctstMain.c:

Go to the source code of this file.

Functions

int main (int argc, char **argv)
 

Function Documentation

int main ( int  argc,
char **  argv 
)

Definition at line 17 of file acctstMain.c.

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 acctst(const char *pName, unsigned interestLevel, unsigned channelCount, unsigned repetitionCount, enum ca_preemptive_callback_select select)
Definition: acctst.c:3398