outlandish run time error

3 views
Skip to first unread message

Alireza

unread,
Dec 11, 2009, 4:23:22 AM12/11/09
to omnetpp
Hi every body.
I want to use datarate attribute of cDatarateChannel as this:

cDatarateChannel *c = new cDatarateChannel();
c->setDatarate(100);

a->connectTo(b,c);

in run time this error appears:
Error in module (x): (cDatarateChannel):has no parameter named
'datareate'

what is the problem?
please help me.

Alberto Cortés

unread,
Dec 11, 2009, 7:24:19 AM12/11/09
to omn...@googlegroups.com
On Fri, Dec 11, 2009 at 10:23 AM, Alireza <alireza....@gmail.com> wrote:
> Hi every body.
> I want to use datarate attribute of cDatarateChannel as this:
>
> cDatarateChannel *c = new cDatarateChannel();
> c->setDatarate(100);
>
> a->connectTo(b,c);
>
> in run time this error appears:
> Error in module (x): (cDatarateChannel):has no parameter named
> 'datareate'

typo?

s/datareate/datarate/

>
> what is the problem?
> please help me.
>
> --
>
> You received this message because you are subscribed to the Google Groups "omnetpp" group.
> To post to this group, send email to omn...@googlegroups.com.
> To unsubscribe from this group, send email to omnetpp+u...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/omnetpp?hl=en.
>
>
>



--
Alberto Cortés
Telematic Engineering Dept. at UC3M
Reply all
Reply to author
Forward
0 new messages