Issues

Matlab interface fails with 'cannot find file specified' error


Issues ID    KI8008753
Status:    Published
Published date:    12/20/2017
Updated:    12/20/2017
Reported In:   Easy5 - EASY5
Created with Version:   EASY5 (2015 (9.1))
 

Known Issue


When exporting the EASY5 model for MATLAB, I get an error and the compilation fails.
This is what appears in the xi_demo.xmi_build.log file:
 
.
.
.
CL /c /MD /O2 ez_env_set.c
 
Traceback (most recent call last):
  File "C:\MSC.Software\Easy5\2013\easy5x\bin\easy5x.py", line 2423, in <module>
    os._exit(easy5_cc(osenv, argv))
  File "C:\MSC.Software\Easy5\2013\easy5x\engine\easy5_cc.py", line 86, in easy5_cc
    status = call(tempArgs, stderr=STDOUT)
  File "C:\MSC.Software\Easy5\2013\python\lib\subprocess.py", line 444, in call
    return Popen(*popenargs, **kwargs).wait()
  File "C:\MSC.Software\Easy5\2013\python\lib\subprocess.py", line 595, in __init__
    errread, errwrite)
  File "C:\MSC.Software\Easy5\2013\python\lib\subprocess.py", line 804, in _execute_child
    startupinfo)
WindowsError: [Error 2] The system cannot find the file specified
 
Failed compilation of file ez_env_set.c.

 

Description

Problem:
 
The cause is that EASY5 cannot find the C compiler. This could be because there is no C compiler installed on the machine, or the path to the C compiler is not in the Windows Path. The S-Function interface to MATLAB that EASY5 uses is compiled using a C compiler. Therefore, an installed C compiler is a requirement in order to use this method.
 
Workaround:
 
The newer FMI interface does not require a C compiler. So if obtaining a C compiler is an issue, you can use the FMI interface instead of the classical s-Function interface via the XMI library.
 
Solution:
 
Install a compatible C compiler and make sure that the path to it is in your Windows PATH within the EASY5 environment.
For a list of compatible C compilers on Windows 64-bit, see this KB article:
KB8022479: https://simcompanion.mscsoftware.com/infocenter/index?page=content&id=KB8022479
Otherwise switch to the FMI method instead.
 
Note:
Be aware that if you decide to go the FMI route, you'll need to use EASY5 2015 or later, as only those versions support FMI.

 


Rate this Page
Rate the quality of this article from 5 (high) to 1 (low):
1
2
3
4
5
 
How can we improve this?

 

Please Sign In

Sign In Password Help | Start here

Get what you want from MSC more efficiently and effectively, either reactively through browsing and searching, or proactively through content subscriptions that you manage.

Click here for a tour of SimCompanion

Click image above for a tour of SimCompanion.

Communities