ADC doesn't produce correct output type

Post Reply
bmairs
Posts: 69
Joined: Mon Jul 27, 2009 7:51 pm

ADC doesn't produce correct output type

Post by bmairs » Mon Jul 27, 2009 7:57 pm

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
Site Admin - Expert
Posts: 616
Joined: Wed Mar 07, 2007 11:23 pm
Location: Bayonne- France
Contact:

Re: ADC doesn't produce correct output type

Post by LubinKerhuel » Thu Jul 30, 2009 10:59 am

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.

Post Reply

Who is online

Users browsing this forum: No registered users and 20 guests