Page 1 of 1

ADC doesn't produce correct output type

Posted: Mon Jul 27, 2009 7:57 pm
by 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?

Re: ADC doesn't produce correct output type

Posted: Thu Jul 30, 2009 10:59 am
by LubinKerhuel
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.