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

Similar Messages

  • Optics experiment requires to control with a numeric control or string, but source code is having trouble

    Hello,
    I'm working with my professor on an optics experiment and we are trying to control a fast steering mirror with LabVIEW.  We bought the mirror and power supply from piezosystemjena.  They provided a LabVIEW code that works.  
    The problem is that right now, the code can only be controlled manually.  We wish to have LabVIEW control it based on inputs received from other sources.  The LabVIEW code is controlled in either one of two ways.  A knob can be used to change the value of the voltage to move the mirror.  Also, a command can be sent to control the voltage.  In both cases, the "channel" is specified.  In our situation, we have two channels, a X and a Y channel for the axes of the mirror.
     The knob is not convienient for this situation, because we wish to have a numeric control.  When I try and simply "replace" the knob with a numeric control, many things go wrong.  There are other references, property nodes, and sub VI's dependent on that the control is by a knob.
    Is there any way around this and to have it as a numeric control?
    The other way to control the mirror is with the "command."  This simply uses a string to send a command to the mirror and works well.  However, in order to specify the channel and voltage value, the string needs to read as, "set,0,20.5" where 0 is a channel and 20.5 is a voltage (examples). I would like labview to change the string to coincide with different values calculated by other sources and have the mirror move.  However, the code needs the string to be in "control" form.  The only way I can see to have the string function where i can change the inputs, would be to use a concatenated string, however then it becomes an indicator instead of a control.
    Is there any way to get a concatenated string to function as a control, where I wouldn't have to physically type something in, but instead have LabVIEW determine the values?
    I'm attaching the VI's for reference.  The VI from the company is quite complicated, so I'm hoping I won't have to alter it too much.  I'm sure there's a simple answer just using the sub VI.
    Thank you all for your help.
    Message Edited by Support on 11-06-2009 08:28 AM

    Hi R0B0T,
    Here is some example code to get you started. 
    There are two vis: Control.vi and app sim.vi The “control vi” simulates your “trying to control with concatenated string.vi” and the “app sim.vi” simulates your d-drive application. 
    To use these vis, open both front panels. Run the Control vi and change the control values. See how the data is received by the app sim vi.
    Notice in the Control.vi how I generate a value change event for the concatenate function using a value signaling property node. This is required by the receiving app to be able to detect that a change has occurred. 
    Also note that I passed through a stop event to close the app sim vi. The d-drive application does not have an input for this and that is a problem. To cleanly stop the d-drive app you will need to add this functionality (or live with having to stop both vis separately). You will have to read the stop value in two places – in the event structure (lower loop) and also in the while loop (upper loop). I decided at the last moment to include this functionality in the app sim vi so you could see what that might look like.
    Note that in the app sim vi I have a comment about dealing with your knob vs numeric issue. This should give you an idea of what you are up against. It really isn’t too hard if you are able to understand these examples. 
    steve
    Help the forum when you get help. Click the "Solution?" icon on the reply that answers your
    question. Give "Kudos" to replies that help.
    Attachments:
    Control.vi ‏14 KB
    app sim.vi ‏14 KB

  • How to detect the key enter with a numerical control without using loop event?

    I want to accept a numerical value only when the key enter is pressed, but without using the event. How to detect the char "enter" with a numerical control?
    Thanks!

    When the user edits a numeric control with a keyboard, its property "key focus" is true. When the user hits enter, key focus becomes false. Poll the property to latch the control valuse at the true-false transition. That won't work if the user modify the control using up and down arrows.
    LabVIEW, C'est LabVIEW

  • How to modify input range (DAQ assistant) with a numeric control ?

    hello every one
    I am currently working with the NI USB-6218 acquisition card.
    I would like, in order to acquire a signal, to be able to choose the input range of the DAQ assistant with a numeric control ( and not by opening the DAQ assistant window ) (like the "number of sample" and the "rate" entry...)
    Is it possible and if yes, how ?
    Thanks so much in advance for your answers !
    Solved!
    Go to Solution.

    hello
    sorry I forgot it. but after spending a few hours on the problem this morning, i solved it Apparently, I corrupted the general DAQmx assistant last friday. By restarting my computer this morning, this issue was solved and I was able to transform the constant into command for the input range.
    Thanks a lot for your help !!!
    Guyua

  • How to display string with XML content in 4.6?

    Hi,
    I`d like to know how to display string with XML content in it for 4.6.
    4.6 has not method parse_string.
    And example like this is not helpful:
      DATA: lo_mxml    TYPE REF TO cl_xml_document.
      CREATE OBJECT lo_mxml.
      CALL METHOD lo_mxml->parse_string
        EXPORTING
          stream = gv_xml_string.
      CALL METHOD lo_mxml->display.
    Thank you.

    Hi,
    May be you can use fm SAP_CONVERT_TO_XML_FORMAT. But it have some issues with memory usage, the program consumed tons of memory during convert.

  • How to write strings with an underline on the TOP-OF-PAGE of ALV

    How to write strings with an underline on the TOP-OF-PAGE of ALV

    if u r using classes and methods it can be done
    but if u r using normal fms and then u have to use HTML_TOP_OF_PAGE but the drawback for this it cannot be printed when the report is printed .

  • How to stop text labels on numeric controls from disappeari​ng

    Got a nuisance problem I'd like to correct.  When I've got a previously defined numeric control (such as a slide or knob) with text labels, upon entering the control properties window and selecting the "text labels" tab, the first label defaults to clear/empty.  This is a nuisance because the text has to be retyped every time when modifying the text labels.  Is this a bug or a feature?  Is there any way to turn it off?  Thanks.

    "I've always wanted to be the first to discover a bug in a new LV release! "
    Thank you for sharing that with us. You are helping to make LV even beeter than it is.
    regarding your quote "I've always wanted to be the first to discover a bug in a new LV release! "
    Please see the LabVIEW Champions Blog titled "The Leaders Lead" that can be found here.
    http://forums.lavag.org/blog/champions/index.php?
    How is your nose?
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • How to Concatenate Strings in XI !

    Hello..
    I have the scene RFC - XI - JDBC
    insert in SQLServer tables... when i insert in last table i have one proble with concatenate Strings.
    This is the error ocurred in my message monitor:
    Unable to execute statement for table or stored procedure. 'TLINES' (Structure 'statement_TABELA4') due to java.sql.SQLException: [SQLServer 2000 Driver for JDBC][SQLServer]INSERT statement conflicted with TABLE FOREIGN KEY constraint 'FK_TLINES_CRFV'. The conflict occurred in database 'tmp_rfc', table 'CRFV'.
    the problem is refering to TABLE FOREIGN KEY !
    This is the message come from XML:
    I need to concatenate the field TDLINE to insert the Data in only one line in the table because the TABLE FOREIGN KEY relationship !!!
    My question is:
    How to cancatenate the Field TDLINE ??
    thanks...
    Regards...
    Boni

    Hi Vijaya Lakshmi,
    Sorry for delay my response. Thanks for your reply.
    My Input structure is complex structure. here is the example
    Source Structure
    ZEmployee
      Data
         Employee first name
         Employee Last name
         Employee number
         Employee Joining date
         Employee Joining time
         Lines
            Tdline.
    Target Structure is
    ZEmployee
         Employee first name
         Employee Last name
         Employee number
         Employee Joining date
         Employee Joining time
         Employee Notes
    In my scenario i need to concatenate all the TDLINES and pass to Employee Notes in the target for each employee. How to triger UDF for this scenario and I need to change any mappings.
    your help is highly appreciated.
    Regards,
    Srini

  • How to Search strings with and without quotes

    Hello,
    I need to search a string with quote and without quote the same way
    Ex: Wendy's
    If user enters wendys without ' also need to return all the Wendy's..!
    I appreciate any help...!
    Thanks
    RG

    Hi,
    RG wrote:
    Hello,
    I need to search a string with quote and without quote the same way
    Ex: Wendy's
    If user enters wendys without ' also need to return all the Wendy's..!
    I appreciate any help...!So you want to ignore single-quotes, is that it?
    Here's one way:
    INSTR ( REPLACE (big_string,       '''')
          , REPLACE (substring_sought, '''')
          )  > 0 
    I hope this answers your question.
    If not, post a little sample data (CREATE TABLE and INSERT statements, relevant columns only) for all the tables involved, and the results you want from that data.
    Explain, using specific examples, how you get those results from that data.
    Always say what version of Oracle you're using (e.g. 11.2.0.2.0).
    See the forum FAQ {message:id=9360002}

  • How to put String with html tags as it is into xml

    I am using apache dom API to create xml from java.
    I have a string with html tags in it .when I add the string to xml, its replacing all the "<"; with &lt and ">" with > I would like the html tags to look as it is instead of the > and & lt;. How can I acheive that
    this is the code snippet of what I am doing
    In java class
    String titleString = "<font color=red>This Is an Example of a Red Subject</font>"
    Document doc = new DocumentImpl();
    Element root = doc.createElement("bulletin");
    Element item = doc.createElement("title");
    item.appendChild(doc.createTextNode(titleString));
    In Xml it looks like below
    <title><font color=red>This Is an Example of a Red Subject</font></title>
    but I would like to have the xml like below
    <title><font color="red">This Is an Example of a Red Subject</font></title>
    Can you please suggest me whats the best way to acheive this.
    I appreciate all your help
    Thank you
    Suma

    One problem is that you don't understand escaping. If you re-read what you posted you'll see that what you say you get, and what you say you want, are identical. That's because you didn't escape one of the two properly. So your first step should be to find the section about escaping in Chapter 1 of your XML book and read it carefully. Figure out what you should have done here (yes, the same rules apply).
    However, to attempt to answer what I think your question is: if you have a String which contains markup, and you want to convert that String to XML elements, then you have to feed the String into an XML parser.

  • How to use SetRotate with a AcroPDF control and VB6?

    I'm creating a program in VB6 that has an Adobe Reader control (using AcroPDF.dll version 9.0) on the form that allows the user to open and view PDF files and I need to know how to use the SetRotate command programmatically to set the  view of the PDF to a different angle (the view angle, like 90, 180 degrees, etc.).
    According  to the API reference, you use AcroPDPage.SetRotate but some how I need  to tell it which control to apply it to and that is what I don't  understand. If I just create a new instance of AcroPDPage and try the SetRotate or even GetRotate it gives me a 'object variable not set' error, which I understand since PDPage is supposed to be part of another object (such as a view control of some sort).
    My question is, how do I get or create a AcroPDPage object that is part of the AcroPDF control on the form so that I can use GetRotate and SetRotate methods and apply it to the PDF view control (AcroPDF)? Although this is the prefered method of solving this problem, I guess if I could just get the AcroPDF control to show the view menu, that would be good enough.
    I'm using the AcroPDF.dll version 9.0 and have Adobe Reader 9.0 installed on a XP SP3 machine. Again, I'm writing this program in VB6.
    As you can probably tell, I'm fairly new to programming, especially using references to other program components like Adobe Reader.
    Any help is appreciated, thanks.

    Set1 = ...
    Set2 = ...
    Set1.addAll(Set2);
    addAll(Collection<? extends E> c)
    Adds all of the elements in the specified collection to this set if they're not already present (optional operation). If the specified collection is also a set, the addAll operation effectively modifies this set so that its value is the union of the two sets. The behavior of this operation is unspecified if the specified collection is modified while the operation is in progress.

  • How to export strings with "\"

    When I export a string with backslashes in it (eg. path name to a file) then when this file is imported at run time then backslashes '\' cause the import to fail. So for now I have to replace all "xxx\yyy" strings in exported file with "xxx\\yyy" and then import
    of such MODIFIED file goes OK.
    But this is tedious - is there another way to deal with it ?

    This is caused by the fact that the ASCII backslash character is the escape code specifier, and when the file is read by the import/export properties tool it is treated as such. If you have any character sequences in a string such as "\t" or "\n" these get interpreted as tabs and newlines within the string.
    To avoid this behavior when importing you will need to modify the strings in TestStand before exporting them to include the "\\" escape code set to the file. The caveat to this is once these values are read back from the file they will be interpreted as single backslashes. For instance, if you export "c:\\temp", and then import it back you will get "c:\temp". This is simply the nature of the Import/Export Properties tool.
    If you do not like the b
    ehavior of this tool in its shipping form, you can rebuild the "limitloader.dll" module to include the functionality that you want. Whenever you click the Tools>>Import/Export Properties menu selection, the MainSequence of \Components\NI\Tools\ImportExport.seq is being executed. This has a single step in it that calls the "DisplayImportExportDialog" function of the limitloader.dll. The source for the limitloader.dll can be found in the \Components\NI\StepTypes\Database directory.
    Jason F.
    Applications Engineer
    National Instruments
    www.ni.com/ask

  • How to extract string with delimiter

    Hello all,
    I'm using Oracle 10g and want to extract string with a delimiter.
    For example, i have aaaa;;bbbb;cccc;dddd;eeee;ffff and i want to extract this string into separates strings 'aaaa', ' ', 'bbbb', 'cccc', 'dddd', 'eeee', 'ffff'.
    Thanks a lots for yours help.
    MK.

    I prefer the regular expression method myself...
    SQL> ed
    Wrote file afiedt.buf
      1  with t as (select 'aaaa;;bbbb;cccc;dddd;eeee;ffff' as txt from dual)
      2  -- end of sample data
      3  select REGEXP_SUBSTR (txt, '[^;]+', 1, level)
      4  from t
      5* connect by level <= (select length(regexp_replace(txt,'[^;]*'))+1 from t)
    SQL> /
    REGEXP_SUBSTR(TXT,'[^;]+',1,LE
    aaaa
    bbbb
    cccc
    dddd
    eeee
    ffff
    7 rows selected.
    SQL>

  • How to replace string with image( Say Smiley).........????

    Hello To All Experts !!
    I wanna looking for some help in displaying image in my text area when should i type ":)" in text field.....
    I got some program through forums....
    import java.util.*;
    import javax.swing.ImageIcon;
    public class TokenizeSmiley {
        private static final HashMap SMILEYS;
        static {
            SMILEYS = new HashMap();
            SMILEYS.put(":)", new ImageIcon("images/1.gif"));
            SMILEYS.put(";)", "<wink>");
        public static void main(String[] args) {
            String text = "Hello!! :) How are you ;)";
            StringTokenizer st = new StringTokenizer(text);
            String token;
            while (st.hasMoreTokens()) {
                token = st.nextToken();
                if (SMILEYS.containsKey(token))
                    token = (String)SMILEYS.get(token);
                System.out.print(token + " ");
    }but it is showing <smile> and <wink> as it is given...i tried to give path of image ...but it is nt fetching then also.....
    Plz help in this....
    Message was edited by:
    Damz@del

    So your data is stored in XML. So what? You haven't asked a question about the XML or how to format it or how to access it. You asked a question that had nothing to do with XML at all. It's as if you said "My data is stored on a Windows computer so I will call Microsoft's support line to ask them this question."
    And I can't even suggest a suitable forum because a "text area" could be an AWT component or an HTML component. But I do suggest you ask in the right place.

  • How to integrate ADF with ADE Source control system?

    We are going to set up a team with ADF developers and we're totally new to ADF environment. The developers will be working on individual and common Applications/ projects. We're planning to use ADE as our source control system. How do we set up Jdev/ADF environment so that we can use Oracle ADE source control system to sync up all the changes by the developers. any ideas and pointers to the documents are appreciated.
    Regards,
    Surya

    Shay, I heard from many oracle employees saying that ADE works great with JDev. Why not outside of oracle like svn? As you know there are tons of complaints about svn & cvs. Thanks.

Maybe you are looking for

  • This is the third time in the past several weeks when my printer just stopped printing for no reason

    I have a windows 7 laptop and a HP 8500 officejet fax....my printer has stopped printing again....I have disconnected everything and it still won't print.

  • Sort by file type

    In the "View Preferences" there does not seem to be an option to insert a "file type" column. If it isn't possible to do this, I'd suggest that this option be made available. If it is possible, how is it done? thanks Custom   Windows XP Pro  

  • BI Apps Installation

    Hi All, I want to install BI Apps Installation, on Edelivery, I found following files. My question is should I download all of them OR some of them. Also tell me installation steps. This installation is for HOME PC Windows XP. Oracle Business Intelli

  • DW CC 2014 Issues

    I decided to "Upgrade" DW to CC 2014. First problem. This is NOT AN UPGRADE! This is a new installation. The button in Creative Cloud should say 'Install' and not 'Upgrade'. This is extremely irritating! Please give your customers credit for having a

  • Best books available?

    Can anybody give advice on a good book that covers Servlets from the basics to the most detailed features? I want one that covers the latest Java EE 5 features.