Home› Programming
Discussion
Back to discussions page
Roman9
Posts: 3 Apprentice
Insertation Node Variable for Sucessful Insert |
30 views
|
Answered | |
/ Most recent by matthewd92
in Programming
|
2 comments |

in Programming
Hello,
I am trying to loop the insert node until it successful completes the insert, using the UR eSeries. Right now I track when the insert node errors and keep track of how many times it errors but I do not have a way of exiting the loop when the insert reaches it target position. Any ideas?
Thanks
I am trying to loop the insert node until it successful completes the insert, using the UR eSeries. Right now I track when the insert node errors and keep track of how many times it errors but I do not have a way of exiting the loop when the insert reaches it target position. Any ideas?
Thanks
Tagged:
Comments
-
Roman9 Posts: 3 Apprentice
A work around sorta. The loop runs off a integer < 2, inside is a boolean that gets reset to false before insert node, if insert fails it gets set to true and the integer gets incremented, if the insert does not error the boolean stays false and sets integer to 2 which exits loop.0 · TwitterFacebook -
matthewd92 Founding Pro, Tactile Sensor Beta Testers Posts: 1,267 Handy
What variable were you using originally to control the loop? Have you checked the box on the loop that says to monitor it continuously? This makes the loop into a while statement and as soon as the conditions change the loop will exit.0 · TwitterFacebook