Refresh a graph programmatically

Hi
I'm trying to capture a screenshot af XY graph and print it to a PNG file.  I'm using Write PNG file to print the image which I grab using theget image invoke node.
My VI is split inot three frames.  
Frame 1 - display VI on the graph
Frame 2 - Modify the two cursor red limit lines using the propert nodes & modify the y axis scale in the ssame fashion.
Frame 3 - Grab the image
The works fine when I have the VI open but when I run it as a subvi the limit lines and y scale modification does not happen, see attached.  It appear the VI has to be openand the disply refreshing.  Does anyone know if there is any way to refresh the display programmaticlaly?
Attachments:
PNG good.PNG ‏9 KB
PNG bad.PNG ‏9 KB

LV does not update the front panel unless it is open.  If you ever compare the performance of a complex VI with the subVIs opened and closed you will quickly see that there is a very good reason for this.  That said, there are a few instances (this particular one comes up several times) where it would be useful.  Someday it would be nice to have a VI property to force FP udpates even when closed which you could use once in a blue moon in cases like this.
When I can't redesign my program to avoid this issue I tend to set the subVI to open when called and to run transparently.  This updates the FP and gives the desired result.  Sometimes the taskbar flashes, but I am used to it.  Perhaps there is a cleaner solution these days, I haven't tried it in a while.

Similar Messages

  • How can I add axis to an XY-graph programmatically (in LV 6i)?

    I am currently using LabVIEW 6i to make a flexible graph window, which can be called and controlled from another VI. It's easy to send commands to the graph window over a queue interface (enabling things like adding and removing plots, changing the names, etc.)
    However, I would also like to add/remove/assign axis like this (i.e. when the program is running). It seems to me that there isn't an attribute or method available on the XY-graph that will allow this.
    My best solution so far is to have a maximum number of axis present, and then hide/show them when axis are removed/created. However, this triggers a bug in LV (AFAIK) when the axis are shown/hidden out of order (they will be shown
    on top of each other). Now this can be solved by setting the positions/sizes of all axis every time, but that seems like a lot of work...
    Is there a way to add/remove axis to an XY-graph programmatically (in LabVIEW 6i)?

    I have not found a way to programmatically create/remove scales in LabVIEW.
    In regards to the error, I would suggest updating to LabVIEW 6.0.2. I wrote a simple VI that tested this funcitonality and did not have any problems. The link to the 6.0.2 update is:
    http://digital.ni.com/softlib.nsf/websearch/F983BDA17B8F401B862569EC005A11C2
    Chris_Mitchell
    Product Development Engineer
    Certified LabVIEW Architect

  • Is it possible to print a waveform graph programmatically from within Labview 7.1.1 Base Edition?

    I would like to be able to print the results of a test from a Waveform Graph programmatically in a Labview 7.1.1 vi.

    Hi
    There is a way of doing it.
    1. Create a sub-vi that will act as your report page.
    2. You can then populate the Front Panel of this sub-vi with all the controls and decorations that you want to print. Make it look like a report page. The controls will need to attached to the connector pane so that you can pass the data into the sub-vi from you main vi for printing.
    3. In the sub-vi, Go to File->Properties->Print Options and make sure that you check Automatically Print Front Panel every time VI completes execution.
    4. Modify your Main VI so that it calls the  "Print Report" sub vi that you have just created on demand e.g. in response to clicking a button.
    5. Remember to include the Front Panel if you build this into an application using app builder. The builder will normally strip front panels from sub vi's.
    Hope that helps
    David
    Message Edited by David Crawford on 11-25-2005 02:44 AM
    Attachments:
    Print Options.jpg ‏30 KB

  • Refreshing Multiple Graphs in Keynote from linked Number's table

    I have a number of graphs in a Keynote presentation that are linked to a Numbers file. If I click on the graph in Keynote, I have the option to refresh the graph with any update to the data I did in Numbers. Is there any easy way to refresh all graphs within my Keynote presentation from all the new data I put in the Numbers file? I only know how to refresh one at a time right now.
    Thanks.

    Hi,
    I am not sure how this could be done with the views as the number of facilities is variable.  Could you expand as to how you could see views being used?
    Thanks,
    Mel

  • How to change the text in the legend of a graph programmat​ically in labview

    I have many graphs in one plot and want to show the legend the name of the graph (i.e. the filename). How do I change the text in the legend programmatically?

    Create a property node for your graph. Use the property node "Active Plot" to define which plot (or line) you want to rename. Then write the new legend label to the property node "Plot.Name". See attached.
    Tim
    Attachments:
    legend.vi ‏12 KB

  • Refresh a graph in a region.

    Hi,
    I am using JDEV 11.2.1.0
    I have used VO1  as a graph in a region in JSF page. Same JSF page has a method which updates another VO2.
    EO of VO1 and VO2 is the same. I am trying to refresh VO1 by requerying in the page but the graph does not refresh. I am using PPR for the region.
    Please let me know how to refresh graph in a region.
    Thanks in advance.

    After you update your VO2, if you press F5, does the graph refresh? If not, the the issue is not with PPR.
    Try setting ChangeEventPolicy to PPR on the executable iterator instance from your regions page definition. (Go to your regions page definition,in the executables section select your iterator and from properties change the option). If the option is already selected, then you can try to call Execute method which is an operation in your VO1. Try dragging and dropping the method from your DC as a button in your REGION next to the graph. Run the app, update the VO1 and then press Execute button.
    Hope this helps.

  • Clearing Charts and Graphs Programmat​ically

    I must be overlooking something simple because it seems that clearing charts
    programmatically would be such a common thing, but where then is the
    attribute to do this?

    Simple indeed. Thanks Greg.
    "Greg McKaskle" wrote in message
    news:[email protected]..
    > > I must be overlooking something simple because it seems that clearing
    charts
    > > programmatically would be such a common thing, but where then is the
    > > attribute to do this?
    >
    > To clear a graph, write and empty plot (empty array) to its terminal or
    > a local
    > variable. To clear a chart, write it to the charts History attribute.
    >
    > Greg McKaskle

  • Exporting graphs programmatically to pdf

    Is there a way to programmatically automate fully the exporting of a waveform graph to a pdf file using the Labview 2010 Professional Dev System package?
    Solved!
    Go to Solution.

    I saw four possibilities:
    (with LabView Report Generation Toolkit)
    1) Automatic Creation of a PDF file from Standard Report (NI Developer Community - probably the easier method);
    (without LabView Report Generation Toolkit)
    2) PDF Toolkit for LabVIEW - Carya Automatisering (evaluation version);
    3) Simplicity AI LabVIEW PDF Toolkit (free);
    4) PDF Report with ItextSharp (NI Developer Community);
    JM
    Jean-Marc
    LV2009 and LV2013
    Free PDF Report with iTextSharp

  • How to refresh a graph

    How do I make the BI beans graph reread the underlying view objects after they have changed?
    I have a master/detail graph and two JTables showing the master and detail data on one (JClient) form. I change the where clause of the detail, and see the tables changing. However, the graph does not change.

    After you update your VO2, if you press F5, does the graph refresh? If not, the the issue is not with PPR.
    Try setting ChangeEventPolicy to PPR on the executable iterator instance from your regions page definition. (Go to your regions page definition,in the executables section select your iterator and from properties change the option). If the option is already selected, then you can try to call Execute method which is an operation in your VO1. Try dragging and dropping the method from your DC as a button in your REGION next to the graph. Run the app, update the VO1 and then press Execute button.
    Hope this helps.

  • Help, how to make Finder to refresh custom icon programmatically

    Hi
    I have two file both are same name, e.g. 1.rtf, but with different custom icon.
    When I copied the first 1.rtf to an USB drive, the custom icon was displayed correctly.
    However, when copied the second file to the USB drive to replace the first file, Finder still showed the custom icon of the first file.
    How can I solve this issue and how can I make Finder to refresh the custom icon programmatically.
    Thanks

    Hi KT, thanks your reply & help
    but result is same. The following is my experiment
    STEP 1: copy 1.rtf to USB drive, the result is OK.
    STEP 2: copy another 1.rtf to USB drive, Finder still showing the 1st file icon and a little bit blurred
    STEP 3: copy 3rd file without custom icon, the result is OK
    STEP 4: using following code to set its custom icon, the result is still show the custom icon of the 1st file
    [[NSWorkspace sharedWorkspace] setIcon:image forFile:[filePath stringValue]  options:nil];
    It seems that Finder will has some cache to store file's custom icon. If use "Force Quit" to relaunch Finder, it become correct but how can I use program code to refresh it without "Force Quit"?

  • Refresh chart graph by clicking a specific node in HGrid or a link

    Hello,
    I've a page that includes HGridRN & GraphRN. I would like to relate between both.. so that when a user selects a specific node/link beside it, the chart will refresh based upon this specific node organization_id for example.
    How could this be done.. By a View Link between both HGrid & Graph? will it refresh automatically if so? Will it work for each node with respect to drillldown? Do I have to use PPR? If so how can I pass a parameter for organization_id to the graph's View Object or should the View Link do this by itself?
    Thank you in advance.
    BR,

    Jaap,
    Can you describe your exact use case in a bit more detail?
    Do you wish to link to a specific page or generate links to all pages (iterating through the pages) in the space? If it is the former, how do you identify the specific page? If it is the latter, consider creating a custom navigation model that contains only a pages query and iterate over this.

  • Add plots to digital waveform graph programmatically

    Hi Guys,
                This might be an easy one but I can't seem to find the right property. I'm adding "Plot Name" values for a each Plot in a Digital Waveform Graph. I select each plot with "Active Plot" property and name it. However if there are already e.g. 7 plots and I try to set eight plot active (i.e. 7 = Active Plot) I get an error cause this eight plot doesn't exist on the graph, and so can't be named.
        How can I add (or indeed remove) plots using property nodes?
        Thanks

    Hello,
    One thing to consider is the actual data the graph is receiving.  Choosing plot 8 in this case is perhaps attempting to choose a plot which doesn't exist in the data, which could be why you're seeing the error.
    Off the cuff, one thought might be to have the following "steps" take place when you want to add plots:
    on the appropriate action to create a plot, create a default data set representing that plot
    package that with your overall graph data so that the new plot exists in the data
    write that data to the graph, perhaps using the Value Signaling property (via a property node linked to the Graph)
    trap the graph's Value Change event using an event structure (possibly in a parallel loop) and update the plot name there (much like you are today - using a property node to first set the active plot to <previous value + 1> since you just added a plot, and then set your new plot name)
    Not sure what the rest of your application looks like, but hope this helps!
    Best,
    JLS
    Sixclear

  • Unable to refresh security realm programmatically

    Hello everybody!
    I'm trying to refresh security realm using MBeans technique.
    Here is the simple cfragment of my code:
    Set set = mBeanHome.getMBeansByType("Domain");
    DomainMBean dmb = (DomainMBean) set.iterator().next();
    SecurityMBean smb = dmb.getSecurity();
    RealmMBean rmb = smb.getRealm();
    System.out.println( "realm=" + rmb.getName() );
    System.out.println("before refresh");
    rmb.refresh();
    At the last point I'm getting the next error:
    <30.12.2003 16:47:02 MSK> <Error> <HTTP> <101017> <[ServletContext(id=27551407,
    ame=SimpleWebClient,context-path=/SimpleWebClient)] Root cause of ServletExcept
    on
    weblogic.management.NoAccessRuntimeException: Access not allowed for subject:
    p
    incipals=[], on ResourceType: Realm Action: execute, Target: refresh
    at weblogic.management.internal.Helper$IsAccessAllowedPrivilegeAction.r
    n()Ljava.lang.Object;(Helper.java:2149)
    at weblogic.security.service.SecurityServiceManager.runAs(Lweblogic.sec
    rity.acl.internal.AuthenticatedSubject;Lweblogic.security.acl.internal.Authenti
    atedSubject;Ljava.security.PrivilegedAction;)Ljava.lang.Object;(SecurityService
    anager.java:685)
    at weblogic.management.internal.Helper.isAccessAllowed(Ljavax.managemen
    .ObjectName;Lweblogic.security.service.MBeanResource$ActionType;Ljava.lang.Stri
    g;Ljava.lang.String;)V(Optimized Method)
    What can I do to avoid this error?

    Hi Jake,
    thanks for the reply.
    I tried sync Native directory.
    as it didn't work I also tried running Updatenativedir.bat utility in planning.
    I am now getting following error message:
    D:\Hyperion\common\utilities\SyncOpenLdapUtility\UpdateNativeDir\updateNativedir
    updateNativeDir -cssLocation http://ftlqbihss01:58080/interop/framework/getCSSC
    onfigfile -nodelete
    java.io.IOException: Property data cannot be loaded from cache.
    at com.hyperion.css.common.configuration.CSSConfigurationImplXML.process
    Streams(Unknown Source)
    at com.hyperion.css.common.configuration.CSSConfigurationImplXML.<init>(
    Unknown Source)
    at com.hyperion.css.common.configuration.CSSConfigurationManager.getConf
    iguration(Unknown Source)
    at com.hyperion.css.CSSAPIImpl.initialize(Unknown Source)
    at com.hyperion.css.utils.sync.CSSMigrationUtility.sync(Unknown Source)
    at com.hyperion.css.utils.sync.CSSMigrationUtility.main(Unknown Source)
    Update Native Directory operation aborted : com.hyperion.css.common.configuratio
    n.CSSConfigurationException: Cannot configure the system. Please check the confi
    guration. Error Code: 9
    NestedException:
    java.io.IOException: Property data cannot be loaded from cache.
    can you please help me in resolving the issue.

  • Hide / show grid in a graph programmaticly

    I would like to hide / show the grid (minor / major) progammaticly. I try to create a property node, but I don't find the way to access the 'hide' property... Thanks.

    I might need corrected, but I don't believe you can change the 'minor' grid color, but yes on the 'major'.
    Its a Write-to property node called Grid colors, and you can have the X & Y grids as separate or Clustered together elements. You'll need to add 2 color boxes [Controls > Numeric palette] to your front panel (X & Y). The user's selection is a numeric value sent to the property node(s) you wired.
    Good Luck with it, Doug

  • Refresh/Redraw SVG Graph onChange of DatePicker

    Hi,
    Is it possible to redraw/refresh a graph when I change the time in a datepicker?
    The graph is dependent on the datetime value for where it shows the corresponding graph values. The idea is that the user can change the time and either automatically refreshes graph or on pressing a button the graph will change to start at the new time
    I've tried a general web search and nothing looks promising. I've also tried asynchronous autorefresh but this doesn't appear to obtain the new value of the date picker even if I change it.
    Any ideas on how I could implement this in any way possible?
    Thanks in advance
    Regards,
    Rory

    Hi thols,
    I pressume based on the description you made and the result after I run the code which you have attached, you have an issue with the missing Plot 0 when Plot 1 passes it? Have you tried removing the flat sequence structure?
    Warmest regards,
    Lennard.C
    Learning new things everyday...

Maybe you are looking for