DaviD_H Posted September 16, 2008 Share Posted September 16, 2008 Hi I need to display de batterry discharge graph. I have done it but I want the time axis autoscale automatically in way to display all the graph data from the application start till the actual moment. My graph display a deteminate timing and not all the application working time. How can i get it? thanks Link to comment Share on other sites More sharing options...
AzeoTech Posted September 17, 2008 Share Posted September 17, 2008 Looking at your other post, you want to create a variable for the starttime, and then plot data.time - starttime. So, if you are plotting MyChannel in the Y expression, you'd put: MyChannel.Time - starttime in the X expression. You'd then need to go to the X axis settings and switch it from Date/Time to Linear, and adjust the scaling (take it off Use Time Width). Link to comment Share on other sites More sharing options...
AzeoTech Posted September 17, 2008 Share Posted September 17, 2008 I've attached a sample. It requires the latest 5.79 release of DAQFactory, though it doesn't use any new features. elapsedtimegraph.ctl Link to comment Share on other sites More sharing options...
DaviD_H Posted September 17, 2008 Author Share Posted September 17, 2008 Great! THANKS Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.