Sep 18, 2020 #1 H himadri_debnath Newbie level 6 Joined Aug 23, 2020 Messages 12 Helped 0 Reputation 0 Reaction score 0 Trophy points 1 Activity points 108 Does anyone know how to get the digital output in terms of binary values. The output of this given ADC is in scalar integer form. I want output as binary form so that I can process each bit separately. Last edited by a moderator: Sep 18, 2020
Does anyone know how to get the digital output in terms of binary values. The output of this given ADC is in scalar integer form. I want output as binary form so that I can process each bit separately.
Sep 23, 2020 #2 MicroStack Newbie Joined Sep 23, 2020 Messages 4 Helped 0 Reputation 0 Reaction score 3 Trophy points 3 Location India Activity points 135 You can use a funtion block to convert the scalar integer to the binary at the output: >> dec = 10; >> dec2bin(dec) ans = '1010'
You can use a funtion block to convert the scalar integer to the binary at the output: >> dec = 10; >> dec2bin(dec) ans = '1010'