combo box record strings at run time

Anyone know if there is an easy way to save new channels in a drop-down list at run time? I have a simple list of names of people who use my application - and I want to be able to add new names at run time - I realize account I can do that already "allow undefined strings" - but then I want to control to remember the name new next run the VI. I found the 'Ring and Combo Box.vi' example that will do the work, but that seems a little exaggerated to me - there at - it a simpler way or a better control should I use? Thank you very much.

You can change channels from the drop-down list by using nodes of property:

Tags: NI Software

Similar Questions

  • Default value of the string at run time control

    Hello world

    When I'm editing mode, I can click with the right button on a control of the chain and go under "Information Operations" and select "Make default value"... I need to do in run mode, but I can't find a property that gets the job done.

    Any suggestions?

    Thank you

    LoBa

    Hi love,

    My advice is to init the checkpoints of your application with the ini files. Do you have an API for the name VI configuration file. That way, you can change the default between every time the application runs.

    Explain here.

    Concerning

  • Add items to the combo box when running

    In my program, I want to add int '34' "43", "17"... and let the user choose one of them to the drop-down list box. How can I add items to the combo box when running. Create a property node 'String [] '? I try that, but its screen is "3443". I want to display as "34".

    43

    17

    See attached extract

  • Someone advise me on how to record and remember the actual information from a group of combo boxes?

    I have a set of combo boxes save a devices status information. I would like to record and remind all selections. I know there are properties to access the selected items, but the research on, I do not know the technique to do so. I want to save/recall in XML format. I made an attempt, and he saved the combo box data, but not the selections. Thanks for any help.


  • Selected pass contains a string indicator combo box when you press the Enter key

    Hello

    How to pass selected contains a string indicator combo box when you press the enter keyboard key?

    Right now I use a button to send the command selected in the combox to string indicator.

    The photos shows a combo box with the button that I use to send to the indicator as example.

    After the user selects the text to pass, "send the cmd" button must be pressed to pass the string.

    I need to pass the selected string when the user press enter on the keyboard rather than press the button 'send cmd '.

    Kindly to you needing help.

    Hello

    You can use a structure of the event to capture keystrokes and filter, transmit only the drop-down list box "value of the indicator of channel when you press the return or enter key."

    Let me know it the joint allows an example (in LV 8.6).

  • What is this dialog box? "Run-time error '380': invalid property value."

    I'm trying to load a registration program and I get a dialog box that indicates that following.

    "Run-time error '380': invalid property value."

    What it means. How can I solve this problem?

    Pescatore

    Hi arthur rossi.

    See the FAQ of the Roemer software that has exactly the problem mentioned.

    Refer to the Question I get an error message that says: one of the following values: "Runtime error 380 invalid property value", "Runtime Error 52" or "Invalid file name" in the following article. "

    Roemer Software FAQ (frequently asked Questions)

  • How to make a text field required at run time when the user clicks on the box?

    I had a form, there are several checkboxes fields and the text associated with the check boxes. If the use clicks on the checkbox then partner

    text fields should become mandatory. I tried the change event and the click event of the boxes. There is error in the onChnage event and I got some odd results in the click event on. Sometimes, if the user clicks the check box, then for the 1st time the field is not required, then the user onclicks the box and when the user clicks the check box for the second time the field becomes necessary, but if I turns off the option highlight the field and selects the field becomes necessary even if the user onchecks I am totally confused! To add that I have also written an incorrect code always I reached the goal? How it can be possible. I write the codes below, please help me because I am working under a deadline from the client.

    onChange event:

    var = this.boundItem (xfa.event.newText) newVal;
    if(newVal == 0)
    {
    xfa.resolveNode ("form1. Subform0.Subform1.Subform9.Subform10.Table48.Row4.Purchasecost3_1'). validate.nullTest = "disabled";
    }
    on the other
    {
    xfa.resolveNode ("form1. Subform0.Subform1.Subform9.Subform10.Table48.Row4.Purchasecost3_1'). validate.nullTest = 'error ';
    }*/

    For the onClick event:

    var a = xfa.resolveNode ("form1..") RawValue Subform0.Subform1.Subform9.Subform10.Table48.row2.CostItemRecovere d_OnlyEnergyCharges");
    App.Alert (a);
    if(a == 0)
    {
    xfa.resolveNode("form1.Subform0.Subform1.Subform9.Subform10.Table48.Row4.ComplianceCheck__L1_1").validate.nullTest = 'error ';
    }
    if(a == 1)
    {
    xfa.resolveNode("form1.Subform0.Subform1.Subform9.Subform10.Table48.Row4.ComplianceCheck__L1_1").validate.nullTest = "disabled";
    }

    Please help someone!

    Hello

    You may need this resolved at this point, but here are a few tips.

    An example of a loop in a dynamic array is here: Re: how to make invisible/visible or hidden columns with checkbox?

    You are usually not necessary to resolve the nodes, especially when the script object is in the same table as the target objects.

    For example if the table was not static your script could be simplified:

    if (this.rawValue == "1")  // this object is in Row2
    {
         Row4.ComplianceCheck_L1_1.mandatory= "error";
    ...
    }
    

    However because you will be to loop through all the rows in the table repeatable instances / then you need to resolve the nodes. Take a look at the example above.

    In your script, you have to Row8 Row4. I don't know if this is repeatable or just some of them. If we take Row4 as being repetitive, then you can apply the following to all repeatable lines.

    var vRow4 = Table48._Row4.count;
    console.println("Row4: " + vRow4); // You can delete this or comment it out after testing
    
    if (this.rawValue == "1")  // this object is in Row2
    {
         for (var i=0; i
    

    I have not tested, but it should be close to work.

    Good luck

    Niall

  • deploy the run-time engine

    Hello everyone,

    I'm trying to deploy my application of teststand to a target computer. My teststand application uses: TestStand 2014 (32 bit), LV 2014 SP1 (32-bit).

    Here's the problem I encounter while using the deployment tool.

    1. in the attempt to include RTE LV in my Installer, the deployment utility requires that I provided LV 2015 Installer. See the attached picture.

    I wonder why she asked median LV-2015-64 bit Installer. If I ignore the request, the build process failed.

    2. I use the shared variable to communicate with the compactRIO controller. The compactRIO controller is hosting EVS. My question is,

    a. I have to "deploy" my variable library shared, even though my system is not an EVS?

    b. I read in the manual that I can deploy the variable Fanny shared through the LV utility deployed the lilbrary step. So I added this step in the test sequence. Whenever I run the sequence, this step deploys the shared variables. On the target, I wonder if it is necessary to deploy the shared variable on each run of the test sequence. I think it should only be deployed only once on the system target. Am I wrong? If so, how to remove this utility LV deploy step of the library of the test on the target sequence, since there is no development testbed on the target system.

    3. I use a database to record test results after each execution of test sequences. I can export the schema of the table data and copy it to the target computer. My question is, how to import the schema of the database in the target table, since there is no system development teststand on it (no way to call configure it-> result-> database to import the schema of the treatment table)?

    I hope that teststand experts out there can give me some help tips to help me understand the whole deployment process. Thank you.

    Yours,

    lhuckj

    (1) make sure that LabVIEW 2015 Run time is NOT slected to install options-> drivers and components

    (2) I don't know

    3.

    Generally, I put my data link in a UDL file and include that in my distribution.  I set the Connection string to use a relative to this udl path and make sure that the UDL is copied to the same location on the targer

    I have also included in my repertoire of the Application of TestStand CFg:

    TestStandDatabaseSchemas.ini

    TestExec.ini

    Users.ini

    StationGlobals.ini (attention if you do not want to replace the existing one, I use it to store the addresses of the instrument)

  • Daylight Saving Format Date/Time String vs get time in seconds

    Hi all

    I have developed a real-time application using a cRIO 9074 which has two loops. The first gathers data and records the time using the module of ' string of Format Date/time ' with the following time sting: '%d/%m/%Y % H: %m ". The output is a sting with mouth/day/year hour: minute.

    The second loop Gets the cRIO time using the module "get Date/Time in Seconds ' and the output of timestamp is sent by a shared variable for an application that is running on a local computer.

    The problem started Sunday last with DST. With the help of MAX I am able to see that the time of cRIO is bad (1 hour less) and that him "automatically adjust clock for daylight saving time" is not checked and gray, so I am not able to change it.

    The time of the first loop by using the "Date and time Format string' returns the time elapsed between the cRIO (1 hour late), however the time of the second loop is OK. I have manually corrected time using MAX, so now the first loop is correct, and the second is now over an hour.

    Any ideas?

    Dear RavensFan, thank you very much for your answer.

    However, this was not the problem. Apparently the result with or without the element of DST is the same. I solved the problem, for now, by changing a parameter not on the function "get Date/Time in Seconds" but on the time stamp indicator.

    By right clicing the indicator and go to the display Format and the advanced editing mode, I have changed the Format string to a universal time container of this: %< %="" h:="" %m="">< t="" %="" ^="">< %="" h:="" %m=""><>

    Apparently the time from the 'get time in seconds' is still an hour longer, but now it is correctly displayed.

  • Channels not defined in Combo Box Bug?

    I found a problem with the drop-down list box control:

    1. create a drop-down list box and deselect 'allow Undefined Strings.

    2. run the VI

    3. Select a list box item

    4. press on the BACKSPACE key to remove a few letters of the item

    5. click on on the front panel

    The combo box is filled with a string not set!

    Disabling the BACKSPACE key is not a valid work-around because the user may need this while typing the value.  Expected behavior of the control would be to restore the previous value.  Any comments?

    Yes.

    Take a look at the bug report in this thread.

    http://forums.NI.com/NI/board/message?board.ID=170&thread.ID=379475

  • How can I update by program table combo box control type def?

    I use LV 8.6.1 and I am trying to create a table control panel object in which the user can select an item to list box for each element of the array.  I also have to periodically update the list of values.  Currently, I have configured the drop-down list box (selection of Automation sequence - see attached) as a type non-stricte def so I can write news channels to the list values when I need to.  But I can't seem to find a way to get the table (list of batches - see rasthaus) fill the new value drop-down list box.

    Automation box refelcts the new string sequence selection that I add programmatically, but the combo boxes in the batch list table control do not have the new channel.

    Anyone have any ideas?

    I have attached the screenshot of the drop-down list and table controls.

    Thank you

    Dan

    I considered that mention strings and values have a property that cannot be stored in a typedef, but when I tried it out, it seemed that it was.  So I just did not comment on that.  Maybe the strings and values may be among the typedef, maybe not.  The values of the controls certainly cannot.  Strings and values can be in kind of a gray area.  But you can certainly expect changes to a control to automatically update another control, because they are typedefs.  You cannot change the typedefs during execution.

    Let's put another example that has nothing to do with the values.  You have a regular typedef of a digital.  It is saved with the text in red in scientific notation.  You place two instances of this on your drawing.  You can programmatically change each other colors or other digital formats.  A change does not affect the other.  If it's a strict typedef, you would be locked in the way in which it was saved and could not change it programmatically.

    Take a look at this.  If you cannot programmatically, to update your channel list and values for a single combobox (a scalar string) you will be able to put up-to-date for when the combobox control is the data type for a table.  Simply get a reference to the element of the array.  It does not use typedefs anyway.

  • Can we load and unload the files in the run time?

    Can we load and unload the files in the run time?

    For example, there are four files named 'test1.h & test1.c' and another series 'test2.h & test2.c' (I have attached as an attachment to this post).

    test1.h contains the code:

    int variable; variable declared as integer

    test1.c contains the code:

    variable = 1; variable a value assigned

    test1.h contains the code:

    char * variable. variable declared as string

    test1.c contains the code:

    variable = "EXAMPLE"; a string that is assigned to variable

    So here, in this case can I dynamically load / unload first & second group files so that the same variable "variable" name can be used as an integer and string? And if so, how to do?

    Hi pa1majeti,

    You cannot simply consider that some code is loaded into memory or not: all code in a compiled application is permanently in memory unless you divide your application into DLLs that you dynamically load if necessary and remove if is no longer necessary.

    But as I understand from your description, you're better given the amount of memory occupied by the data (i.e. the contents of the variables) rather than the code. If this is the case, your only option is to allocate memory for variables dynamically and free it after it has been used. Now, even if this option is useful if you are using large networks of data, there is little or no effect on the unique variables.

    A final Council, given the huge memory installed on modern computers, are you sure you really need that extra work? I mean, the dynamic allocation of memory involves some additional precautions in programming: check the errors on each function malloc or calloc, check that the pointer is valid before each use, freeing pointers before reassignment in order to avoid memory leaks and so forth, so a balance must always be sought between the memory and the difficulty in programming.

  • Improved LabVIEW 8 to 2013 and VI asked now to find the installation package for Run-Time Engine 7.0

    I recently installed LabVIEW 2013 on a computer (running Windows XP 32-bit).  The machine has also of LabVIEW 8 is installed, which is what I used before the upgrade.  I opened a VI has been created in LV8 and then saved it and all its subVIs in LV2013.  Now when I open the VI in LV2013 and try to run it, a window opens asking me to find the installation package 'lvruntimeeng.msi' for LabVIEW Run-Time Engine 7.0.  If I cancel this dialog box, and the subsequent message, indicating that the installion files were not, the VI appears (at least of the initial inspection) to function normally.

    I have closed LabVIEW, downloaded Run-Time Engine 7.0 on the site of NOR and tried to install it, but I received a message saying that it is already installed (as I had suspected).  How can I determine what part of the VI and/or its subVIs tries to make use of Run-Time Engine 7.0?  If not, how can I get LabVIEW to use instead the Run-Time Engine 2013 that was installed when I upgraded to LabVIEW 2013?

    Bob_Schor wrote:

    You run your VI of a project?  If so, you can watch the dependencies and get an idea of what live "in charge", you might have.  There may be "something old" in your code in LabVIEW 8, which was replaced in 2013, but ' plane still around "-If you can identify it, you can probably replace it with its"more modern"equivalent

    If you do not have the VI in a project, you can simply open LabVIEW, create a blank project and add your first level VI.  If all of your relevant screws are in a single folder, add the entire folder.  Now look in the dependencies.

    BS

    Yes, I run the VI from within a project of LV.  After some more research in the knowledge base OR I could solve the problem by using the following procedure:

    1. use the measurement and Automation Explorer to uninstall Run-Time Engine 7.0

    2. restart the PC

    3. open the project, close the project by choosing "save all".

    4. restart the PC

    5 reinstall the Run-Time Engine 7.0 using a file downloaded from ni.com

    6. restart the PC

    7. open the project, close the project by choosing "save all".

    8. open the project and run the VI.  No more messages on LabVIEW, trying to find the Run-Time Engine 7.0.

  • Combo box multiple values

    Hello world

    I would like to use a drop-down list box to send two different values for two entries for every combo box selection. For example if I select "Channel 1" form the drop-down list box, then the integer "1" and the string "1 x", which I can then send to the two separate terminals.

    I really have no idea how to do that, my one thought was to combine into a single value for the value of drop-down list box and then to cut the string and use it that way - but this seems awkward.

    See you soon!

    Instead of a combobox control, I'd probably use a ring.

  • How can I add a page control tab at run time?

    Hello

    I'm trying to add pages in the control tab in run mode, but I can't because it must be in edit mode.

    Here are the steps that I have:

    1. run the application.

    a. the application reads a txt file and it translated into a table with the number of rooms; [201, 202, 203, 204]

    b. the application takes this array and puts in place of the pages after how it is in the table and names must be the same as the numbers. (Now the program will start to collect information to fill the pages.

    c. the user can now change between pages. (Each page will have a table that will be updated with new information at run time)

    Is this possible or have you another solution?

    Grateful for answers.

    No, you cannot add pages, just as it is not really supported to add commands or the lights either (well, unless you plan to have always installed LabVIEW and not only the execution engine. If this is the case you can self-generate tabs etc. with VI Scripting pages).

    You can use an image control to "simulate" additional tabs, the orders or the lights, but normally it is possible to find a different and easier solution.

    In your case, it seems that all the pages have the same controls on them, it would be just the content that would change. So what you really want is a way to navigate between the 'rooms' availability You could add a list next to the tab control box, fill the list box with the availability of the rooms and the value of the list box to select the content to display on the tab of single page beside him, or you can use a menu drop-down. If you do not like these alternative presentations of the room options then you can generate the tabs in an image control and have a tab control page below which showed the content of the tab selected in the image control. That's a lot of work.

    Another option would be to create Let's say 10 pages in edit mode and then have the arrows under the control that allowed the user to navigate through the available rooms in groups of 10 (still is not really necessary to individual indicators on each page you don't need to make them on page... something to get this must simply move the indicators and controls on the tab control with the) arrow keys Cela will give you a black frame behind them, but in run mode, it will look as if they are on each page). In this way, you could have the appearance tab and navigation without having to simulate the tabs with an image control. The fact that many other graphical interfaces have such navigation of two levels means that the user will still find intuitive to use.

Maybe you are looking for