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

Similar Messages

  • How to control string by program in multicolumn listbox (color, justify, style, size).

    It necessary because the dimension of the multicolumn listbox change when the program running and all cells must have the same apearance
    Thank you very much beforehand for your answer.
    Warmly,
    Alain Carbonnel

    I don't think it is currently possible to do this programmatically. You loose the ability to control the text properties of a string programmatically when you put it in any kind of array.

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

  • How can I hide a text label as I would a control or indicator?

    As I have multiple indicators that must have the same identifier to the operator I can not use the indicator label as the items identifier. At times I want to hide the indicator and label. How can I hide the label? Please recall a text label just sits on the front panel as desired. It isn't within a raised or lowered box. In the attached sample I would like to hide "MyLabel" when the date indicator is hidden.
    Attachments:
    Test_Label.vi ‏35 KB

    Here�s a way. Its a little involved, but it will work:
    1. Customize a control or indicator to remove the border (I used a string control)
    a. Right click on the control or indicator, go to �Advanced � Customize�
    b. Click on the wrench on the tool bar to enter edit mode
    c. Select the border and drag it off to the side
    d. Reduce the size of the border to a single pixel (it won�t let you delete it)
    e. Rubber band a box around the 1 pixel border to select it and use the cursor keys to move it within the �white space� of the string control. It will effectively disappear. You will NOT be able to move it with the mouse as LV will try to resize the border instead of moving it.
    f. Using the color tools �suck up� the background color of your vi and �paint� i
    t into the white space of the control.
    g. Make the control the correct size to hide your label(s). Make sure it is right as you will NOT be able to resize the control outside of the �customize� function (i.e.: while on your front panel)
    h. Click on the tweezers to go back to customize mode.
    i. Give your control a descriptive name
    j. Right click on the control, go to �Visible Items� and uncheck �label� to hide the label.
    k. Save your new control
    2. Back on your front panel, place your new control over what you want to hide and programmatically make it visible or invisible as desired.
    I have included a copy of your original vi, modified to hide and unhide your label. I have also included the customized string control that accomplishes this. You may resize the control as needed by �customizing it as described above.
    The only disadvantage to this method is that if you want to hide multiple labels they must be in the same area of the front panel. Otherwise you must have seve
    ral �hiding� controls.
    An advantage is that you will not have to make the original control or indicator (i.e.: the date indicator) visible or invisible as it can be hidden as well.
    Hope this does what you want.
    Good Luck.
    Attachments:
    Test_Label.vi ‏27 KB
    InvisibleString.ctl ‏6 KB

  • How to use string control as terminal window

    Hello All
    I am trying to create a terminal window in my VI and to do this i have a string control and a string indicator.
    I want the user to be able to write a command in the terminal and when hitting enter the control should update, but not before! I would
    like the user to be able to enter multiple commands without having to re-click the control with the mouse, so it has to stay in the
    control window. 
    The output from this string control is input to a invoke node to an external motor controller, which replies with a string input to the string indicator.
    Tried to do some event case, but not quite sure how I am going to detect only the enter command.
    Any ideas how to preceed?
    Thanks
    Regards
    Tommy
    Solved!
    Go to Solution.

    Yeah, in your event structure, look for an event of your string control called "key down"...on the left, there are several parameters coming up (char, vkey etc.) where you can use for example the char to look for char=13 (return).
    look here: http://zone.ni.com/reference/en-XX/help/371361B-01/lvprop/control_key_down/
    good luck
    christian 
    THINK G!! ;-)
    Using LabView 2010 and 2011 on Mac and Win
    Programming in Microsoft Visual C++ (Win), XCode (Mac)

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

  • 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

  • How i can use labview control or indicator in VB or C++

    Hi,
    I would like to use labview control or indicator in thierd party application like VB or C++ or .net. Please help me, how i can use this?
    Thanks

    You can't. A LabVIEW control is a LabVIEW internal object that has no direct link to any OS object entity on any platform it runs on. As such other applications would have no means to access that control object or interact with it in any meaningful way.
    Instead you should probably look into ComponentWorks from National Instruments. That is a collection of ActiveX (and .Net?) controls similar to the ones you find in LabVIEW, and those can be embedded into Visual Basic or any other development environment that allows embedding ActiveX controls.
    Rolf Kalbermatter
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • How to concatenate string with a numeric control ?

    Hi,
    How to concatenate string with a numeric control ?
    Thankyou.
    Solved!
    Go to Solution.

    Its simpler to just use the Format Into String.
    Attachments:
    Format Into String.png ‏11 KB

  • How to remove the last line input into a string indicator??

    I am currently working on a program where the user has the ability to create a profile for one of our lab machines to run.  When the user selects what parameters they would like, a string indicator shows the user the last input they set followed by a comma.  For example, if the user selects which profile they want, and the times they would like to set, the following string would be displayed:
    As you can see in the picture above, the profile is updated in the string indicator after every set button is hit.  In the event the user makes a mistake, I want them to have the ability to delete the last line that was added.
    This is the code I developed so far.  The string coming in and leaving is attached to a shift register so it continues to append to the indicator.  I tried in this case to count how many lines have been written in the string so far, and I built an array with the current string.  Using the delete from array.VI I indexed it to the number of lines that was created so that the last line is deleted.  I unfortunately had no luck.  Any suggestions?

    tbob wrote:
    Fonzie1104 wrote:
    Hey Tbob,
    That almost worked.  The only issue though is it leaves a null string in its place without moving everything after up one line.  Also, if i have a parameter repeating multiple times, it doenst seem to work.
    I'm confused.  If you are deleting the last line, how can there be anything after?  What do you mean by a parameter repeating multiple times?
    If you look at my example front panel, you will see that the last line is deleted.  Isn't this what you asked for?
    It's due to the fact that your constant doesn't have a comma in the last line. If you add that in, you should be able to reproduce his problem. This is just a guess though, I didn't actually test it to see.
    Message Edited by for(imstuck) on 06-08-2010 01:24 PM
    CLA, LabVIEW Versions 2010-2013

  • How can I modify the Stile of a String-Indicator (without the Frame)?

    I only want to see the Text-String on the Frontpanel,
    without the Indicator-Frame.

    Go to the Classic Controls palette, select a Simple String indicator. Then use the paintbrush tool with transparent selected (The T in the upper right hand corner of the color palette) to make the indicator transparent. The text in the indicator will still be visible, but not the indicator frame or background.

  • How to create a string indicator with a history?

    I'm interested in creating a string indicator that has a history to it, possibly with time stamps attached to it.
    For those who have used AutoCAD it would be exactly like the command bar. A plus would be if I could only
    save the last 100 entries to keep the size memory usage down.
    Any thoughts? Does anyone have a code segment of this? 

    Keep a line count and once you go over your limit search the string for the first new line and split it at that point.
    Mark Yedinak
    "Does anyone know where the love of God goes when the waves turn the minutes to hours?"
    Wreck of the Edmund Fitzgerald - Gordon Lightfoot

  • Drag control example and how to save an indicator value??

    Hi everyone,
    I want to drag boolean buttons on my front panel in the run time, how can I do it?
    I remember I have seen an ni example for that, it's a card on the front panel, but I don't remember the name TT anybody knows?
    and the second question is how to save an indicator value, like the first time you set the value and close the vi and run it again, the value will remain unless you change it in the second run time?
    thanks in advance 
    Solved!
    Go to Solution.

    THe attached (in LV 8.6) is a quick and dirty dragging example.
    When a mouse down event is detected the offset between the mouse and the top left corner is calculated and cached in a shift register.
    Mouse moves use the offset to etermine the new location.
    Mosue up clears a boolean used to track if we are actively dragging at the moment.
    Have fun!
    Ben
    Message Edited by Ben on 04-15-2009 07:54 AM
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction
    Attachments:
    Drag.vi ‏11 KB
    Drag_This.PNG ‏59 KB

  • Saving text written in a string indicator on the front panel

    Hi,
    As a new LabVIEW user I'm trying to type a manual to explain how to use the software program I'm writing. I would like to display it on the front panel in one of the tab windows. There is quite a lot of writing and I would like the user to be able to scroll through the text. I tried inserting a string indicator, right clicking on it and selecting 'visible items'>>'scrollbar'. However, when I saved my changes the writing in the indicator was not saved with the rest of the changes. I'd be grateful for any advice.
    Thanks,
    Adrian
    [email protected]

    Adrian,
    The 'data' in your string indicator was probably not saved as 'default', so that when you closed the VI and re-ran it, it was lost.
    For any data (strings, numbers, etc.) that you want to have as default, you will need to rt-click the indicator/control and under data operations, select 'make current value default' (when you have the data entered).
    Also - add an Invoke node function to force this indicator to display the default data upon initial running of the VI.
    Another way, though, when you have a 'lot' of text, is simply save your info in a text file, and have a VI open the file and display it either as the text file itself, or as input into a string indicator.
    Good Luck, Doug

