my customize function is not showing in the .ini for my .interArrivatime?

3 views
Skip to first unread message

Sultan Mahmud Tusher

unread,
Feb 20, 2017, 10:10:28 PM2/20/17
to OMNeT++ Users
Hello,

I wrote my function in distrib.cc and distrib.h and called in nedfunction.cc. I am not able to see this function .ini file when I try to do cltr+space to find the function.

This is what I have written

in distrib.cc

double runiform(double a, double b) {
  double f= a*a+b;
  return f;
}

in distrib.h

SIM_API double runiform(double a , double b);

in nedfunction.cc

DEF(nedf_runiform,
  "quantity runiform(quantity a, quantity b)",
  "random/continuous",
  "Retains the value generated from a previous call to runiform()"
  {
//    int rng = argc==2 ? (int)argv[1] : 0;
    return cNEDValue(runiform(argv[0], argv[1]));
})

I have compiled it after writing it but it was successfully compiled as there was no error given in make. But I am not able to see it in the .ini file to give parameter for this function. Can you anyone help me out with this? 

Thanks Tusher
Reply all
Reply to author
Forward
0 new messages