sjs Posted March 15, 2013 Share Posted March 15, 2013 I am trying to log two test channels that contain string data to a single ASCII file (one channel contains the temperature and the other the time, both converted to a human-readable format). I have confirmed these channels actually contain the relevant strings and they are updated every few seconds. We were previously able to log straight from the thermometer's input channel every half hour, but since I have switched to the test channels with converted values no logging occurs and DF tends to crash after a few minutes to an hour. Is there some nuance to logging strings from test channels that I am missing? Link to comment Share on other sites More sharing options...
AzeoTech Posted March 15, 2013 Share Posted March 15, 2013 There shouldn't be an issue unless, perhaps the time stamps on the channel data aren't changing. Look at the history of those channels and see if the time stamps are incrementing. If not, you'll need to adjust your addValue() call to include the proper time stamp. If so, then something else is going on and perhaps you should post or email your .ctl document. Link to comment Share on other sites More sharing options...
jerzydziewierz Posted May 14, 2014 Share Posted May 14, 2014 I have this problem, the time stamps are not correctly incrementing with addValue(x) where x is a calculated value, how does one "adjust the call to include proper timestamp" ? Link to comment Share on other sites More sharing options...
AzeoTech Posted May 14, 2014 Share Posted May 14, 2014 Use insertTime(): myChan.addValue(insertTime(someValue, systime(), 0)) Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.