11-16-2018 11:39 AM - edited 11-16-2018 11:40 AM
Whenever I stop the program I would like to reinitiate the value that the case structure gives me. It is giving me the maximum value.
After I stop, I want it to go back to zero.
Any suggestion?
Thanks
Solved! Go to Solution.
11-16-2018 11:45 AM
You can reinitialize it upon start using the Initializer Terminal on the feedback node.
11-16-2018 12:08 PM - edited 11-16-2018 12:09 PM
In addition, I think you can remove that entire inner while loop and it would still work the same. Less code = less places for bugs to hide! 😄
And yes, simply initialize the feedback node as has been said.
There is also "ptbypt min&max" which will do all that for you directly. try it!
11-16-2018 12:18 PM
Also what's the point of the formula node? It's unnecessary, as is the comparison equal to 0.
11-16-2018 12:42 PM
@aputman wrote:
Also what's the point of the formula node? It's unnecessary, as is the comparison equal to 0.
Yes, there are plenty more things wrong with this code. We only scratched the surface. 🙂