LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

urgent!!! help required

i m using a 1D array of check box in which no. of check box are equal to the number of channel & these channels are using for acquiring data. i want to make enable check box equal to the number of channel select. e.g. if i select 10 channels, then only 10 check box out of total should be enable & other should be disable.

please help me out

 

 

0 Kudos
Message 1 of 6
(2,515 Views)

All elements of an array share the same properties, so you can't enable/disable individual elements.

You could use a cluster instead of the array.

Sticking with the array, you may hide the remaining elements of the array using the Number of columns property; however, this way the array is resized.

Paolo
-------------------
LV 7.1, 2011, 2017, 2019, 2021
0 Kudos
Message 2 of 6
(2,506 Views)

Let me see if I got this right:

 

you want to enter the number of channels by checkbox, and only the checkbox with the highest index should be checked.

Personally I would use a numeric control...

 

Also, please don't post topics titled "urgent!!! help required"

 

The VI was written in LV2010



Remember Cunningham's Law
0 Kudos
Message 3 of 6
(2,505 Views)

thanx

0 Kudos
Message 4 of 6
(2,492 Views)

Attached you can find a simple example showing what i am thinking that you need. Please note that the basics incorporated in this examples are part of the National Instruments LabVIEW Core 1 course and if you have a hard time to understand my code, you should definetly attend this course!

 

And to add to the previous poster:

Subjects like "urgent!!! help required" are stupid and you should not behave stupid.

Explanation:

1. Every question is somehow "urgent". Pointing it out in the subject does not make it more or less urgent, so it's completely unecessary.

2. Every questions on a forum is a request for help. Pointing it out in the subject does not increase the willingness of other attendees in the forum to help you. Quite the contratry......

3. A subject without any indication of the "subject" will lead to many readers simply skip looking into the post. So you will achieve the exact opposite of what you trying to achieve....

4. Simply yelling for help (at least you didn't use capital letters, which is already a good step in the correct direction for porper posting) can be considered to be against the netiquette. Some people react quite offended by this.

 

 

hope this helps (and makes you a better forum member 😉 )

Norbert

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 5 of 6
(2,486 Views)
thanx
0 Kudos
Message 6 of 6
(2,466 Views)