Posted: Wed Sep 04, 2019 6:44 pm Post subject: Tracking value over time
I am looking at a value which is representative of velocity. I'd like to track (and save) it over time so that I can understand how it works and reverse engineer the formula.
nothing specifically as far as I know but you could write some lua code eg.
Code:
tracker_t = createTimer()
tracker_t.Interval = 50 -- milliseconds
local memrec = AddressList.getMemoryRecordByDescription('Velocity')
tracker_t.OnTimer = function(t)
if not memrec then print("memrec not valid, ending timer to avoid spam") t.destroy() return end
print(memrec.Value)
end
and that'd print the value out every ~50 milliseconds. tracker_t.destroy() would stop it and then you could just rerun the code to start it again (though there is a way to pause and restart it I forget the name off the top of my head).
ctrl+alt+shift+L from the main gui will open a lua console that you can use, otherwise you can put it in an assembly script with {$lua} at the top _________________
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum