LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to build a checkbox list

Solved!
Go to solution

Does anyone know what are the parts' name in the picture attached and how to build it? I am trying but build the purple boxes and having trouble connecting Index array toInitialize array. Here's also the link 

http://www.labviewing.com/check-box-in-multicolumn-listbox/

 

0 Kudos
Message 1 of 8
(6,977 Views)

Does anyone know what are the parts' name in the picture attached and how to build it? I am trying but build the purple boxes and having trouble connecting Index array toInitialize array. Here's also the link 

http://www.labviewing.com/check-box-in-multicolumn-listbox/

 

0 Kudos
Message 2 of 8
(6,984 Views)

Looks like you posted your question twice, I think you can get rid of one.

 

Also, I'm not sure what you're struggling with exactly from your statement.  The picture works just fine, I just built that piece of code without problems.  Can you show a screenshot of what is wrong?  

 

If I had to guess without you showing me, I'd guess your array is of the wrong dimensions.  For this to work, it must be a 2D array.

Message 3 of 8
(6,955 Views)

Well, I built too after some struggle since I am a new user. But when I ran, it didn't quite give me the result I expected. Can you also elaborate on how to get 2D array?

Screen Shot 2017-06-14 at 2.51.34 PM.png

0 Kudos
Message 4 of 8
(6,937 Views)
Solution
Accepted by topic author Huqs

Thanks for the image, it looks like you do have a 2D array.  You can tell because it has two index terminals in the upper left hand corner of that pinkish/purplish box with letters in it.  Did you make sure to do the step where it asks you to right click on the multicolumn listbox and select "Visible Items>>Symbols"?  Make sure you checked it and that it has a check mark next to it when you right click on it again.

Message 5 of 8
(6,929 Views)

Oh wow! I totally forgot to check 'Symbol' in multicolumn option. Thank you very much for the help! much appreciated. You might be able to help me out with another thing regarding the application I am building in Labview. 

0 Kudos
Message 6 of 8
(6,922 Views)

The question is how can I check on or off the boxes in the array? when I run it, it's not letting me check on or off those a,b,c,d rows. 

0 Kudos
Message 7 of 8
(6,919 Views)

Well, there are two parts to that question.  One, if your application still looks just like that photo then there is no while loop around your code.  That means it will run once and then never again.  So, it will not be in a "running" state when you go to click on those controls.

 

Assuming you've got that part down, the second problem is that if you have that piece of code in a while loop, you will not be able to edit the controls because every iteration of the while loop will set the controls back to the values you are setting them to programmatically.

 

Lastly, you'll need to use events to do the editing properly.  Check out the solution to this question:

 

http://forums.ni.com/t5/LabVIEW/edit-cell-in-multicolumn-listbox-is-slow/td-p/2289122

0 Kudos
Message 8 of 8
(6,913 Views)