Re: pfswitch settings

New Message Reply Date view Thread view Subject view Author view

From: Gordon Tomlinson (gordon++at++paradigmsim.com)
Date: 03/22/2000 21:40:16


Hi

Larry is correct for a Perfomer built switch

You could also use an open flight file frome Creator/MultiGen II) to
create your
pfSwitch

The Open Flight uses a switch Mask which allows you to switch more than
one child on at the same time, so setVal selects which mask to use not
child
while PFSWITCH[ON/OFF] still work work the same.

The masks can also catch you out some times :-) if you have not used
them before.

Gordon.

Larry Lachman wrote:

> christopher.g.dorosky++at++lmco.com wrote:
>
>> Hi
>>
>> Imagine you have a pfswitch with 10 children.
>>
>> To turn them all on, do pfswitch->setVal(PFSWITCH_ON);
>> all off is PFSWITCH_OFF
>> to turn on number 5 is setVal(4) or maybe five, whatever.
>>
>> How do you turn on numbers 5 and 7?
>>
>> I had wanted to turn on children one by one, but setting the val
>> seems to
>> absolutely set it, not "or" it.
>
>
> This is correct; each child being enabled is mutually exclusive of the
> other children, unless you enable them all. In order to turn on
> numbers 5 and 7 you must restructure your pfSwitch node. In your
> example with 10 children, one of the children must be another pfSwitch
> node. Underneath this child switch node is children 5 and 7. Suppose
> this new pfSwitch resides at index 4 of the parent pfSwitch (still
> child 5). You can then enable either one of the new switch's
> children, or simply use PFSWITCH_ON to enable both of them - as you
> have requested to do.
>
> Larry
>
> --
> _______________________________________________________________
>
> Larry Lachman WWW: http://www.multigen-paradigm.com
> MultiGen-Paradigm, Inc. larry++at++paradigmsim.com
> 14900 Landmark, Suite 400 (972) 960-2301 ext 287 voice
> Dallas, Texas 75240 USA (972) 960-2303 fax
>
>

--

Gordon.

______________________________________________________________

Gordon Tomlinson | Multigen - Paradigm Inc Vega Software Engineer | Suite 400, 14900 Landmark Blvd Email: gordon++at++paradigmsim.com | Dallas, Texas 75240, USA Tel: 972 960 2301 | Fax: 972 960 2303 ______________________________________________________________

'Smoke me a kipper, I'll be back before breakfast' ______________________________________________________________

NOTE: All opinions here within this email are solely mine and DO NOT reflect those of MultiGen Paradigm or any other employee. ______________________________________________________________

gordon++at++apollo13.dmon.co.uk ~ http://www.apollo13.demon.co.uk


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Wed Mar 22 2000 - 19:39:56 PST

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.