LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

control array of cluster

Hello. I have an array of clusters and iam using clusters elements for read data from a file and calculating vs.

 

But when i try use cluster no:1 elements other clusters elements changing too. How can i fix it?

 

 

0 Kudos
Message 1 of 22
(3,124 Views)

By "use cluster no.1 elements", do you mean that you're changing a property of the element or the value?  Each element in an array has the same properties, so changing one cluster will affect all array elements.  If the values are changing, you've got something else going on.  Share your code and we can tell better.

Jim
You're entirely bonkers. But I'll tell you a secret. All the best people are. ~ Alice
For he does not know what will happen; So who can tell him when it will occur? Eccl. 8:7

0 Kudos
Message 2 of 22
(3,113 Views)

Need to see some code.

 

I'm left to assume that you are setting the values using a property node.  That will not work since all of the elements of an array must have the same properties.  They can have different values, but you can't just set the value of a single element in an array.  You have to update the array and write the entire array to the control/indicator.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 3 of 22
(3,110 Views)

http://www.dosya.tc/server34/3eDRhV/NewFolder.zip.html

 

My project link.

I need control all clusters free from others. But now when i change a clusters element value others clusters elements changing too.

0 Kudos
Message 4 of 22
(3,088 Views)
Index the particular element in the array and use "bundle by name"function to set the value for the indexed value.
This will only update the selected cluster in the array
Regards
Guru (CLA)
0 Kudos
Message 5 of 22
(3,083 Views)

Asking for help in PMs is not going to get you far.  What's wrong with just keeping the discussion here?

 

And post your code here.  I am not going to go to another site that I don't trust just to download your code.  Not to mention my work's firewall blocks most of those file storing sites.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 6 of 22
(3,078 Views)

Thanks for your reply. I mofieded but its still updating other clusters elements too.

0 Kudos
Message 7 of 22
(3,071 Views)

Sorry  You right.

Now I upload my file to here.

0 Kudos
Message 8 of 22
(3,065 Views)

Why are you using the IPE structure?  Not that it is a bad thing but generally the unbundle by name, and bundle by name give you more flexibility in what you are reading, and writing.

0 Kudos
Message 9 of 22
(3,038 Views)

My problem its not about IPE structure or reading and writing data. Just when i want change some value (ex: ullage for first cluster) other clusters value changing too. I think i need different control for all clusters.I added Case Structre for that but its still changing other clusters elements. 

0 Kudos
Message 10 of 22
(3,033 Views)