Graph does not update in labview

I am writing a vi and am having trouble with a graph. I am collecting some data every 5 seconds within a while loop. If I send my data outside the loop to an xy graph and turn on auto-indexing, I can get the graph I desire. However, the graph doesn't update. In fact, it waits until I abort the vi by pressing the stop button before it ever draws anything on the graph. I am new to Labview, so perhaps I am missing something simple. Any help would be appreciated. I would like my graph to update with every measurement I take (every 5 seconds). Thanks!

> missing something simple. Any help would be appreciated. I would
> like my graph to update with every measurement I take (every 5
> seconds). Thanks!
The problem isn't specific to graphs. Data leaves a loop when the loop
completes, therefore your program states that you want to wait until the
loop completes, then send that data to the graph.
What you want is to place your graph terminal inside the loop. If you
just send an individual point to a graph, that doesn't make a very
interesting plot, so what you really want is to place the graph terminal
inside the loop and plot all the data accumulated thus far. To do this,
add a shift register to the loop and use an array builder to accumulate
the data, plotting it as you go. You probably also want
to popup up on
the left shift register and create a constant to start the loop out empty.
Greg McKaskle

Similar Messages

  • Graph does not autoscale when it's value is updated in a subvi and Defer Panel Updates is on

    Hello,
    I have a main VI containing several xy grpahs, which I update from a sub vi. In order to cut down on front panel redraws I defer panel updates while the graph values are updated and then redraw the FP after this has been done. However when I do this the graphs do not autoscale properly. I've attached two vi's as an example. Run the Main vi, if the Defer Panel Updates boolean is false then everything works fine, if it is true then the graph does not autoscale.
    I have found a previous post that mentions something similar (here). Has this been fixed or is there a work around.
    I'm using LV 8.5
    Thanks
    David
    Attachments:
    Main3.vi ‏22 KB
    Sub1.vi ‏14 KB

    Hi Matthew,
    Thanks for your reply, it fixed the problem. However it has thrown up a different but related issue.
    In my application the user can select how many graphs to display and I
    programmatically calculate the size and position of each graph. If any
    of the graphs overlap, even slightly, and defer panel updates is on
    then only the topmost graph autoscales correctly, the others don't at
    all, although the data they display gets updated. Turning autoscale off
    and on again for a particular graph rescales that graph, presumably
    because it has been forced to.
    I have attached a test case with 4 graphs. The size and position of the
    graphs are set by the 'Offsets' cluster. Click 'Rearrange' to get it to
    recalcute the positions. If you change the Vertical Gap or Horizontal
    Gap values to 0 or negative then the graphs will overlap. With Defer
    Panel Updates off there is no problem. With it on only the topmost
    graph updates properly.
    My current workaround is to ensure the graphs don't overlap, but I'm guessing they shouldn't be doing this anyway.
    David
    Attachments:
    PositionsCalculator.vi ‏19 KB
    Main21.vi ‏50 KB
    Plot.vi ‏22 KB

  • Time stamp does not update automatically

    Hi, All. I want include the time stamp (yyyy-mo-dd-min-sec) in the file name. However, the value of the time stamp does not update automatically/synchronizes with the computer clock at each new run. I need to do it manually with the right click and update the time to the current.
    How can I solve this? Thanks a lot in advance.

    What does this have to do with NI counter/timer hardware?
    What language are you using and what function are you using to get a timestamp? If the language is LabVIEW, then all you need is Get Date/Time in Seconds. If you are using a front panel Time Stamp control, then you are using the incorrect function.

  • Bug:  Histogram Does Not Update when Using Painting Tools

    I was investigating something else, and I saw something not working...  I'm under the distinct impression that the Histogram panel should automatically update after every operation.  Having the Histogram panel displayed full-time on the screen, it should always be up to date.
    However, when I Dodge or Burn or even paint color on an image, the Histogram is not updating. 
    If I select one of the History states I've just created, it updates.
    Consider this simple sequence of operations:
    I'm able to reproduce this failure in Photoshop CS5 as well, BUT NOT IN CS4 (it updates in Photoshop CS4 after every painting operation), so clearly it's not a new bug, though somehow I've managed not to notice it in my years of using Photoshop CS5.
    Is it broken like this for everyone in Photoshop CS5 and 6?
    Could this be some twisted attempt to try to optimize painting performance?  If so, why isn't there an option to allow a user to request it to update on every operation on a fast computer with cores out the wazoo?
    -Noel

    More info:
    Just poking around in Photoshop CS6 to see what, if anything would make the Histogram display update...
    Even though the Refresh icon is disabled (and the "Uncached Refresh" entry in the fly-out menu is grayed-out), double-clicking in the topmost histogram display will force it to update (as described above by Conroy in post #1 above).
    If I change the selection Channel field in the Histogram panel, mostly it does not update, but when I change between some of the settings - for example between RGB and Luminosity - the graphs update.  Amazingly they revert back to the un-updated state if I switch the channel BACK to what it was!
    Making a selection DOES cause it to update.  
    Choosing Select - Color Range (just starting the function) DOES cause it to update.
    Hitting the quick mask mode button DOES cause it to update. Notably Edit in Quick Mask Mode is in the Select menu.  Could an association with Select be a clue?
    This bug is easy to reproduce, is shown to be a problem across multiple versions and multiple OSs, and in at least one case (Photoshop CS4 x64 on Windows 7 x64 here) it can be shown to work properly, so the code is probably not far off being right.  Seems to me this should be the kind of thing a junior engineer could find and fix so someone, say,  at Chris Cox's level could have it done before 5 today... 
    -Noel

  • Graphs do not update when hidden

    I have a tab control where each tab has a graph that is embedded inside of a typedef. When the program is executing and I change tabs, it takes a few seconds for the graph to update even though the data has been long posted. This would be ok, except when the program ends and I change to a tab, it does not update the control accordingly.
    Why does this happen. Are there any solutions?

    These pictures show the tab control. The graph and numeric control are a custom control on the tab page. During the test I use a reference to the custom control to read the numeric control and write to the graph using the value node. Probing this point shows the data being written to the value node but unless the particular page is open at the time it doesn't get written to the display. I even tried writing to the "value (signaling)" and using an event to write the data to a value node rather than a reference but it still doesn't update the display unless that tab is visible at the time.
    The only way to do it seems to be putting a graph indicator on the tab and writing to that directly. It means a lot of recoding and a messier result :-(
    Attachments:
    Tab control.JPG ‏73 KB
    The test.JPG ‏29 KB
    Event.JPG ‏39 KB

  • Shared Variable does not update when typedef is changed

    I have a shared variable of type custom control (typedef made up of a cluster). When I chang the typedef, e.g. the name or type of one of the fields in the cluster, and then save it, the shared variable does not update to reflect this change. That is, if I place the shared variable on my block diagram and do a "UNBUNDLE BY NAME" on the output, I see the old fields. I have to go back to the properties of the shared variable, change its data type, apply it, then go back and change it back to my custom control.
    Anyone else seen this behaviour? Anyone know how to get the shared variable to update without going through this procedure?
    Bill
    “A child of five could understand this. Send someone to fetch a child of five.”
    ― Groucho Marx

    I guess I should have included this information:
    LabVIEW 8.2.1 using Project Explorer.
    “A child of five could understand this. Send someone to fetch a child of five.”
    ― Groucho Marx

  • My firefox beta 12 using Linux platform does not update to firefox RC1 via the "check for update" function. I know windows' beta version had this fixed, when would Linux get similar support ?

    Current platform : Linux
    Current firefox version : Firefox 4 beta 12
    Issue : does not update to RC 1 using the check for update feature.
    Background : previously downloaded beta 8 and then it automatically updated to beta 12 using update features but for RC1, it does not.
    I know users under Windows platform had same problem but was resolved and they can now update via check for update feature.
    Please implement for Linux users too.
    Thanks !!

    If you can't update then you can download and install the full Firefox 4 RC version.
    * http://www.mozilla.com/firefox/all-beta.html

  • Can't add music my iPhone from iTunes.  When I try to drag a song over to my phone, I get the circle w/ the syncing line through it, but it does not update/load.  [Manually manage music and videos] is checked. And, this is the only Mac I have ever used to

    Can't add music my iPhone from iTunes.
    When I try to drag a song over to my phone, I get the circle w/ the syncing line through it, but it does not update/load.
    [Manually manage music and videos] is checked. And, this is the only Mac I have ever used to add music to my phone.
    Also, just updated the phone's software today, and iTunes' software is already up to date.

    Hi Gregg,
    Have you tried resetting the device (nothing will be lost): Hold down the Home and Power buttons at the same time and continue to hold them down until the Apple appears (up to 30 seconds). Once the Home screen redisplays, see if your Music app is behaving normally.
    Cheers,
    GB

  • HT2513 The date on my dock does not update automatically ? - Ps anybody.

    I use MACCBOOK PRO with OS X ver 10.6.8.
    I  Cal Version 4.0.4 (1395.7)
    Sometimes the current date does not update on my ical icon in the dock. After clicking on it the date becomes OK.
    I would appreciate if someone has a solution.

    I solved the problem by uninstalling Glims.

  • Mobile.me Calendar does not update/sync on iPhone

    Since I did my upgrade to the new version of Mobile.me Calendar (as requested by Apple!), my iPhone no longer shows entries that I have typed into the Mobile.me Calender website. I no longer use iCal because Apple said it would not work with the new version of Calendar on Mobile.me, so I did the upgrade to stay in sync with calendars on my mobile.me site and iPhone, but the iPhone does not update. I deleted my calendar entries on my iPhone hoping that the Mobile.me would re-sync the data, but that didn't happen either. Here is my info:
    iPhone version 3.1.3(7E18)   Model MA712LL (first original iPhone)
    What else can I tell you to help me please?

    Please always post your System details when you have a question. The upgrade to the new MobileMe calendar produces different results, and different problems, with different versions of OSX.
    Snow Leopard: during the upgrade process your iCal calendars should be moved to MobileMe (this can take some time and you have to wait for it to happen). Once done, your iCal reads the calendars from MobileMe so any changes made in either place will be visible immediately. If this has not happened then this Apple Tech Note provides instructions:
    http://support.apple.com/kb/TS3397
    Leopard: when the upgrade is completed iCal on Leopard will not be able to see the MobileMe calendars until an additional process is carried out, detailed in this Apple Tech Note:
    http://support.apple.com/kb/HT4330
    Tiger: iCal on Tiger cannot read the MobileMe calendars, period. The only workaround is to upgrade to Leopard, or Snow Leopard if possible (Intel Mac required).

  • Manual sync to ITunes does not update music

    I have a generation 3 (I think--it looks like the model number is A1318) IPOD Touch running version 4.1 operating system.  I have ITunes version 12.0.1.26. 
    It does not automatically sync.  When I select manual sync, it appears to go through the process and indicates that it has completed the sync, but nothing has changed.  It does not update the IPOD with new songs from my library.
    Any help would be appreciated.  For example are thees operating systems compatible?  If they are what am I doing wrong.
    Thanks
    Ron

    Try backing up to iTunes and restore from backup
    iOS: Back up and restore your iOS device with iCloud or iTunes
    Note that ll the synced media like apps and music have to be on the computer since they are not included in the backup

  • Batch Split in OBD & billed for the entire Quantity .RG1  register does not update the excise values

    Hi All,
    I am new here . We have batch split in Delivery and 601 happens for the individual batches and billing we bill for the entire quantity . Hence the RG1 does not update the excise values for the batches and it is showing as zero (upon extraction in J2I6). Upon research through the program the latest note which i presume is patched
    The latest note is N158234 which does not show in the program but seems have been patched considering we are using the Latest version of SAP .
    As you see above in the billing we have billed for the whole quantity but RG1 does not update for the since the batches are zero .
    My programmer says because of some note related to cancellation where it says about values H & J in vbfa table and due to which program does not go through the Note for the batch split .
    Now i have checked few other projects in my company and they all seems to be following the program . So i am wondering whether my process or some customization is missing .
    Sales order (no batch determination)  , in delivery the batches are picked through wm to and batch split happens in the delivery . Then billling for the whole quantity . We have automatic excise invoice creation enabled so no J1IIN .
    Can somebody help me .
    Thank you

    My programmer says because of some note related to cancellation where it says about values H & J in vbfa table and due to which program does not go through the Note for the batch split
    Which field (H & J) they were referring in VBFA ?
    i have checked few other projects in my company and they all seems to be following the program
    How about the other projects' values in VBFA where your techinical team is guessing some issue.  Have you compared this?
    Since you have already the note 158234 implemented in your system, ideally, you should not face any issue.
    G. Lakshmipathi

  • HT1277 Mail on my Mac computer does not update when I update my mail on my phone and iPad.  Can anyone help me with this?  Is there a setting I need to check?

    Mail on my Mac computer does not update when I update my mail on my iPhone and iPad. Can anyone help me with this?  Is there a setting that I need to check?

    All that you had to do was to sign into the old account in order to update those apps. What I mean is that you just needed to sign into that account in the store settings like I described and that should have worked. You didnt need to enter the credit card information again - you justed needed to use the old ID and password.
    Anyway, I think the good news is that if everything else is OK with the new account, just download iBooks with the new ID - it's a free app so its not like you have to pay for it again. I'm not sure what the other App is that you are talking about - but if it is the Apple Store App - that is free as well.
    Try this anyway, when you try to update iBooks, just use the old password if the old ID still pops up.
    Did you try signing into the store settings with your new ID and see what happens with the updates then?

  • Yahoo finance portfolio does not update in firefox but is fine in Chrome and IE9

    This problem did not exist under the previous version of Firefox. One can access Yahoo finance my portfolio ok but even with streaming quotes on the portfolio does not update.
    Problem now solved. It was an issue of the Kaspersky root kit certificate

    I don't know if it matters, try this url instead, which is a secured one (https):
    https://twitter.com/

  • Application Compatibility does not update the database.

    Hi,
     I am using application compatibility manager 6.1, and SQL server 2012 as database. ACT run ok and it create the XML file but it does not update the database at "C:\Program Files\Microsoft SQL Server\MSSQL11.SQLEXPRESS\MSSQL\DATA" location.
    I can see the valid XML file but somehow the MDF file of database is not updated so my ACT windows does not showing anything on it.
    Any Help would be appreciated.
    Thanks
    Rakesh Patel
    rakesh patel

    Hi Rakesh,
    I am not sure if you have resloved your issue.
    But for helping others to know what to do if they meet the same issue as yours, I consider to mark the post as answered.
    If you would like further assistance, please post back and we will be always here to help you.
    Any concern about this mark behavior, you can just unmark it.
    Thanks for your understanding.
    Regards,
    Kelvin hsu
    TechNet Community Support

Maybe you are looking for