Pressing on the Table Control locks the front panel in a certain state

Hello everyone!
I have following problem. I have a very simple state machine with two cases. In the Idle case there is an event structure receiving input from a Table Control. When pressing Run the Vi enters the Run state. To exit the RUn state I have a Finish button, but IF I during the running state press anything on the Table Control the entire front panel will lock. Disabling the Table Control in the running state doesn´t help in the same way it helped for Button 1 and 2. Any help would be appreciated. I have tried unsuccesfully with the Registering and Unregistering event functions.
Attached is a simplified version of the problem. Thanks in advance.
Solved!
Go to Solution.
Attachments:
Event lock problem.vi ‏22 KB

Hi, RealBjörkis !
I ran your VI and I saw a few problems, try to keep your controls outside the events structure, also do what said P@Anand previously.
Here is your VI with some corrections. (Hope it fix the problem)
Good Luck.
Attachments:
Event lock problem.vi ‏23 KB

Similar Messages

  • How do I input data to a table on the front panel and stop the program immediatel​y as button is pressed?

    What should I do if I want to display on the front panel in real time the values from Polarizer #, P1, P2 and the last calculated value (P2/P1 * 100) called T% in a table or some graphical representation like that?  What would I have to do?  It could just be Polarizer # and T% if that would be simpler.  I just want to let the user know the values in a list, spreadsheet or table as they go.  One last thing is that I would like to be able to stop the program at any point in time as soon as the stop button is pressed.  As of now, when the button is pressed it goes through the iteration currently in progress and then one afterwards.  I want the program to end as soon as the stop button is pressed no matter what sequence it is.  What can I do to achieve this?  Could you give me an example or modify my program to show me this.
    Thanks,
    Steve
    Stephen Coward
    Northrop Grumman
    [email protected]
    Attachments:
    EPM2000 almost done.vi ‏50 KB

    Put a single frame sequence structure around your stop button and then wire from the error cluster going into the error handler to the edge of the sequence structure. Now your code will stop at the end of the current iteration. To see why this works, watch you code execute with execution highlighting turned on and review the section of the manual talking about "Dataflow".
    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

  • Switching between two tables in the front panels

    Hi
    I am working on an application,which has two "Tables"
    in the front panel. Both the tables do get updated
    simultaneously from the same test,
    Table-A displays
    A short summary report while the test is beign executed, and result.
    Table-B displays
    A detailed report of the test and its condition and parameter
    along with results.
    My front end is a simple display table, along with couple of
    Button controls,like "START","ABORT","DeTAIL DISPLAY" and "QUIT"
    ofcourse.
    All these buttons are used in Event driven case structures except
    "DeTAIL DISPLAY"
    as the execution beigns, on the press of start button,
    there are number of tests in which i have to pass, parameters to
    DLL and get back the result parameters.
    The end customer requires to switch the display between the TABLE-A  & TABLE-B during execution.
    so i have a, seperate while loop,where in a case structure is wired to "DeTAIL DISPLAY"
    button, and if true, visible is set to true to TABLE-B, and false to TABLE-A,
    and vis-versa. as per the logic this while loop should take care of switching between the
    tables.
    The other while loop Takes care of the entire test.
    My problem is that, while i execute the switching of tables are not fast.
    it waits till the tests are over,and event case structure is in idle state, and then switches to the other table.
    Also some times i am unable to click on button"DeTAIL DISPLAY", as the event control
    case structure, is not responding till end of the execution.
    How to over come this problem
    rags

    Hi,
    Have you tried using notifiers in master slave architecture?
    check this out
    Attachments:
    Notifier.vi ‏45 KB

  • Is there any way to prevent excess rows from being added to a table on the front panel?

    Whenever I programmatically add rows through a property node I can still go into the front panel and keep adding additional rows through the table. Is there any way to prevent this "excess scrolling"? Maybe grey out the rows or something? 
    At least I have chicken

    Hello Labviewleroy,
    You should be able to right click on the table on the front panel and select
    Visible Items>>Horizontal Scrollbar or Vertical Scrollbar
    You could also consider changing their visibility programmatically using a property node for the control or indicator that you are referencing. You can create the property node by right clicking on the control on the block diagram and selecting
    Create>>Property Node>>Visible Items>>Horizontal Scrollbar or Vertical Scrollbar
    Cheers,
    -Joel
    Motion PSE
    National Instruments

  • 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)?

  • Missing controls on the front panel

    Hello,
    I am improving a GUI and I am having some problem with the Front Panel, I 've seen to be missing some controls:
    see attachments, please.
    LabVIEW Intermediate I level!
    Solved!
    Go to Solution.
    Attachments:
    MissDistancefrontpanel.jpg ‏751 KB
    MissDistancefrontpanelnew.jpg ‏751 KB

    Hello,
    Excuse me they are actually indicators, however, they are already selected as shown, the problems is that if you take a look at the first pic, it shows all of them and in the second one not.
    There are no errors on the VI that is why I think it should be something simple that I am not seeing, I am attaching a pic of the terminal that is supposed to be the one for all of them
    LabVIEW Intermediate I level!
    Attachments:
    Spectrogram for MissDistance.JPG ‏73 KB

  • 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.

  • I've got the labview vi written to read my IMU data from a serial port in COM1 and it displays onto the table on the front panel. I'm having trouble getting this data onto an excel spreadshee​t. Any ideas?

    I've got the labview vi written to read my IMU data from a serial port in COM1 and it displays onto the table on the front panel. I'm having trouble getting this data onto an excel spreadsheet. Any ideas? Right now my data will collect one reading instead of continuously reading my IMU which displays data in a continuous stream.
    Thanks
    Attachments:
    Read_IMU_Drew.vi ‏21 KB

    Hi
    Your vi is in 2009 version, which i am unable to open in 8.6
    However, if you want your data to be saved in excel sheet, here is the VI
    Somil Gautam
    Think Weird
    Attachments:
    save to excel.vi ‏12 KB

  • 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 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...

  • 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?

  • 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

Maybe you are looking for

  • I am trying to open pdf in Pro and not Reader.  Please advise how I can fix this.

    I am trying to open pdf in Pro and not Reader.  Please advise how I can fix this.

  • Aus Word File ein PDF erstellen mit Links zu Excel-Arbeitsblatt

    Guten Morgen miteinander Ich habe ein Word-File erstellt mit Links zu Excel-Arbeitsblätter. Wenn ich jetzt das Word File in ein PDF (ich besitze Adobe Acrobat X Pro) umwandle, sind diese Links in die Excel-Arbeitsblätter ungültig. Lediglich die Links

  • Problem with SDK1.4 beta 2

    Hi all! I have installed the new SDK and try to run my SWT application. It was running with SDK1.4.1 without any problems. But now I get the following exception: An unexpected exception has been detected in native code outside the VM. Unexpected Sign

  • Lenovo U410 shuts down randomly

    Hello, Recently i've purchased a U410 Lenovo laptop. Work really great, no wireless issues, as a matter it has higher speeds than other laptops. Nice look and fast. Unfortunately i've discovered something wierd also on my first day with it. Randomly

  • Mouse navigation problem in webforms

    Hi, The focus does not change from one item to another item in which the mouse pointer is put, i.e, cannot click on any of the other text_items, the focus remains in the original item, and the mouse navigation does not work, in the forms 6i webforms.