Clear Filters
Clear Filters

Could you tell me the restriction while using error rate calculation block in simulink.

6 views (last 30 days)
Dear Sir or Madam,
I would like to know about error rate calculation block. Is there any restriction of level of input data? For example, Tx data's level is 0 and 5 but Rx data's level is 0 and 1. Can I calculate in case of this? I'm glad if you tell me.
Sincerely,

Accepted Answer

David Ding
David Ding on 17 Oct 2017
Hi Shunsuke,
I understand that you would like to use the "Error Rate Calculation" block to compare transmitted and received data. However, the tx data level is 0 and 5 while the rx data level is 0 and 1. As per documentation of the "Error Rate Calculation" block, the block calculates the error rate as a running statistic, by dividing the total number of unequal pairs of data elements by the total number of input data elements from one source.
Since this block performs an element by element comparison, it will consider "5" to be different than "1" although both might point to the same level. Therefore, the workaround involves changing the tx level "5" into "1". There are several workarounds, such as:
  • Using a gain block of gain "1/5" to change the tx data level from 0 and 5 to 0 and 1
  • Using a "Compare to Zero" block to feed in the tx data and the output will be either 0 or 1. This is because the "Compare to Zero" block outputs a "1" whenever the input is greater than 0, which applies to "5" as "5>0".
Here is the full documentation of the "Error Rate Calculation" block:
Thanks,
David

More Answers (0)

Categories

Find more on モデル化 in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!