Using tab control

Hi everybody,
first of all I have to say I'm pretty new to LabVIEW.
I am working with LV PDA 7.1, a pocket PC 2003 device and a NI-DAQ6062E
I have to develop an application for my thesis, which acquire data through the DAQ6062e connected to the PPC and to use the wifi to send this data over TCP to a desktop PC.
So let us say I have a client running on the PPC and a server on a remote machine.
Now the problem. On PPC the screen is rather little so I thought to use tabs to overcome this problem. I want that my application acquires data and display it on a Chart on the PPC and if chosen by the user, that it sends data over TCP.
So I've put netwprk settings on a tab and acquisition settings and chart on a second tab.
But if I start acquisition, I can't change tab anymore.
So, is there a way to make this possible? Something like it was multitasking
I hope I've explained myself, sorry for my bad english and thanks in advance for answers!
G.Paolo Mazzola

Yes Globals are bad, and I only suggested them as a method of getting a sloppy version functional, with globals and multithreads, race conditions can occur and are a real pain to debug. To use message passing between threads is simple, create 2 loops, and pass the result of an "obtain queue" to both loops. now we have a reference to a common synchronization object which will allow us to communicate between threads. This is a simple consumer producer model, one thread will enqueue data (each quque is created with a specific data type, any labview data types including custom clusters) and the other thread can wait on the queue usind dequeue and an infinite or set timout or even periodically check the queue to see if it has any elements in it. I have attached a simple example. I hav not had to send data bi dirrectional in labview, this case is harder than the producer consumer model. I have included a LV 7.0 simple example of passing strings between threads. You can change that rate (period in ms) of the read write and timouts to see how it affects the queue.
-Paul
Paul Falkenstein
Coleman Technologies Inc.
CLA, CPI, AIA-Vision
Labview 4.0- 2013, RT, Vision, FPGA
Attachments:
Queues.vi ‏49 KB

