LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

multiple channels case structures

Hi,

I have 18 analog output channels and each channel has its own 6 checkboxes (if the box is checked, it gets multiplied by another number, else the raw value is sent to the next case structure). Since, each channel has the same code, can anyone suggest me ways to simplify the code? If I use an array of channel values, how do I differentiate between checkboxes of each channels? Please suggest.

Thank You.
0 Kudos
Message 1 of 2
(2,459 Views)
You could create a Cluster (right next to the Array control on the palette) containing the six boolean checkboxes for a channel. Then, use that Cluster as the element in an Array. Just drop the empty Array control and then drag your cluster into it. You can then initialize that array for 18 elements. You now have a structure that you can index based on the Analog Output channel number.

Dan Press
PrimeTest Corp.
www.primetest.com
0 Kudos
Message 2 of 2
(2,452 Views)