When I open a model and try to customize a Gateway block (or any block), I receive the following error:
Recursion detected in the OpenFcn of 'untitled/Gateway In
Other errors occur as well depending on the block and whether it is a new or existing design.
Undefined variable "this" or class "this.GUIClass".
The following message was in the Matlab console:
Warning: The following error was caught while executing 'xlSocketServer_impl' class destructor:
Java exception occurred: java.lang.NullPointerExceptionat com.xilinx.sysgen.socketinterface.RawSocketLayer.close(RawSocketLayer.java:133)
In C:\Xilinx\Vivado\2014.1\scripts\sysgen\matlab\xlSocketServer_impl.p>xlSocketServer_impl.getInstance at 114
In C:\Xilinx\Vivado\2014.1\scripts\sysgen\matlab\xlSocketServer.p>xlSocketServer.xlSocketServer at 45
In xlmeta_start>loadServers at 38
In xlmeta_start at 20
In c:\matlab\R2013b_x64\toolbox\simulink\simulink\private\lb_getChildrenHandles.p>loc_getBlocksOneLevel at 39
In c:\matlab\R2013b_x64\toolbox\simulink\simulink\private\lb_getChildrenHandles.p>lb_getChildrenHandles at 26
In slprivate at 12
What is the cause of these errors?
This is a known issue discovered in 2014.1(Windows) when the model and Matlab workspace are set to an unmapped network location.
You can work around the issue by mapping the network location to a drive letter and using it instead.
You could map '\\my_server' in the example above to Z:, and then point the Matlab workspace to the following: