I don't know how to use the property node to get information out of my sub vi while it is working.

I had a question answered earlier about passing information out of a sub vi, and was helped out. The problem is that I don't understand what is happening as I can not reproduce the results. I am now trying to take results of a comparison (true-false) and pass that back out of my sub vi. I tried a property node and to connect a refnum control to it in the sub vi. Then I tried to connect an indicator to its terminal in the main vi, but was unsuccessful can someone tell me how and why, step by step, to pass this information out. Starting with the point of information in the sub vi to the indicator in the vi. I would appreciate any help that you could give m
e.
Attachments:
Pass_a_Reference.vi ‏15 KB
GL_Flicker_mod.vi ‏77 KB

Step by step:
1. On your main vi Front Panel, create your boolean indicator.
2. On the block diagram, right click the new boolean indicator and select Create - Reference.
3. On sub-vi front panel, create boolean indicator (or use one that is already created).
4. On sub-vi front panel, create a reference (Controls Palette - Refnum - Control Refnum).
5. Right click on the newly created Refnum and select Select Vi Server Class - Generic - GObject - Control - Boolean. The refnum label changes to BoolRefnum.
6. On sub-vi block diagram, create Property Node (Functions - Application Control - Property Node). Find the BoolRefnum and move it close to the new Property Node.
7. Wire the BoolRefnum to the reference input of the property node.
8.
Right click on the property node and select Change to All Write.
9. Move mouse to point to Visible inside property node box, left click and select Value.
10. Wire the boolean indicator from step 3 to the Value input of the property node.
11. On sub-vi front panel, right click on icon and select Show Connector.
12. Click on empty connector spot then click on the new BoolRefnum. Save your sub-vi.
13. On main vi block diagram, connect refernece created in step 2 to the new connector terminal of sub-vi.
14. Save and run.
Here are the modified vi's.
- tbob
Inventor of the WORM Global
Attachments:
Pass_a_Reference.vi ‏20 KB
GL_Flicker_mod.vi ‏83 KB

