Issue When Calling Matlab or R from EViews for Long Program

For questions regarding programming in the EViews programming language.

Moderators: EViews Gareth, EViews Jason, EViews Moderator, EViews Matt

vkarora
Posts: 9
Joined: Fri May 31, 2013 10:59 am

Issue When Calling Matlab or R from EViews for Long Program

Postby vkarora » Sun Dec 15, 2013 11:14 am

I am calling either R or Matlab from an EViews program. I have found that if the R or Matlab scripts take longer than one minute to complete there is a dialog box that pops up which says something to the effect of "server busy", and gives an option to "switch to" to "retry" or to "cancel". The issue is that EViews seems to stop executing once this dialog pops up until I select either "switch to" or "retry", and so I am unable to leave the programs to run on their own to completion.

I am hoping someone has encountered a similar problem before and might be able to assist or provide any advice. The only references I can find to this type of thing are specific to Matlab. Thanks in advance.

EViews Steve
EViews Developer
Posts: 788
Joined: Tue Sep 16, 2008 3:00 pm
Location: Irvine, CA

Re: Issue When Calling Matlab or R from EViews for Long Prog

Postby EViews Steve » Mon Dec 16, 2013 9:35 am

I have create a new function called "COMTIMEOUT" that allows you to extend the timeout period before you get the "busy server" dialog or turn it off altogether. Send me an email (steve@eviews.com) referring to this forum post and I'll send you this code change so you can try it before we release it in the next patch.

Specify your EViews serial number and which version you are running (EViews 7, 8, 32-bit, 64-bit, etc.)

Steve

EViews Steve
EViews Developer
Posts: 788
Joined: Tue Sep 16, 2008 3:00 pm
Location: Irvine, CA

Re: Issue When Calling Matlab or R from EViews for Long Prog

Postby EViews Steve » Wed Nov 05, 2014 10:41 am

For others looking to use this command, you can now use it in EViews like this:

COMTIMEOUT(seconds to wait)

Set seconds to zero (0) if you never want it to timeout.

Steve

fmramos
Posts: 113
Joined: Fri Sep 19, 2008 7:30 am
Location: Sao Paulo / Brazil
Contact:

Re: Issue When Calling Matlab or R from EViews for Long Program

Postby fmramos » Tue Oct 17, 2017 11:37 am

Nice topic. It was really useful for me. EV10 already has this command embedded. Thanks, Fabio


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 26 guests