Local variables not setting?


I’m using a C8 Pro on the latest firmware (2.5.0.143) and I’ve been running a little app to calculate energy cost by putting the values from various devices into local variables and running some basic calculations with variable math. It’s been running since I was on the C7 without issue…until recently. I noticed the calculations didn’t update properly after I reset the values like I do on the day they read the meter. Now that I have a chance to look at what is going on, it seems like the local variables aren’t being set. In some cases, the local variables have old values, others have no value (null) or zero value.

I set up a simple test and the variables don’t seem to be getting set.

Curious what the log shows

Here’s the log. Some kind of error showing.

I tried setting test TestB separately and it’s not setting but there is no error either.

Screenshot 2026-05-29 083331

Sorry missed it the first time looked. Try changing the variables to decimal instead of number. If you try to edit them now you will see you can’t add a decimal to them.

From the doc

  • Number: an integer, positive or negative

  • Decimal: a number including a decimal point, positive or negative

Been there, done that. No change. Same error.

Correction. It stalled with the error as long as TestA was present. Removing TestA, it did set.

Update: Silly me, I was using decimal values already so that wasn’t the issue. To make things easier to see, I reset all the variables to 0 and after that it started working again. Weird. Problem solved. I’ll monitor to make sure.

Thanks for the feedback.