UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Explorer
Explorer
2,497 Views
Registered: ‎05-03-2018

System Generator 'OpenFcn' error

Jump to solution

Dear all,

I have a problem that I'm experiencing with System Generator, below I bring you my HW / SW configuration:


• HP Z4G4 Workstation, Intel Xeon W-2123 3.60 GHz Processor, 16 GB RAM, NVIDIA Quadro P2000 Video Card
• Linux RedHat Enterprise Linux Workstation 7.4
• Xilinx Vivado HLS System Edition 2018.1
• Matlab R2018a and R2017b

 

Practically when I launch System Generator (<vivado folder> / bin / sysgen) Matlab opens correctly but when I try to open any System Generator project (even a Xilinx demo) it takes a lot to open the model and on the Matlab command window I get the following message:

 

Warning: The GUI System Generator socket server timedout while waiting for an incoming socket connection. To tune the acceptTimeout value in the xlServerSocketOptions.m file. The xlServerSocketOptions.m file is on your MATLAB path and can be edited by typing 'edit xlServerSocketOptions.m' in the MATLAB console.

 

Once the model is open (the test I did with the example Reloadable FIR Filter but with another demo is the same thing), if I try to enter the configuration of a Xilinx block, the tool remains for a long time waiting and, at the end, it gives me an error window with the following message:

 

Error evaluating 'OpenFcn' callback of Xilinx FIR Compiler 7.2 Block block (mask) 'sysgenReloadable / FIR Compiler 7.2'. Callback string is 'xlOpenGui (gcbh,' fir_compiler_v7_2_gui.xml ', @xlipmagiccallback_pass_evaluate_params, @ fir_compiler_v7_2_action)'
Error using xlNMIProxy Timed out waiting for a response from GUI to: (12.0001) buildGUI DISPLAY ENV = ": 0" timeout value = 180.0005

 

The test described I did it with both Matlab R2018a and R2017b.


I know that Vivado 2018.2 is out but, due to incompatibility with the other tools I use, I can not install it.

 

Can you help me ?


Thank you in advance.

Best regards,
Andrea

0 Kudos
1 Solution

Accepted Solutions
Moderator
Moderator
2,328 Views
Registered: ‎08-16-2018

回复: System Generator 'OpenFcn' error

Jump to solution

@andreac_avnet

 

One of the customers finally solved the same problem by using the desktop environment KDE (instead of Gnome).

 

Can you check it as well.


/ 7\7     Meher Krishna Patel, PhD
\ \        Senior Product Application Engineer, Xilinx
/ /        
\_\/\7   It is not so much that you are within the cosmos as that the cosmos is within you...

View solution in original post

22 Replies
Moderator
Moderator
2,478 Views
Registered: ‎08-01-2007

回复: System Generator 'OpenFcn' error

Jump to solution

This is due to incompatible Matlab version - R2018a and some issues in installing Vivado. This may be a network installation and some environment variable may need to set.

Explorer
Explorer
2,463 Views
Registered: ‎05-03-2018

回复: System Generator 'OpenFcn' error

Jump to solution

dear @nathanx,

