prospective Posted December 27, 2012 Share Posted December 27, 2012 I would appreciate help on the following: I am trying to plot a simple trend graph where the Y axis will be a v-channel. I cannot get my v-channels to have time-stamps associated, so the trend graph also don't work.... For example, in my sequence: While(1) v.vaue = 5 wait (0.5) endwhile plots perfectly as the time stamps are present with each reading BUT While(1) v.vaue = var.othervalue wait (0.5) endwhile does not work as all values are written against the same time, eg the time don't update???? I realize I am making a stupid mistake somewhere or don't know the rules well enough?? Many thanks!!!! Johan Link to comment Share on other sites More sharing options...
AzeoTech Posted December 28, 2012 Share Posted December 28, 2012 Use inserttime() to force a time stamp: V.vaue = insertTime(othervalue, systime(), 0) This gives it the current time at the moment of execution. Link to comment Share on other sites More sharing options...
prospective Posted December 28, 2012 Author Share Posted December 28, 2012 Thanks for the help and quick response!! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.