LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Web enbaled control and seperate monitor for same VI

Now I have a new problem.  We got the dual web pages working, but now the embedded chart is always several hours behind current time.  The data displayed in the rest of the panel is current and all controls are usable, but the chart is several hours behind. 
 
We restared the app yesterday and I just checked it now and the chart current data is over 7hours behind current time.  Interestingly when the chart updates, it continues to be 7 hours or so behind real time.  Any ideas why the chart would not display correctly in the embedded web app?
Troy
0 Kudos
Message 11 of 15
(942 Views)
Troy,

If you restart the embedded app and view it immediately, is there any data (and if so, does it say it is from ~7 hours ago?  Or will the data take ~7 hours to show up?
Regards,

Jared Boothe
Staff Hardware Engineer
National Instruments
0 Kudos
Message 12 of 15
(922 Views)

Jared,

It looks like the web app chart is displaying data from the same start point (oldest data point) as the application, whatever that is, to some now seemingly random point, but not the current time.  For instance this morning the web app chart was displaying 22 hours out of 25 hours of available data, again starting with the oldest point, but stopping 2+ hours shy of that current time. 

To answer your quesion about after application restart, I'm not exactly certain how it behaves in the web app.  I am unable to restart the application frequently at the moment as we are having active issues with our AC systems that this monitors and I need to allow the system to run.  As for behavior immediately after starting it from what I remember, it seems as though I have all the data in the web app, but I am not sure when it begins diplaying the random last data point.

Some additional details that may or may not be of help.  The chart history length is setup to be 1500 points.  I have autoscaling turned on.  I update the chart once per minute.  There are 8 plots on the chart, though some of them are NaN inputs, which are disabled measurement channels. 

 

Troy
0 Kudos
Message 13 of 15
(909 Views)
Troy,

When you say "random" last data point, is it random, or does it seem to be a pretty similar 'bug'.  It would be nice for you to be able to reproduce the error on a smaller scale, or on something that is not connected to running equipment, for testing purposes.  It sounds as if your minute might be a bit 'slow' or you are missing data points.  It'd be good if you could run this for 2 hours and see if it has exactly 2 hours of data.
Regards,

Jared Boothe
Staff Hardware Engineer
National Instruments
0 Kudos
Message 14 of 15
(888 Views)

Jared,

Let me see what I can do to produce another app with the same chart setup to see if I can reproduce the problem. 

I just checked it again before replying and found that the chart is now displaying 17.65 hours (approx 1060 points), where as Friday it was 22 hrs.  This is the kind of thing that makes me say its "random".

Troy
0 Kudos
Message 15 of 15
(880 Views)