LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I get the breakdown of the no. of msgs on the CAN bus for dif IDs?

Using the examples in LV8.2.1, CAN Frame Receiver Error.vi, I noticed what it does is it makes use of the ncmultiRead.vi and log the messages and displays them. What I am trying to do is to log this msgs and grp the messages according to diff IDs? I want to monitor if the data for the different IDs change and if they change, the change should be logged with the appropriate timestamp. Also I want keep track of the number of msgs that has been broadcasted for the diff IDs. How should I modify the existing vi to perform the functions that I want?   
0 Kudos
Message 1 of 2
(2,525 Views)

Hi,

You may group messages according to different IDs by sorting the 2D array in which the data is stored.  Here are a few discussion forum posts about sorting 2D arrays:

Sorting 2D array by col2

Sorting a very large 2D array

Then, in order to keep track of the number of messages for different IDs, you may use functions from the Array palette, such as the Index Array and Search 1D array to count the number of messages.

Rima H.
Web Product Manager
0 Kudos
Message 2 of 2
(2,500 Views)