[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Real time IPC Octave/Java
From: |
Paul Kienzle |
Subject: |
Re: Real time IPC Octave/Java |
Date: |
Wed, 30 Jun 2004 23:40:41 -0400 |
I doubt the octave interpreter and the underlying libcruft are
reentrant. I know for sure that rand/randn from octave-forge
will not work properly with threads.
I do run fine with multiple sockets forking to different clients with
octave-forge/main/miscellaneous/listen.cc
IIRC, the minimum round trip time I was getting from tcl to
octave and back was 40 ms, but in different environments
I observed times of up to 200 ms. Somebody was working
on a Java client a while back, but I don't believe anything
has been posted.
It is possible to embed the entire octave interpreter in
another environment, but I don't know if this has been done
with java.
Paul Kienzle
address@hidden
On Jun 29, 2004, at 5:19 PM, Charles Fox wrote:
Hi all, I'm new to this list. I'm a grad student in Pattern Analysis
in
the UK and I have a question.
I'm trying to build a real time audio pattern recogniser. I've done
lots
of high-level stuff in Java, and Java also has some good libraries for
getting the audio input from the hardware. However I'd like to use
Octave
to do some signal processing on it. There are multiple threads in the
Java code, some of which deals with getting the input data, and many
more
that do high-level inference. I'd like the input threads to make
calls to
my Octave code, and get the results back into Java again. This all
has to
be done fast as I'm dealing with multiple channels of audio input.
Note
there will be many threads wanting to use the Octave functions at the
same
time. In Matlab the best way to do this is to compile the functions
into
C with the Matlab->C compiler, then wrap them in Java JNI. However
Octave
(AFAIK) doesnt have a an Octave->C compiler, so I'm thinkiing about
alternative ways using IPC such as pipes, shared memory. There seems
to
be pracically no documentaiton on any of this that I can find.... so
any
suggestions or references on the best approaches would be really
helpful.
Thanksm
Charles Fox
DPhil student
Pattern Analysis & Machine Learning
Robotics Research Group
Dept. of Engineering Science
University of Oxford, UK
www.robots.ox.ac.uk/~charles
-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.
Octave's home on the web: http://www.octave.org
How to fund new projects: http://www.octave.org/funding.html
Subscription information: http://www.octave.org/archive.html
-------------------------------------------------------------
-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.
Octave's home on the web: http://www.octave.org
How to fund new projects: http://www.octave.org/funding.html
Subscription information: http://www.octave.org/archive.html
-------------------------------------------------------------