LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

write cluster array

Solved!
Go to solution
I have a array of cluster(global variable) that I am trying to fill with all the items that need to be logged on my experiment are done inside the subvi. The subvi is called every loop to check the pressure on my analog channel. When the pressure reaches 20psi on particular channel I enter a case statement and using card_no as the index I would like to fill the cluster for that particular channel. And when all my channels are sampled I generate a user event which is handeld in main.vi event structure where it writes my global cluster into a multiple listbox and also to a file. I am able to read a particular index from my global cluster but can't figure how to write to the global cluster using the card_no as index. Please need some help to figure out the issue.
0 Kudos
Message 1 of 5
(2,856 Views)
You need to use Replace Array Subset.
0 Kudos
Message 2 of 5
(2,847 Views)

I receive wire enumeration - conflict. Please see the attachment.

 

Thanks

0 Kudos
Message 3 of 5
(2,839 Views)
Solution
Accepted by topic author romesh

Something about the Test Results Global doesn't match log_data array you are passing in.  That image doesn't match what you put in your first post.  If you look at the names of the elements in your cluster, they don't match between the first post image and this latest image.  Namely the double PFR and boolean TR are abbreviated in one image, and fully spelled out in the other image.

 

Turn on context help and hover over the broken wire, it should tell you what's going on.  Hover over wires that aren't broken to see the datatype that is contained in the wire.

0 Kudos
Message 4 of 5
(2,831 Views)

Thanks yup that's the problem. They didn't match. 

0 Kudos
Message 5 of 5
(2,825 Views)