| AR# |
31095 |
| Part |
SW-SysGen |
| Last Modified |
2008-06-03 00:00:00.0 |
| Status |
Active |
| Keywords |
SysGen, mex, mdl, model, simulate |
Description
Keywords: SysGen, mex, mdl, model, simulate
When I try to simulate any model with a System Generator for DSP block in it, I get the following error message:
"Error in 'TestBlink/Constant' while executing C MEX S-function 'sysgen', (m
dlTerminate), at time 10. MATLAB error message:
Unexpected unknown exception from MEX file."
How do I set up my system environment properly to use System Generator for DSP?
Solution
This error is typically caused by a problem in the system environment setup.
Check your version of System Generator by typing the following at the MATLAB command prompt:
>> xlVersion
Check your version of MATLAB by typing the following at the MATLAB command prompt:
>> ver
Check your version of the Xilinx ISE tools by typing the following at the MATLAB command prompt:
>> system('xinfo')
and go to the fileset.txt tab to confirm the version listed for each Xilinx tool.
Next, make sure you have the latest service packs for all Xilinx tools and double check that you are using compatible versions of all tools, see
(Xilinx Answer 17966).
Lastly, check that the following environment variables are set as follows under the "System Variables."
NOTE: To access your Windows environment variables, open the "System Properties" from the Control Panel and go to the "Advanced" tab.
PATH environment variableThe PATH environment variable should include the following paths in one concatenated list:
System%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;
Mathworks<MATLAB INSTALL DIR>\bin\;<MATLAB INSTALL DIR>\bin\win32;
Where, for example <MATLAB INSTALL DIR> is C:\Program Files\MATLAB\R2007b\
it is best to have the version of MATLAB which you are using for System Generator before any other MATLAB paths on your machine.
Xilinx:>%Xilinx%\bin\nt; %Xilinx\lib\nt
optional:
C:\Xilinx\10.1\ChipScope\bin\nt;%Xilinx_EDK%\bin\nt;%Xilinx_EDK%\lib\nt;
It is important that the \bin\nt directory be listed before the \lib\nt directory
<Xilinx environment variable>
Xilinx = C:\Xilinx\10.1\ISE
where C:\Xilinx\10.1 is the ISE installation directory.