How Clear a WaveForm Chart Programmatically?

Hi LabView Masters!
Can I Clear a WaveForm Chart Programmatically?
I know that I can clear the chart clicking with the mouse, but I need to
clear it when a particular variable is high. (Programmatically)
I have been testing the Attribute Node but I didn't got it.
Thanks in advance for your help!.
Francisco Javier Fernandez Luna
Ingeniero Tec. Industrial en Electronica.
Tel: 619 81 98 31
E-mail:[email protected]
ó [email protected]
"Let's make things better" (PHILIPS)

try to use property node of the chart and connect an empty array to
"history data" field
Paco Luna a écrit dans l'article
<01beae87$7fe22e60$[email protected]>...
> Hi LabView Masters!
>
> Can I Clear a WaveForm Chart Programmatically?
> I know that I can clear the chart clicking with the mouse, but I need to
> clear it when a particular variable is high. (Programmatically)
>
> I have been testing the Attribute Node but I didn't got it.
>
> Thanks in advance for your help!.
> --
> Francisco Javier Fernandez Luna
> Ingeniero Tec. Industrial en Electronica.
> Tel: 619 81 98 31
> E-mail:[email protected]
> ó [email protected]
>
> "Let's make things better" (PHILIPS)
>

Similar Messages

  • How do i set the time frame of a waveform chart programmatically to be a 30 sec window or a 24 hour window

    i'm using LV7.0 and what i need to do is to be able to set the time frame or range of a waveform chart programmatically before i start taking and plotting data. sometimes this window needs to be 30s wide and sometimes it needs to be 24 hrs wide. (in the first reference, i need the chart to fill up with 30s of historical data then the whole chart scrolls with each new data point). the data acquisition records data at a rate of once per second. i've tried to use the chart properties of XScale.offset, XScale.Range.Minimum and XScale.Range.Maximum but no matter what i do the time-stamp on the x-axis is always "00:00:00 PM" and "MM/DD/YYYY" even though values are seen being plotted on the right side of the chart as expected.
    Attachments:
    BX0265 ShelfLife DAQmx.vi ‏120 KB

    Okay, there seems to be some confusion here -- the X axis values are of type double, but they can be represented in the HH:MMS MMD:YYYY format if you want in which case it interprets the floating point as the number of seconds since 6pm Dec 31, 1903. 
    You can programmatically set this value using the XScale.Minimum and XScale.Maximum properties, but note that if you wire a waveform to the chart after setting these values the t0 parameter will override what you set using the property node for XScale.Minimum.  If instead you leave the t0 parameter empty you can use the XScale.Offset property and wire the same value in that you wire to XScale.Minimum.  Changing the amount you add to XScale.Minmum to obtain what you wire into XScale.Maximum will determine the time window size.
    Doug M
    Applications Engineer
    National Instruments
    For those unfamiliar with NBC's The Office, my icon is NOT a picture of me

  • How to pass waveform chart in a loop in a sub vi to calling vi

    It has been awhile since I made my last application.  It has escaped me how to run a VI with a loop in it as a sub VI and still pass the waveform chart up to the calling VI.  I am trying to use the Bridge Continuous example as a sub VI and pass that waveform chart up to the calling VI that selects which load cells to monitor.  But when i run the calling VI it stops at the sub VI with a green arrow.

    Your acquisition needs to run in parallel with your main loop.  You should also use a queue or notifier to send that parallel process commands (like to stop).  I would use a User Event to send the data from your aquisition to your main loop's event structure.  You can then update the chart inside of the event structure.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • How to set waveform chart to start data since beginning of run

    Solved!
    Go to Solution.
    Attachments:
    TCs.vi ‏106 KB

    You need to check the update mode of your chart.
    Strip Chart—Shows running data continuously scrolling from left to right across the chart with old data on the left and new data on the right. A strip chart is similar to a paper tape strip chart recorder. Strip Chart is the default update mode.
    Scope Chart—Shows one item of data, such as a pulse or wave, scrolling partway across the chart from left to right. For each new value, the chart plots the value to the right of the last value. When the plot reaches the right border of the plotting area, LabVIEW erases the plot and begins plotting again from the left border. The retracing display of a scope chart is similar to an oscilloscope.
    Sweep Chart—Works similarly to a scope chart except it shows the old data on the right and the new data on the left separated by a vertical line. LabVIEW does not erase the plot in a sweep chart when the plot reaches the right border of the plotting area. A sweep chart is similar to an EKG display.
    From the help menu:
    The waveform chart maintains a history of data, or buffer, from previous updates. Right-click the chart and select Chart History Length from the shortcut menu to configure the buffer.  The default chart history length for a waveform chart is 1,024 data points. The frequency at which you send data to the chart determines how often the chart redraws.
    Attachments:
    resp2.jpg ‏36 KB

  • Clearing a waveform chart

    Hello!
    Can someone explain how to re-set a waveform chart to initialize to 0
    at the start of the run of the VI.
    I notice one example where a zero array is input...
    but this looks like overkill.
    Is there an easier way.
    Thanks,
    Adrian

    Adrian,
    It's really simple. Just create a property node or reference to the chart, and select the history. Then, just wire a constant (easiest to create a constant from the node itself) which is empty, and voila - an initialized chart.
    Good luck, and let us know how you do.

  • How to take waveform chart data and put it into an array

    Hello all,
    I am new to programming in Labview, and am learning basically by watching youtube video and such. My question is how to take a set of random data that I have written code for and linked to a waveform chart, and put the data into an array so I can calculate the mean of the data set. If there is an easier way to calculate the mean of the data set I am all ears, but I need to be able to display the mean on the front panel each time the code is run. I have attached a file of my code.
    Thanks
    Attachments:
    CA1.vi ‏11 KB

    Welcome.
    If you have not done so, look at the on-line tutorials on Getting Started with LabVIEW on the NI web site.
    A chart has a property known as History which retains some previous values.  You can get access to the the History property by popping up on the block diagram terminal of the chart and selecting Create >> Property Node. Note that the history length can be set via a pop up menu.  The default length is 1024.
    Other comments: When you know the number of iteration in advance you should use a for loop rather than the while loop.
    You can also use an autoindexing tunnel at the boundary of the loop to create an array. It only contains the values from the current run, unlike the chart history which can retain values between runs (as long as the VI remains in memory). Watch the two Mean indicators as you run this VI several times.
    The error wire is to assure that the history property node runs after the loop.  Disconnect the wire and watch the Mean and Mean 2 indicators carefully.
    The Wait is to slow things down a bit so that you can see what is happening.
    Lynn
    Attachments:
    CA1.2.vi ‏11 KB

  • How to log waveform chart data in any file at specific interval

     i am using labview 7.0. i want to save waveform chart data in the file at specific interval given by user. Please give me solution for that.
    falgandha

    Open the example finder (Help>>Find Examples) and look at the Write Datalog File example. You can also convert your data to text to save a simple text file. Also, the tutorials in the following links probably cover something similar.
    To learn more about LabVIEW, I suggest you try searching this site and google for LabVIEW tutorials. Here, here, here, here and here are a few you can start with and here are some tutorial videos. You can also contact your local NI office and join one of their courses.
    In addition, I suggest you read the LabVIEW style guide and the LabVIEW user manual (Help>>Search the LabVIEW Bookshelf).
    Try to take over the world!

  • How do i clear a waveform chart after i press stop?

    I attached what I have so far.
    I'm taking readings from 3 thermocouples simultaniously.
    I then graph and log the data in real time.
    I would like it if after i press stop, the graph resets. Then when i press start, the graph starts from the beginning.
    Any ideas how to do this?
    Cory K
    Attachments:
    Test1.vi ‏143 KB

    On the False side of your measure case, use a Property Node for each chart.  Property should be History Data, set it to write, and wire an empty array to it.  This will clear the graph.  I'd also use a shift register wired to a boolean so that you don't keep writing to the properties.  Set the boolean to true on the True side of your measure case.
    Message Edited by Mythilt on 05-27-2008 12:39 PM
    Jon D
    Certified LabVIEW Developer.
    Attachments:
    Test1[1]d.png ‏17 KB

  • How Does the Waveform Chart Allocate Memory in LabVIEW?

    I am not understanding the Memory allocation concept in chart. When it will be happened? If it is in run time, I am getting the exception before running the application itself. Can you help me on this?

    > I am not understanding the Memory allocation concept in chart. When it
    > will be happened? If it is in run time, I am getting the exception
    > before running the application itself. Can you help me on this?
    This depends a bit on the datatype. For all charts except those with
    the waveform datatype wired up, all memory is preallocated when the VI
    loads or compiles. Some datatypes, like the 2D array can add plots at
    runtime, and obviously the chart history will need to reallocate when
    that occurs.
    If the chart has a waveform or array of waveforms wired to it. It has no
    way of knowing how many points are in a waveform and will need to
    allocate them as they arrive. It has a top array of waveforms that is
    preallocated.
    I answered your question a
    bout the chart, but I'm not sure if this is
    what is causing your problem. If you are setting the chart history to a
    very large number, you might try smaller numbers and see if that is part
    of the problem. Otherwise it might be some other part of your diagram.
    Greg McKaskle

  • How to use waveform chart for slow data

    For slow data acquisition (e.g. 1 sample / sec) in the case of using DMM, how to display those data in a chart / graph?
    For this sampling rate, there will be only 1 point in the chart. 
    How to buffer them and display them in a sequence?
    Or, any other method?
    thanks

    Here is a quick example showing chart, graph and XY graph.  All YOU need to do is use a chart and wire your DMM reading right to it.  Charts have their own built in history (you can change the buffer size by right-clicking > Chart History Length)
    For more info see the Examples...  Building User Interfaces > Displaying Data > Graphs and Charts
    Using LabVIEW: 7.1.1, 8.5.1 & 2013
    Attachments:
    MultiGraphs.vi ‏17 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

  • Open Vi object reference waveform chart

    Hi, I'd like change a property of an indicator in a VI from another VI (In particular i want to clear a Waveform Chart) I used Open VI Object Reference but i am not able to access to History Data. How can I do?
    Solved!
    Go to Solution.
    Attachments:
    ClearChart.vi ‏7 KB
    test.vi ‏12 KB

    Sorry, I made what you have told me:
    now i have this error:
     why? If you have implemented a correct Vi can you give me it please?
    Thanks!
    Attachments:
    ClearChart.vi ‏14 KB
    test.vi ‏12 KB

  • Strictly typed refnum vs normal refnum for a waveform chart

    I know that one way of clearing a waveform chart is to write an empty array to the 'history' property of the charts property node. The help file for this states: "use strictly typed refnums when reading this properrty"
    I am looking at a program coded in LV 8.6
    a number of control refnums are carried around in an array (so strict typed)
    in some cases (but not all) the programmer used "to more specific class" to designate a waveform class when writing to properties for scaling the Y-axis, etc. Other times this is not done(?)
    We are now having an issue which appears to be that the chart is re-initialized when dynamically rescaled (I am not sure if that is what is going on, but that is what it looks like). 
    It looks like when the chart is dynamically rescaled the previously acquired data is gone and the chart starts populating fresh. 
    Haven't figured out what is causing this, and I am wondering if strict type refnums vs generic refnums may be a factor?
    Lawrence M. David Jr.
    Certified LabVIEW Architect
    cell: 516.819.9711
    http://www.aleconsultants.com
    [email protected]

    Waveform charts can hold different data types (they are polymorphic), such as DBL or 1D-array of DBL. When you want to set the history, you need a 1D DBL or 2D DBL respectivily. The correct data type is part of the 'strict type', I guess you will get the default instance if you use the non-strict (generic) type.
    But if this is releated to your problem, I can't even guess. 
    Felix 
    www.aescusoft.de
    My latest community nugget on producer/consumer design
    My current blog: A journey through uml

  • 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

  • Programmatically Extend a Waveform Chart

    Could anyone kindly tell me what property node I can use to programmatically extend a Waveform Chart on my Front Panel. 
    For instance, if a Boolen button is in the True Case, the Waveform will be short, but when in the False Case, the Waveform will be automatically elongated/extended beyond the initial length.
    Attached is the screenshot of what are trying to describe.
    Thanks in advance.
    Solved!
    Go to Solution.
    Attachments:
    Waveform.PNG ‏11 KB

    RavensFan, thanks for your response.  It actually worked for me.    Although, you answered my question already, but just allow me to ask one more thing under this thread.  If I want a flat line known as a "baseline" a numerically controlled/adjusted value to appear on the same Waveform Chart that my incoming signal(s) is/are plotting, how do I imposed or put that "baseline" on the same waveform chart?  The "baseline" is only acting the purpose for comparison or threshold?
    I would appreciate if you could just help with suggestion.
    Thanks

Maybe you are looking for

  • b and /b xml tags displayed in pdf

    hi Experts, I am using 10.1.3.3.2 I am displaying the fillter view along with the report on the dashboard. When I generate the pdf (printer friendly -> PDF) for that, the dates between filter condition is showing the <b>and</b> tags around 'and' inst

  • Is my Iphone 5 never lock(SIM free)? How can I check?

    Hello I am from Russia and I just bought it in BestBuy. I do the activation via iTunes. But now I start to recive a messages saying "iphone is not Activated contact your  carrier at 18009220204..." what does it mean? In the store I was told that it i

  • Zoom H2n and Garageband on MacBook Pro

    Hi, I just bought the Zoom H2n. I want to use it primary as a handheld recorder, what it is, but I also want to use it as a USB audio interface connecting to Garageband. The first tests are very promising. I have a question though. When I connect the

  • Can I tell Dreamweaver an alternative location for storing data created  in "Site Management" - "New Site"

    Hi, I am a high school librarian. We have Windows SteadyState installed in our computers to ensure the software and settings remain unchanged after they are used. What Windows SteadyState does is it keeps a master copy of the profile of the public us

  • Switched to Moto X - data from 1GB to 8GB!  What am I doing wrong?!

    I used to always use 1GB - then I got this new phone and I am needing 8GB.  No one seems to be able to help.  The only thing I can see is that in my corporate exchange email, I can see all of our email signatures, which were available as attachments