Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Scilab problem with plot function

Status
Not open for further replies.

sameh_yassin99

Member level 3
Joined
Feb 7, 2010
Messages
60
Helped
13
Reputation
26
Reaction score
8
Trophy points
1,288
Location
Egypt
Activity points
1,741
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 !
 

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
 

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:
https://www.opengl.org/discussion_boards/

with regards,

srizbf
19thmay2010
 

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 **broken link removed** (external link)
rpm --import [url]https://elrepo.org/RPM-GPG-KEY-elrepo.org[/url] (external link)

3- Start installation
Code:
yum --disablerepo=\* --enablerepo=elrepo install kmod-nvidia nvidia-x11-drv

4- You are done!

regards
 

thanks for the message on installing nvidia ogl drivers.

srizbf
22ndmay2010
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top