Teledyne-lecroy User-Defined Decoding (UDD) Advanced Script Langua Manual de usuario Pagina 17

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 28
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 16
Repeat
Repeat Expression
Block
Remark
This statement repeats all commands in block until Expression is TRUE.
Example
F1 = AddField(0, 20, "Field1", "It starts form bit# 2", "F1");
F2 = AddField(20, 40, "Field2", "This field is used for..", "F2");
F31 = GetData(32, 10);
/* This loop will repeat till current position > 34 (in bits). */
Repeat CURPOS < 100
{
F1 = AddField(CURPOS, 23, "SubField of field f1", "subfield of f1",
"subfield");
}
Repeat Count
Repeat Count = Expression
Block
Remark
This statement repeats all commands in block as many as value of Expression.
Example
F1 = AddField(2, 3, "Field1", "It starts form bit# 2", "F1");
F2 = AddField(2, 3, "Field2", "This field is used for..", "F2");
F31 = GetData(32, 343);
F31 = GetData(0b01010101, 349843);
/* This loop will be run 2 times. */
Repeat Count = 2
{
F1 = AddField(CURPOS, 23, "SubField of field f1", "subfield of f1",
"subfield");
}
Vista de pagina 16
1 2 ... 12 13 14 15 16 17 18 19 20 21 22 ... 27 28

Comentarios a estos manuales

Sin comentarios