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

Home » Public Forums » archive » Speeding up data crunching using IDL_IDLBridge with asychronous execution
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: Speeding up data crunching using IDL_IDLBridge with asychronous execution [message #85195 is a reply to message #85194] Thu, 11 July 2013 16:20 Go to previous message
natha is currently offline  natha
Messages: 482
Registered: October 2007
Senior Member
On Thursday, July 11, 2013 4:50:45 PM UTC-4, Chip Helms wrote:
> So I suppose ideally, we should add this to the callback routine, right? Is there any way to identify which timer is associated with a given 'execute, /nowait' call?

It seems that the timer ID is concatenated to the other ones. So you just have to get the last ID. It works....

obridge=obj_new('idl_idlbridge')
for i=0,999 do begin

obridge->execute,'a=1',/nowait
while obridge->status() ne 0 do wait,0.0001

timer_id=widget_info(/managed)
ww=where(widget_info(timer_id,/event_pro) eq 'IDL_IDLBRIDGETIMER_EVENT',nn_w)
timer_id=timer_id[ww[nn_w-1]]
widget_control, timer_id, /destroy

print, memory(/high)
endfor
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Plot colors
Next Topic: Font List

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

Current Time: Fri Oct 10 15:13:12 PDT 2025

Total time taken to generate the page: 1.27755 seconds