Page 1 of 1

Graph-Windows in batch mode

Posted: Fri Oct 09, 2009 8:00 am
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

Re: Graph-Windows in batch mode

Posted: Fri Oct 09, 2009 8:38 am
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?

Re: Graph-Windows in batch mode

Posted: Mon Oct 12, 2009 3:40 am
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?

Re: Graph-Windows in batch mode

Posted: Mon Oct 12, 2009 4:02 am
by TomDoan
See whether adding

Code: Select all

cntrl(user) 
at the end of the program that you run takes care of it.

Re: Graph-Windows in batch mode

Posted: Mon Oct 12, 2009 4:39 am
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".