ADC VALUE ISSUES
Posted: Tue Jul 13, 2021 8:20 am
Hi all
ive added my flowchart and im having issues with the value of the adc regards what it shows on the display. ive got the variable DISPLAY[4] as a string therefore to my understanding i should only show the 4 segments of the selected display ie 2.04V but im getting for instance 2.043256, four extra digits, my code has been scaled down by eliminating certain macros etc to try to find the issue but as yet the problem remains, ive tried adding print string "" at various points in the VOLTAGE macro with no joy. also ive only added the loop in the VOLTAGE macro to constantly show the issue.
if i build the same VOLTAGE macro in a new code on its own it shows the correct number of digits ie 2.04v and not 2.045612, so theres something in my code its not liking but its hidden deeper than i can find, i would appreciate any help once again
cheers bob
ive added my flowchart and im having issues with the value of the adc regards what it shows on the display. ive got the variable DISPLAY[4] as a string therefore to my understanding i should only show the 4 segments of the selected display ie 2.04V but im getting for instance 2.043256, four extra digits, my code has been scaled down by eliminating certain macros etc to try to find the issue but as yet the problem remains, ive tried adding print string "" at various points in the VOLTAGE macro with no joy. also ive only added the loop in the VOLTAGE macro to constantly show the issue.
if i build the same VOLTAGE macro in a new code on its own it shows the correct number of digits ie 2.04v and not 2.045612, so theres something in my code its not liking but its hidden deeper than i can find, i would appreciate any help once again
cheers bob