I have now 4 while loops running:
- Continue receive and transmit CAN messages in/to queue
- Consumer loop, initialize, read the CAN message from queue and put them in the right array, a display case for my front panel update, and a few several items
- producer loop, time out 1 ms, sends 'read' in to consumer loop, update display, send CAN message and stop event
- Datalogging loop, save every 10 secs all arrays in same file and create every 5 min a new map for the data
I thought that put the messages first in arrays will be easier for me to plot in on my front panel and save it.
Apparently it isn't the right way.
@ superS-5 I will build a disable script for the ID's I don't want to measurement at that time, but can't delete them because they will be necessary for other test. Thanks
@ ShaunR I assume you mean direct logging to a file instead of array? But how to plot it then?
Some additional information:
- The program has to run several hours
- The x-as will be max. 5 minutes, what continous with the time.
- Sample rate of 3 pot. meters, 1 kHz.
It's not all clear to me right now what the best reliable methode is.
____________
Michael ten Den