This should be easy to do without a callback function. Just run a function every frame that converts your observed variable to a global var.

var digits_var = 0;

...

void convert(float fObserved)
{
digits_var = _VAR(fObserved);
}