07-07-2011 02:55 AM - edited 07-07-2011 03:00 AM
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
07-07-2011 03:26 AM
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.
07-07-2011 03:29 AM - edited 07-07-2011 03:31 AM
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
07-07-2011 04:05 AM
thanx
07-07-2011 04:11 AM
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
07-07-2011 08:41 AM