LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Using Clusters to compare data?

Hi, I am looking to be able to compare data and I'm thinking Clusters might be the best approach? But I am more familiar with using Cluster data in stream of data, not being able to pick a specific data to compare.

 

So for context, I am having one part of LabVIEW code to read in Data from excel file that contains Message Frame name, ID, Cyclic Period, Data Length and a few other things. The second part is to read in CAN data via CAN Log or X-Net, then have it start comparing Read in Data to my Excel loaded data. Where it would start by matching either CAN Frame name or CAN ID, then comparing the rest of the properties to make sure the data matches. 

 

Would clusters be the best way to approach this? Or is there some other method in which I can make something like a buffer type of Database to pick messages to compare? Hopefully this is clear enough. 

0 Kudos
Message 1 of 3
(1,262 Views)

Clusters would work fine.  If the clusters are the same type, like a typedef for instance, you can compare them directly.

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 2 of 3
(1,235 Views)

Thank you. 

 

So I've used Producer/Consumer and Master/Slave templates along with Notifiers and Queues. But that was to Stream and Sync data. Is there something I'm missing to be able to pick a cluster from buffer? 

 

For example, if I were to convert data to Clusters. I think I would need to have the excel data in one cluster "buffer" of data, then when the Read In Data from Log or XNet would pick the matching Identity from Excel data to compare the data for that specific piece of Cluster Data. 

0 Kudos
Message 3 of 3
(1,170 Views)