Jump to content

VI does not "return"


Recommended Posts

I have two objects of the same kind and the same VI gets called on both of them, only the second one does not return.

post-17162-126830868154_thumb.gif

When tracing it gets to a point where it exits (Step out is the only option available), but the control doesn't get transferred back to the calling VI.

post-17162-126830871865_thumb.gif

So, there is no infinite loop or anything like that. Does anyone have any idea what is going on here?

Mike

Link to comment

I have two objects of the same kind and the same VI gets called on both of them, only the second one does not return.

post-17162-126830868154_thumb.gif

When tracing it gets to a point where it exits (Step out is the only option available), but the control doesn't get transferred back to the calling VI.

post-17162-126830871865_thumb.gif

So, there is no infinite loop or anything like that. Does anyone have any idea what is going on here?

Mike

This happens even if I completely disable the entire diagram in the second picture. :frusty:

Mike

Link to comment

You probably already know this, but you actually do have a potential for an infinite loop. The maximum value of an I32 is 2^31-1 (2,147,483,647). As you increment from 2^30 to 2^31 you'll jump from 1073741824 to -2147483648, than to 0 for anything past that. If Size control is any number over 2^30, you'll be stuck in an infinite loop. You could limit the maximum of Size or use a for loop with an exit conditon instead.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.