ADC 400F Manual Página 15

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 74
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 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 página 14
1 2 ... 10 11 12 13 14 15 16 17 18 19 20 ... 73 74

Comentários a estes Manuais

Sem comentários