comm.ErrorRate
Compute bit or symbol error rate of input data
Description
The comm.ErrorRate
object compares input data from a transmitter with input
data from a receiver and calculates the error rate as a running statistic. To obtain the error
rate, the object divides the total number of unequal pairs of data elements by the total
number of input data elements from one source.
To compute the error rate:
Create the
comm.ErrorRate
object and set its properties.Call the object with arguments, as if it were a function.
To learn more about how System objects work, see What Are System Objects?
Creation
Description
creates an error
rate calculator System object™. This object computes the error rate of the received data by comparing it to
the transmitted data.errorRate
= comm.ErrorRate
sets Properties using one or more name-value arguments. For example,
errorRate
= comm.ErrorRate(Name
=Value
)ReceiveDelay = 5
specifies that the received data lags behind the
transmitted data by five samples.
Properties
Usage
Description
resets the error count when you set the Y
= errorRate(___,reset
)reset
input as a nonzero
value. To enable this syntax, set the ResetInputPort
property to
1
(true
).
Input Arguments
Output Arguments
Object Functions
To use an object function, specify the
System object as the first input argument. For
example, to release system resources of a System object named obj
, use
this syntax:
release(obj)