Can I control pages in tab control with case structure?

Hi there!
I'm quite new to Labview and my company wants me to make some programs for testing of electronics. I'm currently working on the GUI and I would like to control three pages in a tab control with buttons.
I only got the base package of Labview 2009 so I can't use Event structure.
If you open my .vi you can see I have a tab control with three pages. In the first page I got a "Start" button that should open the next page in the tab control. In the middle page I have a "Tilbake (Back)" button that should go back to the previous page. The button called "Lagre (Save)" should work as a next button and go to the last page. On that page I have a "Tilbake(Back)", "Ny test(New test -> go to first page again)" and "Avslutt (Quit)".
The buttons under the tab control where something I copied from an example just to try out. That works perfectly, but I cannot edit the Event Structure from the example.
Is this possible to solve with Case Structure? Or maybe there are other solutions? Feel free to edit my .vi if you like
Thanks for the help!
Regards,
Even Myhre
Test engineer
Regards,
Even
Certified LabVIEW Associate Developer
Automated Test Developer
Topro AS
Norway
Solved!
Go to Solution.
Attachments:
Test GUI.vi ‏29 KB

Hi again!
Well it solved my problem, but I got a strange error while running my program.
When I press "start", the tab control changes page. When I press "tilbake(back)" it is totally random how many clicks it is necessary for it to change back to the first page. It can be from 1 to 20-30 clicks. Which is very strange since all other navigation buttons works perfect. "Tilbake(back)" button on the last page works correctly and has the same structure as the "tilbake(back)" button on the middle page.
I have tried all the different options on how the button will response on a press.
Regrads,
Even
Regards,
Even
Certified LabVIEW Associate Developer
Automated Test Developer
Topro AS
Norway
Attachments:
Test GUI2.vi ‏28 KB

