- 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 (최근 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!