Activity for ckh1

  • ckh1 ckh1 posted a comment on discussion Engineering πŸ‡¬πŸ‡§

    Hi i-campbell. Thanks for the helpful link. Maybe you can help me with this problem too: When I iterate through the library references and separate out the managed libraries and try to access methods or properties on them, if the version of a library in the library manager is not installed on the PC, the script will fail with "Obejct reference not set to an instance of an object." It seems that "catching" the exception with something like isinstance(libRef.managed_library, ScriptLibManObject.ManagedLib)...

  • ckh1 ckh1 posted a comment on discussion Engineering πŸ‡¬πŸ‡§

    Hello, Here's the scenario: 1. A for loop in a python script is used to cycle through and print out the name of the Library References in a python script using the Library Manager "references" property. If a Library Reference.is_managed property is true, and if the version of that library that is set in the Library Manager is not installed on the machine, the the script fails with "Object reference not set to an instance of an object." code #This is an excerpt from the code. #The error occurs when...

  • ckh1 ckh1 posted a comment on discussion Engineering πŸ‡¬πŸ‡§

    Hello, Using a python script, how can we get the exact versions of the libraries that are used in a Codesys program? Currently, using the libman object to get and display the libraries reports all of the versions that are installed on the machine instead of just the versions of the libraries that are used in the Codesys program. For example, let's say that myLib version 1.0.0.0 and myLib v2.0.0.0 are both installed on the machine. I have a Codesys program that uses myLib version 1.0.0.0 (as set in...

  • ckh1 ckh1 posted a comment on discussion Engineering πŸ‡¬πŸ‡§

    Hello @snhatton, Thank you for the very helpful reply! Using VAR PERSISTENT RETAIN is a great idea!

  • ckh1 ckh1 posted a comment on discussion Engineering πŸ‡¬πŸ‡§

    Hello, It is possible to get a string value from the user when a Test Manager test script is executed. But is there a way to store the string value that the user entered so that in subsequent executions it will use the value the user entered? (So it's like a Test Manager test script variable that persists so that each time the script executes, it defaults to the value that was entered the last time the script was executed.) For example (just for the purpose of this discussion), let's say a test script...

  • ckh1 ckh1 modified a comment on discussion Engineering πŸ‡¬πŸ‡§

    Hello, It seems that SysFile.SysFileGetStatus and SysFile.SysFileGetStatus2 never return FS_EOF. The code below is the part of my program that should reads from a file until FS_EOF. Using Codesys in debug mode, I have verified that all of the contents of the file are indeed being read, but even after all of the contents of the file have been read, and the call to SysFileRead is returning 0, the call to SysFileGetStatus2 continues to return FS_OK instead of FS_EOF...forever. Am I attempting to use...

  • ckh1 ckh1 modified a comment on discussion Engineering πŸ‡¬πŸ‡§

    Hello, It seems that SysFile.SysFileGetStatus and SysFile.SysFileGetStatus2 never return FS_EOF. The code below is the part of my program that should reads from a file until FS_EOF. Using Codesys in debug mode, I have verified that all of the contents of the file are indeed being read, but even after all of the contents of the file have been read, and the call to SysFileRead is returning 0, the call to SysFileGetStatus2 continues to return FS_OK instead of FS_EOF...forever. Am I attempting to use...

  • ckh1 ckh1 posted a comment on discussion Engineering πŸ‡¬πŸ‡§

    Hello, It seems that SysFile.SysFileGetStatus and SysFile.SysFileGetStatus2 never return FS_EOF. The code below is the part of my program that should reads from a file until FS_EOF. Using Codesys in debug mode, I have verified that all of the contents of the file are indeed being read, but even after all of the contents of the file have been read, and the call to SysFileRead is returning 0, the call to SysFileGetStatus2 continues to return FS_OK instead of FS_EOF...forever. Am I attempting to use...

1