Similar Messages

  • Is it possible to programatically add tab pages on tab control

    Hi All,
    Is it possible to programatically add tab pages on tab control? If yes then how?
    Thanks & Regards,
    Shrinivas

    Doing this will require the use of VI server and methods and properties.  First, some questions:
    Is the number of pages you may need unbounded?
    Do you have a maximum number of pages you need to display at any one time?
    If the answers are no and yes, then you can create a tab control with the maximum number of pages you need, and hide or show the pages, as necessary. To hide or show pages, use the Pages property to get references to all the pages.  Use Index Array to select the page you want to show/hide, then use its Page Visible property to show and hide it.
    You can also get a lot more dynamic, if you number of pages you need to show at any one time is less than the total number of pages.  In this case, you will want dynamic page contents and tab name.  You can set the tab name by Page Label property of the page (right next to the Page Visible property).  You can make the content dynamic by using a subpanel as the only contents of the page.  You can find out about subpanels in the LabVIEW help or this post.
    You also need to ask yourself whether a tab interface is the best one for your application.  I have usually found that if I need to show and hide a lot of tabs, I would be better off with a subpanel for my content and a text or menu ring the select the content.  Tree controls also work nicely for selection.
    Good luck!  Let us know if you need more help.
    This account is no longer active. Contact ShadesOfGray for current posts and information.

  • Programmat​ically reading controls in a Tab Control

    I can use Property Nodes to read controls on a front panel, but they seem to miss controls inside a Tab Control.
    Is it possible to programmatically read controls in a Tab Control?
    Attached is an example VI illustrating this.
    Attachments:
    Controls Mismatch.vi ‏21 KB

    I didn't open your code.
    A tab control has a property called Pages. This is an array of page references. Wire this property node to a for loop, then use a property node to read the property CtlsOnPage to get an array of references for each element on the page of that tab.
    Now is the right time to use %^<%Y-%m-%dT%H:%M:%S%3uZ>T
    If you don't hate time zones, you're not a real programmer.
    "You are what you don't automate"
    Inplaceness is synonymous with insidiousness

  • I have a I-mac that is not able to upgrade the os past 10.7.5, when I go to upgrade Pages it says i have to be running os 10.10, how can I get Pages that will run with os 10.7.5.

    I have a I-mac that is not able to upgrade the os past 10.7.5, when I go to upgrade Pages it says i have to be running os 10.10, how can I get Pages that will run with os 10.7.5.

    Click here and follow the instructions. If they’re not applicable, buy an iWork 09 DVD from a source such as Amazon or eBay.
    (116937)

  • Navigate pages of tab control with radio buttons

    hi guy,
    i need to navigate 7 pages of a tab control container usings custom buttons. that is, when i click on a button, i takes me to the specific page on the tab control container.
    i think this can be done using radio buttons and tab control container, but i dnt really know how. please any help will be appreciated.
    thanks....

    Hi jiggaharry,
    I think I may have a link that addresses you issue. Do have a look at this link:
    Navigate Tab Control with Custom Buttons:
    http://forums.ni.com/ni/board/message?board.id=300​&message.id=6123
    We have a vast array of data on ni.com for examples and tutorials which could be very helpful in your code development. Do feel free to browse through and use the examples are they are all free of charge
    Hope the link is useful to you.
    Regards,
    Manick | AE | NI ASEAN

  • Highlighting current page on Tab control

    Hi!,
    I am using tab control with 7 pages. The page names are all in the same colour. Is there any way in which the colour for the name of the current page can be made different from the rest?
    If your answer involves property nodes (or more advanced techniques) please be descriptive as I am beginner.
    Also, which is the best book for inside stuff on property nodes?
    I am using LV-PDS 6.1
    Best wishes and thanks,
    Gurdas
    [email protected]
    Gurdas Singh
    PhD. Candidate | Civil Engineering | NCSU.edu

    > Is it possible to assign the same keyboard key (to all buttons) such
    > that pressing it will do the job of clicking the current active
    > button? I would prefer this key to be the 'space bar'.
    >
    > The application allows only one hand to be free. The other hand will
    > be used to place test component and rotate it manually below the
    > sensor. Thus, such a feature makes the user's task very easy. He just
    > keeps clicking the space bar until the vi ends.
    >
    It isn't possible to assign a key to more than one control, since then
    it would be pretty unclear which control should out-of-the-blue receive
    the key. It is possible to catch key events and perform and action
    based upon the key press. Another option is to set
    the key focus to the
    next logical button in your progression. If the focus is set to a
    button, then the space bar, enter key, etc all work.
    Since you are asking for comments, the UI you describe sounds a bit odd
    to me. A sequence of buttons that the user is required to click in a
    given order? You might want to compare this to an indicator showing the
    stage and current results, and one more button that says Next. Tie the
    key navigation shortcut to the single button, and each button press
    moves to the next stage. You might want to add a Cancel or Stop button
    if there is ever any need to break out of the sequence. Finally, this
    is pretty close to a wizard that allows the user to go both directions.
    If it makes sense to reverse and redo a step, add that button too and
    you have a very standard UI.
    To build a wizard, use a tab control with a page for each stage. Hide
    the tabs, and modify the pages by adding or subtracting on the value.
    Greg McKaskle

  • Can you print all the tab control's contents and include the tabs?

    We are trying to generate a report that includes the contents of a tab control (graphs, text).  Using the Append Control Image to Report.vi, we are only able to print out the active tab and the tab is cut off of the image. How can we generate reports that include all the tab pages and their contents and include the labeling tabs?
    Thanks in advance.
    Jim

    I do have a workaround for makinging the prints but it looks like some sort of cropped screensave that cuts off the tabs.  In my sample I was printing out 3 of the tab controls and you can see there are three by the cut off tabs.  Is there a setting to allow for more of the graph and its surroundings to be "captured"?
    Attachments:
    Document.pdf ‏53 KB
    Document (2).pdf ‏51 KB
    Document (3) (2).pdf ‏58 KB

  • Indicators show thru to front page of tab control.

    I have a tab control with boolean indicators on the second and third pages. When the indicators are activated (mine blink when certain tests are selected), they show on the front panel. I have tried to "move to front" the tab control but that didn't work. The property node for the tab control doesn't seem to have anything to help either. Any ideas?

    I found a straightforward solution here:  http://forums.ni.com/t5/LabVIEW/Determine-if-Tab-is-active/td-p/1841435
    which does change as the tabs change.
    The blinking question was asked, as noted, 12 years ago.  I apologize for the confusion caused by changing the question.
    I consider my question solved.
    Thanks to those who responded.

  • How to save values of a page from tab control??

    Good morning!
    I have a question about saving the data of one page of the tab control.
    In my case, alarms (boolean buttons) can be activated, it will appear in a page called HISTORICO (Date // Time // Room), but when I change to another page and back again to the HISTORICO page, the table back for null value.
    Here's some screenshots of my program.
    If anyone can help, I will be grateful.
    Solved!
    Go to Solution.
    Attachments:
    mainvi.png ‏167 KB
    frontpanel.png ‏141 KB

    In your case structure set on the case "Tabela", you have a Use default if Unwired tunnel on the right hand side.  And I can see that you have some unwired tunnels on it.  If the case structure ever executes one of those cases, then the default value of an empty table is going to be passed out and put in the shift register.
    Solution:
    1.  Right click on that tunnel and turn off Use Default if Unwired.  (In 95% of tunnels, it should not be used.)
    2.  Find the cases where the tunnel is unwired and pass the table wire through all of them.

  • Disable or hide page on tab control

    Is there any way to disable or hide one page of a tab control using a property node and some element from the user interface.
    I'm using LV 7.1.
    I'm attaching an example of what I would like to do.
    Any help would be appreciated
    Eric
    Attachments:
    Tab Control Example.vi ‏29 KB

    Hi:
    Oh, I see that someone worked faster than me, anyway I will post my
    work so it doesn''t get useless. I couldn´t see your VI since I'm one
    of those dinosaurs still using LabVIEW 7.0. I've made a small VI that
    shows how to make visible/invisible the pages on a tab control. Hope
    this helps you.
    Robst.
    Robst - CLD
    Using LabVIEW since version 7.0
    Attachments:
    VisiblePages.vi ‏36 KB

  • Obtaining References of Controls Inside of Tab Controls

    Does anyone have a way to detemine the id/index number of a control on a tabbed front panel? If there is no front panel I can use the menus: Edit, Set tabbing order. Then I can use this index in the block diagram of a sub-vi to update the control on the main fornt panel with data from the sub-vi as it runs. Yet, if you do the same thing on a front panel with a tab display, only the tabbed pages are indexed, as opposed to the individiual controls and displays. 
    Thanks.
    Brian

    I have a way of updating a control on the main vi by using an open vi reference to the main vi in my sub-vi (see code below). This is working fine for situtations where the main vi does not have a tab control. With this vi that you gave me, how can I reference a specific control in the table, such as the 3rd control on the 3rd page..and more generally the n-th control on the n-th page such that my "2" below is correct. Currently I just wire a numeric to an index array and the value is then sent to that control. the trouble that I am having is in the "get all controls" & "pick the control" part below. With the tab control on the front panel, I cannot simply wire a numeric like I did below with the "2".

  • I can't find Page Source tab

    Page Source tab used to be under View. It no longer is. Where is it?

    You can:
    *right-click in a blank area of the page, then on the context menu choose "View Page Source"
    *to use the old Menu Bar
    **press the ALT key or the F10 key to temporarily display the Menu Bar
    **while the Menu Bar is displayed, click View > Page Source
    *keyboard shortcut: HOLD down the ALT key while pressing the keyboard letter V, release the ALT key, then click "Page Source" (or press the letter O)
    <br />
    <br />
    '''You need to update the following.''' The Plugin version(s) shown below was/were submitted with your question and is/are out of date. You should update to avoid known security issues with the version(s) you have installed. Click on "More system info..." to the right of your question to see what was included with your question.
    *Shockwave Flash 10.2 r159
    *Next Generation Java Plug-in 1.6.0_24 for Mozilla browsers
    #'''''Check your plugin versions''''' on either of the following links':
    #*http://www.mozilla.com/en-US/plugincheck/
    #*https://www-trunk.stage.mozilla.com/en-US/plugincheck/
    #*'''Note: plugin check page does not have information on all plugin versions'''
    #*There are plugin specific testing links available from this page:
    #**http://kb.mozillazine.org/Testing_plugins
    #'''Update the [[Managing the Flash plugin|Flash]] plugin''' to the latest version.
    #*Download and SAVE to your Desktop so you can find the installer later
    #*If you do not have the current version, click on the "Player Download Center" link on the "'''Download and information'''" or "'''Download Manual installers'''" below
    #*After download is complete, exit Firefox
    #*Click on the installer you just downloaded and install
    #**Windows 7 and Vista: may need to right-click the installer and choose "Run as Administrator"
    #*Start Firefox and check your version again or test the installation by going back to the download link below
    #*'''Download and information''': http://www.adobe.com/software/flash/about/
    #**Use Firefox to go to the above site to update the Firefox plugin (will also install plugin for most other browsers; except IE)
    #**Use IE to go to the above site to update the IE ActiveX
    #*'''Download Manual installers'''.
    #**http://kb2.adobe.com/cps/191/tn_19166.html#main_ManualInstaller
    #**Note separate links for:
    #***Plugin for Firefox and most other browsers
    #***ActiveX for IE
    #'''Update the [[Java]] plugin''' to the latest version.
    #*Download site: http://www.oracle.com/technetwork/java/javase/downloads/index.html (Java Platform: Download JRE)
    #**'''''Be sure to <u>un-check the Yahoo Toolbar</u> option during the install if you do not want it installed.
    #*Also see "Manual Update" in this article to update from the Java Control Panel in Windows Control Panel: http://support.mozilla.com/en-US/kb/Using+the+Java+plugin+with+Firefox#Updates
    #* Removing old versions (if needed): http://www.java.com/en/download/faq/remove_olderversions.xml
    #* Remove multiple Java Console extensions (if needed): http://kb.mozillazine.org/Firefox_:_FAQs_:_Install_Java#Multiple_Java_Console_extensions
    #*Java Test: http://www.java.com/en/download/help/testvm.xml

  • How to create tab control within a tab control?

    So I'll lay out the basic outline of my project. Right now I have a tab control which scrolls through each of its tabs 1 second at a time. It does this until the user presses the pause button, the the scrolling stops and the user sees the tab that was onscreen right at the moment of pressing pause. Now what I want to do is have a separate tab control which comes up automatically once the user presses pause instead of the 1st tab control just stopping as it does now.
    Or alternatively is there a way to programmatically tell the tab control to stop on a specific tab once pause is pressed? Even turn on and/or off the tab labels upon pressing pause? I've been informed I can accomplish this by way of using "nodes" I think is the term, but have yet to successfully implement anything.

    ShogunOrta wrote:
    So I'll lay out the basic outline of my project. Right now I have a tab control which scrolls through each of its tabs 1 second at a time. It does this until the user presses the pause button, the the scrolling stops and the user sees the tab that was onscreen right at the moment of pressing pause. Now what I want to do is have a separate tab control which comes up automatically once the user presses pause instead of the 1st tab control just stopping as it does now.
    Or alternatively is there a way to programmatically tell the tab control to stop on a specific tab once pause is pressed? Even turn on and/or off the tab labels upon pressing pause? I've been informed I can accomplish this by way of using "nodes" I think is the term, but have yet to successfully implement anything.
    On Pause value change-event, change tab. To lock, either disable tab control (which'll also disable its controls), keep track of pause status to return to this tab if changed (in the tab change event) or place a transparent image over the tab selectors (which'll stop attempts of clicking them).
    /Y
    LabVIEW 8.2 - 2014
    "Only dead fish swim downstream" - "My life for Kudos!" - "Dumb people repeat old mistakes - smart ones create new ones."
    G# - Free award winning reference based OOP for LV

  • Tab control in another tab control

    Hi,
    How to place tab control in a another tabcontrol
    Regards ,uday

    Hi Uday,
    Check this thread... Adding Folder tab inside another Folder tab
    Actually there is a SAP Note which will explain with sample code u need to dowlnoad it from SAP Portal.
    Vasu Natari.

  • Multiple booleans controlling one boolean input for a case structure

    Hello,
    I have four boolean buttons and a case structure with a boolean input. I would like to write the program so that whenever any one of the four boolean button changes value, the case structure reads true for one loop interation, and then returns to false.
    I have tried all sorts of things and can't seem to figure it out.
    Ultimately, the ideal function of the program is so that whenever you push any one of the four boolean voltage controllers, that voltage case is chosen in the case structure, the time in seconds is written to a file, and the elapsed time timer is reset.
    I have attached my program. Let me know if you have suggestions. Thanks.
    Attachments:
    Volt_Control_And_Time_Counter.vi ‏71 KB

    Zappow wrote:
    However, with this setup, the time counter still doesn't work.
    The event structure for all four buttons has a true boolean constant connected to my file-saving case structure. If I connect this to my elapsed time express VI reset button, the timer doesn't count.
    The timer does not count because you have not wired a timeout to the lower event structure. The default timeout is -1, so the lower loop never spins via timeout
    It is useless to have a wait in a loop that also has a timeout case. Just wire an approriate timeout value to the timeout terminal and remove all waits. It is also not necessary to have a 1ms ttimeout if your timeout values only displays to 100ms resolution. Can you explain why you think you need two loops and all that extra code?
    Attached is a quick rewrite that solves some of the problem. Since I don't have any hardware, I replace the voltage out with a meter.
    You have way too many FP controls and indicators. Use arrays!
    Let me know if yo have any questions. Modify as needed.
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    Volt_Control_And_Time_CounterMOD.vi ‏63 KB

Maybe you are looking for