Application note: Using the CAENV977 as a trigger/status module for the Production Readout software. The production readout software supports user defined triggers. See http://docs.nscl.msu.edu/daq/appnotes/ProductionTriggerAppnote.txt If you need instructions on how to write and install your own trigger. As of version 8.1, the production readout has also supported the installation of a trigger/status module that uses the CAENV977 I/O register. To use the CAENV977 as a trigger status module make the changes described below. Note that this example assumes that the base address of the CAENV977 is 0xdddd0000 and that it is installed in VME crate 0. In Skeleton.cpp add in the #include's #include #include Modify the SetupReadout function of Skeleton.cpp as shown below: void CMyExperiment::SetupReadout(CExperiment& rExperiment) { CReadoutMain::SetupReadout(rExperiment); // >>>>>>>>>>>>> Add the lines below <<<<<<<<<<< rExperiment.EstablishTrigger(new CCAENV977Trigger(0xdddd0000)); rExperiment.EstablishBusy(new CCAENV977Status(0xdddd0000)); // >>>>>>>>>>>>>> Until here <<<<<<<<<<<<<<<<<<<<<<< /// Leave the remainder of this function alone. // Insert your code below this comment. ... Then make If you install the CAENV977 module in a VME crate other than crate 0, add an additional parameter to the constructor of the CCAENV977Trigger and CCAENV977Status in the code above that is the Crate number e.g. rExperiment.EstablishTrigger(new CCAENV977Trigger(0xdddd0000)); rExperiment.EstablishBusy(new CCAENV977Status(0xdddd0000)); would change to: rExperiment.EstablishTrigger(new CCAENV977Trigger(0xeeee0000,1)); rExperiment.EstablishBusy(new CCAENV977Status(0xeeee0000,1)); If the module was installed in VME crate 1 and given a base address of 0xeeee0000 ============================= The trigger is made when any nonzero bit pattern is gated into the module (it's run in coincidence mode). Outputs are as follows: * Going ready is output 0 (Put this into the clear of your busy latch). * Going busy is output 1 (Or this into the "set" of your busy latch).