AR# 56503


2013.1 Vivado Sysgen - Java exception occurred and reported when running xlDiagnosticInfo from the Matlab console


I ran xlDiagnosticInfo from the Matlab console in Vivado System Generator 2013.1, but when I reviewed the xilinx_diag_output.txt file created, I see the following unexpected java exception:

TEMPDIR = Error using xlDiagnosticInfo (line 188)
Java exception occurred:
java.lang.UnsatisfiedLinkError: com.xilinx.sysgen.util.EnvironmentUtil.getTempDir()Ljava/lang/String;
                at com.xilinx.sysgen.util.EnvironmentUtil.getTempDir(Native Method)
USERTEMPDIR = Error using xlDiagnosticInfo (line 195)
Java exception occurred:
java.lang.UnsatisfiedLinkError: com.xilinx.sysgen.util.EnvironmentUtil.getUserTempDir()Ljava/lang/String;
                at com.xilinx.sysgen.util.EnvironmentUtil.getUserTempDir(Native Method)
Cache Root Dir = Error using xlDiagnosticInfo (line 202)
Java exception occurred:
java.lang.UnsatisfiedLinkError: com.xilinx.sysgen.util.EnvironmentUtil.getCacheRootPath()Ljava/lang/String;
                at com.xilinx.sysgen.util.EnvironmentUtil.getCacheRootPath(Native Method)


This is a known issue in Vivado Sysgen 2013.1. The reason that an exception was thrown here is because the environment was not initialized correctly. This ONLY happens when a user launches System Generator and types xlDiagnosticInfo immediately into the Matlab console.

To work around or avoid the issue, there are two options:

  1. Open an MDL, then everything will get initialized and it is safe to run xlDiagnosticInfo
  2. Launch System Generator from the Start menu, type xlmeta in the Matlab console, then type xlDiagnosticInfo


In both of the above cases no java exception should occur. This issue has been fixed in 2013.2.

AR# 56503
Date 06/21/2013
Status Active
Type General Article
People Also Viewed