Maybe you are looking for

  • Hot Synch Manager Settings (Conflict Resolution​)

    Hello, I synch an office desktop and a home desktop with one Palm Z22.  I have had a lot of problems with duplicate appointments !  How should I configure the Hot Sync Manager settings?  I have the conduits (calendar, note pad, etc. ) set on "synchon

  • Half Rack exadata with DBFS_DG having normal redundancy ?

    My understanding was that the one command installation scripts automatically set the redundancy level for the DBFS_DG diskgroup.I believe I had actually foud this in the onecommand code in gridsteps.pm function CreateASMDiskgroups() . For eighth and

  • Function module SYSTEM_ATTACH_GUI

    Hallo, has someone worked with the function module SYSTEM_ATTACH_GUI ? If you connect with RFC to a SAP-System you can use this function module to open a SAP-GUI.  But this does not work in my environment. In my case only the SAP-Logon screen with al

  • I can't open my e-mail messages (Hotmail.ca) - again. Why does Firefox keep freezing up my Hotmail account?

    Yesterday morning, I opened and read my Hotmail e-mail messages. Last night, Firefox would not let me open any mail. This has happened before, but I don't remember how the problem was solved. Again this morning I tried to read my mail, but had to go

  • How do I type foreign characters by using ALT+.... method?

    Hello, How do I get foreign characters from the Character Map using the ALT+... method?  For example, the Character Map tells me that to get the small letter "a" with a tilde (ã), I should type "Keystroke: Alt+0227".  How do I actually type this and