I haven't used pick yet myself, so I can't comment on that part.  
The reason I was using a loop was that I was building a time series
out of individual time steps.  Because I was also learning how to do
that (CollectSeries and Append), I found it useful to make sure I
could get that right before putting it in a loop.  So I did 3
iterations of the loop by not using a loop at all i.e. by repeating
the modules in the VPE window.  When I got that right, I felt ready
to tackle loops!

Two thoughts on loops.

I used GetLocal and SetLocal (instead of GetGlobal and SetGlobal).  
I mention this for completeness, but I think either pair would have
worked for me.

The other thing may be more important.  Since the loop was inside
the macro, I had to think how the Output would be produced
***only*** on the last iteration.  I did this by using a Route
directly connected to the Output of the macro and connected it up
like this .....

  1st input to Route is connected to the "Last" parameter from
ForEachMember (ForEachN in your case)

  2nd input to Route is the thing I wanted to Output

  1st output from Route is connected to Output

I hope this helps!

    Julian Gallop

-  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -

Julian Gallop,                         Email: [EMAIL PROTECTED]
Information Technology Department,     Phone: +44 1235 445569  
CCLRC Rutherford Appleton Laboratory,  Fax:   +44 1235 445597
Chilton, Didcot, Oxfordshire OX11 0QX



On Tue, 28 Aug 2001, Geraldine Cheok wrote:

> Date: Tue, 28 Aug 2001 15:41:11 -0400
> From: Geraldine Cheok <[EMAIL PROTECTED]>
> Reply-To: [email protected]
> To: [email protected]
> Subject: Re: [opendx-users] Picking Multiple Points
> 
> Still no luck.
> 
> Ist Version:
> 
> --------------------------------------------------------------------
> In my pick macro:
> 
> Input ---> GetGlobal ---> Route (second input)---> List ---> Output and 
> SetGlobal
> 
> ForEachN ---> Route (first input)
> 
> The second output of GetGlobal was linked to the second input of SetGlobal.
> 
> 
> RESULT:  I still only get one number - the first Pick
> 
> ---------------------------------------------------------------------
> 
> 2nd version
> 
> Output of List was disconnected from SetGlobal
> 
> RESULT:  Still only one number - the last Pick
> 
> ----------------------------------------------------------------------
> 
> I got the same results when I removed the Route module.
> 
> 
> Gerry
> 
> 
> 
> At 02:59 PM 8/28/2001 -0400, you wrote:
> 
> >I believe that you need to use the GetGlobal and SetGlobal tools
> >to "accumulate" your picks.  You attach the output of GetGlobal
> >to List and the output of List to SetGlobal. There should be some
> >examples of using these tools in the samples directory. You're
> >only getting one (presumably the last one) as the others are
> >being "overwritten"
> >
> >Donna L. Gresh, Ph.D.
> >
> >Visual Analysis Group
> >IBM T.J. Watson Research Center
> >(914) 784-5049
> >
> >http://www.research.ibm.com/people/g/donnagresh
> >[EMAIL PROTECTED]
> 





Reply via email to