About nan value in LagCHOP

I’m using LagCHOP to smooth sensor values received via OSC, but after leaving it running for a long time, LagCHOP stops updating and shows nan. Even after pressing Reset, nan remains.

Sorry I can’t explain it better — it’s hard to reproduce.

I found a similar case here, but I’m not sure if it’s the same issue.

Any idea what might be causing this?

OS: Windows 10
TouchDesigner version: 2023.12000

Hi,

nan stands for “Not a Number”
No idea why it works until it’s not. There is still a chance it could be a bug.
You can try to cast the value when you receive it to force the conversion to a number. Use (int) or (float) as needed before the value in python.
Otherwise be sure you keep sending your osc value as a number.

Thanks for your reply!
To add more detail: the data received via OSC is cast to a float and written into a Table DAT. Then I use a DAT to CHOP to convert it to CHOP format, and pass that into a LagCHOP.