Home Programming

Discussion

Left ArrowBack to discussions page
Roman9Roman9 Posts: 3 Apprentice
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

Comments

  • Roman9Roman9 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. 
  • matthewd92matthewd92 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.
Sign In or Register to comment.
Left ArrowBack to discussions page