AR# 46482: SysGen - Starting SysGen launches wrong Matlab version. How to unconfigure Matlab Versions?
SysGen - Starting SysGen launches wrong Matlab version. How to unconfigure Matlab Versions?
I just installed a newer version of Matlab. I used the Matlab Configurator to configure SysGen to use the new version of Matlab, but when I launch SysGen, it still uses the old version. When I open the Configurator again, the status of both versions are listed as 'Configured.' I tried manually editing my systemenvironment variables, but it does not help.There is no way to unconfigure a particular Matlab version. What is going on?!
This is a Windows only issue.
When SysGen is launched properly (from the Start menu), it sets up the Xilinx environment for you, partially based on the settings that you set in the Configurator. It simply appends the configured versions of Matlab onto the front of your path. When multiple versions of Matlab are configured, it appends both versions in numerical order. The older version may be appended first in the path, thus SysGen will find and use the older version.
You can manually unconfigure Matlab by modifying the followingthree files:
C:\Program Files\MATLAB\R2011a\toolbox\local\classpath.txt (at the end of the file, remove the line that points to Xilinx sysgen.jar)
C:\Program Files\MATLAB\R2011a\toolbox\local\librarypath.txt (remove the two lines pointing to Xilinx sysgen /bin and /bin/nt64)
C:\Program Files\MATLAB\R2011a\toolbox\local\pathdef.m (near the beginning of the file, comment out all the Xilinx lines)