DSPRelated.com
Forums

Error in input of integer RS encoder

Started by khalloud70 September 11, 2008
I am using simulink model

I am importing an image 256*256 from workspace, then to Block processing
box, to compress it , o/p of block is 128*128 image
, then convert it from 2-d to 1-d using the conversion box
then o/p is [16384*1] ,then to frame conversion box,then to RS Encoder .
i used 64 for message and 74 for code word length
when i connect o/p of RS Encoder to the i/p of RS Decoder , then to
conversion box again frm 1-d to 2-d using reshape box [128*128],
then to processing box again to uncompress the image

it always gives me Block ERROR at Integer input RS ENCODER block
"Input must be integer values"

and i always got this error , so can any when help??


In article <w7WdnSNxgotZmVTVnZ2dnUVZ_q7inZ2d@giganews.com>,
khalloud70 <khalloud70@gmail.com> wrote:
>I am using simulink model > >I am importing an image 256*256 from workspace, then to Block processing >box, to compress it , o/p of block is 128*128 image >, then convert it from 2-d to 1-d using the conversion box >then o/p is [16384*1] ,then to frame conversion box,then to RS Encoder . >i used 64 for message and 74 for code word length >when i connect o/p of RS Encoder to the i/p of RS Decoder , then to >conversion box again frm 1-d to 2-d using reshape box [128*128], >then to processing box again to uncompress the image > >it always gives me Block ERROR at Integer input RS ENCODER block >"Input must be integer values" > >and i always got this error , so can any when help?? > >
It means exactly what it says: the values you are feeding the RS encoder function must be integers in a certain range, yet you are feeding it a floating point number which is not an integer. You need to fix this. Steve