Closed KjellMorgenstern closed 1 year ago
I guess you modify the properties.xml to be able to set the luminance to 0. In any case, it makes sense to be able to set it to cero and the value of the photoresistor should not go to infinity.
The solution is to replace the spice filed to:
<line>R{instanceTitle} {net connector0} {net connector1} {{luminance}>0.01?(({luminance}/0.01)**(log({light resistance @100lx}/{dark resistance @0.01lx})/ln(10)/4))*{dark resistance @0.01lx}:{dark resistance @0.01lx}}</line>
Log: