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

  • 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 24
25
########################################################################
# This function specifies that the verification is failed and the #
# script should complete its work. #
########################################################################
ScriptFailed()
{
out.Result = _VERIFICATION_FAILED;
}
########################################################################
# This function specifies that the verification is done and the #
# script should complete its work. #
########################################################################
ScriptDone()
{
out.Result = _VERIFICATION_PASSED;
}
########################################################################
# This function returns the name of the level where the current #
# event occurred. #
########################################################################
GetLevelName()
{
level = in.Level;
level_name =
select
{
level == _IDLE : "Idle";
level == _LINK : "Link";
level == _OOB_SEQ : "OOB_Seq";
level == _TRANSPORT : "Transp";
level == _ATA : "ATA";
level == _SCSI : "SCSI";
level == _SMP : "SMP";
level == _TASK : "TASK";
default : FormatEx("%d", level); #"Unknown";
};
return level_name;
}
########################################################################
# This function returns the name of the link speed where the current #
# event occurred. #
########################################################################
GetLinkSpeedName()
{
speed = in.LinkSpeed;
speed_name =
select
{
speed == _LINK_SPEED_1_5 : "1.5G";
speed == _LINK_SPEED_3_0 : "3G";
speed == _LINK_SPEED_6_0 : "6G";
default : FormatEx("%d", speed); #"Unknown";
};
return speed_name;
}
Zobrazit stránku 24
1 2 ... 20 21 22 23 24 25 26 27 28 29 30 31 32 33

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

Žádné komentáře