Problem to Get Module c#

Discussion created by snepes on May 15, 2014
Latest reply on May 16, 2014 by snepes



I'm trying get module, but I don't  know yet.


I used two ways for get Module, but didn't work.



  • 1º way:

               PISDK.PIModule modulo = PIACEBIFunctions.GetPIModuleFromPath(this.Context);

  • 2º way:

              PIModule listaModulo = server.PIModuleDB.PIModules[0];


Both ways return null and I have three modules.


Could anybody help me?