FORUM TOPIC · READ ONLY

ADC doesn't produce correct output type

ADC doesn’t produce correct output type

Forum : bug reports

2 message(s) · archive en lecture seule

bmairs
It doesn't matter if I select signed or unsigned integer for the output of the ADC, it always shows it being a uint16. Has anyone else seen this behavior?
LubinKerhuel

Re: ADC doesn't produce correct output type

Datatype of the output of the block ADC is always uint16. Anyway, this uint16 store the value in the format you selected. Thus, you should use a type convert block, with Stored Integer Value (SI) (in opposition to Real Word Value) to convert the simulink representation of the data.



Thanks for repporting that, I should change the datatype output of the block depending on the representation selected.