The following section of code has been giving me some problems. The Rsh calculation and Rshminx calculation work fine but the greater than/less than logic isn't being followed when Rsh is compared to Rshminx.
I noticed that Rshminx wasn't declared at all so I declared it and am noticing a significant change. Question is: if you don't have the variable declared will this screw up the greater than/less than comparison?
Hmmm... Rsh was declared as string as well... Could be another part of the problem.
I noticed that Rshminx wasn't declared at all so I declared it and am noticing a significant change. Question is: if you don't have the variable declared will this screw up the greater than/less than comparison?
Hmmm... Rsh was declared as string as well... Could be another part of the problem.
HTML:
Rsh = ((Isc * Rs - Voc) * (e ^ ExponentOC - e ^ ExponentMP) + (Voc - Vmp - Imxp * Rs) * (e ^ ExponentOC - e ^ ExponentSC)) / (Imxp * (e ^ ExponentOC - e ^ ExponentSC) + Isc * _
(e ^ ExponentMP - e ^ ExponentOC))
Rshminx = (Vmp / (Isc - Imxp))
If Rsh < Rshminx Then
CountRsh = CountRsh + 1
GoTo Step0
End If
Last edited: