Subvi access label of input wire

Hi
is there a way to access the name/label of an input wire connected to a vi (or an XControl for that matter)?
as an example: I would like to have an vi that takes a double as input and returns a string with "The wire with the label %s has the value %f".
Up to now I had to use two inputs and wire the double into one and the output of the openG function "get data name" to the other. Works too, but I would like to move the functionality into the subvi if possible.
Thanks
Arun

This is similar to what I want, but not exactly it. I would like to use only one input and if possible be able to use the wire I want directly and not use a reference to it.
One reason for this is that I want to be able to use this in a XControl-indicator which only can have one input AFAIK. I know that I could get around it by just adding a property node for the name of the wire to the XControl, but then I always need to change things at two places in the code and I rather would avoid that... It also would need more space on the block diagram...
Another reason is that I would like to use it on wires that have a label in labview, but are not necessary indicators or controls, in which case I'm not sure if you can get a reference or a property node from them... say I have a cluster of data and then use uncluster by name to access one of them and would like that to be plugged into the subvi (see example.vi in attachement; uses openG... this also doesn't do exactly what I want, since when I change the label of the wire, it still puts out the name of the control).
I'm not that familiar with references though, is there a way to programatically get a reference (e.g. a vi that has double in and a ref to that double as output)? In that case I could modify your vi, so that it only takes a reference as input (and uses the value property inside to access its value, see modification of your vis in the attachment): and then would use
double->vi: input to ref-> vi: name+value to string
I guess my question is, if you can access any attribute apart from the value of an input of a subvi?
cheers
Arun
Attachments:
example.zip ‏18 KB

