12-11-2007 02:58 PM
12-11-2007 03:16 PM
well you can easily do it:
1) use enums. they are labelled yet have a I32 value (note the coercion dot when using on numeric I32 indicator).
2) use rings. you can select any string and attach it to an index value.
i prefere the first option. yet, to use it as index labeller, i would be carefull. if you want to lab your index, obviously you do not intend to use large arrays. Clusters are a much better way to handle predefined datasets.
in general, arrays are supposed to be identical datasets. i think it is best to keep treating them as so.
12-11-2007 03:30 PM - edited 12-11-2007 03:37 PM
12-11-2007 03:42 PM
i see.
in general your loops are generic. they do not know in advance which array they index. so no separated name to your array itself.
one workaround is to attach a separate contol to every array. this control would have the name you require, and you would loop it to loop your array. not elegant and i have trouble to see the purpose:again, LV is different than C# in that the arrays are automatically looped trough, so no need for an indexer.
12-11-2007 03:42 PM
i see.
in general your loops are generic. they do not know in advance which array they index. so no separated name to your array itself.
one workaround is to attach a separate contol to every array. this control would have the name you require, and you would loop it to loop your array. not elegant and i have trouble to see the purpose: again, LV is different than C# in that the arrays are automatically looped trough, so no need for an indexer.
12-11-2007 03:53 PM
12-11-2007 04:50 PM - edited 12-11-2007 04:51 PM
i am not sure what you need, but this might help:
you can always label a wire. either by just overwriting some documentation on the wire (i use white box without frame, >wire name>), or even better, by adding description to your wires (right click on the wire, description and tip). then, whenever your mouse tool is on wire, you will see the description of this wire as you entered!
12-12-2007 10:00 AM
12-12-2007 02:58 PM - edited 12-12-2007 02:59 PM
12-12-2007 03:30 PM - edited 12-12-2007 03:31 PM