Useful DAQ stuffs

From Hall A Wiki
Jump to: navigation, search
  • DP shell commands

DP_ask coda_component_name puts text : display text on specified CODA component

DP_ask coda_component_name exec text : execute command and return result to your shell

NS_ServerInit servername : create a server on host with name servername

DP_ask coda_component_name configure : miscellanous thing about components

DP_ask coda_component_name status : gets status from component

  • Timer library for vxworks

In boot script load library

ld < /u/site/coda/2.5/extensions/ppcTimer/ppcTimer.o

and init the functions

ppcTimeBaseFreqSet(133333332)
ppcTimeBaseZero()

In the crl code :

include "ppcTimer.h"

....

declare the counters

PPCTB TimeCount1,TimeCount2;

....

read the time value

ppcTimeBaseGet(&TimeCount2);