10-16-2019 11:35 AM - edited 10-16-2019 11:36 AM
I would probably use a feedback node here instead of a shift register. But even having to press enter does not prevent anyone from entering a bad value, so you definitely need an entry control as suggested and maybe additional sanity checks in code before the new value is handed over to the rest of the code.
If there are only a few possible power values, maybe you could use a ring containing all allowed values.
(I am curious about you case structure in the upper right. What's in the TRUE case?
10-16-2019 01:37 PM
@altenbach wrote:
I would probably use a feedback node here instead of a shift register. But even having to press enter does not prevent anyone from entering a bad value, so you definitely need an entry control as suggested and maybe additional sanity checks in code before the new value is handed over to the rest of the code.
If there are only a few possible power values, maybe you could use a ring containing all allowed values.
(I am curious about you case structure in the upper right. What's in the TRUE case?
Well there is true constant. When reflected power is bigger than allowed it will stop program. Because when is activated boolean for RP limitation, it limits generator power.
10-16-2019 01:42 PM
So you created a Rube Goldberg.
If True, output True. If False, output False.
Eliminate the case structure and just use the wire!
10-16-2019 01:59 PM
@RavensFan wrote:
So you created a Rube Goldberg.
If True, output True. If False, output False.
Eliminate the case structure and just use the wire!
Hmm, that’s looking very stupid from me. I didn’t realise that. I am learning by myself. So my best friends are Google and YouTube. 😄
So I really appreciate it.