What am I doing wrong?

This program isn’t working, and I’m not sure why. Please assist!
It is supposed to change the color of the LED as more pressure is applied to the sensor.
LED.fsp (546 KB)

Hi,

Please find attached a simple color selector based on an integer value. It uses ruby to greatly simplify the complexity of your situation.

Sincerely,
String selector.fsp (132 KB)

Hi again, I tried moving the program you created into my own, but when I tested it, it wouldn’t change the index. I moved the program block for block, and I’m not sure if it’s something wrong in my program or yours. Would you mind looking through it?

Really appreciate it :wink:, TestProjectNew.fsp (517 KB)

Thank you for finding an undocumented features (i.e. a bug). It seems the Ruby block that you added into your schematic has a permanent parsing error.
When we copied our test/example schematic into yours, it seemed to work fine. We even replaced the code from our Ruby module into yours that was already there, and it still did the parsing error.

We then proceeded to replace your Ruby module with ours and it seems to work. To be honest, we are unsure why the parsing error on one module (which is wrong in itself, since a >= comparator is valid there) stayed.

We will investigate this for our next update of FlowBotics Studio.

Please find attached a working version of your schematic.

Sincerely,
TestProjectNew_v2.fsp (515 KB)