Whenever we create a constant (or control) on a partially connected function, we get not only the same datatype (good!), but also the same array dimensionality (often not so useful).
In the vast majority, I want do do some uniform operation on the entire array, so a scalar control or diagram constant would be much more desirable. I usually end up creating the array constant, then pulling it out of the container, hook it back up, and delete the container. This guarantees the correct datatype (I32, DBL, CDB, etc).
(It is even more tedious to place a diagram constant from the palette and then remember the datatype and adjust accordingly).
IDEA:
When creating a control or constant, and it would result in an array, I would prefer to also have a scalar option.
This little move illustrates it in the case of creating a diagram constant. It should apply equally to controls.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Available in LabVIEW 2019 and later. Right-click any array terminal and select Create > Scalar > Constant or Create > Scalar > Control.