Graph-Windows in batch mode

For questions and discussion related to graphs, reports, and other output, including issues related to presenting or publishing results.
jonasdovern
Posts: 97
Joined: Sat Apr 11, 2009 10:30 am

Graph-Windows in batch mode

Unread post by jonasdovern »

Dear RATS users,

is it true that when running in batch mode, RATS can only display one window with graphs at a time? I am working on a program that creates a complex user menu and should be started by the user in batch mode (i.e. by clicking just one short cut icon). It seems, however, that all procedures, which plot more than one graph, display only the last one after they are called by the user.

Is there any way to change the setting to be able to display more windows at a time in batch mode?

Best, Jonas
TomDoan
Posts: 7814
Joined: Wed Nov 01, 2006 4:36 pm

Re: Graph-Windows in batch mode

Unread post by TomDoan »

The idea behind "batch" is that the program is running unattended, so there's no one to see the graphs anyway.

Do I understand correctly that what you want is a program that you double click, it loads some preliminary code that sets up a user menu and then turns control over to the user?
jonasdovern
Posts: 97
Joined: Sat Apr 11, 2009 10:30 am

Re: Graph-Windows in batch mode

Unread post by jonasdovern »

Yes, thats what we want to implement. I could do that, of course, by letting the user simply double click a standard .prg file, which sources the entire preliminary code. But in that case the text file with at least the "source(noecho) xyz.src"-line will be displayed in RATS. This would be fine if there is no other way. But: Is there another way?
TomDoan
Posts: 7814
Joined: Wed Nov 01, 2006 4:36 pm

Re: Graph-Windows in batch mode

Unread post by TomDoan »

See whether adding

Code: Select all

cntrl(user) 
at the end of the program that you run takes care of it.
jonasdovern
Posts: 97
Joined: Sat Apr 11, 2009 10:30 am

Re: Graph-Windows in batch mode

Unread post by jonasdovern »

I included that behind the loop that creates the user menu, i.e. at the very end of the programm that I run. It seems to make no difference with respect to the "graph-problem".
Post Reply