Jump to content

Tab Control May not Respond to New Value


Recommended Posts

Hi:

Has anybody noticed that when creating a wizard tool using the LabVIEW Tab Control, the wizard may not flip to the next page even when one is sure that the code includes a page change command. I noticed that I am only able to consistently change Tab control pages if I put a delay inside a fram containing the page change command.

It seems like the tab page change process runs under the user interface thread and if the CPU is busy it ignores switching to this thread an instead executes other things.

. . . See code snippet

Anthony L.

Link to comment

This bug on tab controls is a really really old one (since LabVIEW 3.0). The problem is that the front panel interface does not show the corresponding tab page, if you change the value of the tab control in block diagram code programmatically. I found out the following solution. Write to both a local variable of the tab and a tab property "value". This works in most cases. I suppose that the property "value" forces the panel to update the page finally.

I hope this helps.

Wolfram

Link to comment

Wolfram:

Thank you for verifying this.

I was working to produce a LV code example as Crelf suggested but the thing is not repeatable on a consistent basis. My LV code in which this happens more frequently is too large to send. I later determined that even the delay that I added did not fix this problem 100%. ... but apparently the property node will. I have used local variables all along.

Anthony L.

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.