How can I display data gathered in a subVI in a graph of the main VI?

I have written a largish application (~50 VI's) which acquires, analyzes, display and saves data from an instrument with a built-in DAQPad. My problem is that my block diagram is rather messy by now. I'm using an event structure in my main VI which reacts to buttons being pressed on the front panel. During data acquisition (one frame of the event structure), I need to do a lot of data processing, and I'm displaying both raw data and analyzed data on the front panel. I'm using a lot of subVI's for this, but I always need to get data out of the subVI's again to display it on the front panel, cluttering my block diagram. It would be much nicer if the subVI could update the main VI's graphs and indicators. I just found two examples with control references which show how a subVI can modify e.g. a 3Dgraph of the main VI, but I'm unable to use this with normal graphs and charts - I can't find a way to update the actual data in the plots (I can scale the plot or color it blue etc - but I really want to change the data it's displaying, not color it blue). Is there anything I'm missing? Is there example code for this kind of problem?
best regards
Martin

im assuming that you want to update your graphs and indicators as you are performing your DAQ, otherwise, you can pass out your value/s when the DAQ completes.
I have attached a very simple example of using a reference to update your front panel graph.
Hope this helps.
Attachments:
Reference Example(LV7.1).zip ‏17 KB

Similar Messages

  • How can I enter data in an input schedule on a member in the EPM Add-On that is not a base member?

    Hello, all,
    how can I enter data in an input schedule on a member in the EPM Add-On that is not a base member?
    E.g. I want to implement a top-down-planning scenario and I have the following hierarchy:
    Europe
         Germany
         France
         UK
         Spain
         Italy
    How can I enter a value on Europe in an input schedule in order to allocate this value afterwards?
    Thanks in advance and best regards
    Gerd

    Gerd,
    It should be something like below -
    EuropeInput
    Europe
         Germany
         France
         UK
         Spain
         Italy
    EuropeInput shall be kept out of hierarchy and should be a base level member. Users will enter the numbers in this member. In your script logic, you will make use of this member to allocate the data in Bas(Europe) i.e. Germany, France, etc.
    Effectively, after allocation the same data will be rolled up to Europe.
    Many top-down planning would use such work-around as BPC doesn't allow writing to parent node.
    Regards,
    Ashish

  • How can I retrieve data on a time machine if I have forgotten the password?

    How can I retrieve data on a time machine if I have forgotten the password?

    There are so many passwords.. which one do you mean?
    TC password or disk password in the TC.. no problem.. soft reset.
    Or recover the password.. via the Tesserax method.
    https://discussions.apple.com/docs/DOC-3372
    If you encrypted the backup in TM and have forgotten that password you are doomed.. there is no way to recover it I know of.. there is a warning.. very clear.. do not forget the password.
    http://pondini.org/TM/31.html
    Pink box at the bottom.

  • How can I display Task's "Resent Changes" or "Updates" or "History" in the project site

    Hello,
    When a task is assigned to a team member, the team member may keep sending frequent updates "Status" for the task to the approving whenever he finishes anything in the task. These updates can be shown in the Task Details (in PWA).
    My question is, how can I display the Task's "Resent Changes" or "Updates" or "History" in the project site, so ALL the team member can see the "Progress" of that task?
    Thanks

    Hi, 
    I'm not sure it is relevant that all team members see all task updates through the project site. It will be a lot of information that might not be relevant and could generate confusion.
    Instead of this, I'd suggest to share the project schedule through the project site with regular baselines and eventually to review task update/approval with team members in PWA during a weekly status meeting.
    Hope this helps,
    Guillaume Rouyre, MBA, MCP, MCTS |

  • How can i display data in the table?

    i have a vi that reading the data 1 by 1 (according on what you have chosen)data is displaying in the the table, also 1 by 1 in 1 column only.
    I want them to look like this:
    apple | epol | apol
    mango | manga| maga
    (if it is Ok, can i have an example how can i do this?)
    Thank You

    In LabView 6 or 7, you can use a table control. You can control the displayed size programmaitcally with a property node or by editing the front panel control.
    Look at the table examples that ship with LabView. From any LabView window, goto Help >> Find Examples >> Search, then enter TABLE ins the box labeled Type a keyword to find.

  • How can I display date+time and not the point number in excell?

    Hi everyone,
    Could anybody tell me how I can save date + time to a file, so that  I can display on a diagram(excel) : date+time in (ox) and data (oy)? :
    My program sets in (ox) the point number and not the date+time....( although  date and time are written correctly in the column...)
    Any help would be great,
    Thanks,
    regards,
    Marc

    hi there,
    excel uses 01.01.1900 00:00 as the time offset, LabVIEW uses 01.01.1904 02:00, so you can't display the correct datetime in excel when you write the time as a fractional number of seconds from LabVIEW. you must format the datetime in LabVIEW to a string and write that to the column. use the "Format Date/Time String" - function and for example "%d.%m.%Y %H:%M:%S%3u" as the format string (see the functions help for more examples). you also could format your data to a string using "Format Into String" - function and write the file as a 2D string array. the decimal point you have to use depends on your system and its settings, but you can specify the decimal point in the Format string like "%.;%f" (means fractional number with point as decimal point).
    best regards
    chris 
    Best regards
    chris
    CL(A)Dly bending G-Force with LabVIEW
    famous last words: "oh my god, it is full of stars!"

  • How can I display my bookmarks toolbar with text only, but still have the rest of my toolbars (search, navigation, tabs, etc) display icons?

    I have a bunch of bookmarks in my bookmarks toolbar. How can I make my bookmarks toolbar display only text but have my other toolbars (navigation, etc.) display only icons? It seems like I have to choose between icon, icon and text, or text for all of the toolbars. I want it to look like it did with my old version of Firefox. All my bookmarks in the toolbar fit, but now they dont because I cant get rid of the icons.

    You can do that with the Bookmarks Deiconizer extension - https://addons.mozilla.org/firefox/addon/bookmarks-deiconizer

  • How can I pass data generated in a SubVI inside a Case Structure out of the Case Structure?

    Hello,
    I am using a USB 2701 to control a heater.  I have three SubVIs that are all working properly on their own.  I'd like to use an Enum to select which of the SubVIs is running at a given time.  The problem is that no data is passing out of the case structure.  How can I pass the temperatures and heater outputs acquired by the SubVIs to the main VI?  I've attached my some of my code below.  I can't attach more than 3 files, but you can see how the main VI is configured.  Like I said, the SubVIs are working individually, so you shouldn't really need to look at them.
    Thank you,
    CJones581
    Attachments:
    RampHeater6-21-07.vi ‏305 KB
    69_Heater_Case.vi ‏23 KB
    HeaterTCD6-21-07.vi ‏210 KB

    CJones,
    You might check a couple of things.
    Your HeaterTCD... VI has a While loop with a stop button condition.  HeaterTCD pass out values only when it finishes running.  If it doesn't pop open the front panel (which usually doesn't happen when running a SubVI) you could run into a stuck loop because you don't have access to the Stop button.  This could appear in the form of no data being passed out (because the SubVI never stops running).  The primary VI opens the HeaterTCD VI, starts it, and waits for the VI to finish and pass final values .
    Secondary note: Unless you want your SubVI panel (which probably isn't open when running the main VI) to update continuously, consider moving your Temperature Graph and Temperature oC indicators outside the while loop.  Pass final values to them via a tunnel, since the main VI will only read their values after the loop finishes running, anyway.
    It might help to add error management to HeaterTCD like you have for RampHeater.  If you connect error lines with Error Outs to your main VI, that will help tell if there is an error somewhere that is preventing info output.
    RampHeater SubVI has the same issue with the stop button.  It is also probably getting stuck in the While loop waiting for a manual push of that SubVI's Stop button.
    An easy way to test this would be to set up a logic circuit so that when the While loop iteration counter reaches a certain number, it registers True and sends it to the conditional.  I know this isn't what you want to do long-term, but if that lets your SubVI return outputs it means that the SubVI was just never stopping.
    Hope that helps.
    David C, Applications Engineering
    David C
    Applications Engineering

  • How can you save data to a spreadsheet and use different worksheets in the spreadsheet?

    I am trying to save data to a spreadsheet.
    Each set of test data needs to be saved under a different worksheet. Is this possible and how can I do it?

    As the example that Dennis pointed out, this can be done using activeX. In addition to that example I have another that demonstrates how to create a new workbook with multiple worksheets and save data to each of them. I hope that between the two you can get an idea of what to do.
    Brian
    Attachments:
    xlexample.vi ‏66 KB

  • How can I use a cfwindow with a form in it to update the main page?

    This seems simple enough but I can't figure it out. My main
    page calls a query to get a list of departments. I have put this
    list in a table inside a cfdiv tag. I have an add department link
    on my page. When the user clicks on this link, I want a popup
    window (cfwindow) to display containing a form to add a department.
    Then when the user submits the form, the form should disappear and
    the main page should show the updated list of departments.
    I can't get the form to close without getting an error
    stating that there already is a window with that name and the new
    data doesn't display unless I refresh my screen.
    Here's my departments.cfm page:
    <html>
    <head>
    </head>
    <cfinvoke component="department"
    method="list"
    returnvariable="departments">
    </cfinvoke>
    <body>
    <cfwindow name="deptWindow" title="Department Window"
    draggable="true" resizable="false"
    initshow="false" height="400" width="600" x=200 y=100>
    <cfform action="processDepartment.cfm"
    onsubmit="ColdFusion.Window.hide('deptWindow')">
    Department:
    <cfinput type="text" name="deptname">
    <cfinput type="submit" name="submit">
    </cfform>
    </cfwindow>
    <a href="#"
    onClick="ColdFusion.Window.show('deptWindow')">Add
    Department</a>
    <cfdiv>
    <table>
    <tr>
    <th>Department</th>
    <th>Action</th>
    </tr>
    <cfoutput query="departments">
    <tr>
    <td>#deptname#</td>
    <td><a href="##"
    onClick="ColdFusion.Window.show('deptWindow')">Edit</a></td>
    </tr>
    </cfoutput>
    </table>
    </cfdiv>
    </body>
    </html>
    Here's my department.cfc page:
    <cfcomponent output="false">
    <cfset THIS.dsn="cf8test">
    <cffunction name="list" access="remote" output="false"
    returntype="Query">
    <cfquery name="departments" datasource="#THIS.dsn#">
    SELECT department_id, deptname
    FROM departments
    ORDER by deptname
    </cfquery>
    <cfreturn departments />
    </cffunction>
    <cffunction name="add" access="public" output="false"
    returntype="Boolean">
    <cfargument name="deptname" required="true"
    type="string">
    <cfquery datasource="#THIS.dsn#">
    INSERT INTO departments(deptname)
    VALUES (<cfqueryparam value="#Trim(ARGUMENTS.deptname)#"
    cfsqltype="cf_sql_varchar">)
    </cfquery>
    <cfreturn true />
    </cffunction>
    </cfcomponent>
    And finally, here's my processDepartment.cfm page:
    <!--- Form Field Validation --->
    <cfparam name="FORM.deptname" type="string">
    <cfif IsDefined("FORM.id")>
    <cfset method="update">
    <cfelse>
    <cfset method="add">
    </cfif>
    <cfinvoke component="department"
    method="#method#">
    <cfif IsDefined("FORM.id")>
    <cfinvokeargument name="id"
    value="#FORM.id#">
    </cfif>
    <cfinvokeargument name="deptname"
    value="#Trim(FORM.deptname)#">
    </cfinvoke>
    <!--- When done go back to the Departments listing --->
    <cflocation url="/departments.cfm">

    Hi Jeff,
    One way to do it is to write a JavaScript function that binds
    to your CFC. The CFC should both insert the user values, and then
    select all of the departments from the department table, and then
    return the query set to the page. I wrote sort of a test page which
    gets the state from the States table according to the state
    abbreviation that the user types in from a CFWindow. The table
    never gets updated, however, the result comes back from the CFC
    through AJAX, then updates the main page. You can use this same
    idea but you'll have to update your CFC a little bit. However, the
    idea is the same.
    Here's the code for my get State application. Especially
    notice the following three lines of code in the JavaScript function
    called getStates:
    var d = new getStates2(); //this is the name of your CFC
    d.setForm('form1'); //not sure if you need this, but I found
    it somewhere
    var stateName = d.getAllStates(); //the name of the function
    inside your CFC
    Anyway here's the code in full:
    <style>
    .stateClass {
    font-family: arial;
    font-weight: bold;
    font-size: 12pt;
    padding-top: 10px;
    </style>
    <cfajaxproxy cfc="getStates2">
    <script language="javascript">
    function enter_pressed(e){
    var keycode;
    if (window.event) keycode = window.event.keyCode;
    else if (e) keycode = e.which;
    else return false;
    return (keycode == 13);
    function getStates()
    if(document.form1.theState.value == '') {
    alert('Please make sure the textbox is not empty.');
    return false;
    var d = new getStates2();
    d.setForm('form1');
    var stateName = d.getAllStates();
    ColdFusion.Window.hide('stateWin');
    if (stateName == '')
    document.getElementById('stateDiv').innerHTML = 'No such
    state';
    else
    document.getElementById('stateDiv').innerHTML = 'The state
    is ' + stateName;
    </script>
    <cfwindow name="stateWin" x="100" y="100" width="400"
    height="200">
    <form name="form1" method="post" onsubmit="return
    false;">
    <input name="theState" type="text" size="5"
    onKeyPress="if(enter_pressed(event)){ getStates() }"
    />
    <input type="button" value="get state"
    onClick="getStates()">
    </form>
    </cfwindow>
    <div id="stateDiv" class="stateClass">
    </div>
    <a
    href="javascript:ColdFusion.Window.show('stateWin')">find a
    state</a>

  • How can i display data from mysql (cant do it using netbeans)

    im confused with changing ResultSet-->List->Array;
    i already done displaying a data table from mysql but im lost on how to display mysql rows to ComboBoxes and JLists...
    im new here.
    how does the setModel() work?
    i hate this GUI stuff.. = (
    thanks...

    im new here.
    how does the setModel() work?
    i hate this GUI stuff.. = (You claim you have JDBC working already, if I understand your post correctly. So you're asking a question about GUIs in the JDBC forum. Not a good strategy. Try the Swing forum.

  • How can I display data from ResultSet to a component like jLable and JTable

    hi there
    My code as shown below
    boolean fillTable(int type){
            try{
                //model.setRowCount(0);
                if(type == 1){
                    System.out.println("line 1");
                    model = new DefaultTableModel(new Object [][] {   },
                            new String[] { "\u1200 Code", "Description" });
                    System.out.println("line 2");
                    while(lookup.rs2.next()){
                        System.out.println("line in while");
                        model.addRow(new String[] { lookup.rs2.getString("code"),
                            "\u1201 " + lookup.rs2.getString("amdescription")});
                          //System.out.println("While : " + lookup.rs2.getString("code") + " " +
                            //      lookup.rs2.getString("amdescription"));
                    lookup.rs2.last();
                    String str;
                    str =  new String (lookup.rs2.getString("amdescription"));
                    jLabel2.setText(str);
                    System.out.println("line 3");
                    tblLookup.setModel(model);
                    System.out.println("line 4");
                else if(type == 2){
                    System.out.println("line else if 1");
            }catch(Exception ex)    {
                System.out.println("Exception @ MilLookupDisplay fillTable : " + ex.getMessage());
                return false;
            return true;
        }I can read from access db and put the resultset on rs2 , it works fine
    my problem is when I try to display the data ( which is amharic unicode character ) on jTable and jLabel as shown it displays '???'
    besides I have checked the font by giving unicode like '\u1200' on both component displays it well
    so is there something to do before trying to display unicode characters from resultSet
    please I ' m waiting
    thanks a lot

    http://forum.java.sun.com/thread.jspa?threadID=5153938

  • How can we display date on the home screen on 5800

    Hi,
       I am not able to find a way to display the date along with time on home screen.
    Solved!
    Go to Solution.

    At the centre top portion of 5800 homescreen, it displays the Telecommunication Operator name and the profile chosen as well as the DATE. If you have chosen any other profile than General, then the date will not show up. Please verify if you are on General Profile by simply tapping the profile name (General/Silent/Offline/Meeting etc) and a drop down list will appear for you to change your profile.
    Alternatively, you can go to Menu > Setting > Personal > Profile to change your active profile.
    Please hit Kudos if it helped, thanks!
    was: 3310--> N80 v5.0719.0.2--> N82 v31.0.016; now: 5800xm v40
    KeN82Ny

  • How can i display data on tha same page in jsp/servlet

    Hello friend,
    I am storing 50 items in a dataBase. i ve two buttons/links name previous and next. i ve to display 10 items each time in the same page when i click next button and the revrese for previous. through JSP/Servlet.
    Any suggestions will be appreciated.
    chintan anand

    I'm not sure this is the best practice... try to add the item in the arraylist, then when u click next button, add 10 to the counter. subtract if it is a previous button. thats it!
    ex..
    for(int x=counter;x<=arraylist.lenght();x++)
    ....print item here......
    }

  • How can I display not only one account's mail but all in the central inbox?

    I am changing from OSX (machines with OSX 1.8.5 and Mavericks) mail to Thunderbird.
    However, one feature of OSX Mail I can't find in Thunderbird or have overseen it:
    I use several mail accounts, that OSX Mail is showing me on top level in one general inbox.
    Below that level, I can of course jump into the different accounts if needed to read mails only related to that account.
    Is there a similar view in Thunderbird?
    Thanks for any help
    Christoph

    http://kb.mozillazine.org/Global_Inbox

Maybe you are looking for

  • How do I get my laptop to connect

    Hey all, I have been searching and killing my brain cells for 2 hours. I need to know how to connect a laptop-fresh install of Windows XP Pro- to my Linksys 150? I have tried everything I think. The 150n is already running 2 computers, now I just nee

  • CVP Record Agent Greeting Failing

    I'm setting up the default Record Agent Greeting application with CVP 10.0, UCCE 10.0, Finesse 10.5.  I can dial the entry point number from Finesse and it goes to the ICM script.  I hear the message "Please select the greeting you wish to hear or re

  • HELP - USB Controller Shows up, but won't work

    I bought a USB controller off eBay and it is reconized my Mac OS X under System Profiler and ControllerMate http://img523.imageshack.us/img523/8374/picture2tx2.png and it wont work, help would be much appreciated.

  • How can I change the value used in a Criteria Rule in a Subscription agent

    Dear mobile heroes.... How can I change the value used in a Criteria Rule in a Subscription agent in a quality environment? (CRM 70 SP04). I have built a subscription agent in dev, which uses a static where clause to filter activity_object on VKORG.

  • I can no longer see images received by e-mail from trusted sources

    I can no longer see any images sent to me by e-mail from trusted sources. How can I correct this problem?