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

Home » Public Forums » archive » IDL and C inter-language communication / call_external()
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: IDL and C inter-language communication / call_external() [message #89097 is a reply to message #89075] Thu, 24 July 2014 02:08 Go to previous messageGo to previous message
inkorporiert is currently offline  inkorporiert
Messages: 2
Registered: July 2014
Junior Member
If I understand aright you mean that I call the routine via call_external() with initial value, then it does the first fitting step and ends returning the partial results, IDL plots and executes call_external() again with the last partial results and so on? Okay, this is a possibility, but would involve as far as I see a lot of changes in the C routine. Futhermore I think this would slow down everything a lot.

I didn't get what you mean by your second suggestion. The "external program" is a kind of deamon with the fitting routine waiting for input?

My primary idea was to allocate memory for the partial results with idl and pass that via call_external() to C. This way idl has access to the data and could plot it. But there are two problems: First I would have to create another thread for the plotting in IDL. But the major problem is the synchronisation: IDL should only plot after C has written the array and C should only write after IDL has read the array. This would require some kind of mutex-status variables that may be difficult to implement.

Thank you.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Generate Same Sequence of Random Numbers in IDL and C
Next Topic: Locating desired values in an array.

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

Current Time: Wed Oct 08 20:03:42 PDT 2025

Total time taken to generate the page: 0.02138 seconds