Stop And Start Graphs


silogarrett

Recommended Posts

Posted

Hi Guru,

I have a graph that reads a single column of max values taken from four detectors. At times, I have to stop the data for a few seconds, using a variable elsewhere, then start up again. This causes the peak line in the graph to visually jump to the left; obviously because of the time gap between stop and re-start.

Is there a way to create a time (Y value) the graph could use so the re-starts are nice and smooth, without a jump? Would another channel, using the same stop/start variable, and containing values contructed like systime, that would only increment by one second between stops and starts, would that work, or am I complicating things?

Mike

Posted

Maybe you can post a screen shot showing what you mean? If you are talking about eliminating time gaps, the easiest thing to do is simply plot vs data point instead of time on the X axis.

Posted

Guru,

Forgive me, I meant the X axis.

Posting a sample would be difficult.

My question is, can you stop a channel's data stream that a graph is monitoring, and then restart that data stream without the graph's data jumping left due to the time gap?

Posted

The best bet is to change the X axis scaling from "Use Time Width" to normal scaling, then set the Scaling parameters as:

Scale From: systime() - tw

Scale To: systime()

replacing tw with the number of seconds you want to display.

Archived

This topic is now archived and is closed to further replies.