[Top][All Lists]

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

Re: COM interface

From: PhilipNienhuis
Subject: Re: COM interface
Date: Tue, 19 Jul 2016 06:03:23 -0700 (PDT)

Toto2 wrote
> Hello everybody,
> does anybody has experience with the COM interface with octave. It should
> be included in the windows package. I am interested in some examples or
> tutorials. Can anybody help?
> I need to cennect to a simulation program. Make an interpolation with the
> data from the program and write it back.

Tatsuro's suggestion is a good one.

To control a program completely from Octave using COM, you'd need to do
something like:

<pkg load windows>
app = actxserver ("reference - to - application")

and from there apply Visual Basic methods to the app.
E.g., to start LibreOffice or OpenOffice (provided LO's / OOo's ActiveX
component has been installed):

>> app = actxserver ("")
app =

<COM object Unknown (0x0x5de158)>

>> OOoDesktop = app.createInstance("")
OOoDesktop =

<COM object Unknown (0x0x5de2a8)>

... etc.

Another example is mat2xls in the Windows package, example subdir (look in
the downloaded package, it doesn't get installed).

Knowing nothing about the program you want to invoke I'm afraid you're on
your own from here.

FWIW, my experience is that the COM interface in Octave (and for that
matter, in Matlab as well) is quite limited and requires quite a bit of
Visual Basic trickery to get beyond the very basics (no pun intended).


View this message in context:
Sent from the Octave - General mailing list archive at

reply via email to

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