ADC 400F Handbuch Seite 52

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 74
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 51
Chapter 5. Complete program listings.
// 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); // co:openpacket
// Opens a new Packet
module->readEvent(rBuf); // co:readdata
// Reads data into the Packet
rBuf= m_MyPacket.End(rBuf); // co:closepacket
// Closes the open Packet
}
return rBuf; // co:returnpointer
}
Example 5-3. Skeleton.cpp
/*
This software is Copyright by the Board of Trustees of Michigan
State University (c) Copyright 2005.
You may use this software under the terms of the GNU public license
(GPL). The terms of this license are described at:
http://www.gnu.org/licenses/gpl.txt
Author:
Ron Fox
NSCL
Michigan State University
East Lansing, MI 48824-1321
*/
/*
This file was modified to readout segments from the MyEventSegment class.
It is set to read only one card although that is easily changed.
Tim Hoagland
11/3/04
47
Seitenansicht 51
1 2 ... 47 48 49 50 51 52 53 54 55 56 57 ... 73 74

Kommentare zu diesen Handbüchern

Keine Kommentare