Appendix B
Catalyst Enterprises, Inc.
97
Find (StartBit, Value)
Remark
This function searches the input data from the given start bit for a specified value.It
returns the first position of the first found value. If the value is not found it will return
LengthOf(INPUTDATA) + 1.
Parameters
StartBit
This parameter specifies the start bit position from which to
search from this location to the end of input data. The value
of this parameter can be an Expression.
Value:
Value to be searched for in this call. Value can be a constant
BIN or HEX number or can be a expression.
CURPOS
Remark
This function returns the current position of the cursor in bits of INPUTDATA.
At first, CURPOS is zero and increases one field’s length in each Add Field call.
CURPOS has a local scope in script, that is in each SubFieldOf statement CURPOS
has a local scope too. So in each SubFieldOf statement CURPOS will be set to zero
and increase one sub field length and when return to out of sub field statement
CURPOS value will be set to the value that it had before SubFieldof statement.
Example
F1 = AddField(0, 8, “F1”, “F1”, “F1”);
F2 = AddField(CURPOS, 8, “F2”, “F2”, “F2”); /* CURPOS
is equal to 8 and will be 16 after this statement */
SubFieldOf(F2)
{
F11 = AddField(0, 2, “F11”, “F11”, “F11”) ;
F12 = AddField(CURPOS, 2, “F12”, “F12”, “F12”) ;
/* CURPPOS = 2 */
F13 = AddField(CURPOS, 4, “F13”, “F13”, “F13”) ; /
* CURPPOS = 4 */
}
F3 = AddField(CURPOS, 2, “F3”, “F3”, “F3”); /* CURPPOS = 16
*/
EOD
Remark
If CURPOS is at the end of data this function returns TRUE, If not it returns FALSE.
That is, if all input data has been decoded, this function returns TRUE.
Содержание AirCom UWB Analyzer
Страница 1: ...March 2007 P N 400 0103 001 User s Manual Version 1 22 ...
Страница 4: ...Catalyst Enterprises Inc Copyright iv ...
Страница 54: ...Catalyst Enterprises Inc Faded Packets 46 Figure 32 Illustration of Faded Packets ...
Страница 76: ...Catalyst Enterprises Inc Display Configuration 68 ...
Страница 109: ......
Страница 110: ...LeCroy Corporation 3385 Scott Blvd Santa Clara CA 95054 Tel 1 800 909 7112 Fax 408 727 6622 www lecroy com ...