04-14-2010 07:50 AM
Hi all.
Is there a way to make null elements appear coloured like no-null elements in an array (not grayed out)? I want all the elements (already introduced and null) to have the same colour.
I attach you two snapshots: first, is the array with all null elements (all are grayed out), this is what I don't want; second, you have the same array, with several elements introduced, and the remaining are null, but they appear like the first ones (this is the desired behaviour, but in the image there's a trick, since the last elements are filled with spaces).
Thank you very much,
Francisco
04-14-2010 08:10 AM
Hi Francisco,
Initialize the array with default values of the desired length. For your VI it looks like you'd have to initialize the array with 5 elements.
As long as the array size is shorter the unused elements will be grayed out.
Hope this helps,
Daniel
04-14-2010 11:12 AM
Hi, Daniel.
Thanks for your fast reply.
Well, actually, I tried this option first, but I want these unused elements to remain like that: unused. I want to change only the colour.
Any other suggestion?
Thanks,
Francisco
04-14-2010 11:35 AM
04-14-2010 12:10 PM
04-14-2010 12:31 PM
04-16-2010 02:45 AM
Hello Francisco,
I do not exactly know how you are working with the array. As Daniel and Rodrigo pointed out the null elements will appear grayed out. However, if the user must introduce Strings from the Front Panel and you know the number of devices he must enter, maybe you can use the function 'build array' with String controls. In this way you will get active String controls on the Front Panel (not grayed out). Can this be useful to you?
Regards.