Listbox as string indicator and control

Hi,
    Me and my group at school for a project are trying to find a sloution to the following problem:
what we want to do is be able to send strings to a display like a sting indicator but also be able to change the color of the strings on the fly and not change the entire display. Also we want the display to act like a control so that when one string is selected one can press a button to get more information on the selected string.
We have tried using sting controls but we can not select individual stings and can not change just one line's color (they all change)
A listbox would be perfect but we can not figure out how send strings to it to be displayed.
Or is there an other way to do this??
Any help would be greatly appriciated.
Thanks!

I know about the property node for Itemname, but will we be able to send a string to it so it can be displayed in realtime?
The project is a client server architecture in which the client sends commands via TCP/IP to a remot PC to diagnose the connected devices and send back to the client in the form of strings the status of the devices to be displayed. The status(s) can be selected and then another button is pressed to give further information on the selected device.
So, I guess what we are asking is whether the server can send to the client strings to the list box to be displayed for the currently connected devices such as: mouse, network card, video card, keyboard, and so on.... (the dll to do the devices dtection is working and integrated into labview.)
Thanks,
SUNY Binghamton University Senior Project group 33

Similar Messages

  • Arrays as both Indicator and Control

    Is there anyway I can use an array (either a constant array or an array control) as both an indicator and control. I need this to enter and replace numeric values in an array.

    > Pretty much yes, but I want to use the same array (control or
    > constant) as both an indicator and a control. This way I can replace
    > the array contents (which would be in a loop) and don't worry about my
    > initial array and my final array being two different arrays. Can I use
    > the local variable only for this?
    As the earlier post stated, try using the local variable to update a
    control from the diagram. You probably shouldn't place it inside the
    loop, but use a shift register. Thus, take the value from the terminal,
    into the left shift register. Inside the loop, take the left shift
    register value, modify, and write to the right shift register. Outside
    the loop again, wire from the right shift register to the local.
    If you do no
    t want to allow for user modification of the array control
    during this, you can disable and reenable the array using a property node.
    If you are not really doing this for UI, but to try and reuse memory,
    then this is really the wrong approach. LV wires are really the most
    efficient way of dealing with data, and you don't need to worry about
    putting things back into an array unless it is for the UI. If it is to
    pass out of a subVI, you will put them into a new array indicator in
    fact, and when called as a subVI, this can often take no additional
    memory, using the caller's array input throughout the diagram. If you
    start using the local, this is no longer true, and you now have both
    memory and runtime overhead. So use locals, and property nodes, only
    for UI tasks, and your VIs will be much more efficient. For everything
    else, use wires and shift registers.
    Greg McKaskle

  • Using a control as both an indicator and control

    Hello,
    I have been search and reading for a few hours now and have finally decided to post. I fear I am not using the correct terms because I am fairly new at LabView.
    I currently trying to build a user interface that uses 9 different tabs [I am using the same tab structure as in the labview example code]. There is a set of variables that will need to be on 3 of these tabs in similar form. These variables include:
    2 boolean controls
    1 boolean indicator
    1 string indicator
    12 numeric indicators
    I would like to have all of these values be the same on the separate tabs at the same time.
    For example if I press one of the boolean controls, that same boolean control should now be activated on the other tabs as well.
    If it would be possible, please do point me in the right direction of how to go about doing this. (Also the proper terminology)
    Many Thanks,
    Buffalo960 

    tbob wrote:
    I don't think you can have the same instance of controls and indicators on separate tabs.  Two options:
    1.  Create separate controls on each tab.  Put code such that if any control or indicator in the list is changed on any tab, the other similar ones get changed programatically.  You can do this with an event structure and local variables or property nodes.  Lots of programming.
    I don't think that it will be a lot of programming. For example: if he has 5 controls and want to keep all of them synchronized, with only one Case of the Event Structure he can do the job, setting the 5 controls to trigger that Case when "Value Change" and use the Event Node "NewVal" to write the same value for all controls (including the control that triggered the event, but with a code this size it will not be a big deal to write the information a again to the same control).
    Thanks
    Dan07
    Attachments:
    Multiple Controls.vi ‏39 KB

  • Indicator and Control in one

    I am trying to construct an numeric control which will specify the width of the image a camera has to obtain.
    However, when I read out the current settings, I want the current number to also appear in the same numeric control, so it needs to act like an Indicator.
    How can I do this in Labview?
    I've tried with a local variable, but that didn't work. (maybe I did it wrong?)
    I use matlab 7.1

    Arend,
    I couldn't find any local variable or Property value node in your main VI block diagram.
    Did you create a copy of your controls in a subVI and used a local variable in the subVI? If I'm right, it won't work. The controls in the main VI and in the subVI are not the same.
    You can "return" the value from the subVI and use a local variable in the main VI with this value or, if you need to update the values during the subVI execution, you can pass a  reference of this control to the subVI and use a property node in the subVI.
    Rasputin
    LV7.1 <> W2K
    Attachments:
    Main.vi ‏21 KB
    subVI.vi ‏11 KB

  • Interactively changing values to table problem: indicator and control table, and why it does not work after a while...?

    I have been producing a VI that loads a set of data and displays it in a table: A table control is initialised with an empty variable, the loaded data takes the place of the variable and fills the table, while some headers are added. That table feeds an intensity graph to give a pictorial impression of the data.
    With this scheme, a user can change any value of the table, and the changes are interactively reflected on the graph.
    Problem: after few saving of the VI, the access to the table doesn't work anymore. It is the same with all my numerical controls in the VI where it should be possible to enter a value.
    If anybody has an idea on the potential
    causes of these problem, I would be really grateful as it is very useful...when it works !
    Regards,
    Elie Allouis

    I can not image what is causing the error. Would you be willing to post some code to see if we can reproduce the problem?
    Jeremy7

  • Easy question - Array indicator and control compatibility

    I would like to multiply the contents of an array indicator by a factor (polimorphism allows the multiplication of an array by a number, right?) but the product requires that the array has to be a control.
    How can I fixed this problem?. Thank you very much for your help,
    javier

    I removed the Indicator from the build array - it wasn't necessary. Also, your final array is now 2D. See attached, I believe its what you're asking.
    Doug
    Attachments:
    testing_arrays[1].vi ‏33 KB

  • How can I export formatted text from a string indicator?

    Does someone know how I can export formatted text (i.e., parts of the text have different formatting, such as color, fontsize, etc.) from a string indicator? Using copy/paste does not work, as it only exports unformatted plain text.

    Hello Sparti,
        Thank you for your suggestions, they are all very useful, and I plan to use the HTML feature under Report Generation to export the formatted text from Labview. However, I am still not sure how I can extract the formatted text from a *string indicator* and transfer it to one of those VIs, so that it can be exported to other applications. Let me give some more specific info on what I am trying to achieve:  I am monitoring the communication between two pieces of equipment. A string indicator shows all the data flow, with different colors for data coming from different instruments. I managed to do that by using a property node and playing with the selection and font color properties. Now, if you just wire the output of the string indicator, the formatting is gone and all you get is just plain black text (for instance, try to programmatically transfer the formatted text from one string indicator to a different string indicator and you will see that the formatting is not preserved). Even if you try the "brute force" method of manually selecting and copying the text in the indicator and pasting it to Word, LV does not export the formatting. But, if you paste *within*  LV (for example, paste it to a string constant in your diagram), then it works. To extract the formatted string from the indicator, I also tried to use a property node, but without success. I am trying to avoid duplicating part of my code to generate the same color-coding scheme on a report. It would be way easier to be able to transfer the formatted text from the string indicator. This is particularly annoying, because the information is there, stored in the data structure associated with the string indicator. But how can I put my hands on it? Any ideas?

  • Programmat​ically autosize a string indicator

    Here is a real challenge I would say: Programmatically size a string indicator and/or the window size, such that it mimics the behaviour of the 'message' indicator of the One Button Dialog box.

    This isn't difficult. You just have to find the right VIs to do it 
    Use the "Get Text Rect.vi" in picture.llb (in LV7.1). Depending on the
    font and other parameters it'll return the size of the text in pixels.
    Use this output to set the string indicator size (maybe adding a
    constant) and the windows size (adding a constant).

  • Record string indicator to mysql database

    Hi experts, i have 3 string indicator and i want to record the data to mysql database. i already have a table with 3 column. how can i do that?
    Thank you
    Attachments:
    test.vi ‏18 KB

    attached is my vi. since i'm really new to programming and labview, can please somebody advise me about my vi. I will use this vi to record minutes of meeting to a mysql database. the dalog_resp.vi is used to fill the responsible string.
    I need to display all mysql data into a table and i need to short the data based on project, meeting date, status and responsbile (i'm thinking to use combo box). e.q if i  choose "SAM" from responsible combo box, i want the table only show the data contain SAM value. And i have another problem...when i put the boolean button into a cluster, it won't call the dialog_resp.vi
    Please advice me...
    Thank you
    Regards
    Ijan
    Attachments:
    db.vi ‏534 KB
    Dialog resp.vi ‏11 KB

  • I would like to do a program that have one string control and one string indicator, any character that I type in the string control in the same time it will be appear in another string (indicator). How can help me?

    I would like to do a program that have one string control and one string indicator, any character that I type in the string control in the same time it will be appear in another string (indicator). How can help me?

    Why not use an event
    Add a While Loop, inside the loop add the Event Sructure.
    Now in the event structure selecd the String Controls.value change event to
    react
    and the new value inside the event that you get,( connect to the String
    indicator box.
    On Sun, 10 Aug 2003 15:58:47 -0500 (CDT), WiltonFilho wrote:
    > I would like to do a program that have one string control and one
    > string indicator, any character that I type in the string control in
    > the same time it will be appear in another string (indicator). How can
    > help me?
    >
    > I would like to do a program that have one string control and one
    > string indicator, any character that I type in the string control in
    > the same time it will be appear in another string (indicator). How can
    > help me?
    >
    Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/

  • I want to take a series of hex characters in a string control and produce an HDLC string indicator for example if the data string control is 3F27 then the HDLC string indicator is 7E003F2700B57E

    I want to take a series of hex characters in a string control and produce an HDLC string indicator for example if the data string control is 3F27 then the HDLC string indicator is 7E003F2700B57E

    "thanks for your help "
    Does that mean you figured it out already?
    If not, see this thread for some HDLC related code.
    http://forums.ni.com/ni/board/message?board.id=170&message.id=146859&query.id=3388#M146859
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • Positioning string indicator scrollbar using a control reference?

    How can I control the position of the scrollbar of a string indicator from within a subVI?

    Pass a ref of the indicator to the sub-VI and then use property node where you have selected;
    Text.ScrollPosition
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • How to control string indicator?

    我想将一个1D string array 或2D string Array的元素按顺序逐个读出并按行显示在面板的string indicator里面,
    新的显示不要覆盖旧的,最后可以在string indicator里面看到array 的所有元素..请指教..

    Please see attached as reference...
    For posting in Chinese Language, please go to NI LabVIEW,CVI,数据采集等产品讨论区
    NI 的中文论坛... NI LabVIEW,CVI,数据采集等产品讨论区
    Ian F
    Since LabVIEW 5.1... 7.1.1... 2009, 2010
    依恩与LabVIEW
    LVVILIB.blogspot.com
    Attachments:
    1D or 2D to String.vi ‏39 KB

  • Change the colour of lines in the same string indicator.

    Hi everybody,
    I'm getting crazy, because I'm looking for the way to change the colour of
    the lines I want in the same string indicator.
    I'm doing an application to control an instrument by serial port, and I'm
    concatenating the lines that this instrument gives me, but there is some
    line that I would want to change its colour, because there has been an alarm,
    for instance. And I only can change all the string.
    Is there any way to do this? I don't know.
    Could you please help me?

    Thank You Very Much.
    The fourth step is a little bit difficult to understand, but what I've done
    is all the three first steps, and in the fourth one I've made an array (I32)
    of the lines that I don't want to highlight and connect it to Disabled �tems.
    Do you think this is a good solution?
    Thank you again for your help. I really needed someone to help me, because
    if not I would still be with the STRING INDICATOR.
    Timothy John Streeter wrote:
    >Hi Carlos>>I'm sorry for being too brief with the last email.>>1) Place
    an 'Multiple Selection Listbox' on your front panel.>>2) Create an attribute
    node. Make the attribute 'Item Names'.>>3) Put every completed line into
    the last element of an array, and then pass the array
    >to the attibute node. (This build the list>of strings in the Listbox).>>4)
    To highlight a line, make an array containing the line numbers (I32) that
    you want
    >highlighted and pass it the terminal of the>Listbox.>>Hope this is more
    helpful>>Tim>>Carlos Jorge wrote>> Thank you for your help, but I don't
    understand what you have told me. What>> I have to pass to the indicator
    node, and what is this indicator node? My>> problem now is the last thing
    I have to do.>>>> Could you please explain my doubt with more detail?>>>>
    Thank you a lot.>> Timothy John Streeter wrote>
    >Hi Carlos>>Try using a 'Multiple Selection List Box' indicator instead of>>
    a string indicator. You>> >can highlight a line by adding the line>number
    to an array and pass it to>> the indicator node.>>Tim>>Carlos Jorge Granadino
    wrote>> Hi everybody,>>>>>> I'm getting crazy, because I'm looking for
    the way to change the colour of>>>> the lines I want in the same string indicator.>>
    I'm doing an application>> to control an instrument by serial port, and I'm>>
    concatenating the lines>> that this instrument gives me, but there is some>>
    line that I would want>> to change its colour, because there has been an
    alarm,>> for instance. And>> I only can change all the string.>> Is there
    any way to do this? I don't>> know.>>>> Could you please help me?>>

  • Force a string indicator to scroll to the bottom

    In LV Web UI Builder is there a way to force or programmatically scroll a string indicator to the bottom? 
    I am building a virtual hyperterminal and I am writting a very large amount of data into a string control.  I have the vertical scroll bars turned on, but by default it just shows the information at the top.  I want to include all of the data so that the user can scroll back to see the history, but it would be nice if by default the scroll bar would stay at the bottom.

    I just wanted to confirm there is no way currently to force a string indicator to scroll to the bottom. I will note this down as a product suggestion for the Web UI Builder team.
    Vivek Nath
    National Instruments
    Applications Engineer
    Machine Vision

Maybe you are looking for