Similar Messages

  • Hi fellow apple guys, i have this problem. Hope you can help me. I don't know how to use the function keys (F1 to F12) on my macbook air. Pls help

    Hi fellow apple guys, i have this problem. Hope you can help me. I don't know how to use the function keys (F1 to F12) on my macbook air. Pls help

    Out of the box, to use the function keys as function keys, hold down the fn key when you press the key. Otherwise, you get the picture function on the key. You can reverse this behavior in the Keyboard system prefs.

  • Gantt chart: Don't know how to use the tooltipkeys and toolkeylabel

    I have a problem. Don't know how to use the tooltipkeys and toolkeylabel. I used jquery to select the gantt bars and on mouse over i was getting the task id "tid" then passing it to adf bean with serverlistener and showing a popup that is adf component with javascript. For positioning of the popup I used a button that has width and height 0 and has position absolute and gets the coordinates of the mouse.
    "div[et]" is a jquery selector that selects all the elements that have attribute et. I noticed that all the bars have that attribute as a few other attributes as well "part"...
    <?xml version='1.0' encoding='UTF-8'?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <f:view xmlns:f="http://java.sun.com/jsf/core" xmlns:af="http://xmlns.oracle.com/adf/faces/rich"
            xmlns:dvt="http://xmlns.oracle.com/dss/adf/faces">
        <af:document title="untitled1.jsf" id="d1">
            <af:resource type="javascript" source="https://ajax.googleapis.com/ajax/libs/jquery/1.7.0/jquery.min.js"/>
            <af:resource type="javascript" source="resources/js/home.js"/>
            <af:messages id="m1"/>
            <af:form id="f1">
               <af:commandButton text="commandButton 1" id="cb1" inlineStyle="visibility:hidden; width:0; height:0" />
                <af:popup id="noteWindow" contentDelivery="lazyUncached" binding="#{homeBean.popup}">
                    <af:noteWindow id="popupWindow">
                        <af:panelFormLayout id="pfl2">
                            <af:panelLabelAndMessage label="Task id" id="plam5">
                                <af:outputText value="#{homeBean.taskId1}" id="ot64"/>
                            </af:panelLabelAndMessage>
                            <af:panelLabelAndMessage label="Start Location Name" id="plam6">
                                <af:outputText value="#{homeBean.startLocation}" id="ot7"/>
                            </af:panelLabelAndMessage>
                            <af:panelLabelAndMessage label="Stop Location Name" id="plam7">
                                <af:outputText value="#{homeBean.stopLocation}" id="ot8"/>
                            </af:panelLabelAndMessage>
                            <af:panelLabelAndMessage label="tasktype" id="pla2m7">
                                <af:outputText value="#{homeBean.taskType}" id="ot9"/>
                            </af:panelLabelAndMessage>
                        </af:panelFormLayout>
                    </af:noteWindow>
                </af:popup>
                <af:serverListener type="jsServerListener" method="#{homeBean.serverEventHandler}"/>
                <dvt:schedulingGantt id="gantt1" value="#{bindings.PersonView1.schedulingGanttModel}" var="row"
                                     startTime="2011-07-04 00:00:00" endTime="2011-07-04 23:00:00" summary="gsg"
                                     showMenuBar="false" showToolbar="false" iconPlacement="left"
                                     showTasksAsDailyBar="false">
                    <f:facet name="major">
                        <dvt:timeAxis scale="days" id="ta1"/>
                    </f:facet>
                    <f:facet name="minor">
                        <dvt:timeAxis scale="hours" id="ta2"/>
                    </f:facet>
                    <f:facet name="nodeStamp">
                        <af:column sortProperty="#{bindings.PersonView1.hints.PersonId.name}" sortable="false"
                                   headerText="#{bindings.PersonView1.hints.PersonId.label}" id="c1">
                            <af:outputText value="#{row.PersonId}" id="ot1">
                                <af:convertNumber groupingUsed="false"
                                                  pattern="#{bindings.PersonView1.hints.PersonId.format}"/>
                            </af:outputText>
                        </af:column>
                    </f:facet>
                </dvt:schedulingGantt>            
            </af:form>
        </af:document>
    </f:view>javascript:
    $(document).ready(bindEvents());
    function bindEvents() {
        $("div[et]").live('mouseover', function (e) {
             $('#cb1').css("position", 'absolute');
             $('#cb1').css("top", e.pageY-4);
             $('#cb1').css("left", e.pageX);
            var popup = AdfPage.PAGE.findComponentByAbsoluteId("noteWindow");
            var element = AdfPage.PAGE.findComponent("f1");
            var taskIdToPass = null;
            if ($(this).attr("tid") !=undefined) {
                 taskIdToPass = $(this).attr('tid').toString();
            } else {
                taskIdToPass = $(this).parent().attr('tid').toString();
            var param = {            taskId : taskIdToPass        };
            AdfCustomEvent.queue(element, "jsServerListener", param, true);
            if (!popup.isPopupVisible()) {
                var hints = {};
                hints[AdfRichPopup.HINT_LAUNCH_ID] = "cb1";
                hints[AdfRichPopup.HINT_ALIGN_ID] =  "cb1";
                hints[AdfRichPopup.HINT_ALIGN] = AdfRichPopup.ALIGN_AFTER_START;
                popup.show(hints);
        }).live("mouseout", function () {
            var popup = AdfPage.PAGE.findComponentByAbsoluteId("noteWindow");
            popup.hide();
    };My bean that is session bean:
    package view;
    import oracle.adf.model.BindingContext;
    import oracle.adf.model.binding.DCDataControl;
    import oracle.adf.view.rich.component.rich.RichPopup;
    import oracle.adf.view.rich.render.ClientEvent;
    import oracle.jbo.ApplicationModule;
    import oracle.jbo.Key;
    import oracle.jbo.Row;
    import oracle.jbo.RowSetIterator;
    import oracle.jbo.ViewObject;
    public class HomeBean {
        private RichPopup popup;
        private String taskId1;
        private String startLocation;
        private String stopLocation;
        private long taskId;
        private String taskType;
        public HomeBean() {
            super();
        public void serverEventHandler(ClientEvent clientEvent) {    
            String taskIdString = clientEvent.getParameters().get("taskId").toString();
            this.taskId = Long.parseLong(taskIdString);
            DCDataControl dc1 = BindingContext.getCurrent().findDataControl("AppModuleDataControl");
            ApplicationModule am = dc1.getApplicationModule();
            ViewObject vo = am.findViewObject("PdTrfDayView1");  
            RowSetIterator rowSetIterator = vo.createRowSetIterator(null);
            Row[] rows = rowSetIterator.findByKey(new Key(new Object[] {taskId}), 1);
            Row row = rows[0];
           this.taskId1 =  row.getAttribute("PdTrfDayId").toString();
           this.startLocation = row.getAttribute("StartLocation").toString();
           this.stopLocation = row.getAttribute("StopLocation").toString();
           this.taskType = row.getAttribute ("PdTrfTypeId").toString();
            RichPopup.PopupHints ph = new RichPopup.PopupHints();
            vo.closeRowSetIterator();
        public long getTaskId() {
            return taskId;
        public void setPopup(RichPopup popup) {
            this.popup = popup;
        public RichPopup getPopup() {
            return popup;
        public String getTaskId1() {
            return taskId1;
        public String getStartLocation() {
            return startLocation;
        public String getStopLocation() {
            return stopLocation;
        public String getTaskType() {
            return taskType;
    }I am wondering If i can use setCurrentRow on the iterator that i create and use it for displaying on the popup instead of binding startLocation and stopLocation to the bean and if there is any benefit of that at all...
    Edited by: 897833 on Nov 24, 2011 11:37 AM

    Hi,
    To use tooltipkeys and tooltiplabel in gantt, you can add following code in managed bean
    public String[] getTooltipKeys()
    return new String[]{"columnA", "columnB", "StartDate", "EndDate"};
    public String[] getTooltipLabels()
    return new String[]{"A", "B", "Start Date", "End Date"};
    where , the string array in the ToolTipKeys represents the columns, of the table you have in the gantt component , and the string array in TooltipLabels displays the label you want to display for the table columns.
    In the jsff, you could call the bean methods as follows:
    tooltipKeys="#{GanttBean.tooltipKeys}"
    tooltipKeyLabels="#{GanttBean.tooltipLabels}"

  • I don't know how to use the canlendars function and the notes are kind of messy code,anyone help me

    i don't know how to use the canlendars function and the notes are kind of messy code,anyone help me

    Step by step:
    1. On your main vi Front Panel, create your boolean indicator.
    2. On the block diagram, right click the new boolean indicator and select Create - Reference.
    3. On sub-vi front panel, create boolean indicator (or use one that is already created).
    4. On sub-vi front panel, create a reference (Controls Palette - Refnum - Control Refnum).
    5. Right click on the newly created Refnum and select Select Vi Server Class - Generic - GObject - Control - Boolean. The refnum label changes to BoolRefnum.
    6. On sub-vi block diagram, create Property Node (Functions - Application Control - Property Node). Find the BoolRefnum and move it close to the new Property Node.
    7. Wire the BoolRefnum to the reference input of the property node.
    8.
    Right click on the property node and select Change to All Write.
    9. Move mouse to point to Visible inside property node box, left click and select Value.
    10. Wire the boolean indicator from step 3 to the Value input of the property node.
    11. On sub-vi front panel, right click on icon and select Show Connector.
    12. Click on empty connector spot then click on the new BoolRefnum. Save your sub-vi.
    13. On main vi block diagram, connect refernece created in step 2 to the new connector terminal of sub-vi.
    14. Save and run.
    Here are the modified vi's.
    - tbob
    Inventor of the WORM Global
    Attachments:
    Pass_a_Reference.vi ‏20 KB
    GL_Flicker_mod.vi ‏83 KB

  • On my macbook pro the hard drive icon is not on my desktop and I don't know how to find the hard drive or get the icon back on my desktop

    on my macbook pro the hard drive icon is not on my desktop and I don't know how to find the hard drive or get the icon back on my desktop

    Click on the Desktop. From the Finder menu select Preferences. Check the boxes for what you want on your Desktop. If they are already checked, then try unchecking and rechecking.

  • Don't know how to use the air print with my ipads.

    i just bought an mg3222 printer and i don't know how to figure out how to use air print with my ipad and ipad minis. Can anybody help??? Thanks

    Hello.
    In order to use the printer with your iOS devices, please make sure that the units are all connected to the same WI-Fi router.  Once this has been done you should be able to print.
    The initial Wi-Fi setup of the MG3222 would have to be done from a compatible Windows or Mac OSX computer.
    If additional assistance is needed, feel free to call us at 1-800-OKCANON.
    Did this answer your question? Please click the Accept as Solution button so that others may find the answer as well.

  • Help comparing the value of a button using the Property Node (I get a variant)

    Dear Sirs:
    (I'm using LabView 6. I guess the solution is different for 6.1)
    Currently I have created an array of Boolean RefNums (which point to many, many buttons). When I need to know when any (and which) of the buttons was pressed I just compare every element on the array with the constant TRUE. It fact, as the array is built from RefNums, I should compare the VALUE from the Property Node.
    The problem here is that the Property Node for this type of Boolean is a LV Variant, and I need to compare this with a TRUE/FALSE value.
    I tried to convert the TRUE constant to a LV variant and visc. But nothing works... I always get that none of the buttons was pressed.
    Here it co
    mes the question: "How can I compare the value of a Property Node for a Boolean (Button) with a TRUE (or False) constant?"
    BTW, maybe I should explain why I'm using RefNums instead of the direct values: As my project requires tons of buttons, I would preffer using RefNums to refer to them. (I.E. I could use a single VI that takes the RefNum and formats the button to hide it for certain users).
    I have enclosed a VI that contains what I've achieved until now, which is nothing
    I appreciate your time and help.
    Best regards,
    JAVIER VIDAL
    Attachments:
    Other_Main_Menu.vi ‏103 KB

    Javier,
    There is another problem in your code: the booleans are not polled by the main loop so they will remain false until the user presses them again. This renders the boolean latch action useless.
    What you can do is to change the mechanical action of the booleans to non-latch. When you detect a "true" in the polling loop, set the boolean to false again. One added benefit is that once all boolean are non-latch, the value property won't be a variant but a boolean so conversion is no longer needed.
    LabVIEW, C'est LabVIEW

  • Don't know how to use the swing timer

    Hi there,
    I did this stupid game for training purposes: There are 3 buttons, 2 of them are "correct", 1 exits the program and you lost.
    It works so far but when clicking the "wrong" button I thought of changing the frame to red, let the program wait for another second and only then closing the window. But somehow that doesn't work. I understand that I have to use the timer class, but somehow I don't really know how.
    Thanks for helping.
    Modify the program of Exercise 3 so that only one button exits the program. If the user clicks on any of the other two
    buttons, the frame just changes color. The user keeps clicking until the "loosing button" is clicked. The user's goal
    is to click as many times as possible.
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import java.util.Random;
    public class Kap59A4 extends JFrame implements ActionListener
      JButton button1 ;
      JButton button2 ;
      JButton button3 ;
      JLabel noGames ;
      int gameCounter = 0;
      // constructor
      public Kap59A4(String title)                          
        super( title );
        button1 = new JButton("Button 1");
        button2 = new JButton("Button 2");
        button3 = new JButton("Button 3");
        noGames = new JLabel("Game#:  ");
        // register the Kap59A4 frame as the listener for the button.
        button1.addActionListener( this );
        button2.addActionListener( this );
        button3.addActionListener( this );
        setLayout( new FlowLayout() );
        add( button1 );
        add( button2 );
        add( button3 );
        add( noGames );
        setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE );  
      public void actionPerformed( ActionEvent evt)
        Random rand = new Random();
        int number = Math.abs( rand.nextInt() )%3; // number gets a number from 0 to 2
        if (number != 0)
          gameCounter++;
          noGames.setText("Game#: "+ gameCounter);
          getContentPane().setBackground( Color.green );
          repaint();
        else
          getContentPane().setBackground( Color.red );
          new Timer(1000, this).start();
          System.exit(0);
      public static void main ( String[] args )
        Kap59A4 demo  = new Kap59A4( "Click a Button" ) ;
        demo.setSize( 300, 100 );    
        demo.setVisible( true );     
    }

    Rather than pass the Timer constructor this, which would be the JFrame itself, thus resulting in the action handler for the buttons being invoked again, you should probably pass it a whole different ActionListener instance that performs the precise action you want to happen a second later.
    And actually, you should probably do that for all the buttons as well -- give each an inner class implementing ActionListener so you can control the behavior of each button, and don't make the JFrame subclass implement ActionListener. Furthermore, I'd advise against subclassing JFrame.

  • I don't know how to use the WBF(windows biometric framework),who can help me ?

    I need to use the WBF to write a fingerprint guidline,but i don't know to do ,is there anyone who can  help me ?

    I need to use the WBF to write a fingerprint guidline,but i don't know to do
    Start here:
    Windows Biometric Framework API
    http://msdn.microsoft.com/en-us/library/windows/desktop/dd401509%28v=vs.85%29.aspx
    Biometric Devices
    http://msdn.microsoft.com/en-us/library/windows/hardware/ff536448%28v=vs.85%29.aspx
    Designing Windows Biometric Framework fingerprint management applications
    http://msdn.microsoft.com/en-us/library/windows/hardware/dn613904%28v=vs.85%29.aspx
    Also see:
    Windows Desktop Development > Application Security for Windows Desktop
    https://social.msdn.microsoft.com/Forums/windowsdesktop/en-US/home?forum=windowssecurity
    "Require fingerprint authentication to retrieve data?"
    https://social.msdn.microsoft.com/Forums/windowsdesktop/en-US/667b91ee-820d-4759-902c-4163ed3d2859/require-fingerprint-authentication-to-retrieve-data?forum=windowssecurity
    Windows Desktop Development > Development with the Windows Sensor and Location Platform
    "What conceptually is a sensor?"
    https://social.msdn.microsoft.com/Forums/vstudio/en-US/edd0c260-2dcb-4225-904c-42f355a6e43e/what-conceptually-is-a-sensor?forum=windowssensorandlocationplatform
    - Wayne

  • Bug or I don't know how to use the software?

    I am using shared variables to summarize data to a main report for orders (in the main report) and credit notes (in the subreport) to the main report. I then have a formula that restates the sum of my orders per salesperson, done so that I can use that formula in a chart.
    When I attempt to use that formula in a summary on my chart, it disregards the element of the original formula that was from the subreport (the credits) and only shows the part of the subtotal that relates to the main report.............
    Is there a trick to this?

    Hi,
    Try creating a running total in the subreport.
    Pass it in the main report and then use it in the chart.
    Regards,
    Sumit Kanhe

  • I lost my iphone and I don't know how to use the "fined my iphone" app

    Hi, can someone help me how to find my iphone using the app "find my iphone"?

    Hello,
    Do you have connected your iPhone to your iCloud account ?
    If yes, do you have then allowed the localization ?
    If yes, go to www.icloud.com and log in with the same iCloud account you have used on your iPhone and select the "Find my Phone" app.
    Arnaud

  • I have just purchased a new iPad from apple and I don't know how to use it. is there somewhere that I can learn the basics

    I have just purchased a new iPad from apple and I don't know how to use it. is there somewhere that I can learn the basics

    Out of a silly curiosity, in what way did Ralph's reply solve your problem? (not that Ralph doesn't deserve recognition, mind you.)

  • First time using don't know how to insert the video to start editing

    first time using don't know how to insert the video to start editing

    First thing you should know is that After Effects is not a video editor. Premiere is for putting shots together to tell stories (which is editing), After Effects is for creating those shots (compositing and visual effects) and creating motion graphics.
    To use AE, start here: Getting started with After Effects

  • I have a MacBook Pro, I want to copy Itunes files to an SD card to play in my car, the SD Card doesn't appear in Itunes when I insert it, and I don't know how to convert the files to the correct format, can anyone help?

    I have a MacBook Pro, I want to copy Itunes files to an SD card to play in my car, the SD Card doesn't appear in Itunes when I insert it, and I don't know how to convert the files to the correct format, can anyone help?
    Thank you

    So it seems from reading the COMMAND manual that my first issue is that I used a 16GB SD card, and the manual says it will only recogize up to a 2GB SD card. I did use my MB Air's SD card slot and crated a folder and dragged the music files to it, then to the card. So I am going to get a 2GB card and try that next. Otherwise just stick with the iPOD connected. At least that is 8GB

  • I am a teacher and would like to know how to use the iPad in the classroom?

    I am a teacher and would like to know how to use the iPad in the classroom?

    Since this is a user forum you might wish to do some Google searching on your topic. There are hundreds of ways an iPad could be used in the classroom both by teachers and students. Apple is very much involved in education so you may wish to look further into their programs, but that is not done on the forums but through Apple's website. For example, Students - Mac, iPod, iPhone, and iPad for college and Education - iPod touch and iPhone enable on-the-go and Education - iPad makes the perfect learning ...

Maybe you are looking for

  • How to reduce the level of free text / direct purchasing

    A common problem at all sites is how to reduce the level of free text / direct / non catalogue based purchasing. This is where users enter an account assignment and free text instead of using an existing material number. This is often the case becaus

  • Connecting a 30" DVI-D Display to TBD?

    Good evening! I´d like to ask if anybody had already tried to connect a Thunderbolt-to-DVI-D Adapter to the Thunderbolt-port of a Apple 27" Thunderbolt Display? I have an old 30" Samsung LCD (2560x1600) with a DVI-D input and would like to connect it

  • Data base

    Hi all : Issue is data base  Please attach see file , copy this file to desktop ,, then run create table  vi ,,, as you see its will save the data in access . Please see  I took the this example from national instrument example directory C:\Program F

  • Not receiving MouseWheel message because focus is removed from control

    I am trying to implement some mousewheel interaction as can be seen in e.g. Visual Studio. When the mouse is over a control and the mousewheel is scrolled the control under the mousewheel is scrolled instead of the control that has focus. I do this b

  • HOWTO: start/stop htmldb processes in Unix

    I've installed 10gR2 DB, and then installed HTMLDB from the companion CD. I could access the server no problems, so my configuration is good and working. The issue is how do I start/stop the processes. It appears (from this forum) that Windows instal