Teledyne-lecroy ST Automated Test Suite User Manual Uživatelský manuál Strana 31

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 33
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 30
31
#############################################################################
# This function Check the left raw data value is bigger than the right one #
#############################################################################
IsRawDataBigger(LeftRaw, RightRaw)
{
LeftRawSize = sizeof(LeftRaw);
RightRawSize = sizeof(RightRaw);
if(LeftRawSize > RightRawSize)
return 1;
if(LeftRawSize < RightRawSize)
return 0;
if(LeftRawSize == RightRawSize)
{
for(index = RightRawSize - 1; index >= 0; index--)
#for(index = 0; index < RightRawSize; index--)
{
if(LeftRaw[index] > RightRaw[index])
return 1;
if(LeftRaw[index] < RightRaw[index])
return 0;
}
}
return 0;
}
########################################################################
# This function outputs the information of the current event. #
########################################################################
ReportEventInfo()
{
report = FormatEx( "TraceEvent: %6s #%04u, Channel : %s, Speed : %4s , Event : %s,
Time : %s, ",
GetLevelName(), in.Index, GetChannelName(), GetLinkSpeedName(), GetEventName(),
TimeToText( in.Time ) );
ReportText( report );
}
ReportPrimEventInfo()
{
if( in.TraceEvent == _FRM_PRIMITIVE )
{
report = FormatEx( "Primitive packet, value : 0x%X, Count : %d\n", in.Primitive,
in.Count );
ReportText( report );
}
}
Zobrazit stránku 30
1 2 ... 26 27 28 29 30 31 32 33

Komentáře k této Příručce

Žádné komentáře