Either Route or Switch would do it, but Switch is probably easiest.  Take
the output of your Selector and add 1 to it to get a number between 1 and
n, for n the number of members in the imported group.  Attach it to the
first input to Switch.  Take the Selected member and pass it to all of your
image streams, and then send each result to successive inputs of Switch.
Switch will choose the image stream selected by its first input and
evaluate it, and ignore the rest.

Here's a example in .pdf form... I hope you can read it.


Greg

(See attached file: example.pdf)

"Frederick R. Phelan Jr." <[EMAIL PROTECTED]>@opendx.watson.ibm.com
on 07/23/2001 03:16:19 PM

Please respond to [email protected]

Sent by:  [EMAIL PROTECTED]


To:   [email protected]
cc:
Subject:  [opendx-general] Need a dx box that acts as an "if-then" control



Below is what I want to do, but I can't figure out the part in the question
marks.

I start by running Import through both a Selector and a Select. I can then
change the desired component coming out of Select, simply by clicking the
Selector. That much is fine.

The problem is that based on what is selected, I want to do the imaging
differently. So, essentially, I need a box that acts as an "if-then"
control; specifically, if "select" = "comp1" go to Image Stream 1, else if
"select" = "comp2" go to Image Stream 2, else go to Image Stream 3.

I have tried Route, but it expects all three image streams at once, so it
does not work. Can this be done? Right now I just manually change the
connection from the select to the desired imaging stream, but it seems like
there ought to be a more intelligent way.


File Selector
  |
Import ------>Selector
  |
Select<----------
  |
???? if select = "comp1", go to IS1
     else if select = "comp2" go to IS2
     else go to IS3 ????

  |                 |
[Image Stream 1]  [Image Stream 2]  [Image Stream 3]

Thanks,
Fred Phelan

Frederick R. Phelan Jr., Ph.D.
Multiphase Materials Group
Polymers Division
National Institute of Standards and Technology

NIST, Bldg. 224/Rm. B108
100 Bureau Dr., STOP 8543
Gaithersburg, MD 20899-8543
301.975.6761 (VOX)
301.975.4932 (FAX)
[EMAIL PROTECTED]
http://www.nist.gov/frederick_phelan


Attachment: example.pdf
Description: Adobe PDF document

Reply via email to