+ Post New Thread
Results 1 to 5 of 5
  1. #1
    Member level 3
    Points: 1,187, Level: 7
    sameh_yassin99's Avatar
    Join Date
    Feb 2010
    Location
    Egypt
    Posts
    60
    Helped
    13 / 13
    Points
    1,187
    Level
    7

    Scilab problem with plot function

    Dear ALL;

    In my work as telecommunication engineer, I rely much on MatLab. Now because I'm migrating to linux CentOs5 I installed Scilab. Now, I'm facing a problem with plot functions, for example I'm drawing a 1Khz sine wave
    Code:
    fs = 10000; //sampling rate = 10KHz
    t = 0:1/fs:2;// 2 seconds of  simulation
    x = sin(2*%pi*1000); //modulating signal 1KHz
    plot(x);
    and I got the following message
    "ERROR: You appear to be running an X server; please exit X before installing. For further details, please see the section INSTALLING THE NVIDIA DRIVER in the README available on the Linux driver download page at www.nvidia.com."
    I solved this problem by downloading driver from Nvidia.com for my display adapter which is "Riva TNT2 Model64". However, another problem showed up
    "Unable to find the Kernel source tree for the currently running kernel. Please make sure that you have installed the kernel source files for your kernel; on Red hat Linux systems, for example be sure you have the 'Kernel-source' rpm installed. If you know the correct kernel source files are installed, you may specify the kernel source path '--kernel-source-path' commandline option."
    I solved this problem by using the following command
    Code:
    ## yum update kernel\*
    then I rebooted the system and the problem was solved. However I still have one last problem!
    "WARNING: Due to your video card drivers limitations, that are not able to manage OpenGL, Scilab will not be able to draw any graphics. Please update your driver"
    can anybody help me with this one? Some people say that this problem is due to having more than one driver module so I may need to uninstall the old driver. Howevr I dunno how to do that.

    Thanks for your time !

    •   Alt18th May 2010, 17:18

      advertising

        
       

  2. #2
    Advanced Member level 4
    Points: 7,982, Level: 21

    Join Date
    Apr 2010
    Posts
    1,207
    Helped
    244 / 244
    Points
    7,982
    Level
    21

    Re: Scilab problem with plot function

    here are some of my suggestions.

    i have used scilab , but not in centos.

    since current scilab use opengl for graphics ,
    proper drivers for the video card is a must.

    please check mesa.org website whether you can get any clue.

    another option is to run a test program in opengl and make sure that
    your opengl driver works ok for opengl.

    (or) some very earlier scilab versions are without opengl.
    you can find one and test it.

    earlier versions can be perfectly used for learning and writing majority of
    scilab applications.

    this is my suggestions but i dont know whether it will be useful to you are not.

    with regards,
    srizbf
    18thmay2010



    •   Alt18th May 2010, 17:31

      advertising

        
       

  3. #3
    Advanced Member level 4
    Points: 7,982, Level: 21

    Join Date
    Apr 2010
    Posts
    1,207
    Helped
    244 / 244
    Points
    7,982
    Level
    21

    Re: Scilab problem with plot function

    i dont know whether you have solved your problem .
    if not ,please try whether you get any solution
    in this thread.
    look for 'opengl on Linux' forum.

    and you can post your problem also.
    there are some refernce to nvidia drivers in old messages.

    the thread is:
    http://www.opengl.org/discussion_boards/

    with regards,

    srizbf
    19thmay2010



    •   Alt19th May 2010, 19:11

      advertising

        
       

  4. #4
    Member level 3
    Points: 1,187, Level: 7
    sameh_yassin99's Avatar
    Join Date
    Feb 2010
    Location
    Egypt
    Posts
    60
    Helped
    13 / 13
    Points
    1,187
    Level
    7

    Re: Scilab problem with plot function

    Hello there,

    yes, I've solved the problem just yesterday, I'll write what I did to get everything working so I can share it with you.

    Problem Symptom:
    WARNING: Due to your configuration limitations, Scilab switched in a mode where mixing uicontrols and graphics is not available. Type "help usecanvas" for more information.

    Problem Formulation:
    I didn't have a correct kernel module for my graphics driver which is "Nvidfia - GeForce MX4000".

    Problem Solution:
    There is two methods to install your Nvidia driver

    First Method:
    1- download the appropriate driver fom the page:
    "http://www.nvidia.com/object/unix.html",
    the driver is a (.run file) named,for me , "NVIDIA-Linux-x86-96.43.16-pkg1.run".

    2- you have to update your kernel, using the command
    Code:
     update kernel\*
    note: step 2 takes few minutes

    3- To begin installation, You have to close the X server, as root use the following command
    Code:
     /sbin/init 3
    so the GUI is closed and you'll enter he black shell screen

    4- Start installation using
    Code:
     sh ~/NVIDIA-Linux-x86-96.43.16-pkg1.run
    5- To check that the driver is properly installed, in the shell write the command
    Code:
     glxgears
    --> you should see a graphical view showing three moving gears.

    Another check is to open the following file using kwrite
    Code:
     kwrite /etc/X11/xorg.conf
    you'll find the following lines
    Section "Device"
    Identifier "Videocard0"
    Driver "nvidia"
    EndSection
    if the driver is "nv" or "vesa" --> you did nothing !


    second method:

    1-Install priorities
    Code:
     yum install yum-priorities
    2- Install ELrepo as a third party repository
    Code:
    rpm -Uvh http://elrepo.org/elrepo-release-0.1...epo.noarch.rpm (external link)
    rpm --import http://elrepo.org/RPM-GPG-KEY-elrepo.org (external link)
    3- Start installation
    Code:
    yum --disablerepo=\* --enablerepo=elrepo install kmod-nvidia nvidia-x11-drv
    4- You are done!

    regards



  5. #5
    Advanced Member level 4
    Points: 7,982, Level: 21

    Join Date
    Apr 2010
    Posts
    1,207
    Helped
    244 / 244
    Points
    7,982
    Level
    21

    Re: Scilab problem with plot function

    thanks for the message on installing nvidia ogl drivers.

    srizbf
    22ndmay2010



+ Post New Thread
Please login