Re: IDL_IDLBRIDGE undefined procedure problem [message #73460] |
Fri, 12 November 2010 05:29  |
Haje Korth
Messages: 651 Registered: May 1997
|
Senior Member |
|
|
If you use the /nowait keyword you can execute all bridge jobs
simultaneously. If you have enough cores the jobs will use different
cores for each execution. Haje
On Nov 11, 11:43 am, Ammar Yusuf <amyus...@gmail.com> wrote:
> On Nov 11, 11:39 am, jeanh
>
> <jghasb...@DELETETHIS.environmentalmodelers.ANDTHIS.com> wrote:
>>> Another question is when stuff is executing inside of these processes
>>> through the bridge I can't see any output from those processes. How
>>> would I do that if i wanted to? Thanks.
>
>> You can save the output to a file:
>
>> thread_2 = obj_new('IDL_IDLBridge', output = 'C:\child_output.txt')
>
>> Jean
>
> Thanks. Another question and I'm just making sure. By using the
> IDL_IDLBRIDGE object that means obj1, obj2, obj3, obj4 are running in
> parallel or does obj1 execute first or suspend and then go to obj2.
> Also does the IDL Bridge object automatically dispatch to different
> processors because I have a quad core so I would like for each object
> to be on a separate core. I'm not sure if that's possible. Thanks!
|
|
|
|
|
Re: IDL_IDLBRIDGE undefined procedure problem [message #73491 is a reply to message #73487] |
Thu, 11 November 2010 08:03   |
Ammar Yusuf
Messages: 36 Registered: October 2010
|
Member |
|
|
On Nov 11, 10:29 am, jeanh
<jghasb...@DELETETHIS.environmentalmodelers.ANDTHIS.com> wrote:
> On 11/11/2010 10:05 AM, Ammar Yusuf wrote:
>
>> Hi I'm new to using this IDL_IDLBRIDGE object so I was just running
>> some test code like:
>
>> Obj1 = OBJ_NEW('IDL_IDLBridge')
>> Obj1->Execute, "run1"
>> I have four separate functions in four separate files called pro run1,
>> pro run2, pro run3, and pro run4. They all do something really simple
>> but every time I run the above code I get this error:
>> IDL_IDLBRIDGE Error: Attempt to call undefined procedure/function:
>> 'RUN1'.
>
>> Thanks.
>
> Hi,
> the procedures are not compiled in the idlBridge session.
>
> try this:
> Obj1 = OBJ_NEW('IDL_IDLBridge')
> Obj1->Execute, '.compile run1'
> Obj1->Execute, "run1"
>
> Of course, run1.pro must be in your path. Remember that startup files
> are not run in the bridge session..
> Jean
It worked when I added the folder that held the routines to the path.
Another question is when stuff is executing inside of these processes
through the bridge I can't see any output from those processes. How
would I do that if i wanted to? Thanks.
|
|
|
Re: IDL_IDLBRIDGE undefined procedure problem [message #73492 is a reply to message #73491] |
Thu, 11 November 2010 07:29   |
jeanh
Messages: 79 Registered: November 2009
|
Member |
|
|
On 11/11/2010 10:05 AM, Ammar Yusuf wrote:
> Hi I'm new to using this IDL_IDLBRIDGE object so I was just running
> some test code like:
>
> Obj1 = OBJ_NEW('IDL_IDLBridge')
> Obj1->Execute, "run1"
> I have four separate functions in four separate files called pro run1,
> pro run2, pro run3, and pro run4. They all do something really simple
> but every time I run the above code I get this error:
> IDL_IDLBRIDGE Error: Attempt to call undefined procedure/function:
> 'RUN1'.
>
> Thanks.
Hi,
the procedures are not compiled in the idlBridge session.
try this:
Obj1 = OBJ_NEW('IDL_IDLBridge')
Obj1->Execute, '.compile run1'
Obj1->Execute, "run1"
Of course, run1.pro must be in your path. Remember that startup files
are not run in the bridge session..
Jean
|
|
|
|
|
|