Python Scripted Save_Archive with noUI

Hermsen
2020-01-21
2020-01-29
  • Hermsen

    Hermsen - 2020-01-21

    EDIT :

    Dear support,

    Would you be so kind to post a working example of python code to save an archive while calling CODESYS.exe with --noUi option?

    Thank you in advance!

    EDIT

    Dear Forum,

    When we run a testscript embedded in the CODESYS IDE , we can call

    projects.primary.save_archive(path, name)
    

    and the script will save our project as an archive.
    When we run this same test script called agains the CODESYS IDE --noUI, the script fails and returns:

    Error: Object reference not set to an instance of an object
    

    With kind regards

     
  • mkeller

    mkeller - 2020-01-28

    Hi.

    Which version of CODESYS does throw the error?

    BR
    Martin

     
  • Hermsen

    Hermsen - 2020-01-28

    Hi,

    Currently we use 3.5.13.10

     
  • mkeller

    mkeller - 2020-01-29

    Hi.

    Does the error also occur with CODESYS 3.5.15.30?

    BR
    Martin

     
  • Hermsen

    Hermsen - 2020-01-29

    Hi,

    Sadly, we cannot use that version, because it is installed in a offline environment.

    Regards,

    Hermsen

     

Log in to post a comment.