dle Posted January 5, 2017 Share Posted January 5, 2017 I recall to see this topic a while ago but could not find it again. How to display a trace on a graph starting from left to right with time is the bottom axis. Thanks. Link to comment Share on other sites More sharing options...
AzeoTech Posted January 5, 2017 Share Posted January 5, 2017 Simply uncheck the box on the bottom axis settings that says "Use Time Width" then specify an absolute start and stop time. I'd consider using a variable to set the start of the experiment, and put that in the Scale From, then use an absolute offset for the Scale To, for example if your experiment was 60 seconds: variableName + 60 Link to comment Share on other sites More sharing options...
dle Posted January 5, 2017 Author Share Posted January 5, 2017 I'm using channel that has 100000 history points and using D to A I/O type. from the graph, I set y expression = mychannel x expression = Time The bottom axis I set From = SysTime() To = Systime() + 60 The trace will not show on the graph, but if I check the time with box then the graph will show Link to comment Share on other sites More sharing options...
AzeoTech Posted January 5, 2017 Share Posted January 5, 2017 That's because systime()+60 is the future. I think you want: systime()-60 and systime() But that's going to do almost the same thing as using time width set to 60. Link to comment Share on other sites More sharing options...
dle Posted January 6, 2017 Author Share Posted January 6, 2017 Do you mean the only way to display the traces to run from left to right is using variable for the scaling but not systime()? Link to comment Share on other sites More sharing options...
AzeoTech Posted January 9, 2017 Share Posted January 9, 2017 Maybe I'm not sure what you mean by traces running from left to right. I'm thinking you mean that the graph starts empty, then it shows a little trace on the left side of the graph, and over time, that line gets longer and longer heading towards the right side of the graph. If you think about it, in this case the bottom axis scaling is static. It doesn't change. The left side (scale from) is the start time, and the right side is some time in the future. You can't use systime() because its always changing and causes the whole axis to shift. Link to comment Share on other sites More sharing options...
dle Posted January 9, 2017 Author Share Posted January 9, 2017 " I'm thinking you mean that the graph starts empty, then it shows a little trace on the left side of the graph, and over time, that line gets longer and longer heading towards the right side of the graph." Yes, it what I meant. Using SysTime(), the the present of time starts from the right of the graph and the past is on the left side. There is no problem with that. It just the way the graph moving make viewer think its origin is on the right side. Link to comment Share on other sites More sharing options...
AzeoTech Posted January 11, 2017 Share Posted January 11, 2017 I still don't get what you mean. Do you want new data to appear on the left side? Anyhow, if what I said before is correct, you need to do what I specified originally using a variable. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.