Similar Messages

  • How to stop a while loop when using tab control

    How do you use a tab contol to stop what is happening on one tab when you switch to another tab?  In the test example I attached, I have a while loop nested inside a case structure controlled by the tab control.  When I tab to page two the elapsed timer starts but when I switch to another tab it does not stop.  I can't come up with an easy way to stop or exit the while loop when I change tabs. 
    Thank you
    Danny
    Attachments:
    tab control.vi ‏24 KB

    I played with it a little more and came up with this fix.  This fixes it but is not tied to the changing tabs as I was looking for.  Is this just too many nested loops and a bad idea?
    Danny
    Attachments:
    tab control fix maybe.vi ‏26 KB

  • Need Example how to use Tab Control properties...pls?

    Hi all,
    I would like to request for an example on using the Tab control and how to use its properties.
    Thanks in advance,
    juni

    Searching for Tab Control on NI Home yields several results. I find the following relevant to your request. I'll suggest you repeat the search for more examples.
    http://zone.ni.com/devzone/explprog.nsf/6c163603265406328625682a006ed37d/bcf35c2bdbf132d786256945007d8004?OpenDocument
    http://digital.ni.com/public.nsf/3efedde4322fef19862567740067f3cc/c050233a993f14f88625698e007eb082?OpenDocument

  • Using tab control to login into remote panel

    https://decibel.ni.com/content/docs/DOC-7746;jsessionid=82a40f1930d65e9a085c08dd4b26b8dea4b8c3d579a7.e38MaNyPaNePaO0Oc350n6jAmljGr0
    I am using the idea in the link as a way to password protect a remote panel. However, there is a problem. After one user logs in, if a second user connects while the first user is logged in, then the second user automatically gets access without having to log in. Does any one have any ideas to force the second (and other additional users) to log in before they can get access? 
     

    If they're all accessing the same remote panel, then the current state of the remote panel is what they will all see because that's the state of the VI itself on the remote system.
    How are the users accessing the remote panel? If it's through your own local VI, then you could have them log in there?
    Maybe the Advanced Programmatic option here could work for you.

  • How to control the tab control using event structure?

    Hi,
    I am using tab control and event structure in the program.
    When i run the application event is not happening for the active page.
    When user switches from active page to the other page then event is taking place for all pages
    So, how to get the event trigger for the active page when the application is started
    For more clarification i am attaching the code "Test Control Tab using Event Structure.vi"
    Attachments:
    Test Control Tab using Event Structure.vi ‏52 KB

    You have a basic misunderstanding of dataflow. Maybe you should start with some tutorials or study some of the examples that ship with LabVIEW.
    The event structure belongs inside the while loop, and not vice versa. RIght now, the event structure only runs exactly once and never again.
    If the stop is pressed first, the VI will stop. Game over.
    If the tab control is changed (from any state to any other state!), the inner loop will spin forever as fast as the CPU allows, either executing one or the other case. It just reads the tab terminal to decide which case to execute. Changing tab never triggers any events. The VI is trapped inside the event until stop is pressed to stop the VI.
    you were closer to a reasonable program in the other thread:
    http://forums.ni.com/ni/board/message?board.id=170&view=by_date_ascending&message.id=287905
    Have you tried execution highlighting? Maybe things would become more clear of you do.
    LabVIEW Champion . Do more with less code and in less time .

  • Reorder tabs in "tab control"

    To all those willing to help:
    I am using LabVIEW 8.6.  I have created several applications using "Tab Controls" to reduce the size of the UI.  This last one has been problematic in that the first tab does not display when the application is launched.  I have reviewed all project files and configuration settings without luck.  I have also searched through the help files and the NI web site without success.  So I am posting my question here...
    How does one change the tabbing order for the tabs of a "tab control"?  Any and all help would be appreciated.  My thanks ahead of time. 
    Bill Buxton
    Bill Buxton

    Bill,
    Guenters solution will work if you can programatically determine your tab order.  If you would rather rearange your tabs though (see example)
    You can right click the tab control
    and up pops
    I haven't found a way to set this programatically-
    Jeff

  • Tab control usiong tool bar

    Hi!
    In my application i want show different graphs using tab control.How can i control the page selection  of tab cntrl.  using different buttons that i put up on my tool bar.Is there any property to this op.?
    Thanks
    DeWalker
    Solved!
    Go to Solution.

    Create a local variable of the tab control and wire a constant into it. Run this code when your button is pressed.
    The downside of this is that if you are reading the value of the tab control as well, it will break dataflow and cause a race condition. 
    - Cheers, Ed

  • Tab controls

    I have a program with 3 tabs using tab control. The first tab is a login
    screen (because this will be used for remote fron panel use), the next is a
    configuration tab and the last is the execution.
    The login tab is an event structure waiting for a value changed on the
    "login" bool button.
    The config tab is a while loop that updates different settings which are
    later being read from the execution tab and is also used for running small
    test executions from within the config tab.
    The execution tab is a while loop that reads settings from the config tab
    controls and actually manipulates I/O ports.
    So far so good. Now, when the VI is started, I switch to the login tab and
    disable the others by use of a property node and references. Works well.
    Once the user is l
    ogged in, I disable the login tab and enable the others
    and jump to the last tab. Works OK as well.
    Problem: If I start the VI when any other tab than the login tab is in
    "focus", that tab will continue running and you can never log in because the
    login tab will never get "its turn" even though it will actually disable the
    other tabs and put the login tab in focus. Also, I would like for the tabs
    to stop running when I switch to another tab and continue when I switch back
    to them, thereby only having one while loop running at a time.
    Right now, if I stop the while loop in one of the tabs the whole program
    stops.
    Can anyone help me in the right direction?
    TIA,
    - Soren

    I never thought of the tab control as an actual control, but more of a
    display device. Anyway, you can make a local variable from the tab and
    write a constant to it to switch between tabs.
    "Soren Maigaard" wrote in message
    news:ap284d$c22$[email protected]..
    > I have a program with 3 tabs using tab control. The first tab is a login
    > screen (because this will be used for remote fron panel use), the next is
    a
    > configuration tab and the last is the execution.
    > The login tab is an event structure waiting for a value changed on the
    > "login" bool button.
    > The config tab is a while loop that updates different settings which are
    > later being read from the execution tab and is also used for running small
    > test executions from within the co
    nfig tab.
    > The execution tab is a while loop that reads settings from the config tab
    > controls and actually manipulates I/O ports.
    >
    > So far so good. Now, when the VI is started, I switch to the login tab and
    > disable the others by use of a property node and references. Works well.
    > Once the user is logged in, I disable the login tab and enable the others
    > and jump to the last tab. Works OK as well.
    >
    > Problem: If I start the VI when any other tab than the login tab is in
    > "focus", that tab will continue running and you can never log in because
    the
    > login tab will never get "its turn" even though it will actually disable
    the
    > other tabs and put the login tab in focus. Also, I would like for the tabs
    > to stop running when I switch to another tab and continue when I switch
    back
    > to them, thereby only having one while loop running at a time.
    > Right now, if I stop the while loop in one of the tabs the whole program
    > stops.
    >
    > Can anyone help me in the right direction?
    >
    > TI
    A,
    >
    > - Soren
    >
    >

  • Tab control and Multiline mode property

    We are using tab control with multiline mode property true. We have around 20 tab pages and because of multiline mode property items are displayed in three rows. Annoying thing is whenever we do selection of a tab in first row tab items get rearranged
    and my selected tab will come to last row. Is any one facing the same issue. Please suggest me.

    The selected Tab has no bottom border (assuming top alignment) and so the selected tab should always merge with the tabpage. This is why the row with the selected tab always moves to the tabpage border. If you don't want this behaviour then set the tabcontrols
    appearance to Button and the rows will not change when a tab is selected.
    Mick Doherty
    http://dotnetrix.co.uk
    http://glassui.codeplex.com

  • Tab control name editing

    In my application i am using tab control . 
    For that i want to programatically change tab names and i want to enable and disable a specific tab .
    In property i cant find this option and in discussion forums i could not able to open the vi mentioned in the link 
    http://forums.ni.com/t5/LabVIEW/Change-values-of-Tabs-on-Tab-Control/m-p/677900#M311358 
    What might be the problem .
    Thank you
    Raja
    Solved!
    Go to Solution.

    You are have your answer concerning enabling and disabling tabs. Concerning the first part of your question you can not dynamically change the names of tabs at runtime. The reason is that logically tabs are enumerated with the tab names being the enumerations. In other words the names aren't properties that you can change, they are part of the datatype.
    Now what you can do is use a combination of buttons and enabling/disabling controls to simulate the appearance of a tab control - which might not be a bad idea given the problems that tabs can cause.
    Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

  • Tab Control doesn't execute

    Dear all,
    i am working on an application with multiple front panels. so i am using tab control to shift from one panel to another.
    its working fine for all the cases except one.
    i am attaching the pic on that case where a particular page is called and it doesn't get executed.
    pls have a look at it and let me know where is the problem
    Thanks,
    Ritesh 
    Solved!
    Go to Solution.
    Attachments:
    Main with Tab_BD.png ‏44 KB

    What version of LabVIEW?
    I have seen a bug in LV 8.0 and 8.2 where:
    If you DEFER PANEL UPDATES,
    Set the TAB control to tab X
    Un-DEFER PANEL UPDATES.
    then the TAB control will show tab X in front, but what's on the page is from some other tab.
    In other words, it changed the tab doohickey itself, but didn't change the contents.
    The workaround was to change the tab via a PROPERTY NODE : VALUE function, rather than a local variable.
    I suggest you give that a try. 
    Steve Bird
    Culverson Software - Elegant software that is a pleasure to use.
    Culverson.com
    Blog for (mostly LabVIEW) programmers: Tips And Tricks

  • 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

  • Using a jQuery list box placed onto a tab control doesn't seem to work for posting?

    Hello,
    I developed a U.I. in Dreamweaver for a  product and have several list boxes that use the onChange modifier to collect what the user selects from the list. I use the onChange=this.form.submit() function to grab the user's selection from the list box..
    When this dropdown list box code is placed onto a form, it posts properly and I can retrieve the user's list selection.  If however I place the list box code onto a Tab page from a jQuery Tab Control, developed in Dreamweaver, the posting doesn't seem to work.
    I must be missing something because identical code is working fine when the list box code is placed on a form yet when the code is repeated from within a Tab, it isn't working.
    The code is simple, and shown below).  The list values are coming from a MySQL table.
    $MyQuantity_query="SELECT * FROM Quantity_Table";
    $MyQuantity_Result=mysqli_query($cxn,$MyQuantity_query) or Die ("Cannot connect");
    echo"<select name='ThisQuantity[$RowCounter]' value='ThisQuantity[$Rowcounter]' onChange='this.form.submit()'><option value='-1' selected>Qty</option>";
    While($MyQuantity_Row=mysqli_fetch_assoc($MyQuantity_Result))
       extract($MyQuantity_Row);
       echo"<option value='$Qty_Number'>$Qty_Number</option>";
    echo"</select>";
    Any suggestions would be appreciated.  Thanks.
    Joel
    [email protected]

    Thanks you.
    I tried placing the selection list inside of
    tags but posting still doesn’t seem to be working? 
    Regards,
    Joel

  • I use LabView 6i and I use Dialog Tab Control, but I can't put colors on it, some one try it before?

    The Diaglog Tab Control works very well, but I could not paint it with Front Panel tools or with its property. Any one knows about this, thanks!

    THANK YOU!!! I have spent hours searching for the answer to this question. I didn't realize that there were two different tab controls! This is just another example of why I use NI products and software. Where else will you get this kind of product support.
    Dave Green
    Process Systems

  • Can you change tabs on a tab control by using boolean buttons?

    Need to change tabs by pressing a button instead of using the actual tabs.

    Absolutely. First create a local variable for your tab control. Then poll your boolean to tell when its value has changed. Finally write a value to the tab's local variable to change its tab page programmatically.
    Message Edited by Jarrod S. on 02-07-2007 05:46 PM
    Jarrod S.
    National Instruments
    Attachments:
    tab.PNG ‏17 KB

Maybe you are looking for

  • Trying to "blend with white" in Aperture 3

    I am trying to fade each of a large group of pictures toward white in Aperture 3, but am having some difficulty with deep colors. What I'm looking for, I can get in PS Elements by blending with a white layer on top (with roughly 80% opacity), but I d

  • Floating Point # in MIDP & CLDC...

    What is way of using the floating point numbers in MIDP & CLDC? MIDP and CLDC has no built in support for it. Plz help me...

  • No application data

    hello when I run query in bex and sap i have error no application data,I don't have Bi accelator index may it error depents on it ? I want to know if I define bi acceleator this problem solve? or it dosen't depends on it? plz help me

  • New field not reflecting in Table maintenance generator

    Hi Experts, I have added a new field in a ztable.I regenerated the table maintenance generator,so that the  new field is reflecting in devlopment system , also a TR got created.When i moved this TR to pre-production system new fields are reflecting i

  • COGS - Sales analysis doesn't tie to G/L

    Hi, My sales analysis does not tie to my G/L for COGS (i.e sales - gross margin on SA does not equal COGS in G/L). Is there any sensible reason why this should be the case ? Thanks, Wayne