Using NCSL DAQ Software to Readouta CAEN V785 Peak-Sensing ADCTimothy HoaglandRon Fox
Chapter 1. The electronicsFigure 1-5. Amplified Signal and GateThe second output of the discriminator will go to a second gate and delay channel; this
Chapter 2. Setting up the softwareThe software modifications needed to make the above setup work can be divided into three tasks:1. Telling the softwar
Chapter 2. Setting up the softwareTim Hoagland11/3/[email protected]*/#ifndef __MYEVENTSEGMENT_H // ➊#define __MTEVENTSEGMENT_H#ifdef HAV
Chapter 2. Setting up the software__MYEVENTSEGMENT_H is not defined, and the #ifndef is true. This causes __MYEVENTSEGMENT_Hto be defined, which prevent
Chapter 2. Setting up the softwareExample 2-2. Implementation of CMyEventSegment/*This software is Copyright by the Board of Trustees of MichiganState
Chapter 2. Setting up the softwarestring(pPacketVersion)) // ➍{module = new CAENcard(slot); // ➎}// Destructor:MyEventSegment::~MyEventSegment(){delet
Chapter 2. Setting up the software// Reads data into the PacketrBuf= m_MyPacket.End(rBuf); // (12)// Closes the open Packet}return rBuf; // (13)}Ê The
Chapter 2. Setting up the software(13) a "pointer" to the next free spot in the buffer is returned to the caller.The numbers below refer to
Chapter 2. Setting up the softwareModify it so that it reads:Objects=Skeleton.o MyEventSegment.oSave this edit, exit the editor and type:makeThis will
Chapter 2. Setting up the softwareTo start the simple buffer dump program, therefore, log on to the system connected to the VME crate inwhich your CAE
Using NCSL DAQ Software to Readout a CAEN V785 Peak-Sensing ADCby Timothy Hoaglandby Ron FoxRevision HistoryRevision 1.0 December 2, 2004 Revised by:
Chapter 2. Setting up the softwareThe Readout program you have built runs an extended Tcl interpreter. Tcl is a scripting language that iswidely used
Chapter 2. Setting up the softwareFocus on the section below the word Event:. This is a hexadecimal representation of the data in the firstevent of the
Chapter 2. Setting up the softwarecd ~/experiment/spectclcp /usr/opt/spectcl/current/Skel/* .2.2.2. How to modify the skeleton to unpack events.SpecTc
Chapter 2. Setting up the softwareclass CAnalyzer; // ➍class CBufferDecoder;class CEvent;class MyEventProcessor : public CEventProcessor // ➎{private:
Chapter 2. Setting up the softwareÍ As previously mentioned, our event processor class must be derived from a CEventProcessor.This class definition doe
Chapter 2. Setting up the softwareclasses derived from CEventProcessor is expected to process the raw event, and already unpackeddata producing new un
Chapter 2. Setting up the softwarereturn (high << 16) | low;}MyEventProcessor::MyEventProcessor(int ourId,int ourSlot,const char* baseParameterN
Chapter 2. Setting up the softwarenWords -= nPacketWords;}return kfTRUE; // (15)}voidMyEventProcessor::unpackPacket(TranslatorPointer<UShort_t>
Chapter 2. Setting up the softwareÌ The CAnalyzer reference that will be passed in to the operator() member function is really areference to a CTclAna
Chapter 2. Setting up the softwareCAEN_CHANNELMASK and CAEN_CHANNELSHIFTThese two values are used to extract the channel number of a conversion from a
Table of ContentsPreface ...
Chapter 2. Setting up the softwarefound that catch block’s code is executed. If not found, the program aborts. This block allows us tocatch errors fro
Chapter 2. Setting up the software#include "MyEventProcessor.h"This makes the definition of the event processor we created known to this modu
Chapter 2. Setting up the softwareNow type:maketo build the program. This should result in an executable file called SpecTcl.2.2.4. Setting up SpecTcl
Chapter 2. Setting up the softwareFigure 2-1. The GUI window as it first appears.This shows a screenshot of the GUI just after it starts. Each top leve
Chapter 2. Setting up the softwareFigure 2-2. The Gui with folders open to show parameter array elementsYou can use the scrollbar at the right of the
Chapter 2. Setting up the softwareFigure 2-3. The Spectrum creation dialog boxThis dialog has several controls. The button labelled Spectrum Type acce
Chapter 2. Setting up the softwareFigure 2-4. 1-d Spectrum editor.The left half of this editor is just the SpecTcl object browser restricted to displa
Chapter 2. Setting up the softwareFigure 2-5. Created Spectra.While this is not hard to do, it is annoying to have to do this each time we start SpecT
Chapter 2. Setting up the softwareFigure 2-6. Initial Xamine WindowThe top part of the Xamine window has a menubar. The large central section has can
Chapter 2. Setting up the software• Save the resulting configuration file as a window definition file so that it can be loaded again next timeSpecTcl is r
List of Figures1-1. A simple electronics setup for the CAEN V785 ...11-
Chapter 2. Setting up the softwareLets load the spectrum mydetectors.caenv785.00 into the upper left pane. Click on the upper left pane toselect it. C
Chapter 2. Setting up the software• The selected pane is loaded with the spectrum you selected.• The selection advances to the next pane.You can finish
Chapter 3. Testing and Running the Software.Now let’s put all the pieces together and test the system end-to-end. We will:• Start SpecTcl• Reload our
Chapter 3. Testing and Running the Software.Now we must start Readout and begin a run so there is data for SpecTcl to analyze. With our currentworking
Chapter 4. More informationIf you are preparing a system that will be used many times, you may want to automate the startup as wellas run the Readout
Chapter 4. More informationRefer to the numbers in the listing above when reading the annotations below:Ê Since icons may or may not source the variou
Chapter 4. More informationË The sbind command here binds all of the spectra into the Xamine visualization program. SpecTclspectra need not be visible
Chapter 4. More informationspecified by the DAQHOST environment variable, if it is defined, or localhost if not.Consider the following script:Example 4-
Chapter 4. More information4.3. Creating desktop iconsThis section is specific to the KDE desktop manager. If you have chosen to use a different deskto
Chapter 5. Complete program listings.5.1. Readout SoftwareThis section contains the files that make up the Readout software in their entirety. We inclu
PrefaceThis paper’s purpose is to guide the reader in setting up and reading out data from a CAEN V785 peaksensing ADC. It covers the electronics that
Chapter 5. Complete program listings.// One time Module setupvirtual void Clear(); // co:mysegclear// Resets data buffervirtual unsigned int MaxSize()
Chapter 5. Complete program listings.using namespace std;#endif#include "MyEventSegment.h" // co:myheaderstatic char* pPacketVersion = "
Chapter 5. Complete program listings.// Loop waits for data to become ready{if(module->dataPresent())// If data is ready stop looping{break;}}if(mo
Chapter 5. Complete program listings.Modified to be an 8.1 exampleRon Fox3/28/[email protected]*/static const char* Copyright = "(C) Copyright
Chapter 5. Complete program listings.}virtual ~CMyExperiment() {}// Copy construction, assignment and comparison// make no sense and are therefore dis
Chapter 5. Complete program listings.\param rExperiment - CExperiment& - A reference to the experiment objectthat runs the readout. You will norma
Chapter 5. Complete program listings.create at the command line using the runvar command.\param rExperiment - CExperiment& the experiment object.\
Chapter 5. Complete program listings.CInterpreterStartup& rStartup,CInterpreterCore& rCore){CReadoutMain::SetupStateVariables(rExperiment, rSt
Chapter 5. Complete program listings.## Below, define any additional C++ compilation switches you might need.## If you are using camac you will need t
Chapter 5. Complete program listings.# DO NOT DELETEMyEventSegment.o: MyEventSegment.hSkeleton.o: MyEventSegment.hExample 5-5. startreadout script#!/b
Chapter 1. The electronicsThe CAEN V785 is a 12 bit, 32-channel analog to digital converter that returns a value related to themaximum voltage that oc
Chapter 5. Complete program listings.class MyEventProcessor : public CEventProcessor // co:epinherit{private:CTreeParameterArray& m_rawData; // co
Chapter 5. Complete program listings.static const ULong_t CAEN_GEOMASK(0xf8000000);static const ULong_t CAEN_GEOSHIFT(27);static const ULong_t CAEN_CO
Chapter 5. Complete program listings.unpackPacket(p); // co:invokeUnpack}catch(string msg) {cerr << "Error Unpacking packet " <<
Chapter 5. Complete program listings.Example 5-8. MySpecTclApp.cppstatic const char* Copyright = "(C) Copyright Michigan State University 2008, A
Chapter 5. Complete program listings.CTreeVariable& w2;CTreeVariableArray& unused;} MyParameters;// Similarly, having declared the structure,
Chapter 5. Complete program listings.param++;}return kfTRUE; // kfFALSE would abort pipeline.}// CAddFirst2 - Sample unpacker which adds a pair of unp
Chapter 5. Complete program listings.//// At compile time, define: WITHF77UNPACKER// and F77NPARAMS to be the maximum number of parameters the Fortran
Chapter 5. Complete program listings.UShort_t* pSize = (UShort_t*)pEvent;CTclAnalyzer& rAna((CTclAnalyzer&)rAnalyzer);rAna.SetEventSize( (*pSi
Chapter 5. Complete program listings.// Function:// void BindTCLVariables(CTCLInterpreter& rInterp)// Operation Type:// override/*Purpose:Add code
Chapter 5. Complete program listings.update program default values.*/voidCMySpecTclApp::SetLimits(){ CTclGrammerApp::SetLimits();}// Function:// void
Chapter 1. The electronicsFigure 1-1. A simple electronics setup for the CAEN V785Before starting be sure that you can secure all of these items, many
Chapter 5. Complete program listings.present, SpecTcl must have a data source of some sortconnected to it... The default test data source produces afi
Chapter 5. Complete program listings.// Function:// void AddCommands(CTCLInterpreter& rInterp)// Operation Type:// Override/*Purpose:This function
Chapter 5. Complete program listings.*/voidCMySpecTclApp::SourceFunctionalScripts(CTCLInterpreter& rInterp){ CTclGrammerApp::SourceFunctionalScrip
Chapter 5. Complete program listings.USERLDFLAGS=## Append your objects to the definitions below:#OBJECTS=MySpecTclApp.o MyEventProcessor.o## Finally
Chapter 5. Complete program listings.if {[array names env DAQHOST] ne ""} {set daqsource $env(DAQHOST)} else {; # co:daqsourceset daqsource
Chapter 1. The electronicsFigure 1-2. Pulser Output SignalFigure 1-3. Amplifier Output SIgnalAfter you are happy with the signal from the amplifier plug
Chapter 1. The electronicsThe other output from the splitter will go into a discriminator. This could be either a leading edge or aconstant fraction d
Kommentare zu diesen Handbüchern