How to fill a list box to a LabView VI TestStand?

Recently started watching TestStand GUI and I work with one of the examples provided with TestStand.

An important aspect of my test program, it is that I want the user to be able to dynamically choose which hardware plugged he/she wants to test on.

so I thought that I have would display the COM ports connected in a ListBox control on the graphical interface, to let the user decide which com ports to use.

This is a feature that you would 'normally' use the TestStand GUI for?

How could fill a ListBox TestStand to a LabView VI? Say a simple that uses 'finding the names of resources VISA '.

You cannot use a ListBox TestStand for this.  All user TestStand UI controls are based on a COM (ActiveX) object.  This means that they connect to the manager controls and then behave based on the events of the controls of Manager.

You'll want to ouse a LabVIEW control (ListBox control in your case).  Then use the user interface Messages to retrieve information.

http://www.NI.com/Tutorial/4532/en/

http://zone.NI.com/reference/en-XX/help/370052N-01/tsexamples/infotopics/handleuimessage_labview/

Or your other option is to have your movie file just pop up a LabVIEW VI with the list of the HW inside.  Then the user selects.  This is the easiest route, but it would take an annoying popup if you don't like that.

Let me know if you have any questions on this subject.

Kind regards

Tags: NI Software

Similar Questions

  • Fill a list box with a long list

    iMac G5; OS 10.5.8; Acrobat 9.4.1

    I am creating a list box with 47 elements provided by the customer. It seems that I can't copy and paste in the list box to a line at a time. Is there a way to fill the list box with all 47 items at once?

    Thank you.

    You have used a list box instead of a drop-down list box.

  • How to fill a text box after selecting a drop down list?

    I have created a form that has a drop-down list with different types of products. After a person chooses a product in the menu I would fill the text box with a description of the product.  I'm a newbie here, but I thought that was far from using JavaScript to do this. But wasn't sure exactly where to put the code and do I have to put it on the text box or drop-down list. Any help would be appreciated Ive been looking everywhere for a week and can find an answer.

    If (xfa.event.newText == "")
    {TextField1.rawValue =""}

    "On your drop-down list by using Java Script on the * change event.

    If you have three items in your list:

    A

    B

    C

    If (xfa.event.newText == "A")
    {TextField1.rawValue = "You chose the letter A"}

    If (xfa.event.newText == "B")
    {TextField1.rawValue = "You chose the letter B"}

    If (xfa.event.newText == "C")
    {TextField1.rawValue = 'You chose the letter C'}

  • How to hide a list box.

    Hello.

    Is it possible to hide a list box?

    For example I want five list boxes that overlap and the command buttons five, an associate of each list box. When you press a button in the associated list box should then be made visible.

    I couldn't find a SetCtrlAttribute (panelHandle, PANEL_LISTBOX1, ATTR_HIDE_ACTIVE_ITEM, 0) type command to hide a list box.

    How can this be accomplished?

    Thank you.

    That's all. Silly me, I was looking for Hide, hidden, not Visible.

    Thank you.

  • How to associate a list box selection in action?

    The first question I have, is what triggers to use in a drop-down list box?

    I also need to access the export value to determine the appropriate action.

    All my actions are implemented with JavaScript on AcroForms.

    TIA,

    -Ramon

    Hi Raymond,

    Have you seen this tutorial on the programming of the fields in the list at acrobatusers.com?

    http://www.acrobatusers.com/tutorials/2007/js_list_combo_livecycle

    Hope this helps,

    Dimitri

    www.pdfscripting.com

  • Fill in a text box based on the list box selection?

    I'm relatively new to using scripts in forms.  So I hope that someone can help me here.

    I have a list box called 'Name', which uses the user selects a name.  I have a text box called "DOB", I need to be filled in automatically with the date of birth of the corresponding name that has been selected.

    I tried to adapt some scripts to fit my needs here, but nothing helps.  Although it seems like it should be pretty easy.  Any ideas?  Thanks in advance for the answers.

    ' 1. fill the list box with the name of "and place the date of birth in the option 'value exprot '.

    2. for action 'on blurr"add the following script:

    this.getField('DOB').value = event.value;

    When you tab or the mouse out of the list box, the value displayed in the field "DOB".

  • Update of list box strings [] programmatically in a table

    Hello

    I have an application that has several sites on the front where the user can select variables shared by using a shared variable control. I would like to replace these controls, which are heavy for the operator to select from variables published, to drop-down list boxes that list only the names of variables in a current published library. I have no problem cela providing you a shared list of variables and update the strings [] property in a drop-down list box. Then I can easily convert data types to use as shared variables elsewhere in my program.

    However, I have a few questions. First, in some cases, the shared variable controls are inside a table, and I do not know how to fill the combo box selections in the table. Perhaps there is an easy way that I'm missing...?

    Second, there are a lot of controls of shared variable that I will need to update the areas drop-down list, and in each case, I have to fill out of th drop-down list boxes programmatically. Is there an easier way to do it with the custom controls or type defs or something, so that I can just bring a control on the front panel that will always fill up with variables shared in my library?

    Thanks in advance for the help.

    Michael Hampson

    XL Automation, Inc.

    I rarely disagree with Ben, but a driving force seems to be overkill for a job you want to do it once when the application starts.  Simply create a first reference your comboboxes (shouldn't be too much work unless you have a large number of them), then loop through the array, as shown:

  • Deleting items in the populated list box

    I have a drop down list fill a list box. (change: ListBox1.addItem (xfa.event.newText)) But I can add more then one of the same selection, so how to do that I remove them to the ListBox control. On click? somehow? I don't know the jargon.

    There's a selectedIndex property, which will again give the index of the element 1 is selected.

    Paul

  • List boxes drop-down link

    Hi all



    I am writing a flex application that supports something like the following XML

    < VersionList >
    < version >
    < name of output = "7.11.0" >
    < component name = "S05" / >
    < component name = "S11" / >
    < component name = "S12" / >
    < component name = "S14" / >
    < / Statement >
    < / version >
    < version >
    < name of output = "7.12.0" >
    < component name = "S12" / >
    < component name = "S19" / >
    < component name = "S28" / >
    < / Statement >
    < / version >
    < / VersionList >


    I have 2 drop-down list boxes - 1 that contains the version provided the names and another that contains the names of snap!

    What I want to do is to fill the list box dropdown version and according to what is selected, fill out the snap combo box
    Ex: If the user has selected 7.12.0 - the snap would display s12, s19, s28.

    I have my mxml file that is set up to take in the xml file and load the version numbers in a table to fill the area of version! Does anyone know how I could fill combobox snap according to what is selected in the box version?

    Thanks a mil in advance, any help would be greatly appreciated!
    See you soon,.
    Derm

    Hi all

    In fact, I got it working using xmlLists and xmlListCollections. In case anyone wonders how do...

    I used the following pairs of xmlLists and xmlListCollections

    Create a list XML object to hold all the values of version
    versionList = myXML.Version.Release.attributes ();

    versionListCol = new XMLListCollection (versionList);

    Create a list XML object to hold all the values of component snap
    snapList = myXML.Version.Release [-1]. Snap.Attributes ();

    snapListCol = new XMLListCollection (snapList);

    And the following Refresh function

    private void refreshSnaps(): void {}

    Use the filtering on the version name to create the xmlList object
    snapList = myXML.Version.Release. (@name is versionBox.selectedLabel). Snap.Attributes ();

    snapListCol = new XMLListCollection (snapList);
    } //end refreshSnaps function

    and then my combo boxes resembled


  • How to fill a poplist through a group of archives?

    Dear people,
    Use forms as well as 10 g. I create a record group RG9 with query SELECT DNAME FROM DEPT; now how to fill a list item? I tried using a the following code in the When_new_form_instance trigger. The code is as follows,
    declare
    a number;
    begin
         a:=populate_group('RG9');
                   add_list_element('block3.list6',1,a,a);
    end;
    It doesn't throw me any error.but unable to fill in the data in the list. pls do help me to make corrections in the code above.

    Regarding
    VIDS

    vidusnat wrote:
    SELECT DNAME DEPT;

    This query will not do.

    Your request should be like:

    select dname, to_char(dept_no) dept_no from dept;
    

    Where dept_no is the valid column in the dept table or use the name of the column on the right.

  • How can I make multiple selections in a list box fill a different text box?

    I have about 100 items in a list box.  However I should never select up to 10 items at a time.  So, since it would fill pages that the entire issue of items to see which are selected at a glance, I'd like o keep the small list box, and I select the elements they have appear in a different text box...

    I have Acrobat Standard XI, is this possible and if so, how?

    Thank you

    You can use this code as the custom text field calculation script, but it will update as soon as you leave the list box:

    var v = this.getField("List Box1").value;
    if (typeof v=="string") event.value = v;
    else event.value = v.join(", ");
    
  • How to use the drop-down list box to fill in a text box

    I'm a beginner when it comes to Java Script.  I have seen a lot of different discussions, look at a lot of articles "helping" Acrobat 9 and Java Script, but only to be left confused and dazed.  I hope someone can tell me how to write a script that fills a text box that sits on my form with the value of exports of the selection in the combo box...

    Thank you

    If you want that the read-only text box, simply set with the following custom calculate script:

    Set this field to the value of the drop-down list box

    Event.Value = getField("combo1").value;

    but replace "combo1' with the actual name of the combo box field.

    If you want something else, post again with more information.

  • How to fill out the database in the drop-down list box

    Hi all, I want to display all the data in database (c_type) column in the drop-down list box, how can I do?

    I use form 6i.

    Sorry if the question is already exist in the forum...

    Kind regards

    Maybe this helps http://andreas.weiden.orcl.over-blog.de/article-28957008.html

  • How to animate a drop-down list box?

    I have a combo box that get is filled from a web service. This can happen in the background, the user made other tasks.

    I would like the drop-down list box jiggle or bounce up and down when it gets its data. Can anyone offer ideas on how to do this?

    Thanks for the suggestions everyone. I found the rotation effect to work just great. Here is the code I used for anyone else who is interested:

    In my web service call that updates the drop-down list box, I declare the function jiggle on the result:

    public void jiggleComboBox(): void
    {
    cbxProjects.visible = true;
    jiggleStart.play ();
    }
    ]]>



    I love watching this combo box jiggle up and down. Laughing out loud

    Thanks again to all!

  • How to read the value of list boxes by iteration in a loop For?

    I have a lot of list boxes on the front of my VI. I want to know how to read the value of this combo with a loop boxes For. The point is that I don't know how to get the reference of each combo box in a loop.

    Any information would be welcome. Thank you!

    su27 wrote:

    I have a lot of combo boxes on the front of my VI [...]

    Be sure to close the references that you have finished with them.

Maybe you are looking for

  • Thunderbird can be installed on a computer in Chrome

    You want to install Thunderbird on my Chrome HP computer. Could not find a way to do it.

  • Touchpad & buttons replacement on Satellite L300-13R

    I have the laptop mentioned above and the touchpad buttons have lost their sping on the left button. The laptop is 1 month warranty.Can someone tell me who or where I can get a replacement? Thank you.

  • Charger MacBook caught fire

    He is currently 04:34 here in England, I was just awake through my fire alarm going off. The cause? My MacBook charger has somehow caught fire and burned the Office on what it is. Fortunately enough, I was able to turn off before that something serio

  • Satellite P100-347: blue screen at startup - unable to boot volume

    Recently, I left my 2 younger brothers playing NFS Carbon on my satellite P100-347, pre-installed with media center edition 2005, and now it fails to start. During the process of possibly starting a blue screen appears for about a second and then it

  • Software for AIO on Mac OSX Mavericks 7210

    Hello The software for the new HP Officejet Pro 8600 would be able to manage my old HP Officejet 7210 AIO? When I upgreaded to the MAvericks (of Lion), I can still print but scanning now cannot be done through Capture of IMage and is not as rich in f