A digital code has more than one distinct set of corresponding analog values. This is often caused by initial conditions.

조회 수: 1 (최근 30일)
Hi,
I am trying to run inldnl function but somehow, I am getting this error:
A digital code has more than one distinct set of corresponding analog values. This is often caused by initial conditions.
Can you please let me know where I am going wrong?
Thanks,
Prabhleen S.

답변 (1개)

Arthi Sathyamurthi
Arthi Sathyamurthi 2021년 3월 26일
The error is self-explanatory considering the function. The function takes analog signal value, digital code value, analog dynamic range of the ADC or DAC and type of the device under test. So, in your case looks like the analog values you have given has more than 1 mapping to a digital code. This happens when the two or more analog value at different intervals is mapped to the same digital value. This results in the confusion when splitting the analog values to the digital code.
  댓글 수: 1
Prabhleen singh
Prabhleen singh 2021년 3월 27일
I understand that error pops up because analog input has multiple mapping to a digital code.
Actually, I gave a ramp with certain slope and the signal is riding on the ramp, and then compared with a fixed reference voltage.
Input step size, I have chosen is delta/4.
Due to this, I see that there are multiple mappings. How can I avoid it and use the inldnl function?
I want to compare my results with histogram approach and ideal DAC approach.
I hope, I am able to pass on the information accurately.
Can you please comment on this, am I missing anything?

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Measurements and Testbenches에 대해 자세히 알아보기

태그

제품


릴리스

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by