I HAVE A DREAM Posted February 12, 2016 Report Share Posted February 12, 2016 Hello dears ! I would like to award a symbol to each dropped items in a listbox. how could I arrange that each dropped items get a own symbol. Thank you. Thank you Automatic symbol for items.vi Quote Link to comment
hooovahh Posted February 12, 2016 Report Share Posted February 12, 2016 I'm going to try to summarize what your code is doing. On value change it will read the number of items in your listbox then run a for loop that many times. In that for loop you are setting the symbols each time, but the value doesn't change, and you are only setting one symbol, so you are turning off all the other symbols. This is because the array size is always going to be 1. If you want to set a symbol for every item, then you need to set the Symbols, with an array, whos size is the same as the number of items, right now the size of the array going into the Item Symbols property is always 1, so you are always going to only set one item to have a symbol. Attached is a new version where on value change it creates an array of the same size as the number of items, and then sets the symbols for all items using that array. Are you interested in any free training for LabVIEW? Here are a few links that I think might help you. NI Learning Center NI Getting Started -Hardware Basics -MyRIO Project Essentials Guide (lots of good simple circuits with links to youtube demonstrations) -LabVEW Basics -DAQ Application Tutorials -cRIO Developer's Guide Learn NI Training Resource Videos 3 Hour LabVIEW Introduction 6 Hour LabVIEW IntroductionSelf Paced training for studentsSelf Paced training beginner to advanced, SSP RequiredLabVIEW Wiki on Training These links come from another document that I just linked to in a different thread. Automatic symbol for items Hooovahh Edit.vi Quote Link to comment
I HAVE A DREAM Posted February 17, 2016 Author Report Share Posted February 17, 2016 Ah Ok, I see Yes I am. This is great. Thank You hooovahh Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.