LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

grouping indicators and writing to them

My lab just upgraded to Labview 8.2 and I'm reprogramming something that was originally done in 5.0.  I have a group of indicators and text rings that looks like the attachment.
I want to group everything together, so I can write data to them using a for loop rather than individually writing to each indicator or text ring.  I'm still pretty new at this so I was wondering if anyone had and suggestions for how to do this. 

0 Kudos
Message 1 of 7
(3,068 Views)
I tried to cluster the indicators and then change them to an array, write to the array, change the array to a cluster and write to the original cluster, but i get an error saying the sizes are incompatible.


0 Kudos
Message 2 of 7
(3,062 Views)
You have a broken wire because you need to set the cluster size for the "Array to Cluster" function. However, you do not want to do it this way. There is little point in going from indicator->array->cluster->array->indicator. Frankly, your code makes no sense based on your statements. You said you have a group of indicators and text rings. I saw no text rings in your front panel figure. I see 5 floating point numeric indicators, which in your second picture I would assume are those 5 SGL terminals off on the left. What are "Label 11", "Label 12", etc? Are those the text rings? How do they relate to the numeric indicators?

Why do you need to use a loop to update the indicators? Is the data generated in a loop, or is the data that's supposed to be displayed in the indicator in an array? Even if the data to write is an array, all you would need to do is this:

Message Edited by smercurio_fc on 07-18-2007 11:29 AM

Message 3 of 7
(3,038 Views)
I'm not understanding why do you wanna do that. Please try to explain it better.
Software developer
www.mcm-electronics.com





PORTUGAL
0 Kudos
Message 4 of 7
(3,035 Views)
Ah yes... Simple mistake #42...

The problem is that the array to cluster node can't set the size of the output cluster because the size of the array feeding it isn't set until runtime - as a result it defaults to a cluster of 9 elements. Why 9? Well why not!  In any case, the solution is to right click on the node and select Cluster Size... In the resulting dialog box enter the correct number of items for the cluster.

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
Message 5 of 7
(3,033 Views)
The text rings are basically the labels above the indicators.  The program is supposed to read data from numerous inputs and then display them in the indicators with the correct label.  The data is in array form so I wanted to put them in the correct indicators.  Depending on what the user selects, some to all of the indicators will be used.  Smercurio, thanks for that tip.  The program does what I want it to do now. 


0 Kudos
Message 6 of 7
(3,026 Views)


@mikeporter wrote:

Why 9?!

It's the universal law of incompatibility.
I don't think I ever used a 9 element cluster, so that's the default. Smiley Very Happy

 

P.S. Some humorless user is bound to bring up the date\time rec cluster, so I'll just have you know that's why they added an element to it in 8.x - so that it won't break the universal law.


___________________
Try to take over the world!
0 Kudos
Message 7 of 7
(3,007 Views)