Lockie Posted September 3, 2021 Share Posted September 3, 2021 Hi I am struggling to log (and graph) a number of global variables that have been calculated in sequences. Have got the graphing working but it wont log the data for me. I have logging set up for raw data from inputs and am wanting to log the global variables for a few hours at a time so from what I can see logging may be better suited than export sets. I have created a test channel for each variable I want to log (and graph) as below: I then have a sequence running to make the variable a string in the channel While (1) Graph_DT_Flow.AddValue(insertTime(DT_Flow,systime(),0)) Graph_kW.AddValue(insertTime(kW,systime(),0)) delay(1) endwhile This allows me to graph the channels which is working but when I try to log them the column when opened in excel only has the heading. If you could help with this it would be amazing!! Quote Link to comment Share on other sites More sharing options...
AzeoTech Posted September 7, 2021 Share Posted September 7, 2021 Try using = instead of AddValue() if you are using a test D to A. Also, use the timestamp from T8_Flue: Graph_DT_Flow = insertTime(DT_Flow, T8_Flue.time[0], 0) I'd even go so far as to put that code in the Event of T8_Flue instead of in its own sequence. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.