- 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.
2 次查看(过去 30 天)
显示 更早的评论
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 个评论
采纳的回答
David Ding
2017-10-17
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 个评论
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!