01-03-2006 01:11 PM
01-03-2006 01:21 PM
Hi Bjorn,
I think the best design would be for you to bundle all the boolean values into a typedefed cluster. This cluster would be a data structure that you could wire into a subVI and unbundle/bundle only the values you wish to read/change. Since it is a typedef, as you add more booleans to your design, the subVI input/output clusters will automatically update with the new data. Within your program, you would probably have a shift register on your main UI loop that keeps this cluster between loop iterations. You can read the LabVIEW Help for more information about typedefs.
Good luck,
-D
01-03-2006 01:25 PM - edited 01-03-2006 01:25 PM
Yes, I would probably go with the array. 🙂
Still, the cluster approach as some advantages, especially if each boolean has a unique name. Can't you use a single cluster?
Another alternative would be a single U32 variable, then use all the bits in it to hold your data. (or a U32 array if you really need more than 32 booleans).
If all the booleans are identical as in your example code, you should make the FP controls/indicators also clusters or arrays to simplify things.
Message Edited by altenbach on 01-03-2006 11:30 AM
01-03-2006 01:25 PM
01-03-2006 01:45 PM
Here is an example that I used for input data coming from an opc server into the DSC module.
01-03-2006 04:06 PM