- 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".
Could you tell me the restriction while using error rate calculation block in simulink.
1 view (last 30 days)
Show older comments
SHUNSUKE YAMANAKA
on 12 Oct 2017
Answered: David Ding
on 17 Oct 2017
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,
0 Comments
Accepted Answer
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:
Here is the full documentation of the "Error Rate Calculation" block:
Thanks,
David
0 Comments
More Answers (0)
See Also
Categories
Find more on Sources 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!