Using Key down to control the Tab Control on the front panel

Greetings everyone,
Like the question ask how do i control the Tab control's tabs using the key down of the event structure...I dont want to use any of the fuctions keys..i have seem a lot of other sample like the one that i have attached it can only alternate between page 1 and page 2 what if i have a lot of pages and i want to use key down function to switch across the pages.
Attachments:
Tab_switch.vi ‏28 KB

Try something like the attached modification.Message Edited by altenbach on 03-13-2005 04:04 PM
LabVIEW Champion . Do more with less code and in less time .
Attachments:
Tab_switchDOWN.vi ‏32 KB

Similar Messages

  • Is there a page down function for the front panel?

    I have a front panel on two monitor pages. Is there a function which shows the second page when I press a button on the first page and then switches back to the first page when a loop starts over again? Is there additionally a print function which prints then only the second front panel?
    Thank you very much for answering these questions.

    Are these two separate VIs ? If so, then you can open a VI reference, then use it an Invoke Node to modify the properties for the Open FP method. This would allow you to hide, minimize, or unhide the VI.

  • Using a "menu ring" feature on the front panel with event structures

    hello - right now i have many event cases controlled by many "ok buttons". i would like to use a menu ring on the front panel to save space from all those buttons, but i don't see how it will work with all the individual event cases. currently each event is tied to a single button, and the menu ring acts as one thing on the block diagram so i can't tie an event to a choice in the menu. any suggestions? thanks....

    Alternativley, you could use an enum control instead of a menu ring. It will name the cases according to the selection automatically.
    If you want to use a menu ring and strings, you could do something like in this image.
    Message Edited by altenbach on 02-09-2006 01:43 PM
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    RingText.png ‏3 KB

  • Can I Run a labview application in a hidden window (i.e. I don't want the front panel to pop up in this Labview created EXE)?

    I have a executable labview 6.1 program with a front panel. The front panel pops up every time I run it. Can I force the program to run without popping up its front panel.
    Thanks in Advance

    If you're using MS Window, you can use lvwutil32.zip to hide the front panel. lvwutil32.zip can be downloaded from NI site.
    Or you can move your front offscreen, so that user can't see it. And save your vi. When you run your vi again, it'll popup at the offscreen position. NI uses this trick to hide windows from LabVIEW users. You can also set front panel size to 0.
    George Zou
    http://gtoolbox.yeah.net

  • When I m going to move the front panel or a window for 3d scene instant hang the program.

    When I m going to move the front panel or a window for 3d scene instant hang the program.
    Υou can easily try to "generate sound" in the examples.
    Can I overcome this? (without lock movement).
    tnx
    Giannis

    Yes, I was right -- you have a single loop where you generate data points and display them.  Consider the operation of your program if you do not display the data as a Chart, but instead simply display (as an indicator) the most recent value.  The loop will go into your sub-VI, wait the appropriate time to generate a point, return, display, and immediately call the sub-VI again.  Fine, it should run at the speed of the sub-VI.
    Now add the Chart.  Same thing happens, but now you move the Chart.  The top-level routine, tasked with displaying the Chart, needs to use additional time to repaint the Front Panel, so it take it.  Now when you call the sub-VI again, time has elapsed.
    What you need to do is to run two loops in parallel, so-called Producer-Consumer Design Pattern.  Have your sub-VI return a Waveform (not a Chart).  This loop becomes the Producer -- all it does is "produce" a Waveform at whatever rate the sub-VI specifies.  Create a Queue of Waveforms outside this loop, and enqueue the Waveform onto it.  In a parallel loop (usually written below the Producer Loop), write the Consumer loop, into which you pass the same Queue.  Here you Dequeue the (latest) Waveform and display it on the Chart.
    Now, while this runs, move the Chart.  The Consumer loop will be delayed (because you are refreshing its Front Panel), but the Producer loop, running in parallel, just keeps going, putting more points on the Queue.  When the Consumer finishes its Front Panel update, it blithely plots whatever is on the Queue.  If you look carefully at the traces being plotted, you should notice that when you move the Chart, the plotting temporarily stops, then the "missing" points are speedily plotted and plotting resumes at whatever rate it was before you moved things.  This is the power of parallel processing and LabVIEW.
    Bob Schor
    P.S. -- there are examples of Producer Consumer patterns -- if you open LabVIEW and go to File, New, you should see some examples under From Template.

  • How to get the position of the stem in control valve using slider control in the front panel

    I have created a calibration program for a control valve. Signal (4-20mA) is generated from labview using slider contorl which is given to the valve via DAQ(module 9265) and again the feedback signal from the valve is acquired using DAQ(module 9203).. . There is an input ISO/ISC(Increasing signal to open/ Increasing signal to close) in the front panel.
    ISO would set the output to increase from (4-20)mA further opening the valve
    ISC would set the output to increase from (4-20)mA further closing the valve
    I have doubt, how can i get the position of a stem

    Ravens Fan wrote:
    If the position of the stem is being sent to the PC through a 4-20 mA signal into your DAQ 9203 module, then you just need to do an analog input read in order to get the signal.
    When reading this post, that is what came to mind...  So let's see if both RavensFan & I are trying to understand the same thing...  Are you saying that the position of the stem is linear (or scaled) to the amount of current sent to it?  Meaning a 4mA signal would move it a certain distance, and 10mA would move another given / known distance?  Or are you saying that it is calibrated so that a 20mA signal for a certain duration (ms) would move it a given distance? So the scale would be time and not current unless a lookup table is used to adjust the time duration based on the current being drawn...
    It's just that I am not familiar with solenoid / drive devices that related to current..  To voltage, yes.  To time, yes..  To current, I'm simply saying that I am not familiar with that.  Can you tell us more about this stem (mfg / model designation)?

  • Is there a way to start a VI using a boolean control in my front panel instead of clicking the White Right Arrow button?

    i'm trying to determine if there's a way to run a VI from the front panel without clicking the
    White Right Arrow button.
    All suggestions are welcome!
    Solved!
    Go to Solution.

    Yes.
    You set your VI to run when opened.  Then you put a Start button in a while loop with a small wait statement ahead of the real part of your code.  (You'll need a data dependency between that and you main code, either a wire or a flat sequence structure.)  That start button stops the while loop and allows the rest of the code to execute.
    Better solutions would call for an event structure and possibly a state machine architecture.

  • How can I make a global change so all controls and indicators labels on the front panel change to another colour?

    How can I make a global change so all controls and indicators labels on the front panel change to another colour?
    I need to change the front panel so that it can be used in a dark environment.

    Hi
    The only way I see, is to use the "Controls[]" property and iterate through all of them. But don't forget about nested elements (i.e. clusters, tab-controls, ...).
    Thomas
    Using LV8.0
    Don't be afraid to rate a good answer...

  • Manually controlling the front panel without a keyboard

    Hi all,
    In my application I constantly switch the keyboard and the mouse between two computers (using a KVM switch), but would like to continuously be able to control a numeric control on the front panel of one of the computers (running LabView 6.1). Even if I wasn't switching, the use of the keyboard is awkward, since the control needs to be fairly effortless, quick and smooth. After searching a bit for a knob/wheel/dial type of controller, I was only able to find the new PowerMate (Griffin Technology) as a reasonable candidate, and have yet to purchase and try to integrate it. I'm also not sure how it will work with LabView.
    Am I overlooking a simple solution?
    Anyone have some experience with the Pow
    erMate?
    many thanks, Shy

    Another option: Create a simple TCP/IP application in VB or LabVIEW to
    control the control.
    That is,
    Monitor for incoming TCP/IP data in the VI with the control.
    If on your other computer you wish to make a change, just use your
    little application to do it, and send the value to the main app.
    Very cheap to do =)
    Another option 2:
    Grab the available Parallel Port digital interface design specifics for
    labview. Create yourself a simple binary switch interface. Assign 4
    bits for up and 4 bits for down.
    That is,
    sw1 = -10
    sw2 = -1
    sw3 = +1
    sw4 = +10
    Read in the digital input from the parallel port and increment your
    control accordingly. You can obviously assign any values you want to
    the digital inputs.
    Hope this helps guide you a little bit!
    Sincerel
    y,
    Jason G Richmond
    Project Engineer II and LVAAD Instructor
    VI Engineering
    [email protected] (domain should be vieng.com (no A's))
    sshoham wrote:
    > Hi all,
    >
    > In my application I constantly switch the keyboard and the mouse
    > between two computers (using a KVM switch), but would like to
    > continuously be able to control a numeric control on the front panel
    > of one of the computers (running LabView 6.1). Even if I wasn't
    > switching, the use of the keyboard is awkward, since the control needs
    > to be fairly effortless, quick and smooth. After searching a bit for a
    > knob/wheel/dial type of controller, I was only able to find the new
    > PowerMate (Griffin Technology) as a reasonable candidate, and have yet
    > to purchase and try to integrate it. I'm also not sure how it will
    > work with LabView.
    > Am I overlooking a simple solution?
    > Anyone have some experience with the PowerMate?
    >
    > many thanks, Shy

  • Analog output to the DAQ that changes when controls on the front panel change

    I'm using the PCI-6024E, and trying to output an analog waveform that can change when one of the two controls on the front panel change. It outputs fine setting it to continuous output and using a simple while loop around the "Is Task Done" VI, but if I put the "Write" VI in the while loop, it doesn't output steadily. I then tried to use an event structure, so that I'd only have to write every time something on the front panel changes, but for some reason it was writing finite samples, even though I set the Timing VI to continuous. I looked around the NI site, and found an article about this with an example. I tried to change it around to use my waveform, but whenever I run it, I get a memory underflow error. Has anyone needed to do this before? Thanks in advance.
    -- Josh Matloff

    Hi Josh-
    It looks like you forgot to post the code still, but I'll take a stab at the problem anyway. It sounds like you're looking for a way to update a continuous waveform at runtime.
    You will need to stop the task in order to replace the write buffer information, but this will only be a small gap in operation. I have attached a modified LabVIEW shipping example that shows how to use value change events for any of the pertinent waveform parameters to either programmatically stop the task, replace the buffer, set timing and restart or to just pass the task information straight through. This will lead to continuous operation with no breaks at the output.
    Please let us know if this clears up your questions.
    Thanks-
    Tom W
    National Instruments
    Attachments:
    Cont Gen Voltage Wfm-Int Clk with Runtime Update.vi ‏134 KB

  • Can i place controls from the properties dialog of an express vi on the front panel?

    I'm using the spectral measurements express vi in my vi and I'd like to put the "window" and "number of averages" controls from the properties dialog on the front panel. However, there are not outputs on the express vi icon for these parameters. Can I place controls for these on the front panel somehow or do I always have to go into the block diagram and open the properties dialog to change the values?

    The way to do this is to right click on the express VI and select Open Front Panel. This will convert it to a standard subVI. then go into the subVI and replace the Spectrum Averaging and Spectrum Window constants to front panel controls by right click on them. Right click the icon and select Show Connector. Wire the new controls to a free terminal on the connector. You may have to add additional terminals if there aren't any available to wire to the new controls.

  • How can I get a reference to all controls on a front panel of one type )for example of the type Text Ring?

    I'd like to set the strings[] property of all the Text Ring controls on a front panel at once without creating a property node for every text ring. How can i do that?

    > How can I get a reference to all controls on a front panel of one type
    > )for example of the type Text Ring?
    >
    > I'd like to set the strings[] property of all the Text Ring controls
    > on a front panel at once without creating a property node for every
    > text ring. How can i do that?
    This is likely more complicated than making property nodes for each
    ring, but you can do it. Make a subVI that takes in a panel reference,
    reads the array of control references, loops through them looking for
    rings, and modifying the Strings[] property on each ring.
    The part of this that will probably be the least obvious, when you
    have an array of control references there are two ways to find out
    if an element is a ring. You can read the classID and compare it
    to the cla
    ssID of a true ring control. An alternative is to cast
    the control reference to a ring control using a Cast to more specific
    node and wire the error out to a case structure. The error case is
    where the objects that aren't rings will go. The success case case
    where you will have a valid ring refnum that you can use to modify
    the strings.
    Greg McKaskle

  • How do you control LED lights on the front panel to identify the number of steps a stepper motor has taken?

    I am controlling a stepper motor that is coupled with a valve with four outlets (using an Arduino).  I've got a general understanding of how to control the motor, but I want LED lights on the front panel to light up that indicate which outlet the valve is currently at after the steps are taken.  The method I'm thinking about involves a lot of repetitive code.  I'm not that experienced with LabVIEW, I'm assuming I need some sort of loop structure but I don't know how to set it up in order to control the sequence of the LEDs.  I've attached my current block diagram for a visual aid if needed.
    Attachments:
    Capture.JPG ‏33 KB

    I was thinking about using the Stepper To Go and Stepper Write functions four separate times, using the same constants for the steps each time since the distance between each outlet is equivalent.  The only difference would be what's connected to the "steps remaining" node, which would be the function that activates one of the four LEDs (if that makes sense).  I was thinking that doing it this way would be a little counterintuitive since the only thing that needs to be changed is the LED indicator.

  • How do I get the Label for a Front Panel Control to appear in the Block Diagram but not on the Front Panel?

    How do I get the Label for a Front Panel Control to appear in the Block Diagram but not on the Front Panel? On the Front Panel I am making a complex control that consists of a Slider and a Numerical Input box. Both Controls display the same information and either can be used for Input. When one changs, the other is made to display the same value.
     But I only want the Slider to display the Label on the Front Panel, to avoid confusion. On the Block Diagram however, I want both controls to display their Labels so that I know what they are. How do I display the Label for a Control on the Block diagram, but not display its Label on the Front Panel?

    No.  The Label Visible property is separate for the front panel control label and the block diagram terminal label.
    How did you start out with the block diagram's label not being visible?  Whenever I drop a control or indicator, the label is always visible on both the FP and BD by default.  Maybe there is a LabVIEW option that causes new controls/indicators not to have their labels visible by default, but I have yet to find it.  I don't think an item should ever be dropped without the label visible, good LabVIEW coding practice demands that the labels for control terminals on the block diagram be visible so that you know what control or indicator a wire is going to.
    That being said, I have seen a lot of VI's posted where the label for the terminal on the BD is not shown (against good programming practice.)  I've gone to the BD and right clicked to show the label.  Sometimes, the people have an empty label (which will turn off the visibility for both the FP and BD) and I'm forced to add some text of my own into the label so I can figure out what their code is doing.  When I add some text to the label, at that time, I find both the BD and FP labels become visible.
    Are you dealing with controls that have empty labels to start?
    Good programming practices:
    1.  Always have a name for all of your controls, never use and empty label by deleting the text in the label.
    2.  Make the labels unique.  For example, don't have two controls both called Stop.  How do you know quickly know which terminal relates to which control?
    3.  Always show the labels on the block diagram, so you know the function of a control's terminal.  If you want to hide the label on the FP, that's okay.
    4.  If you want a different label to appear on the FP than whatever you actually called the control, then use the caption.  You can hide the label and show the caption.  This is useful if you need to programmatically change what the "label" is on the front panel such if you are making an application that needs to change its user interface such as for a foreign language.

  • How to find VI's connected terminals when controls are hidden on the front panel?

    When working with a sub-VI which has terminals connected to hidden controls is there a straight-forward way to find the terminals on the block diagram?
    I click on the terminal and an outline appears on the front panel but when I try to click on that outline I can not unhide the control. 
    The only way I have discovered to find the terminal of the connected control is just check each terminal on the block diagram which looks like it might be connected.
    I'm using LV7.1 but also use 8.5.
    Thanks,
    Davey

    Ben wrote:
    smercurio_fc wrote:
    If I understood the premise of the question it sounds like you have controls/indicators wired to the VI connector pane, but for some reason these controls/indicators are hidden. If this is a VI you wrote slap yourself. If this is a VI someone else wrote, go slap them.
    One way that you can find the terminals on the block diagram by performing a search by text. The context help will show you the names of the controls/indicators. The only problem with this approach is that if the control/indicator has the caption visible rather than the label, then the context help will show the caption, not the label.
    Another method is to use scripting. Not sure if it's worth the effort for just one VI, though.
    Before we get all slap-happy I have to ask...
    If I have a sub-VI which is set for Print on completion and the controls in/out for the icon connector are NOT supposed to show up on the final report, isn't setting those objects as hidden a viable option?
    Ben
    Well, of course, Ben. My comment was not meant to be taken seriously... hence the smiley happy icon. To respond to your question in a more serious matter, though, there's always exceptions to rules. That's why they're rules - they're meant to be broken. Otherwise they wouldn't be rules. It's a strange state of the universe, isn't it? Although, one could probably just place the control behind another object. That sort of hides it, doesn't it?

Maybe you are looking for

  • Error while executing PlSQL Procedure

    Hi Chris, Procedure SPR_VISAMAST_SWITCHCATEGORIZE is created in the TimesTen interchange user. and all object used by this procedure also cached in the TimesTen. While executing it is giving error. I traced out where execution is failing, i found tha

  • Apple policy on inappropriate content for iBooks

    Hello, I have an idea for an iBook that I would create using iBooks Author, and plan to distribute via the App Store (or the iBooks Store, or wherever it ends up when you submit it via Author). However, I've been warned that Apple has a policy on ina

  • How to re-trigger workitem in SAP

    Hi All, When employee submitted leave request, it has not gone to correct line manager. We have applied OSS note. Now we have logically deleted work items. Now we would like to re-trigger same workitem. Could you please advice how to re-trigger. Rega

  • [SOLVED] Remap joystick/pad buttons

    Hi Is there a way to rema my pad buttons? I own a logitech pad, and when running some games through wine, since most of today games are xbox ports, my buttons are messed. I mean, xbox has the following layout: x y a b my pad 1 4 2 3 and -at least thr

  • Applications crashing after latest security update??

    So i was prompted to download the new security update and the newest version of iTunes today. i do so, and upon start-up, i open adium and try to chat with a friend. before it could even open the IM window, adium chrashes. I updated adium and it stil