Similar Messages

  • How To Create a SubVi and Limit Required Inputs

    Hello,
    Description:
    I have created a VI that reads in voltage values from the NI USB-6008 device. After putting that value into a formula, I compare the new value with an array of data and output a corresponding value (this is not too important for the problem).
    Problem:
    The VI currently works great. My goal is to make it into a SubVi that can read in various channels and output their values. However, when I attempt to make a subVi thourgh Edit>>Create SubVi, the subVi created requires many inputs because of the many controls I utilize in the VI.
    What I want to do:
    Is there any way to use the default values of the controls in the SubVi and not require the user to input each control's value into the SubVi? Or, do I have to change my controls to be constants?
    Any assitance would be greatly appreciated.
    Attachments:
    YSI_R_to_T.vi ‏379 KB

    You don't have to create a subvi by using the Edit - Create Subvi button. Any vi can be a subvi. Go to the front panel, right click on the icon in the top right corner, select show connector. Figure out how many inputs and outputs you want to connect to the main vi. Right click on the connector pane and select Patterns, then the pattern that fits your needs. If you want to have the main send a channel and have the subvi send an output, choose the 4 connector pane pattern. Put Error In and Error Out clusters on your front panel. Wire the channel input control to the top left terminal of the connector pane, the output indicator to the top right connector, the Error In to the bottom left, and Error Out to the bottom right. It is good to use the Error In and Out to indicate errors and to help control execution order through data flow. Save the vi. In your main block diagram, go to functions - Select a VI, and select the vi you just saved, which now becomes a subvi to the main. You can wire a control to the new subvi top left, and so on...
    - tbob
    Inventor of the WORM Global

  • Controlling the space between label and Input field in SELECT-OPTION

    Hi ,
    I am using WDR_SELECT_OPTIONS as a used component in order to dynamically generate the Select option in my WD Component.
    Can any one tell me if there is a way to control the spacing between Label and Input field?  This is because rest of the UI elements are in one particular order but for this dynamically generated UI.
    Please help me.
    Thanks,
    Kavitha

    Hi Kavitha,
    The label is required for accessibility reasons. It's not possible to remove it and to use your own label from outside the component to point to it. Labels cannot point to targets across views (and hence acress component) boundaries.
    Best regards,
    Thomas

  • No accessable label --code inspecter error

    Hi,
    Here the part of my selection screen.,
    parameter XYZ radiobutton group rad1 default 'X'.
    selection-screen comment 4(30) text-066.
    ...Every thing is working fine.,
    But, while doing the code inspecter check I am getting Radio button XYZ related errror, not sure how to rerctify that, here I am giving that error.,
    > Program ZABOVEPROGRAM screen 1000 I/O field (Inputfield) XYZ has no accessable label
    What to do? suggest me.,
    Thanks,
    Naveen Inuganti

    Hi.,
    Anyother answers?
    Here I am attaching my code once again...!
    selection-screen begin of block b2 with frame title text-065.
    selection-screen begin of line.
    parameter XYZ radiobutton group rad1 default 'X'.
    selection-screen comment 4(30) text-066.   "It conatins label for XYZ
    selection-screen end of line.
    selection-screen begin of line.
    parameter AB radiobutton group rad1.
    selection-screen comment 4(30) text-067.   "It conatins label for AB
    selection-screen end of line.
    selection-screen end of block b2.
    For XYZ and AB , I am getting same error at code inspecter checks,
    "Program ZABOVEPROGRAM screen 1000 I/O field (Inputfield) XYZ has no accessable label
    "Program ZABOVEPROGRAM screen 1000 I/O field (Inputfield) AB has no accessable label
    --Naveen Inuganti

  • I have an iPhone 5s and i've been noticing that my phone would go into Do Not Disturb mode at night. So I looked under settings, and there was a profile labeled "Consumer Input" and then I noticed DND was set for 10pm-7am. Does anyone know what caused it?

    I have an iPhone 5s and i've been noticing that my phone would go into Do Not Disturb mode at night. So I looked under settings, and there was a profile labeled "Consumer Input" and then I noticed DND was set for 10pm-7am. Does anyone know what caused it?

    You downloaded a profile from somewhere. If it's not one you want or need, delete it.

  • Labelling wires can be made easy ..!! Take the control Name as default - Label Name for wire

    Wire : Right Click --> Visbile --> Label  (Its void Now )
    Solution : It can take the control Name as default label of the wire,  instead of  being Void
    Not sure if this idea is already proposed. 
     

    sandyy wrote:
    Ya true, in the above case it should take the indicator Label
    It's just as easy to construct a case where there are multiple sinks to the wire and then you can't just say "take the indicator label". My point was that I don't want NI spending time on figuring that out and writing that code.
    As for your second example, now there's suddenly even more magic in there - The wire labels somehow gained the brackets and the wires which have an uninitialized shift register as a source somehow know that they should take the labels from other wires in the loop.
    If you think the logic for this is simple, you can try writing a Quick Drop shortcut which will do this - for all selected elements which are wires, go find their ultimate source and take its label and apply it to the wire. I think if you try that you'll appreciate why I don't want NI to spend time on this. You might also find that the tool you wrote works well enough for you and you can use it right now without having to wait for NI.

  • SubVI: Access IOs and Frontpanel

    I have a problem accessing the io-interface (Input and Output on the
    Symbol) and the frontpanel. I have a main-vi which loads other sub-vi's
    and displays there frontpanel in a tab-widget ("registerkarte" in
    german)and i also have to connect there ios.
    can anybody give me a help how to handle this.
    Max

    I'm not sure exactly what your problem is. Can you not wire front panel controls and indicators to subVIs or is it something else? Further explanation would be helpful and if you could attach the main VI and subVIs that would help too. To save everything to a single file, select Save With Options and choose Development Distribution.

  • Accessing label in another class?

    I'm trying to learn Java so sorry for the very simple question but I'm trying to change the text of a label in another class. I think I need to create a new instance of this label to access it from the second class but I just can't seem to get it to work. I don't know how to create the instance, which class to create the instance in why I want to create this instance and what this instance does really?
    import java.awt.*;*
    *import javax.swing.*;
    import java.util.*;*
    *import java.awt.event.*;
    import java.lang.*;*
    *public class StopWatch extends JFrame implements ActionListener*
    *    private JButton button1 = new JButton("Start");*
    *    private JButton button2 = new JButton("Stop");*
    *    private JButton button3 = new JButton("Lap");*
    *    private JButton button4 = new JButton("Clear");*
    *    public JLabel label1 = new JLabel("The time goes here!!!!!!!!!!");*
    *    public StopWatchConfig aConfig;*
    *    public StopWatch(String input)*
    *        button1.addActionListener(this);*
    *        button2.addActionListener(this);*
    *        button3.addActionListener(this);*
    *        button4.addActionListener(this);*
    *        displayGUI();*
    *        aConfig = new StopWatchConfig();*
    *    public void displayGUI()*
    *        Container c = getContentPane();*
    *        c.setLayout(new FlowLayout());*
    *        //c.setBackground(Color.black);*       
    *        c.add(button1);*
    *        c.add(button2);*
    *        c.add(button3);*
    *        c.add(button4);*
    *        c.add(label1);*
    *        setSize(300,100);*
    *        setVisible(true);*
    *        public void actionPerformed(ActionEvent e)*
    *            Object source = e.getSource();*
    *            if ( e.getSource() == button1 )*
    *                aConfig.start();*
    *            if ( e.getSource() == button2 )*
    *               aConfig.stopp();*
    *            else if ( e.getSource() == button3 )*
    *    //           timerSetup.lap();*
    *            } // end if/else*
    *            else if ( e.getSource() == button4 )*
    *     //          timerSetup.clear();*
    *            } // end if/else*
    *    } // end method*
    *import java.awt.*;
    import javax.swing.*;*
    *import java.util.*;
    import java.awt.event.*;
    import java.lang.System;
    public class StopWatchConfig extends Thread
      public void start()
      public void stopp()
          aStopWatch.label1.setText("CHANGED!");
      public void lap()
      public void clear()
    }

    You don't want a new instance -- that would be an entirely different label, and not have any effect on what you're doing. What you want is a reference to the object you're changing.
    What I would suggest is that you make sure only StopWatch can change its own label, say, with a method setTime(). Then, any other object that has a reference to that instance of StopWatch can call that method, and StopWatch will control the changing of its own components.
    However, you're dealing with multithreading issues here, too, which is another beast. When you have two threads talking to each other you've got some things you need to take into account, such as synchronization. I'd say try to get this to work within a single thread first -- maybe have a button inside StopWatch that sets its own time.

  • Changing the "Browse..." button label in input type file

    Hi,
    I am facing a problem. I have got an HTML page. On this page, I have got a file selector(input type = file) in which I want to change the label of the "Browse..." button. Does anybody have an idea, how can it be done?
    Thanks,
    Mayank

    I dont think it is possible...
    zakir

  • Access sequency for Input Service Tax Condition

    Dear All,
    I am running the deferred tax transfer programme in ECC 6.0 but I am facing some problem with the Service Tax Conditions. Now existing we have configured for all input service tax conditions access sequence JTAX.
    If I use the MWST instead of JTAX...system does not calculate the Service Tax it gives error.So please provide me any solution or option for this....
    Regards,
    Sandeep

    Hi
    Maintain the Condition Record % at Tax code: FTXP
    Regards
    Prasanna R

  • How to change the Label of input text box after selecting a value in LOV.

    Hi All,
    I have a requirement that after selecting a value in LOV the Label of the next input text box should change accordingly.
    I am able to do cascading LOV's.
    how can i meet this requirement?
    TIA,
    Vishal

    Sample:
    JSPX Page:
    <?xml version='1.0' encoding='UTF-8'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
    <jsp:directive.page contentType="text/html;charset=UTF-8"/>
    <f:view>
    <af:document id="d1">
    <af:messages id="m1"/>
    <af:form id="f1">
    <af:panelFormLayout id="pfl1">
    <af:inputText value="#{bindings.FirstName.inputValue}"
    label="#{bindings.FirstName.hints.label}"
    required="#{bindings.FirstName.hints.mandatory}"
    columns="#{bindings.FirstName.hints.displayWidth}"
    maximumLength="#{bindings.FirstName.hints.precision}"
    shortDesc="#{bindings.FirstName.hints.tooltip}"
    id="it1" *binding="#{ForumSampleBean.inputText}"*
    *partialTriggers="departmentIdId">*
    <f:validator binding="#{bindings.FirstName.validator}"/>
    </af:inputText>
    <af:inputComboboxListOfValues id="departmentIdId"
    popupTitle="Search and Select: #{bindings.DepartmentId.hints.label}"
    value="#{bindings.DepartmentId.inputValue}"
    label="#{bindings.DepartmentId.hints.label}"
    model="#{bindings.DepartmentId.listOfValuesModel}"
    required="#{bindings.DepartmentId.hints.mandatory}"
    columns="#{bindings.DepartmentId.hints.displayWidth}"
    shortDesc="#{bindings.DepartmentId.hints.tooltip}"
    *autoSubmit="true"*
    *immediate="true"*
    *valueChangeListener="#{ForumSampleBean.lovValueChangeListener}">*
    <f:validator binding="#{bindings.DepartmentId.validator}"/>
    <af:convertNumber groupingUsed="false"
    pattern="#{bindings.DepartmentId.format}"/>
    </af:inputComboboxListOfValues>
    </af:panelFormLayout>
    </af:form>
    </af:document>
    </f:view>
    </jsp:root>
    *Managed Bean:*
    public class ForumSampleBean {
    private RichInputText inputText;
    public ForumSampleBean() {
    super();
    public void setInputText(RichInputText inputText) {
    this.inputText = inputText;
    public RichInputText getInputText() {
    return inputText;
    public void lovValueChangeListener(ValueChangeEvent valueChangeEvent) {
    *this.inputText.setLabel("New Label");*
    Thanks,
    Navaneeth

  • How to label/name a wire output from a case diagram

    I like how Labview displays the "name" of a wire - when it shows the right name!  Sometimes when a wire leaves a Case diagram, I notice it has the name of the wire in one case when I would prefer it to have the name from one of the other cases, and I wonder if I have worked out which case it uses - the last case.  The problem is that the typical Boolean Case diagram only has 2 cases, and you can't re-arrange the cases, except if you add a dummy case, rearrange, then delete the dummy case.  The attached VI illustrates the difference in the name of the blue wire (use the mouse hovering over the wire to see it). (LV 8.2.1)
    I think it would be nice if we could label the output tunnel of case diagrams (and hence the wire emerging from it).  It wouldn't need to be a visible label, but it would help to document the code.  What do you think?
    Message Edited by pauldavey on 06-07-2007 12:48 PM
    Attachments:
    Labelling Wire from Case Diagram.vi ‏10 KB
    Labelling Wire from Case Diagram.png ‏23 KB

    A picture is worth thousand words:
    Ton
    Message Edited by TonP on 06-07-2007 08:08 AM
    Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
    Nederlandse LabVIEW user groep www.lvug.nl
    My LabVIEW Ideas
    LabVIEW, programming like it should be!
    Attachments:
    Labelling Wire from Case Diagram.png ‏7 KB

  • How to decrease the gap between label and input field.. pls respnd

    hi friends,
    I am facing this problem since long time and couldnt get any solution...
    pls respnd,
    i need to decrease the gap between my input field and label.. its very much gap there..
    thanks in very advacne,
    niraja

    Hi WD ABAP,
    i am doing the same, created tcontainer, and just binded my node. i given matrix layout. But i dont know why it is coming like that.
    Also WDABAP, could you pls reply me to the other thread,
    about when im trying to read the dropdown value of subnode, the get_static_attribute or create_element method is going into my supplyfunction.
    supplyfunction - my code is to fill the dropdown. and due to this supply function triggering,
    my get_static_att or create_element is not reruting currenct row dropdown value.
    what am i doing wrong.. can u pls pls.. its kicking me. i have spent my whole weekend on this, but couldnt solve this.
    plsfnds :(((((
    Niraja

  • Changing button label;JSP; input type="submit" name="jboEvent" value="Search"

    Hello everybody,
    I try to develop a multilanguage application in which the button labels will change accordingly with the browser's regional settings.
    The line in the generated DataQueryComponent.jsp file is the following:
    <input type="submit" name="jboEvent" value="Search">
    If I want to change the value like value="Rechercher" the application will not execute the query.
    In fact the section
    <jbo:ViewCriteriaIterate datasource="dsQuery" >
    </jbo:ViewCriteriaIterate>
    is not executed.
    I tried to generate the button with:
    <input type="submit" name="jboEvent" value="Rechercher" onClick="this.value='Search'"> ,
    but for a long query the name Search will remain as button label on the screen.
    Any new solutions, please?
    Thanks in advance.

    Visit that Jakarta web site. There is an i18n tag library that you will find useful.
    http://jakarta.apache.org/taglibs/doc/i18n-doc/intro.html

  • Please Help. How to access to an input field in a table with javascript

    Hi
    i�m trying to access to the content of an input field that is in an table with a javascript function in this way
    function Valida_Tabla()
    var centro = document.getElementById("form1:idcentro").value;
    alert("Centro es ["+centro+"]")
    var des = document.getElementById("form1:table1:0:textField2").value;
    alert("des ["+des+"]")
    The fisrt alert is ok and displays the value of a field that is in a table.
    The second alert is not displayed.
    Is the syntax wrong?
    what i�m doing wrong
    Please help

    The best bet is to look at the source of the generated HTML and then use the exactly generated ID in the HTML source. When I looked at the HTML source I see the ID of a textfied inside a table as
    form1:table1:tableRowGroup1:0:tableColumn1:textField1
    - Winston
    http://blogs.sun.com/roller/page/winston?catname=Creator

Maybe you are looking for

  • Abaut the mini DVI

    I already purchased the cable for the mini DVI port, the DVI to video and s-video cable. It works well, but i was wondering what can exacty do with this cable, i already connected it to a tv and duplicate the image so i can see everything i do on a t

  • Lot of build errors in project created for debug CRM 5.0

    Hi SDN! I want to setup java debugging for CRM 5.0 modified application. According to note 1154496 I created project "crm_b2b". I took file src.zip from server\usr\sap\<system name>\<instance>\j2ee\cluster\<server number>\apps\sap.com\crmb2b at first

  • Firefox also crashes while viewing a web site or reading e-mails

    in the last 2 days Firefox has crashed at least 2 dozen times, usually while viewing a website or reading e-mails. This has started since I downloaded your updated version about a week ago. I don't know what the version number was.

  • When i used windows 8 i lost touch function

    I have brought the woundrful Hp touch smar 600 pc with windows 7  as default os but when i used windows 8  the screen lost touch function and i have heared thatregaing this function could be done by reinstaling this from the hp official site using th

  • Alignement issue when exporting to PDF

    Hello, I'm having some alignment issues when exporting an InDesign file to PDF. I have a couple of square pictures, touching eachother at the edges. These are aligned bang on in InDesign (the lines overlap), but when exporting to a PDF and viewing in