Blocking ring control

Hi all

I have a (large complex) CVI linux program that sometimes blocking opening of the selectors of large ring (large being defined by a hundred points, more than the vertical screen can handle but not wildly so). Quite often, it crashes at this stage and should be killed.

Read about this question, I have seen that it can occur if InstallPopup is called in the same thread. Is it still the case that the message is from 2006? There are many conditions in my prog when InstallPopup (or 2 instances of RunUserInterface) are called by timers or external conditions, but I don't think that's the case here.

The following test case, I wrote, but I do not exhibit the problem. Something else I can check? No way of knowing if a ring is currently developed before calling InstallPopup? And NO, I don't want multithreaded my program, it is already quite nightmarish!

#include 
#include 
#include 

static int Led=0;

int CVICALLBACK cb_Ring(int panel, int control, int event,
        void *callbackData, int eventData1, int eventData2) {
    int Val;
    switch (event) {
        case EVENT_COMMIT:
            GetCtrlVal(panel, control, &Val);
            if (Val==0) // Select 0 to quit
                QuitUserInterface (0);
            break;
    }
    return 0;
}

int CVICALLBACK cbt_Timer(int panel, int control, int event,
        void *callbackData, int eventData1, int eventData2) {
    static int Val=0;
    switch (event) {
        case EVENT_TIMER_TICK:
            SetCtrlVal(panel, Led, Val++&1);
            if (Val%10==0) ConfirmPopup ("Crash?", "Do you think this will lock up?");
            break;
    }
    return 0;
}

