Teledyne-lecroy User-Defined Decoding (UDD) Advanced Script Langua Bedienungsanleitung Seite 24

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 28
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 23
UDD Scripts Can Decode More Than One
Command
UDD scripts can decode more than one command, so it is not necessary to run more than one
script at a time.
Here is an example:
OpCode = AddField (0, 8, "Op Code", "Op Code", "Op Code");
If (ValueOf (OpCode) = 0x01) then /* First command */
{
H1 = AddField(CURPOS,8,"H1","Field H1","H1");
H2 = AddField(CURPOS,2,"H2","Field H2","H3");
// more decodings
}
Else If (ValueOf (OpCode) = 0x02) then /* Second command */
{
F1 = AddField(CURPOS,8,"F1","Field F1","F1");
F2 = AddField(CURPOS,2,"F2","Field F2","F2");
F2 = AddField(CURPOS,3,"F3","Field F3","F3");
// More decodings
}
Else If (ValueOf (OpCode) = 0x03) then /* Third command */
{
// decodings
}
Else
{
/// decodings
}
Note: You can add more Else If instrunctions.
Seitenansicht 23
1 2 ... 19 20 21 22 23 24 25 26 27 28

Kommentare zu diesen Handbüchern

Keine Kommentare