Title: Issue with Running an External CSV Viewer in CODESYS on a Windows Environment
Body:
I’m CSI student and I’m working with CODESYS to create an application which will use an external csv application I need to work the csv viewer wheenter image description heren I press a “Data History” button. Over the years, I’ve established the appropriate library and parameters inside my code, but unfortunately, I've encountered the issue the SysProcessCreate2 function.
Problem Details:
According to the log is presented to me when doing a start of the external application I see the following message:
Error Code: -1 (RTS_INVALID_HANDLE)Details (39): This is a failure in the process creation related to permissions or configuration issues.
Steps I’ve Tried:
I ran the file paths through the PowerShell which ensured me that they are indeed functional in CODESYS.I found the config file and made sure the code was included in the [SysProcess] section with the following lines:Furthermore, I rebooted the runtime to apply the configuration changes that were made to the “CODESYSControl.cfg” file.Then I proceeded with launching notepad.exe as the command was easier, and it allowed me to understand that since it was the same error.My efforts went a bit wasted.
Observations:
The file paths and commands are functional when done through PowerShell.At least I can suspect it to be either a configuration or a permission-related issue due to the fact that the file runs as a process on Windows in most cases.
Environment Details:
CODESYS Version: 3.5.19.20 & Operating System: WindowsApplication to Launch: CSV Viewer
Question:
Has anyone else faced any problems when trying to use the Windows' SysProcessCreate2 function? What are the possible extra settings not provided in the compact code for the application to work exactly as it was designed, if any?
Some advice or attention-grabbing code would be greatly appreciated. Remember, I owe you one!