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