You can easily do this by putting the boolean switches in an array (or build
their outputs into an array) and use a while loop with a shift register.
Compare the current value of the array of switches to the previous value,
subtract the results, take absolute value and this is the new value of the
array, unless there is no change, then keep previous value, use a select
function found in the comparison sub-pallete to make this decision and no
case statements need ever be used.
Attached is example I wrote in LabVIEW 5.1.1
"Glen" wrote in message
news:39f0b202@newsgroups.ni.com...
>
> "Kevin B. Kent" wrote:
> >This is a multi-part message in MIME
format.>--------------2EA5932BDFAE8CC4460FDBED>Content-Type:
> text/plain; charset=us-ascii>Content-Transfer-Encoding: 7bit>>Magela Moore
> wrote:>>> I have a series of switches in my vi and I wish to make them
Mutually>>
> exclusive,>> ie only able to press one button at a time. Does anyone know
> how to>> accomplish this without using a case structure? Thanks.>>>>
Magela>>Check
> the examples>examples\general\controls\booleans\Simulating Radio
Buttons.vi>>This
> shows you how to do what you want. It CAN be done without>a case but I
dont
> think you will like the results.>> Kevin
Kent>>--------------2EA5932BDFAE8CC4460FDBED>Content-Type:
> text/x-vcard; charset=us-ascii;>
name="Kevin.B.Kent.vcf">Content-Transfer-Encoding:
> 7bit>Content-Description: Card for Kevin B. Kent>Content-Disposition:
attachment;>
> filename="Kevin.B.Kent.vcf">>begin:vcard
>n:Kent;Kevin>tel;fax:972-477-4462>tel;work:972-477-4468
> >x-mozilla-html:TRUE>url:http://www.usa.alcatel.com>org:Alcatel USA;OXC
Hardware
>
Development>version:2.1>email;internet:Kevin.Kent@usa.alcatel.com>title:Engi
neering
> Technician>adr;quoted-printable:;;MS OLXDV=0D=0A1000 coit
Rd;Plano;Texas;75075-5802;United
> States>x-mozilla-cpt:;-472>fn:Kevin
Kent>end:vcard>>--------------2EA5932BDFAE8CC4460FDBED-->
[Attachment Exclusive boolean 511.vi, see below]