Error message when I run sample files

This forum is closed. You can read the posts but cannot write. We have migrated the forum to a new location where you will have to reset your password.
Forum rules
This forum is closed. You can read the posts but cannot write. We have migrated the forum to a new location (https://forum.dynare.org) where you will have to reset your password.

Error message when I run sample files

Postby koji » Wed Mar 29, 2006 8:53 am

Hi Michel and all

I installed dynare 4.0(scilab version) and try to run sample files.

koji
 
Posts: 9
Joined: Wed Mar 29, 2006 8:09 am

Postby MichelJuillard » Wed Mar 29, 2006 10:18 am

There is no Scilab version of Dynare version 4.0.

Can you check which version you are really using and which file did you download from the server?

Thanks

Michel
MichelJuillard
 
Posts: 680
Joined: Thu Nov 18, 2004 10:51 am

Postby koji » Fri Mar 31, 2006 1:57 am

Yes. The version is 3.02.(I downloaded dyn_sci_0302.zip)
What causes the problem?
koji
 
Posts: 9
Joined: Wed Mar 29, 2006 8:09 am

Dynare with Scilab 4.0

Postby MichelJuillard » Fri Mar 31, 2006 12:44 pm

With Scilab version 4.0, it is necessary to add the following steps to redo the binaries. At the Scilab prompt, execute the followin commands:

cd c:\dynare\scilab
getf('uplib.sci')
uplib()

It may be necessary to reload Scilab for the modifications to take effect.

Best

Michel
MichelJuillard
 
Posts: 680
Joined: Thu Nov 18, 2004 10:51 am

Postby koji » Wed Apr 05, 2006 8:26 am

Thank you so much.
I did as you suggest. The result is as follows.

-->getf('uplib.sci')
Warning :redefining function: uplib

-->uplib()
Warning: Error in file dynarescilabasset_fff.sci :
"endfunction is missing"
file ignored

!--error 4
undefined variable : fl
at line 12 of function getsave called by :
line 87 of function genlib called by :
line 3 of function uplib called by :
uplib()

I checked uplib.sci.

function uplib()
%nb=predef(0)
genlib('dynarelib','\dynare\scilab')
predef(%nb(1))

There might be no problem.
koji
 
Posts: 9
Joined: Wed Mar 29, 2006 8:09 am

Postby MichelJuillard » Thu Apr 06, 2006 7:44 am

Dear Koji,

I think you aren't in the right directory when you did uplib(). You must do

cd c:\dynare\scilab
uplib()

It is also possible that you copied other files into c:\dynare\scilab. If that is the case, it is best to erase all files in directory c:\dynare\scilab and start the installation again.

Kind regards

Michel
MichelJuillard
 
Posts: 680
Joined: Thu Nov 18, 2004 10:51 am

Postby koji » Mon Jun 26, 2006 2:59 am

I confirmed that the directory is right. I tried re-install many times.
(And there is no other file in c:\dynare\scilab .
I still have the same problem.

There might be something wrong in irf.sci or stoch_simul.sci?
koji
 
Posts: 9
Joined: Wed Mar 29, 2006 8:09 am

Postby koji » Mon Jun 26, 2006 8:16 am

The 11the line of irf.sci is as follows.

rand('seed',j,'n');

When I delete this line, graphics are shown with no error message.
Is this method correct?
koji
 
Posts: 9
Joined: Wed Mar 29, 2006 8:09 am

Postby MichelJuillard » Mon Jun 26, 2006 7:36 pm

Dear Koji,

thank you for reporting the problem. I will try to correct it as soon as possible

Kind regards

Michel
MichelJuillard
 
Posts: 680
Joined: Thu Nov 18, 2004 10:51 am


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 5 guests