Jump to content

Execution priority


Recommended Posts

One way of assigning execution priority to a VI is go in the Properties for that VI and navigate to the "Execution" Category (see pic)

You can then select what you want.

Alternatively; if you use the Timed Loop structure in your code, you can assign execution priority specifically for that loop.

Link to comment

QUOTE (Xrockyman @ Jul 23 2008, 08:29 AM)

Hello,

Is there a way to give execution priority to a certain code or VI? My problem is that I have some interface controls that I want to execute immediately for the user doesn't feel that the program is slow.

I think your probably not looking for the execution priority setting. Changing that setting, for a VI in series with user events, will do nothing till the user has actually finished choosing stuff.

If you want your User Interface to be more "dynamic", handle user events with an Event structure, and have a second parallel loop that acts on the event instructions generated by the Event structure. Look for examples or a template for a Queued State Machine architecture under LV help.

Neville.

Link to comment

QUOTE (neB @ Jul 23 2008, 06:14 PM)

Agreed. I can not recall any cases where slugish VI performance was fixed by changing the priority.

Ben

Thanks, that is true. The better solution is to put parallel loops handling my menus and controls and I put these interacting with the rest of the code with global variables.

Regards.

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.