LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to plot the CAN data

Hai
     I use frame api to read the CAN data, i want to plot read CAN data online, the problem is in the array the message ID keeps on shifting, so i am not geting the exact plot.
Pls give me an idea to do this
Thanks
 
0 Kudos
Message 1 of 4
(2,820 Views)
developer help,

What exactly do you mean by "in the array the message ID keeps on shifting"? In what way is it shifting?

If you could please give me more information I would appreciate it.

Thank you and hope you have a great day.
Sarah S.
Applications Engineering
National Instruments
0 Kudos
Message 2 of 4
(2,791 Views)
Hai Sarah S
      Thanks,
Please check the attached snap short of the CAN data i get, i read the CAN data continuously from CAN0, for example from the attached picture i want to plot the data of ID 316 continuously, but in my vi i put the read data in an array and i ploted from that array, but that is not correct, b'coz i get multiple plots for same ID 316 and the ID @ the index 1x1 in array will also change @ every time when the CAN data is read.
i want to plot the data of individual ID's continuously
ex- 316 --> 05 32 1a 00 12 03 00 00 ...  
      329 --> 01 05 1c 02 11 00 00 00 ...
give me an idea how to do this.
thanks
 
 
 
-------------------------------------------------
I use LabVIEW 7.1 & NI PCMCIA CAN card
0 Kudos
Message 3 of 4
(2,766 Views)
developer help,

You will need to use a comparator to check the IDs and then pass that information to the specific part of the plot, related to the ID. You are currently are just directly passing the information directly to the graph. You may also want to take the time-stamp information into account when plotting.

Hope this is able to help. Please let me know if you have anymore specific questions.
Sarah S.
Applications Engineering
National Instruments
0 Kudos
Message 4 of 4
(2,739 Views)