We tried to use a official supported version (referring to https://www.xilinx.com/support/answers/55830.html ):

 

Vivado System Generator for DSP 2018.1:

Operating System Support:

  • Windows 7 SP1 Professional (64-bit), English/Japanese.
  • Windows 10 Professional (64-bit), English/Japanese.
  • Red Hat Enterprise Workstation/Server 7.2 and 7.3 (64-bit)
  • Red Hat Enterprise Workstation 6.6, 6.7, 6.8 and 6.9 (64-bit)
  • SUSE Linux Enterprise 11.4 and 12.3 (64-bit)
  • Cent OS 7.2 , 7.3 and 7.4 (64-bit)
  • Cent OS 6.7, 6.8 and 6.9 (64-bit)
  • Ubuntu Linux 16.04.3 LTS (64-bit)

Required:

  • Vivado Design Suite 2018.1 System Edition
  • Supported MATLAB Versions: 2017a and 2017b from MathWorks (requires Fixed-Point Designer for bus-widths greater than 53 bits)

Even with Vivado 2018.2 and trying with MATLAB 2017b, 2018a and 2018b  but nothing changed.

 

Best regards,
Andrea

0 Kudos
Moderator
Moderator
2,458 Views
Registered: ‎08-16-2018

回复: System Generator 'OpenFcn' error

Jump to solution

Can you open the matlab (or sysgen) through terminal.  If yes, will you try the below steps and then open the design, 

1. Download the Matlab license file and save it. 

2. Run the below command,      

      $ sysgen -c <location of Matlab-license>


/ 7\7     Meher Krishna Patel, PhD
\ \        Senior Product Application Engineer, Xilinx
/ /        
\_\/\7   It is not so much that you are within the cosmos as that the cosmos is within you...
Explorer
Explorer
2,456 Views
Registered: ‎05-03-2018

回复: System Generator 'OpenFcn' error

Jump to solution
What should I get with this steps ?

Do you think that is there a problem with the license ?

Regards,
Andrea
0 Kudos
Moderator
Moderator
2,455 Views
Registered: ‎08-16-2018

回复: System Generator 'OpenFcn' error

Jump to solution
Not sure, as we did not face this problem before. But, we have seen other problems which are solved by pointing to license manually.

/ 7\7     Meher Krishna Patel, PhD
\ \        Senior Product Application Engineer, Xilinx
/ /        
\_\/\7   It is not so much that you are within the cosmos as that the cosmos is within you...
Explorer
Explorer
2,452 Views
Registered: ‎05-03-2018

回复: System Generator 'OpenFcn' error

Jump to solution
Ok, I'll try it asap.

Thank you in advance @meherp.
I'll let you know if the problem is resolved.

Best regards,
Andrea
0 Kudos
Explorer
Explorer
2,436 Views
Registered: ‎05-03-2018

回复: System Generator 'OpenFcn' error

Jump to solution

Dear @meherp and @nathanx,

I did the test with Vivado 2018.2 and MATLAB R2018a both with the license file downloaded during the installation of MATLAB and with a new downloaded file from the Mathworks website but the result is identical.

 

What should I try next ?

 

Best regards,

Andrea

 

0 Kudos
Moderator
Moderator
2,431 Views
Registered: ‎08-16-2018

回复: System Generator 'OpenFcn' error

Jump to solution

quick question: what is the meaning of "configuration of a block Xilinx"?

Does this mean that 'double clicking on System Generator token (red color)' or something else?

 

 


/ 7\7     Meher Krishna Patel, PhD
\ \        Senior Product Application Engineer, Xilinx
/ /        
\_\/\7   It is not so much that you are within the cosmos as that the cosmos is within you...
Moderator
Moderator
2,427 Views
Registered: ‎08-16-2018

回复: System Generator 'OpenFcn' error

Jump to solution
Currently I am using Vivado 2018.2 and Matlab R2018a. It's working fine.

Try this as well, which resolved a similar problem,

* Open the System Generator Configurator:
* Remove Matlab R2018a so that it's no longer configured and close it.
* Relaunch System Generator Configurator
* Mark Matlab R2018a as configured


Source : (https://forums.xilinx.com/t5/DSP-IP-and-Tools/Sysgen-2018-2-and-Matlab-R2018A-are-seemingly-NOT-compatible/td-p/890840)

/ 7\7     Meher Krishna Patel, PhD
\ \        Senior Product Application Engineer, Xilinx
/ /        
\_\/\7   It is not so much that you are within the cosmos as that the cosmos is within you...
Explorer
Explorer
2,430 Views
Registered: ‎05-03-2018

回复: System Generator 'OpenFcn' error

Jump to solution
Are you using Linux or a different OS ?

Best regards,
Andrea
0 Kudos
Explorer
Explorer
2,419 Views
Registered: ‎05-03-2018

回复: System Generator 'OpenFcn' error

Jump to solution

Dear @meherp,

Quick question:

 

From the user manual of System Generator I realized that, under linux,

I have to put in the environment variable PATH the path of the bin folder of the version of MATLAB that you intend to use.

Then I have to run the "sysgen" command from the <Vivado_install_dir> / bin folder (page 14 of UG897).
Is my way of proceeding correct?

 

Best regards,
Andrea

0 Kudos
Moderator
Moderator
2,414 Views
Registered: ‎08-16-2018

回复: System Generator 'OpenFcn' error

Jump to solution

I tried it on both Windows-10 and Red Hat Linux. It is working fine on both the OS.


/ 7\7     Meher Krishna Patel, PhD
\ \        Senior Product Application Engineer, Xilinx
/ /        
\_\/\7   It is not so much that you are within the cosmos as that the cosmos is within you...
Moderator
Moderator
2,408 Views
Registered: ‎08-16-2018

回复: System Generator 'OpenFcn' error

Jump to solution
I will recheck the settings, but it seems to be correct as we can open the Matlab using sysgen command.

You mentioned in the post "if I try to enter the configuration of a Xilinx block, the tool remains for a long time waiting and, at the end, it gives me an error window with the following message".

What is the meaning of "configuration of a Xilinx block" in the above line.

/ 7\7     Meher Krishna Patel, PhD
\ \        Senior Product Application Engineer, Xilinx
/ /        
\_\/\7   It is not so much that you are within the cosmos as that the cosmos is within you...
Explorer
Explorer
2,385 Views
Registered: ‎05-03-2018

回复: System Generator 'OpenFcn' error

Jump to solution

Dear @meherp,

The customer means that he just double click on the block and it should open the configuration window.

(attached you will find the example "FIR compiler" )

 

He didn't know that there was a configurator on Linux.

How can he opens it ?

 

Furthermore the link you gave us before:

https://forums.xilinx.com/t5/DSP-IP-and-Tools/Sysgen-2018-2-and-Matlab-R2018A-are-seemingly-NOT-compatible/td-p/890840

Refers to Windows 10 OS not Linux Red Hat.

 

The customer screenshotted every step just to clarify how he ended up with that problem:

1. Configuration of environment variables

2. Launch System Generator

3. Matlab Prompt, then I load the examples by clicking on "demo blockset xilinx"

4. Select "Preloadable FIR Filter"

5. Click on "Open this model"

 

I'll continue this in the next reply to attach more images.

 

FIR compiler.png
Step 1.png
Step 2.png
Step 3.png
Step 4.png
Step 5.png
0 Kudos
Explorer
Explorer
2,384 Views
Registered: ‎05-03-2018

回复: System Generator 'OpenFcn' error

Jump to solution

6. After about a minute of waiting on the command window, the message "Warning: The System Generator GUI socket server timedout" appears while waiting for an incoming socket connection. To tune the acceptTimeout value in the xlServerSocketOptions.m file. The xlServerSocketOptions.m file is on your MATLAB path and can be edited by typing 'edit xlServerSocketOptions.m' in the MATLAB console. "

7. After about 10 seconds, finally the model opens, I double-click on the FIR Compiler 7.2 block and I wait ...

 

 

END - 8. After about 3 minutes the error window appears with the message:
"Error evaluating 'OpenFcn' callback of Xilinx FIR Compiler 7.2 Block block (mask) 'sysgenReloadable / FIR Compiler 7.2'. Callback string is 'xlOpenGui (gcbh,' fir_compiler_v7_2_gui.xml ', @xlipmagiccallback_pass_evaluate_params, @ fir_compiler_v7_2_action)'
Error using xlNMIProxy Timed out waiting for a response from GUI to: (12.0001) buildGUI DISPLAY ENV = ": 0" timeout value = 180.0005 "

Attached I have listed the complete list of installed packages, to this important must be added the driver of the graphics card (NVIDIA-Linux-x86_64-390.87).

 

 

I'm waiting for help, the customer is blocked here.

 

Best regards,
Andrea

0 Kudos
Moderator
Moderator
2,372 Views
Registered: ‎08-16-2018

回复: System Generator 'OpenFcn' error

Jump to solution

Thanks for the snapshots. The below warning should not appear,

    Warning: The Sysgen Generator GUI socket server timeout while waiting for an incoming socket connection.

 

Please check this as well,

1. Try to run sysgen as administer $ sudo sysgen  (as matlab in opt folder).

 

2. If not work, please try this as well,

https://in.mathworks.com/matlabcentral/answers/334889-can-t-install-any-toolboxes-because-can-t-write-to-usr-local-matlab-r2017

 

3. Also, please perform the post installation task described at page 14 of UG897 (to add sysgen on Matlab).


/ 7\7     Meher Krishna Patel, PhD
\ \        Senior Product Application Engineer, Xilinx
/ /        
\_\/\7   It is not so much that you are within the cosmos as that the cosmos is within you...
Screenshot_1.jpg
Explorer
Explorer
2,358 Views
Registered: ‎05-03-2018

回复: System Generator 'OpenFcn' error

Jump to solution

Dear @meherp,

Here're the answers from the customer.

 

1. It's not good for me, because using sudo I would start Matlab as root user but my Matlab license is linked to the username (which is not root in the license) so does not part Matlab.


2. Done, but with a negative result.


3. The compilation of the libraries still do so because we still have the licenses. This should not be blocking if I do not simulate HDL code generated, for me now I just simulate it only in Simulink.

 

How do we proceed now?

 

Best regards,
Andrea

 

0 Kudos
Moderator
Moderator
2,341 Views
Registered: ‎08-16-2018

回复: System Generator 'OpenFcn' error

Jump to solution

Warning message indicates either the java runtime is not loaded or some problem with QT path.

FYI: Sysgen block uses QT based GUI for its customization.

 

Can you please try to check it (or reinstall it)?


/ 7\7     Meher Krishna Patel, PhD
\ \        Senior Product Application Engineer, Xilinx
/ /        
\_\/\7   It is not so much that you are within the cosmos as that the cosmos is within you...
Explorer
Explorer
2,334 Views
Registered: ‎05-03-2018

回复: System Generator 'OpenFcn' error

Jump to solution

Dear @meherp,

If I open a terminal and launch java -version I have the following info:

 

openjdk version "1.8.0_161"
OpenJDK Runtime Environment (build 1.8.0_161-b14)
OpenJDK 64-Bit VM Server (build 25.161-b14, mixed mode)

 

 

I have not installed any additional Java Runtime beyond the expected basic RHEL 7.4 also because the UG973 is not even mentioned.


Moreover Vivado in the installation brings his JRE in:

 

<Vivado_inst_dir> / tps / lnx64 / jre

And also MATLAB has its jre in:

<MATLAB_inst_dir> / sys / java / jre / glnxa64 / jre / bin

 

About the Qt libraries, what should I check / install?

 

Best regards,
Andrea

0 Kudos
Moderator
Moderator
2,329 Views
Registered: ‎08-16-2018

回复: System Generator 'OpenFcn' error

Jump to solution

@andreac_avnet

 

One of the customers finally solved the same problem by using the desktop environment KDE (instead of Gnome).

 

Can you check it as well.


/ 7\7     Meher Krishna Patel, PhD
\ \        Senior Product Application Engineer, Xilinx
/ /        
\_\/\7   It is not so much that you are within the cosmos as that the cosmos is within you...

View solution in original post

Newbie g00ber
Newbie
604 Views
Registered: ‎05-18-2018

回复: System Generator 'OpenFcn' error

Jump to solution

We have the same issue with R2018a and Vivado 2018.3 on CentOS 7.

Warning: The System Generator GUI socket server timedout while waiting for an incoming socket connection. To tune the acceptTimeout value in the xlServerSocketOptions.m file. The xlServerSocketOptions.m file is on your MATLAB path and can be edited by typing 'edit xlServerSocketOptions.m' in the MATLAB console.

This is for Xilinx demo Simulink design with sysgen blockset.

0 Kudos
Newbie g00ber
Newbie
572 Views
Registered: ‎05-18-2018

回复: System Generator 'OpenFcn' error

Jump to solution

@meherp 

 

Switching to KDE did fix our issue too.  Thank you so much.  I do not understand the relationship, but I'll use KDE over GNOME if sysgen code generator works.

 

Matt

0 Kudos