Posting snippets of code doesn’t help.
If you want to know the value of the V7 datastream when you are executing a timed function then you need to assign the value obtained by param.asInt() to a global variable so that you can reference it later.
param.asInt()
Reading this might help…
Pete.