CmpCodeMeter check for MC License doesn't work

Runtime
Anonymous
2019-04-29
2019-05-02
  • Anonymous - 2019-04-29

    Originally created by: KevinR

    Hello Community,

    I try to check if there is a MultiCore license available on the runtime.

    This function works well, when I check the single core license or other single licenses, but not for multi core.

    hHandleCmpCodeMeter:= CMPCODEMETER.CodeMOpen(udiFirmCode,udiProductCode,udiFeatureMap,rtsResult);
    

    If I check for a multi-core license, the function returns an CmpError Code "40", which is described as a "Device_Error".

    Can anyone help me with this?

    Thank you in advance,
    BR KevinR

    IMG: Bild

    IMG: Sreen1.PNG

    IMG: Function1.PNG

     
  • eschwellinger

    eschwellinger - 2019-04-29

    Hi,
    use:

    Could check if 16#20000000 ( you need to give this feature map in hex) then it will work.
    Handle:= CMPCODEMETER.CodeMOpen(5000304,8787,16#20000000,Result);

    BR
    Edwin

     
  • Anonymous - 2019-05-02

    Originally created by: KevinR

    I verified it and it works well.

    Thank you so much, Edwin

    BR
    Kevin

     

Log in to post a comment.