LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Bad VI from ni.com - Managing Buttons - Help Please

I downloaded a vi from www.ni.com/support/


http://zone.ni.com/devzone/explprog.nsf/6c163603265406328625682a006ed37d/c74b59054502fa0586256854006490d8?OpenDocument

The vi gives a demonstration on how to make one button turn off when
another button is selected. Well, the VI works great for only 4 units,
but when I make the array sizes for 5 or more units, the sub vi
doesn't work.

I put probes every where, but can't find the problem. There seems to
be a 'default' setting to 4 buttons when the vi goes from "Manage
Radio Buttons" to "Simulating Radio Buttons".

I would like this option, but now I'm more stumped at this problem
than anything.

Thank you for your time.

-Dorian
0 Kudos
Message 1 of 2
(2,307 Views)
The only changes that need to be made are:
1. Change the array size input to the Initialize Array function to 5
2. Add another Option button (set its mech action to switch when released)
3. Change the size of the Array to Cluster function to 5
4. Create a local variable for the Option 5 button and wire the same as the
first 4

It appears to work for me after making these changes. The Manage Radio
Button SubVI dynamically changes its size, so no modifications are
necessary.

You can also customize a slide control to work like a radio button control.
It takes a little patience, but the result is a radio button with only a
terminal on the block diagram.

Mike


"Dorian Grey" wrote in message
news:bbe7c0b5.0201122221.7bfd1f5@posting.google
.com...
> I downloaded a vi from www.ni.com/support/
>
>
>
http://zone.ni.com/devzone/explprog.nsf/6c163603265406328625682a006ed37d/c74
b59054502fa0586256854006490d8?OpenDocument
>
> The vi gives a demonstration on how to make one button turn off when
> another button is selected. Well, the VI works great for only 4 units,
> but when I make the array sizes for 5 or more units, the sub vi
> doesn't work.
>
> I put probes every where, but can't find the problem. There seems to
> be a 'default' setting to 4 buttons when the vi goes from "Manage
> Radio Buttons" to "Simulating Radio Buttons".
>
> I would like this option, but now I'm more stumped at this problem
> than anything.
>
> Thank you for your time.
>
> -Dorian
0 Kudos
Message 2 of 2
(2,307 Views)