static void InsertLabels(int Panel, int Ctrl, int Nb) {
    char Label[10];
    for (int i=0; i 
         
        

Tags: NI Software

Similar Questions

  • How to use values that are repeated in a text ring control? There is another similar command?

    Hello guys,.

    I'm working on an application which, stat-up, read a few basic values of configuration in a file and passes control ring text, such as an ini file.

    The ring text control is ideal for use in the blocks diagram because I can choose a specific text and I the associated value, in a very clear way, but... I can't use duplicate values, and my application has more than two double values.

    There's another way or control that replaces the ring control and maintains these good qualities?

    Thank you very much


  • selection of the ring-control do not work. Cannot select any other item as the first item.

    Dear programmers cvi,

    I have some problems with a control ring in a panel of the CVI. the ring comprises several elements. No matter what I choose, the result will always be the first item. I can't select something else than the first (Recent not necessarily the default item).

    When I redraws the Panel, it works for the next few days. but somday in built version (production-application) the selection of ring control no longer works. When I start the uir-file in the labwindows cvi gui editor, I can understand the problem. Even in mode 'exploit' I can't select other elements than the first.

    When I convert the ring article in another ring (F11 key), and then convert back into the original it works again (1-2 days).

    When the problem appears, the contents of the file is always the same!

    I also redraw the Panel in different versions of labwindows cvi (2010/2012/2013), still the same problem.

    another ring-control on different panels (many more controls) never come whith this effect.

    all the guys there whith the same problem?

    corrupted file IUR is in the annex.

    Thank you!

    Kind regards

    Lukas roeder

    Hi Lukas.

    If you think the UI to be corrupted file, you can

    -Save in a version different (e.g. 2013 instead of 2010) and see if that makes a difference

    -Save it as a text TUI file and re - import (Options / Save in Text Format)

  • Ring control in alphabetical order

    Hello

    I have an unsigned note Ring control. Values to the ring comes out of an another VI. The number of items varies all the time.
    How is it possible to order items programmatically in the ringbox in alphabetical order?

    You can extract the single string and order alphabeically according to table sorting 1 d. But how to wire a return to control of the ring to order it alphabetically? Is it possible to bind values to strings?

    Thank you

    I think that will do the job. Sorted!

  • Photo ring control

    Hello

    I've never used photo ring control or indicator?

    I gave a review work, signs of specification is obtained from the database and is stored in a global.

    using an appropriate index number is given to the photo ringtone indicator and corresponding image is obtained.

    How does any explanation?

    How to add images to photo ringtone indicator?

    Thank you

    cancancanopen wrote:

    How does any explanation?

    I don't understand what you're asking here. Can you please clarify?

    How to add images to photo ringtone indicator?

    You copy an image to the Clipboard, and then you do a right click on the indicator of the photo and select "import picture from the Clipboard. It's the help.

  • Ring controls to create the visible circle

    I try to use the ring on the front panel control to specify a circle with a radius of particuly pixel, and I'd like to be able to drag the circle around different x / Y positions.  I was able to do, but the problem is, I don't see where the annular space is located on my image (the controls of the annular space do not give the corresponding circle anywhere) - there is no visual, just output text feedback in control boxes.  Otherwise, I was able to create a circle on top of my image which acts as a region of interest using the KING property on the property node.  The problem here is that I can not specify the RADIUS in pixels of the circle I draw my image above.

    So basically I want to display a circle on top of my picture showing the return on investment and I want to be able to control the radius around an area of controls.

    Jessica

    Hello, Jessica,.

    You can use the ring to convert IMAQ VI KING and the Overlay IMAQ KING VI to do this. The IMAQ convert Annulus VI takes a command input through which you can specify the RADIUS, X, Y and angles of the annulus. After that, the Overlay IMAQ KING VI will let you see the annular space displayed in the control to display the images. I hope this helps.

  • block diagram control label display

    I hope this has an easy solution.

    I got code that has different formats for the control labels as they are posted on the block diagram.

    Some have rectangles around the label, others do not.

    I'm sure there's a simple (albeit tedious) way to make them all the same.

    I realize that this is only cosmetic, but I prefer to code to be consistent.

    I really don't like that as they are (although the new controls have rectangles, rectangles is probably better).

    Does anyone know how to set this property?

    Also, why would a view chosen on the other.  I guess it's just personal preference.

    Thank you

    I was in the same situation.  I prefer the no border around the labels.  I think the 8.5 they've added another property in the menu options, so you can choose whether you want the border.  The property is 'Use transparent name tags' on the block diagram tab.  To change existing labels, you can use the brush with T selected for color (if you don't want any border look).

  • Ring control output is the name of the item and not the value

    Hello. I'm new to Labview. I'm experimenting with labview and create just simple VI to learn more about the software. I placed a control of the ring and attached an indicator to this control of the ring. I found that the object of a control ring to select an element and an output value. For example, I placed 3 items in the properties of the ring (red, blue, yellow) and given the value of these items 1,2,3. But when I run the VI and select blue, I was expecting the indicator attached to the control to read 2, but on the contrary, he says 'Blue' (even for other items). What I'm misunderstanding here or to hurt? I've also attached a screenshot.

    Your meter is another ring that has the same pair name / value, so it's going to see the name associated with the value.  Remove the ring indicator and just drag in an ordinary digital indicator.  Then, it will show you the value.

  • Internet Explorer blocks ActiveX control that allows me to upload my photos to Hotmail messages to family.

    For months, Hotmail did not have the ActiveX control which allows users to compress and upload photos to include with the e-mail.  So I went to post pictures on Picasa.  When the ActiveX control has been restored recently, I went to use Hotmail for my photos - much more practical than Picasa.  Now, suddenly, I got the following message in Internet Explorer when I try to download my photos: "Internet Explorer has blocked this site by making a dangerous ActiveX control.  As a result this page may not display correctly. "This I return to use Picasa to send my own photos to my own list of contacts?  Even though I was ready to change my security settings to the lowest possible level (which I don't do), I can't figure out which "categories" of the web site to my Hotmail account belongs to that!  Will you please help me find a way to bypass this blocking, so I can resume sending my photos in Hotmail.  Is there really that much danger to my PC if I do this?

    Hotmail forums:

    http://www.windowslivehelp.com/forums.aspx?ProductID=1

    They will help you when repost you your question in the Forums above for Hotmail.

    See you soon.

    Mick Murphy - Microsoft partner

  • Access Manager in blocks of control too well how can I disable?

    blocks of too many sites just started this making how to change settings

    Hello

    1. have you you can all changes on the computer before this problem?

    2. what version of internet explore that you use?

    Here are the steps to turn off access Manager:

    1. open internet explore.

    2. click on tools > Internet Options.

    3. click on the content tab.

    4. click the button disable under Content Advisor.

    5. Enter the password for the Access Manager.

    For more information on changing the settings, see the articles below.

    Internet Explorer Content Advisor: Frequently asked questions

    http://Windows.Microsoft.com/en-us/Windows-Vista/Internet-Explorer-Content-Advisor-frequently-asked-questions

    Change Internet Explorer content settings

    http://Windows.Microsoft.com/en-us/Windows-Vista/change-Internet-Explorer-content-settings

    Change content settings Internet Explorer 9

    http://Windows.Microsoft.com/en-us/Windows-Vista/change-Internet-Explorer-9-content-settings

  • Dynamically change the elements in a control menu ring array

    I have a table menu ring controls (32 rows, 5 columns).  When a menu choice is made in the first column of a given line, the content of the menu for the following columns (same line) ring may vary.  If this is possible, how would you do it?  Thank you.

    jschichl wrote:

    For example, if I had a ring of 1,2,3,4 menu.  I want to write a logic that says that when the 4 is selected, then ring menu in the following line replaces 5,6,7,8.

    A ring is just a number as far as LabVIEW is concerned, so the cluster underlying need only store numbers, not rings.

    In the example I posted in a thread bound, where the controls are moved on a table, you need to control a ring. Whenever you show the ring, you can assign a new set of strings and values, using the property of strings and values. You can decide what the value of the channels show based on the existing data in the cluster, which will be updated each time you change the value in a cell in the table. Who is? I don't have the time now to set up a more detailed example than what I already downloaded in other threads, and it is only a small change to it.

    Ring menu updated at the time wherever the user wants to select a value from it, not at the time the user changes the value that determines which set of menu items to display.

  • Can I upload pictures to a picture ring running control?

    Hi all

    is there a way to achieve the above behaviors? Change the graphic of an image ring control or indicator elements running?

    Best regards

    Matthias

    You can do it with the indicator of the photo.  I wrote a program of slideshow in LV and it works fine.  If you start to see delays, it is probably because of file read time rather than the display.  Read one or two files before disk when you want to display.  Update the display of the memory should be quick.

    Lynn

  • Import data from text file of control of the ring.

    Is it possible to import data to a text ring with labview control.

    I have several definitions of register in the ring controls, but manual entry would take a lot of time.

    Was wondering if there was more automatic way, I could read the values from a file.

    Thank you

    Jim

    Using the first method gives you the ability to extend such that each column specifies a control of the ring if you need fill the multiple rings.

    This example assumes that all of the three rings contain the same number of elements. If this isn't the case, you will need to create a Subvi, which removes the empty elements. [Edit - create a text file that contains a column for each ring, separated by a tab character.]

  • Control ring during the cell table, but cell entry shows through

    Hello world!

    I have a control panel with a control of the ring which is placed above the active cell on MouseUp.

    Unfortunately the input query (or the old value) of the cell is shown through the ring-control,.

    that's not pretty.

    screenshot:

    I tried different ring-controls, but they all have the same behavior.

    Try to find answers, but the guides to build the configuration of the table-ring that I found it.

    does not mention a solution.

    I hope that some of you have seen the same problem

    and could point me in the right direction.

    : cheers: thx for your time and

    jwscs

    PS. : If the sample code is required I'll gladly provide

    OK, shortly after the display of my question, I had another idea

    I disabled the front table and that did not work, because the rows and columns of the selected cell

    cannot be determined,

    But turning off right after the selection and then later reactivation, resolved at present.

    I would be happy to know that any other method that you guys came.

    : cheers:

  • How can I get the Char String ring from the GUI Control Label

    Recalling the ring control text label of a ring of GUI control, not the control Label, but the label of the indexed by pairs value.

    GetLabelFromIndex is located in the index help online, and you can also find it in the Search tab. I don't know if that's what you hear.
    If what you mean is to ask how you would be able to find it if you have not already know his name, then I agree that just by typing keywords in the "search" tab is probably not the best idea. What could have done is to go to the section of the table of contents that lists all of the functions to be used with the list control, and then, look at what is there until I found what I needed. You don't even need to use the online help. You can use the library feature tree (UI library > graphics/controls/bands charts > list/tree controls (value/label)). Or better yet, just start with a function with that you know works
    trees and then look at the features around it.

    Luis
    NEITHER

Maybe you are looking for