Data Sheet

Table Of Contents
51
#check for result
IfMatched( $PdResult.Result, PD_RESULT_OK, PD_COMPARE_EQUAL )
{
Call PD_ReceivePacket( $receive_settings )
}
ElseMatched( $PdResult.Result, PD_RESULT_FAILED, PD_COMPARE_EQUAL )
{
Call PD_SendHardReset()
}
ElseMatched
{
$ping_msg = PD_PingMessage
Call PD_SendPacket( $ping_msg, $send_setting )
}
IfMatchedEnd
4.12 PD_Loop
Using this command you can create a loop containing other Exerciser commands.
Note - The limit for using nested PD_Loop() commands is 8.
Format
PD_Loop(count)
{
#command list
}
Parameters
count
Loop count
Result
None
Examples
$send_setting = PD_SendPacketSettings
{
OrderedSetType = PD_ORDERED_SET_TYPE_SOP
}
$ping_msg = PD_PingMessage
PD_Loop(3)
{
call PD_SendPacket( $ping_msg, $send_setting )
}
4.13 PD_TimerLoop
Using this command you can create a loop(containing other Exerciser commands) which is
bound to a predefined timer. On timer timeout, the loop will exit.
Note - The limit for using nested PD_TimerLoop() commands is 8.
Format
PD_TimerLoop(timeout)
{
#command list
}
Parameters