MT Calculate BER After Trigger (PN Sequence)
- Updated2023-02-17
- 8 minute(s) read
MT Calculate BER After Trigger (PN Sequence)
Calculates the average bit error rate (BER) against a Galois PN sequence. The sequence must be the same as the PN sequence generated by MT Generate Bits (Galois, PN Order) with a matching PN order. All subsequent iterations of the node use a continuation of the same PN sequence until reset? is set to TRUE.
When you call this node for the first time, or whenever reset? is TRUE, the node begins a blind search over the input bit stream for a trigger found index location in which the BER of a number of subsequent bits is below the specified BER trigger threshold. The confidence parameter specifies the number of bits after the trigger found index that are used in the trigger threshold calculation.
Inputs/Outputs

input bit stream
The bit sequence over which BER is calculated. This bit stream must include only data bits of the PN sequence.

PN sequence order
The order of the transmitted PN bit sequence. This parameter must match the PN sequence order of the bits transmitted to the device under test. Valid values are 5 to 31, inclusive.
Default value: 9

BER trigger threshold
The BER threshold that must not be exceeded for the trigger found? decision. This value determines when the BER measurement begins; bits before this value and seed bits are not included in the BER measurement. Valid values are 0.0 to 1.0, inclusive.

Default value: 0.1

confidence
Level of confidence that the actual BER of the bits following a trigger will be below the specified BER trigger threshold. Values between 0.0 and 1.0 represent proportional confidence.
Default value: 0.95

error in
Error conditions that occur before this node runs.
The node responds to this input according to standard error behavior.
Default value: No error

reset?
A Boolean that determines whether the node continues bit error rate calculations from a previous iteration.
| TRUE | Resets the trigger and the accumulated BER measurement. |
| FALSE | Maintains the previous synchronization and does not clear the existing accumulated BER value. |
Default value: TRUE

BER
The measured BER as the ratio of erroneous bits to the bits following a trigger in the current input bit stream.
The number of bits considered for this measurement depends on the conditions shown in the following table.
| Conditions | BER Output |
|---|---|
|
1.0 |
|
1.0 |
|
BER calculation based on the length of bits following the set of N + 1 bits in which the trigger was detected, where N is the specified PN sequence order |
|
BER calculation based on the length of the input bit stream |

accumulated BER
The measured bit error rate as the ratio of erroneous bits to bits following a trigger.
The number of bits considered for this measurement depends on the conditions shown in the following table.
| Scenario | Conditions | BER Output |
|---|---|---|
| 1. |
|
1.0 |
| 2. |
|
1.0 |
| 3. |
|
BER calculation based on the length of bits following the set of N + 1 bits in which the trigger was detected, where N is the specified PN sequence order |
| 4. |
|
Accumulated BER calculation based on the length of the input bit stream |

trigger found?
A Boolean that indicates whether the node found a trigger.
When trigger found? is TRUE, the trigger was found in the input bit stream. When trigger found? is FALSE, the trigger was found in the current or a previous input bit stream.

trigger found index
The index value of the first bit where the bit pattern matched the specified PN sequence.
This index value indicates the number of bits since the last reset that are not PN data. For example, if the transmitter is off for 30 bits, this parameter returns 30.

error out
Error information.
The node produces this output according to standard error behavior.
Minimum Number of Input Bits
The minimum number of input bits required to return a meaningful BER value is given by
where
y is defined such that confidence=P(x≤y)
x is a zero-mean, unit-variance Gaussian variate
P(x≤y) denotes the probability that the variable x takes a value that is less than or equal to y.
Locating the Trigger
While stepping through the input bit stream one bit at a time, this node attempts to locate a trigger using the following procedure:
- Length-checking the input bit stream (excluding any bits already examined in previous attempts to find a trigger). If the available length is insufficient to meet the specified confidence, the VI buffers input bits and exits without locating a trigger.
- Generating a trial PN sequence seed (trial seed) based on the next N + 1 bits, where N is the expected PN sequence order.
- Generating a trial PN sequence based on the trial seed, with a length of the specified confidence.
- Calculating a trial BER value using the trial PN sequence as a reference and comparing this reference to the bits following the N + 1 bits that generate the trial seed. The node returns to step 1 if the trial BER is above the specified BER trigger threshold.
- Generating a second trial PN sequence seed, using the N + 1 bits immediately following the N + 1 bits that were used to generate the first trial PN sequence seed.
- Generating a trial PN sequence based on the trial seed with a length of the specified confidence - (N + 1) bits.
- Calculating a trial BER value using the trial PN sequence as a reference and comparing this reference to the bits following the N + 1 bits that were used to generate the trial seed. The node returns to step 1 if the second trial BER is above the specified BER trigger threshold.
- Returning a trigger found? value of TRUE.
BER calculation begins on the bit following the first set of N + 1 bits in which the trigger is found.
Unit Under Test Synchronization
The BER trigger threshold input triggers this node, meaning that the node only reports BER on bits after a match is found. Hence, you do not need to synchronize your transmitter with your unit under test (UUT)—the test can begin before transmission begins.