04-18-2008 03:26 PM
04-18-2008 03:35 PM - edited 04-18-2008 03:38 PM
04-18-2008 04:10 PM
Randall,
I don't think so. Its very difficult to tell. Cursors are not availabe on the chart, and if I zoom in to get a closer look, the plots fill in the empty spots. When I first read your comment, it was about 200ms worth of missing info. The longer it runs the worse it gets. Now its about 420ms worth of missing info. I've changed my loop delay to 10ms. The reported loop time is between 190ms and 205ms.
One thing that I did notice, is that the missing chunks exist only one at a time. Let me explain. Because this is a strip chart, the newest data appears on the right and marches to the left. When a blank chunk appears on the right, it is the only blank chunk that exists as it marches off to the left. the moment that it drops of the left side of the chart, another blank chunk appears on the right side.
04-19-2008 07:04 PM - edited 04-19-2008 07:05 PM
04-21-2008 08:29 AM
rpursley8,
I tried the other update modes like you suggested (see attached). I think I see what is happening. Even though I get all datapoints that are sampled, during any one loop, I get a buffered group from one source (the digital inputs) that have the most recent time stamp. This information gets displayed. The next loop, my analog input has data with the same timestamp (its the oldest part of the buffered data). It gets included in the chart history, but not displayed because the chart had already displayed that portion of time during the previous loop.
What I need to do (and I don't know how yet) is to index a portion of the captured data from my three sources so the same number of points ending in the same time stamp get sent to the chart.
Here is an example: the analog input is captured first. I get 1000 samples and the last data sample occurs at 4/20/2008 1:00:00.000. Then the buffered digital input is captured. I get 1000 samples and the last data sample occurs at 4/20/2008 1:00:00.050. Then the unbuffered digital input is captured. I get 1 sample (16 inputs) and the data sample occurs at 4/20/2008 1:00:00.060.
I then take this data and combine it into an array of waveforms then feed it into the strip chart. During this current loop, the strip chart gets partial data that has a time stamp of 1:00:00.060 and plots it. Because the other two signal sources don't include data samples up to this time stamp yet, they appear blank on the chart.
During the next loop, I get another 1000 samples of analog input. Its first time stamp is 4/20/2008 1:00:00.0002 (base on my sample rate) this gets fed into the chart and is stored in the history, but won't appear on the display because the chart had already processed data with newer time stamps.
Thank you for pointing me in the right direction.
05-07-2008 10:41 AM