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