I have an application that is aquiring data via I2C from two separate I2C busses.
Each I2C process is connected to its own isolated I2C bus and runs in its own parallel loop on the block diagram asynchronously.
I have a separate parallel chart loop to handle the incoming data.
My question is "how do I overlay the data from these two separate loops onto the chart as it comes in".
As stated, the plots are asynchronous so there will be times when one channel is active and the other is not so the inactive channel data will have to be coerced to the last data that was posted.
I have implemented a queue of type 2-D array and update only the appropriate element?(channel) within each I2C loop and try to force the other element (channel) to null.
This is not working so well and rather than waste alot of time I am posing the question to those who may have done this before.
Thanx in advance!