Hello guys.. Right now I am working a project with Omnet++ 4.2.2, and I have a problem with this gates index.
I always got this kind of error:
Error in module (d) Testnet.f.d ... Gate index ... out of range when accessing vector gate 'out[]' with size 4
Here is my ned file code, hopefully somebody can help me with this problem,
module f
{
@display("bgb=272,261");
gates:
input in[];
output out[];
submodules:
c: c {
parameters:
@display("p=75,121");
gates:
in[sizeof(in)];
}
d: d {
parameters:
@display("p=185,121");
gates:
out[sizeof(out)];
}
connections:
for i=0..sizeof(in)-1 {
}
for i=0..sizeof(out)-1 {
d.out[i] --> out[i];
}
}