LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

NI-CAN Hardware and Timestamps

Hi.,

I have to log 3 types of CAN-Messages (IDs) to a file.

For this purpose I configured /opened 3 different CAN-Objects, each one for a different ID. The values are read in an endless while loop (can be arborted by pressing a button).

Now I have problems to multiplex the 3 different datasources into one file. At the moment I compare the timestamp output of the 3 CReads to bring the data in the correct order. However the file looks a bit strange: Sometimes CAN-Messages are duplicated and sometimes the time goes back in the file. When the are no appropriate Messages on the CAN-Bus the timestamp is noted as 1831958347127.2939 and null bits are inserted in the file.

How can I multiplex multiple CAN-Messages in one file? Has anybody exper
ience with this kind of issue?

--
Georg
0 Kudos
Message 1 of 2
(2,572 Views)
Hello Georg,
Since you're trying to realign the messages anyway, is there a particular reason why aren't just using a Network interface object to read in all the messages? If there are some Arbitration IDs that you don't want to receive then you can just use the mask them out with the mask and comparator.
0 Kudos
Message 2 of 2
(2,572 Views)