Modelica-Arduino icon indicating copy to clipboard operation
Modelica-Arduino copied to clipboard

Led not working in sample BarGraph

Open bdelaup opened this issue 1 year ago • 1 comments

Led not working in BarGraph example.

I edited the component LED.mo and replaced :

fillColor=DynamicSelect({100,40,40}, if mean.y > 0 then {100 + (mean.y/0.02)*155,40,40} else {100,40,40})

by

DynamicSelect({100, 40, 40}, {ceil(100+(mean.y/0.02)*155), 40, 40})

Then it works correctly.

bdelaup avatar Aug 27 '24 14:08 bdelaup

Can you provide steps to reproduce the problem? In Dymola 2024x Refresh 1 the original code works fine.

t-sommer avatar Sep 17 '24 07:09 t-sommer

Hi there,

I had time to work on the topic this week. I was unable to reproduce the problem on OM 1.24.4 . I think it's not worth working on this further to reproduce on OM 1.22

Thanks for your time.

bdelaup avatar Jun 26 '25 16:06 bdelaup