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

Home » Public Forums » archive » Newbie Mac PPC shared lib
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Newbie Mac PPC shared lib [message #19227] Thu, 02 March 2000 00:00
Irene Barg is currently offline  Irene Barg
Messages: 4
Registered: December 1998
Junior Member
Hello to all,

My development environment:
Mac G4 450MHz 512MB RAM OS 9
IDL 5.2 for Mac
CodeWarrior V5 for Mac

I'm new to the Macintosh, however, after reading several
posts regarding "shared libraries" on this newsgroup, I was
able to get my code up and running. Now, I have a question.

Our UNIX users use IDL, Interactive Data Language, package
from RSI, for interactive analysis and visualization. We have
a set of C routines that we have been able to call from IDL
using the IDL CALL_EXTERNAL function which loads and calls
routines contained in shareable object libraries. My task was
to port this C code to the Macintosh environment so that our
Mac/IDL users could use it as well.

Inside my IDL procedure, I call a C routine with the following:

s = CALL_EXTERNAL('calnica.shlb','do_cridcalc',nic,input,crimage )

Where:
"calnica.shlb" is my PowerPC shared library created with CW.
"do_cridcalc" is my entry point name to my shared code.
"nic, input, crimage" are pointers to data.

I created "shlb" using CW PPC Std C Console stationary. The
code works, but, while it's running, I can't do anything else
with the Mac. Normally, one processes more than one image at
a time, so I have to free up the Mac, but how? This is not
a problem on the UNIX platform. I'm not certain if it's an
IDL or Mac problem. Any insight you may have will be most
appreciated.

Thanks,

-- irene

------------------------------------------------------------ ------
Irene Barg Email: ibarg@as.arizona.edu
Steward Observatory Phone: 520-621-2602
University of Arizona FAX: 520-621-1891
Tucson, AZ 85721 http://nickel.as.arizona.edu/~barg
------------------------------------------------------------ ------
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Array subscript question
Next Topic: Adding .sav files to menu in ENVI

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

Current Time: Wed Oct 08 13:43:53 PDT 2025

Total time taken to generate the page: 0.00455 seconds