ADC 400F Manual Pagina 15

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 74
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 14
Chapter 2. Setting up the software
string(pPacketVersion)) //
{
module = new CAENcard(slot); //
}
// Destructor:
MyEventSegment::~MyEventSegment()
{
delete module; //
}
// Is called right after the module is created. All one time Setup
// should be done now.
void MyEventSegment::Initialize()
{
module->reset(); //
Clear();
}
// Is called after reading data buffer
void MyEventSegment::Clear()
{
module->clearData(); // Clear data buffer
}
unsigned int MyEventSegment::MaxSize()
{
return 0;
}
//Is called to readout data on module
DAQWordBufferPtr& MyEventSegment::Read(DAQWordBufferPtr& rBuf)
{
for(int i=0;i<CAENTIMEOUT;i++) //
// Loop waits for data to become ready
{
if(module->dataPresent())
// If data is ready stop looping
{
break;
}
}
if(module->dataPresent())
// Tests again that data is ready
{
rBuf = m_MyPacket.Begin(rBuf); // (10)
// Opens a new Packet
module->readEvent(rBuf); // (11)
10
Vista de pagina 14
1 2 ... 10 11 12 13 14 15 16 17 18 19 20 ... 73 74

Comentarios a estos manuales

Sin comentarios