AVEVA Community
AVEVA Community
  • Site
  • User
  • Site
  • Search
  • User
PDMS "Lessons Learned"
  • AVEVA World
  • PDMS/E3D Forum
  • PDMS "Lessons Learned"
  • Cancel
PDMS "Lessons Learned"
Error Codes Gadget error?
  • Forums
  • Resources
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
  • Replies 5 replies
  • Subscribers 1 subscriber
  • Views 14 views
  • Users 0 members are here
Options
  • Share
  • More
  • Cancel
Related

Gadget error?

chris
chris over 9 years ago
 
  • Sign in to reply
  • Cancel
  • chris
    chris over 9 years ago
    Hi guys, can somebody tell me what this means?

    (61,125)  F&M: Gadget SYSTEM not found
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Benjamin Heredia
    Benjamin Heredia over 9 years ago
    Hi Zombini..

    The form has no gadget created with name SYSTEM. Gadget could be text, list, option, frame etc. Please check your form and look for gadget system. Gadgets are usually  declared on form setup.
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • chris
    chris over 9 years ago
    Thanks for the reply.

    this is the line in the option file:

    VAR !SYSTNAME '$_SYSTEM'

    Does '$_SYSTEM' indicate a gadget? I can't find a form that is called by this.
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Benjamin Heredia
    Benjamin Heredia over 9 years ago
    Hi Zombini,

    $ in PML is a special character. Whenever PDMS detects $, all characters that follow it are treated as special command. Looking at your syntax the next character is, underscore '_' , in PML1 syntax,  underscore is use when calling a gadget or method of any form. Example, q var !!MyFORM_textgadget is basically the same as using the PML2 style of calling q var !
    !MyFORM.textgadget. So that is the reason whey PDMS has treated your code as calling a gadget and returned an error.

    To avoid the same error in the future, do not create any variable with an underscore as the PDMS system will read it as you are calling a method or gadget of a form. Also if you reallt want to use $, do it this way $$.

    Regards,
    Maynard
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • chris
    chris over 9 years ago
    thanks for the info maynard
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel