Clearing a Chart/Grap​h programati​cally

Hello,
Is there a way to clear a graph or chart at the time the program
starts. I have looked at the attribute node values but there is
nothing I can see that would do this. The problem is when I restart
the program the charts x axis keeps growing and I want it to always
show the same starting point. Thanks for any help.
Regards,
Steve Drake

Under the examples for graphs and charts, is an example dealing with
clearing graphs through programming (sorry the information is at home).
Basically, I guess, you have to wire an empty array to the graph when the
program starts.
Good Luck,
Christopher Quijano
Steve Drake wrote in message
news:[email protected]..
> Hello,
>
> Is there a way to clear a graph or chart at the time the program
> starts. I have looked at the attribute node values but there is
> nothing I can see that would do this. The problem is when I restart
> the program the charts x axis keeps growing and I want it to always
> show the same starting point. Thanks for any help.
>
> Regards,
>
> Steve Drake

Similar Messages

  • Why is the first value missing in the Chart when I use Property Nodes to clear my Charts programatically ?

    Hello everybody,
    I am using Property Nodes to clear my Charts right at the beginning of the program. The Property Nodes (History) are outside a While-loop.
    When I connect a Chart with the counter-variable "i" inside a While-loop, the first point I see in the Chart is (0,1) instead of (0,0). It looks like the Chart misses the first point !
    If the Chart is outside the While-loop the Chart displays all points.
    Can anyone please explain this behaviour ? How can I solve this problem ?
    Thanks,
    Cesar

    Make sure you have the error output from the property node connected to
    the loop border. Even if the error os not used in the loop, this will
    ensure that the property node clears the chart before the loop starts
    running.
    What is probably happening is the loop start running at the same time
    the chart is being cleared, so the first point is also being cleared.
    Ed
    Message Edited by Ed Dickens on 04-11-2006 09:50 AM
    Ed Dickens - Certified LabVIEW Architect - DISTek Integration, Inc. - NI Certified Alliance Partner
    Using the Abort button to stop your VI is like using a tree to stop your car. It works, but there may be consequences.
    Attachments:
    Clear chart before loop.gif ‏4 KB

  • How to clear waveform chart

    How i can clear a waveform chart with dynamic datas? The normal procedure with handover a empty array doesnt work.
    Uwe Augst
    Muehlbauer AG
    Germany

    Hi,
    here´s a small example with a property node (Historie), everytime you restart that VI, first the chart is cleaned up and than refilled again.
    Hope this helps,
    AlexMessage Edited by Alex R on 05-03-2005 11:18 AM
    Attachments:
    Clear Waveform-Chart.vi ‏21 KB

  • How to use the "Clear PDA Chart .vi" in LabVIEW 7.1 PDA module?

    In my iPAQ application, I try to use the LabVIEW 7.1 PDA module's "Clear PDA Chart .vi" to clear the graph. But I do not know how to do it. I always get error when I call it.
    My code is attached. The code is to draw a sin wave and then clear it.
    Attachments:
    sin.vi ‏69 KB

    Hi,
    I verified the behavior that you reported. I got error code 260055065 on running the VI. It does not matter if you wire a control ref or tabbing order number to the Clear PDA Chart.vi.
    This is a known bug and LabVIEW PDA developers are already working on it. Hopefully it will be fixed in the next release of the PDA module. Thanks for bringing this to our attention.
    Regards,
    Ankita A.
    National Instruments

  • How can I programmatically clear a chart?

    Hi,
    Could you please let me know how can I programmatically clear a chart? I would like to run a code multiple times and everytime I run it , the chart should be cleared . I tried to find a History property node but seems like there is no such properfy node for chart

    If I have conceived your problem clearly, there is of course history data property node for charts. You may get one by right clicking on chart 
    create>>Property node>>History data(which is last on list)  
    CLAD
    Passionate for LabVIEW

  • Is it possible clear the class loader cache programatically?

    Hi,
    Is it possible clear the class loader cache programatically?
    Thanks

    By the cache do you mean the loaded classes? If so, you can do that by discarding any pointer you have to the class loader and creating a new class loader. ...though I wonder why you would need to do that...

  • How to programmatically clear the chart

    Good morning
    I have doubt in clearing a chart programmatically
    I need to display the the values in chart and clear the chart,again i need to display in the next cycle
    I am able to display values and clear programmatically(passing some empty array values), but not able to diplay values in next cycle
    Pls give me some suggestions

    If i want clear the chart only after the time scale reached 100, how can i do this
    Consider changing the ADVANCED - UPDATE MODE to SCOPE chart.
    That will clear automatically when your data gets to the right side, and start over.
     Otherwise, clear it anytime you like by sending an empty array of points to your chart's HISTORY DATA property.
    Steve Bird
    Culverson Software - Elegant software that is a pleasure to use.
    Culverson.com
    Blog for (mostly LabVIEW) programmers: Tips And Tricks

  • Clearing a chart?

    Hi!
    Is there a way to clear a chart from a VI rather than
    through direct user interaction with the chart?
    Rudolf

    Nevermind ... it's in the help ... wire an empty array
    to the historydata attribute.
    Rudolf Potucek wrote:
    : Hi!
    : Is there a way to clear a chart from a VI rather than
    : through direct user interaction with the chart?
    : Rudolf

  • How do I clear a TextEntry control programati​cally with Lookout 4.0.1?

    I am trying to put together an entry form using TextEntry objects in Lookout 4.0.1 build 51. I want to clear out the previous text from the TextEntry controls when the panel activates. This was an easy thing to do in Lookout 3.8 but the nature of the Remote field has changed and I don't think I understand how it works. Thanks...

    You can clear the TextEntry box with the 'reset' datamember. Connect to it either Panel1.active or Panel1.visible depending on your specifc needs (and where Panel1 is your panel).
    E.g.,
    TextEntry1.reset = Panel1.visible
    BTW, if you want to display a default text then use the 'ResetValue' datamember, if not then just don't connect anything to it.
    Rgds,
    Khalid

  • How do you clear the chart in an AI Waveform Scan VI upon program start?

    I am using a waveform scan vi in a program. The output of the vi is set to "Waveform". What I want to do is have the program automaticly clear the waveform chart each time the program starts. Currently I must start the program, right click on the chart and select clear. I have attempted to use the chart history property node, which I assumed is the correct path to take but so far my attempts have been unsuccessful.

    Ahhh, waveforms... These got better in LV 7 I hear.
    Will this do it?
    2006 Ultimate LabVIEW G-eek.
    Attachments:
    Problem_example.vi ‏41 KB

  • Howto clear a chart in running programm?

    My Program periodically sends data in form of an array to a waveform chart
    to display the data.
    I want the newer data to overwrite the older, so that always only the last
    array of data is displayed.
    Therefore I have to clear the actual chart, otherwise LabView puts the data
    in row behind each other.
    How can I do this?
    I found no proper property in the property node that could help me.
    Or are there other possibilities?
    Thx for help,
    Daniel

    You wire an empty array to the chart history property node. Look at the shipping example called "How to Clear Charts & Graphs".

  • Clear waveform chart history if dynamic 1D data is used

    I am new to Labview and am using a Waveform Chart.  To clear this I need to supply an empty array.  I have done this with scalar inputs, but in this present case, the input to the chart is a bundle of 1-D array of dynamic data. I cannot figure out how to create a suitable empty array of type 1D array of dynamic data to initialize the plot (wire to the History).
    It seems like there should be a better (easier) way of clearing the plot...
    Thanks for any ideas.
    Solved!
    Go to Solution.

    Hi rockybooth,
    right click on the connector to the history property and select "create constant". You should get what you need.
    Hope it helps.
    Mike

  • How to create a subVI to Clear all charts data on a main VI

    Hi all,
    As I am writing a subVI to clear all the "charts" data on a main VI.
    The number of Charts is unknown, beasue this subVI need to run at
    difference main VIs. Therefore, I can only input a ref. of main VI into
    the subVI and find out all the control ref.,then check the classes of
    the control. If it is a chart, I need to use "To More Specific Class" to
    to select waveform chart. However, if the property node is not create
    from the chart directly, the "histroy data" will be missing.
    No matter my concept to build this subVI should be right, I donot succeed.
    Are there any other methods to do that?  
    regards,
    Ryan

    parthabe wrote:
    Did you file a bug report with NI, Coq?
    No i did not. I got it working with some diagram cluttering, and forgot all about it. As my motto is "If the damn thing works, ship it"
    Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
    (Sorry no Labview "brag list" so far)

  • Clearing time chart resets time also, but I don't want that

    I've tested this under both LV2011 and 2013, and the problem is seen in both versions.
    When I set up a chart with absolute time on the x-axis, and after some time have filled the
    chart with data, right-click and select Clear Chart, the chart is cleared, indeed.
    However, the problem is that the tims-scale is also reset, so when new data continue
    to be displayed, the time scale is wrong, cause it restarts on the time the chart originally started
    (before clear). How do I solve this problem ?
    Martin

    You could build a waveform to write to the chart.  The waveform would include a timestamp that the chart would then use.  If you just wire up and array or scaler to the chart, then the time just defaults to midnight Jan 1, 1904.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • How to empty clear cluster chart history labview 2011

    Hi ,
    Anyone can help me ?
    How to clear the history data of cluster chart using labview 2011
    Solved!
    Go to Solution.
    Attachments:
    111.jpg ‏6 KB

    Hi GerdW,
    Please refer the attachment..
    the array can not be applied...
    Attachments:
    222.jpg ‏77 KB

Maybe you are looking for