Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

openEMS folder in 'Program Files': openEMS binary exited with error-code 1 #109

Open
LukasJuchli opened this issue Apr 4, 2023 · 0 comments

Comments

@LukasJuchli
Copy link

Hi,

as I'm knew to github I don't know if placing the issue here is right. Please redirect me to the correct location if posting it here is not right.
I followed the initial steps (documented in your wiki) using Matlab. When running the following command I got the following error:
Command
RunOpenEMS( '.', 'nonexistant.xml', '' )
Error
"openEMS binary exited with error-code 1"

After some digging it got clear that running the openEMS.exe Matlab failed due to a whitespace ' ' in the path directing to the exe-file. In my case it was 'Program Files' that had the whitespace included. Therefore Matlab was not able to run the exe.
Changing line 37 of 'invoke_openEMS.m' to the following solved the problem.

command = ['"' openEMS_bin '"' ' ' opts];

I don't know if this is the 'best' or 'cleanest' solution, but it worked for me.

Note to first-time users: As mentioned in the Wiki, you'll still get an error. But the error is due to not finding the .xml file which doesn't exist. However, the error-code will have the value -1 and not 1 as in the case of not being able to run the exe-file.

Best regards,
Lukas

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant