comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » "Share data with external processes"
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: "Share data with external processes" [message #7872 is a reply to message #7762] Mon, 20 January 1997 00:00 Go to previous message
djackson is currently offline  djackson
Messages: 31
Registered: June 1993
Member
> Ken Stone <k.a.stone@larc.nasa.gov> writes:
>
>> Does anyone know of a fast way to transfer a large array (say
>> fltarr(2000)) from another process? My first thought was to write the
>> data to a file, and then read it back into IDL. But time is of
>> a critical nature in this case. Then I found CALL_EXTERNAL, but it
>> seems to only return a scalar (Is that true?).

If you're doing this on a Unix system, I have some experience I might
share. In one of my programs, I use 'spawn' to start the other process
with the 'unit=' option (and '/noshell' might be useful, too) which then
works as a bidirectional pipe. You can write to it and read from it, just
as if you were at the command line.

I really can't comment on whether this would be faster than other methods,
or if it even could work in your situation, but I thought I'd drop it into
the hat!

Cheers,
-Dick

Dick Jackson djackson@ibd.nrc.ca Institute for Biodiagnostics
Opinions are mine alone. National Research Council Canada, Winnipeg
"And I told him my dream was to live for all time
In some perfect refrain, like the man who wrote 'Danny Boy'."
- Joe Jackson, from the album _Night_Music_, 1994.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Revolutionary Software
Next Topic: IDL FAQ

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Oct 10 18:16:46 PDT 2025

Total time taken to generate the page: 1.03705 seconds