Jump to content

abort running loop


Recommended Posts

Posted

Hi all,

I have another problem which I have translated into a simple example.

I have a "ok" button which starts the counter which is made up of several for loop.

However if the for-loop counters are very big it can take forever for the vi to finish.

I have tried different thing to be able to stop the for loops but I can't find a solution.

Does anyone know what to change in my block-diagram so that the abort button can stop the for-loops at any time?

(for some extra info I don't have another event case just this "OK button": Value Change event handler)

best regards,

arjen

abort.jpg

Posted

It should never take more than 400ms to stop this VI, unless you have the "Lock Front Panel" checked in the Event Edition screen for OK button, thus preventing any other buttons to be pushed until the event frame completes.

Posted

Francois thanks for you reply.

I'm still a newby when it comes to LV and don't know where to find the "Lock Front Panel" option.

Where can I find it?

Posted

Make sure you're in the OK Button: Value Change case, then right-click the event structure and select "Edit Events Handled By This Case ...". In that dialog, there will be a checkbox for locking the front panel.

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.