10-03-2004 08:27 PM
10-04-2004 03:22 AM
10-04-2004 05:36 AM
10-04-2004 07:31 AM
11-09-2004 02:59 AM
07-22-2009 06:39 AM
Hi astroboy,
my 2 cents:
- You're not very interested in efficent programming, don't you?
- You don't need to index the same element twice to have two inputs for arraybuilding.
- You can use one "IndexArray" with more than one output...
- You can move constant operations out of loops/structures...
(Some people may call this RubeGoldberg-code.)
The attachment does the same as your vi, but less complicated.
07-22-2009 07:45 AM
Hmmm third time this morning- but a better question!
the states that the Colors[4] property refer to are
0: True
1: False
2: True to False
3: False to True
But hold it! your vi uses boolean INDICATORS! the transitional states cannot apply! (thou shall not pass an indeterminate value on a wire!) the transitional states of booleans only apply to controls because of the latching mechanical action property that allows the display to be in a different state than when the value was last read from the terminal (latching bools don't allow access to the value property from property nodes for this exact reason)
So, a booean indicator can have only 2 states, either True or False, so only 2 colors[4] elements will display (Property.Colors[4]{0,1}).
You will need a custom control to allow more colors to display on something that looks like a round LED. I'm passing on a gift from the forum I recieved a while ago.