[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: sending messages to an already-running instance of octave

From: Dan Hitt
Subject: Re: sending messages to an already-running instance of octave
Date: Sun, 18 Jun 2017 09:58:33 -0700

Thanks Olaf!

My situation is that i'm writing software that produces data i would
like to plot and probably interact with, and i want it to be as smooth
and easy as possible.

It would be possible for me to create plots in gtk, with all the
advantages of interactivity and control and so on that this implies,
but also all the disadvantages of a great deal more code, most of it
devoted to supporting other code.

What i would like to do instead is marshal the data and write it (to a
file or a socket or whatever) and send a command off that says "plot".
(Possibly down the road, it would be nice to get a descriptor back and
be able to produce more data, and send a command that says "add to

So i'd like to separate the data preparation from the graphing, what
people sometimes call separating the "business logic" from the

(This of course is not new with me nor with this century, so it may
just be my total ineptness at googling that i can't jump right to an

I'm using debian 9 ("stretch") and would like to do all of this with
free software.  Software in debian packages would be best, but i don't
mind compiling things.

And i wouldn't have to use octave, but it would have to be something
along those lines, something that plots as well as letting the user
interact with the data.

And the communication really has to be at arm's length, the choice of
my programming language is dictated by other concerns.

TIA for any more hints!


On Sun, Jun 18, 2017 at 8:39 AM, Olaf Till <address@hidden> wrote:
> On Sat, Jun 17, 2017 at 10:21:46PM -0700, Dan Hitt wrote:
>> Suppose that i start octave from the command line or otherwise, and am
>> interacting with it.
>> And suppose that i then run some other program.
>> Is there any way that the other program can send commands and data to
>> my running octave, through dbus or any other ipc method?
>> The only requirements are that the user should not have to do anything
>> to octave to make it respond (e.g., the user should not have to tell
>> octave to open a particular file), and the other program and octave
>> should be unrelated processes (although owned by the same user).
>> (The kinds of commands would be things that a user could presumably
>> directly do, like make plots, or inquire about the internal state of
>> octave, and the data would be numerical.)
>> TIA for any info or suggestions.
> I think this would require a thread for remote execution in Octave, or
> a mode of Octave in which every command is executed by an Octave
> server. This is both not implemented.
> Maybe there are ideas for alternative solutions if you detail your
> needs.
> Olaf
> --
> public key id EAFE0591, e.g. on x-hkp://

reply via email to

[Prev in Thread] Current Thread [Next in Thread]