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:Objectreferencenotsettoaninstanceofanobject
With kind regards
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
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:
With kind regards
Hi.
Which version of CODESYS does throw the error?
BR
Martin
Hi,
Currently we use 3.5.13.10
Hi.
Does the error also occur with CODESYS 3.5.15.30?
BR
Martin
Hi Martin,
I have the same problem with 3.5.15.20.
The origin problem is, that the project will not open when I call
Without --noUI everything is fine. When I open the project within the script then also all is fine.
How to open the project within the call like without --noUI?
Last edit: flow 2020-06-25
Hi,
Sadly, we cannot use that version, because it is installed in a offline environment.
Regards,
Hermsen
Same problem with project save in version 3.5.19.0.
A minimal example for reproducing:
The same without --noUI flag works fine
Last edit: vladilen 2023-05-29