Rules | Recent posts | topic RSS | Search | Register  | Log in

s function builder problem

 
Post new topic  Reply to topic    EDAboard.com Forum Index -> PC Programming and Interfacing
Author Message
jtsp



Joined: 30 Jan 2008
Posts: 1


Post27 Aug 2008 14:51   s function builder problem

hi,

i'm trying to use simulink's S function builder. under data properties, the input is recd an array with 255 rows and 6 columns; however, when I try subscripting it in the code, it generates an error C2109: subscript requires array or pointer type

frame = 6;
n = 255;
int era[255];
int recdtoo[255][6];

for (frames=0;frames<frame;frames++)
{
for (bits=0;bits<n;bits++)
{
era[bits]=0;
recdtoo[bits][frames] = recd[bits][frames]; //error
}
}

when I try declaring : int recd[255][6] ,it say I cannot redefine the input.
why does it not recognize the input as an array?

many thanks in advance
Back to top
Post new topic  Reply to topic    EDAboard.com Forum Index -> PC Programming and Interfacing
Page 1 of 1 All times are GMT + 1 Hour


Abuse
Administrator
Moderators
topic RSS 
sitemap