ADC 400F Manual Página 17

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 74
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 16
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 the circled numbers in the example above.
2.1.2. Integrating your event segment with Readout
Once you have created one or more event segments, you must register them with the Readout software.
Whenever the Readout software must so something to its event segments, it calls the appropriate member
function in each event segment that has been registered, in the order in which it has been registered.
Edit Skeleton.cpp. Towards the top of that file, after all the other #include statements, add:
#include "MyEventSegment.h"
This is necessary because we will be creating an object of class MyEventSegment.
Next, locate the function CMyExperiment::SetupReadout Modify it to create an instance of
MyEventSegment and to register that instance as in the italicized code below
void
CMyExperiment::SetupReadout(CExperiment& rExperiment)
{
CReadoutMain::SetupReadout(rExperiment);
rExperiment.AddEventSegment(new MyEventSegment(10, 0xff00));
}
This code creates a new event segment for a CAEN V785 in slot 10, which will be read out into a packet
with ID 0xff00.
2.1.3. Making your Readout Executable
Now that you have an event segment written, created an instance of it and registered it with the Readout,
you must build an executable Readout program.
To build the program, you must edit the Makefile supplied with the skeleton code so that it knows about
your additional program files. Locate the line that reads:
Objects=Skeleton.o
12
Vista de página 16
1 2 ... 12 13 14 15 16 17 18 19 20 21 22 ... 73 74

Comentários a estes Manuais

Sem comentários